wagn 1.12.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +24 -0
- data/.rspec +4 -0
- data/CONTRIBUTING.rdoc +13 -0
- data/GPL +331 -0
- data/Gemfile +87 -0
- data/LICENSE +16 -0
- data/README.rdoc +103 -0
- data/Rakefile +7 -0
- data/VERSION +1 -0
- data/app/assets/images/body-bg.bmp +0 -0
- data/app/assets/images/body-bg.png +0 -0
- data/app/assets/images/external_link.png +0 -0
- data/app/assets/images/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/images/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/images/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/images/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/application.js +25 -0
- data/app/assets/javascripts/html5shiv-printshiv.js +499 -0
- data/app/assets/javascripts/jquery.autosize.js +254 -0
- data/app/assets/javascripts/jquery.fileupload.js +1111 -0
- data/app/assets/javascripts/jquery.iframe-transport.js +156 -0
- data/app/assets/javascripts/jquery.ui.autocomplete.html.js +40 -0
- data/app/assets/javascripts/wagn.js.coffee +288 -0
- data/app/assets/javascripts/wagn_menu.js +76 -0
- data/app/assets/javascripts/wagn_mod.js.coffee +401 -0
- data/app/controllers/account_controller.rb +67 -0
- data/app/controllers/admin_controller.rb +130 -0
- data/app/controllers/card_controller.rb +163 -0
- data/app/controllers/stub_card_controller.rb +9 -0
- data/app/controllers/wagn_controller.rb +123 -0
- data/app/mailers/.gitkeep +0 -0
- data/app/mailers/mailer.rb +108 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/account.rb +196 -0
- data/app/models/card.rb +42 -0
- data/app/models/card/reference.rb +71 -0
- data/app/models/card/revision.rb +45 -0
- data/app/models/user.rb +123 -0
- data/app/views/mailer/account_info.text.erb +17 -0
- data/app/views/mailer/change_notice.html.erb +32 -0
- data/app/views/mailer/flexmail.html.erb +6 -0
- data/app/views/mailer/signup_alert.html.erb +14 -0
- data/bin/wagn +9 -0
- data/config.ru +4 -0
- data/config/application.rb +15 -0
- data/config/boot.rb +8 -0
- data/config/environment.rb +8 -0
- data/config/environments/cucumber.rb +30 -0
- data/config/environments/development.rb +59 -0
- data/config/environments/production.rb +65 -0
- data/config/environments/profile.rb +28 -0
- data/config/environments/test.rb +45 -0
- data/config/initializers/01_init_ruby_extensions.rb +76 -0
- data/config/initializers/airbrake.rb +10 -0
- data/config/initializers/backtrace_silencers.rb +8 -0
- data/config/initializers/inflections.rb +13 -0
- data/config/initializers/mime_types.rb +13 -0
- data/config/initializers/notification.rb +4 -0
- data/config/initializers/recaptcha.rb +6 -0
- data/config/initializers/schema_views.rb +59 -0
- data/config/initializers/secret_token.rb +9 -0
- data/config/initializers/session_store.rb +9 -0
- data/config/initializers/uuid_state_file.rb +2 -0
- data/config/initializers/wrap_parameters.rb +15 -0
- data/config/routes.rb +45 -0
- data/config/samples/asset_htaccess +9 -0
- data/config/samples/cucumber.yml +8 -0
- data/config/samples/database.yml.erb +34 -0
- data/config/samples/robots.txt +12 -0
- data/config/version.txt +1 -0
- data/config/version_cards.txt +1 -0
- data/db/bootstrap/card_references.yml +1478 -0
- data/db/bootstrap/card_revisions.yml +3561 -0
- data/db/bootstrap/cards.yml +7192 -0
- data/db/bootstrap/users.yml +29 -0
- data/db/migrate/20110511221913_require_earlier_migrations.rb +17 -0
- data/db/migrate/20120105203350_require_1_8_migrations.rb +15 -0
- data/db/migrate/20121111025347_require_1_10_migrations.rb +15 -0
- data/db/migrate/20121118114000_split_link_type.rb +16 -0
- data/db/migrate/20121118115000_update_link_type.rb +19 -0
- data/db/migrate/20130106052640_table_cleanup.rb +25 -0
- data/db/migrate/20130109015336_trunk_left.rb +14 -0
- data/db/migrate/20130411210957_update_codenames.rb +14 -0
- data/db/migrate_cards/20130411191151_renaming_for_menu.rb +56 -0
- data/db/migrate_cards/20130411211600_delete_old_related_tab_cards.rb +27 -0
- data/db/migrate_cards/20130419215612_import_help_text.rb +23 -0
- data/db/migrate_cards/20130823192433_add_style_cards.rb +95 -0
- data/db/migrate_cards/20130910183318_move_styles_to_content.rb +19 -0
- data/db/migrate_cards/20130920214038_jsonize_tinymce.rb +24 -0
- data/db/migrate_cards/20130920291703_update_stylesheets.rb +26 -0
- data/db/migrate_cards/20130927191728_account_events.rb +29 -0
- data/db/migrate_cards/20131016172445_common_css_patch.rb +21 -0
- data/db/migrate_cards/20140110193325_reset_account_request_type.rb +19 -0
- data/db/migrate_cards/data/1.11_help_text.json +410 -0
- data/db/migrate_cards/data/1.12_stylesheets/classic_cards.scss +101 -0
- data/db/migrate_cards/data/1.12_stylesheets/common.scss +226 -0
- data/db/migrate_cards/data/1.12_stylesheets/right_sidebar.scss +27 -0
- data/db/migrate_cards/data/1.12_stylesheets/traditional.scss +152 -0
- data/db/schema.rb +92 -0
- data/db/seeds.rb +8 -0
- data/features/account_requests.feature +22 -0
- data/features/autonaming.feature +21 -0
- data/features/content_settings.feature +44 -0
- data/features/flexmail.feature +54 -0
- data/features/google_maps.feature +31 -0
- data/features/hello_wagn.feature +29 -0
- data/features/layouts.feature +23 -0
- data/features/notifications.feature +31 -0
- data/features/pattern_settings.feature +43 -0
- data/features/pointer_inputs.feature +81 -0
- data/features/presetting_content.feature +12 -0
- data/features/step_definitions/email_steps.rb +183 -0
- data/features/step_definitions/notification_steps.rb +23 -0
- data/features/step_definitions/wagn_steps.rb +207 -0
- data/features/step_definitions/web_steps.rb +138 -0
- data/features/support/env.rb +58 -0
- data/features/support/paths.rb +58 -0
- data/features/support/scopes.rb +22 -0
- data/features/support/wag_env.rb +11 -0
- data/features/table_of_contents.feature +35 -0
- data/features/templates.feature +30 -0
- data/features/update_includers.feature +68 -0
- data/features/virtual_cards.feature +11 -0
- data/features/watch.feature +54 -0
- data/lib/active_record/foreign_keys.rb +80 -0
- data/lib/active_record/quoting_and_matching.rb +72 -0
- data/lib/card/chunk.rb +103 -0
- data/lib/card/codename.rb +47 -0
- data/lib/card/constant.rb +20 -0
- data/lib/card/content.rb +206 -0
- data/lib/card/diff.rb +317 -0
- data/lib/card/exceptions.rb +22 -0
- data/lib/card/flexmail.rb +47 -0
- data/lib/card/format.rb +541 -0
- data/lib/card/name.rb +39 -0
- data/lib/card/query.rb +81 -0
- data/lib/card/query/card_spec.rb +516 -0
- data/lib/card/query/ref_spec.rb +23 -0
- data/lib/card/query/spec.rb +21 -0
- data/lib/card/query/value_spec.rb +66 -0
- data/lib/card/set.rb +239 -0
- data/lib/card/set_pattern.rb +140 -0
- data/lib/generators/card_migration/USAGE +12 -0
- data/lib/generators/card_migration/card_migration_generator.rb +10 -0
- data/lib/generators/card_migration/templates/card_migration.erb +16 -0
- data/lib/generators/format/USAGE +9 -0
- data/lib/generators/format/format_generator.rb +8 -0
- data/lib/generators/format/templates/format_spec_template.erb +6 -0
- data/lib/generators/format/templates/format_template.erb +3 -0
- data/lib/generators/set/USAGE +9 -0
- data/lib/generators/set/set_generator.rb +14 -0
- data/lib/generators/set/templates/set_spec_template.erb +6 -0
- data/lib/generators/set/templates/set_template.erb +1 -0
- data/lib/generators/wagn/USAGE +8 -0
- data/lib/generators/wagn/templates/Gemfile +5 -0
- data/lib/generators/wagn/templates/Rakefile +7 -0
- data/lib/generators/wagn/templates/config.ru +5 -0
- data/lib/generators/wagn/templates/config/application.rb +47 -0
- data/lib/generators/wagn/templates/config/boot.rb +11 -0
- data/lib/generators/wagn/templates/config/database.yml +35 -0
- data/lib/generators/wagn/templates/config/databases/frontbase.yml +31 -0
- data/lib/generators/wagn/templates/config/databases/ibm_db.yml +86 -0
- data/lib/generators/wagn/templates/config/databases/jdbc.yml +62 -0
- data/lib/generators/wagn/templates/config/databases/jdbcmysql.yml +33 -0
- data/lib/generators/wagn/templates/config/databases/jdbcpostgresql.yml +43 -0
- data/lib/generators/wagn/templates/config/databases/jdbcsqlite3.yml +20 -0
- data/lib/generators/wagn/templates/config/databases/mysql.yml +54 -0
- data/lib/generators/wagn/templates/config/databases/oracle.yml +39 -0
- data/lib/generators/wagn/templates/config/databases/postgresql.yml +55 -0
- data/lib/generators/wagn/templates/config/databases/sqlite3.yml +25 -0
- data/lib/generators/wagn/templates/config/environment.rb +5 -0
- data/lib/generators/wagn/templates/gitignore +18 -0
- data/lib/generators/wagn/templates/script/wagn +5 -0
- data/lib/generators/wagn/wagn_generator.rb +127 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/tasks/cucumber.rake +68 -0
- data/lib/tasks/db.rake +54 -0
- data/lib/tasks/test.rake +94 -0
- data/lib/tasks/wagn.rake +215 -0
- data/lib/wagn.rb +33 -0
- data/lib/wagn/all.rb +16 -0
- data/lib/wagn/application.rb +96 -0
- data/lib/wagn/authenticated_system.rb +38 -0
- data/lib/wagn/cache.rb +176 -0
- data/lib/wagn/cli.rb +17 -0
- data/lib/wagn/commands.rb +2 -0
- data/lib/wagn/commands/application.rb +10 -0
- data/lib/wagn/env.rb +42 -0
- data/lib/wagn/exceptions.rb +10 -0
- data/lib/wagn/loader.rb +135 -0
- data/lib/wagn/location.rb +88 -0
- data/lib/wagn/migration_helper.rb +32 -0
- data/lib/wagn/script_wagn_loader.rb +29 -0
- data/lib/wagn/spec_helper.rb +99 -0
- data/lib/wagn/version.rb +27 -0
- data/mods/core/chunks/literal.rb +24 -0
- data/mods/core/chunks/reference.rb +41 -0
- data/mods/core/chunks/uri.rb +135 -0
- data/mods/core/formats/data_format.rb +2 -0
- data/mods/core/formats/html_format.rb +319 -0
- data/mods/core/formats/text_format.rb +5 -0
- data/mods/core/layouts/blank.html +5 -0
- data/mods/core/layouts/default.html +20 -0
- data/mods/core/layouts/noside.html +16 -0
- data/mods/core/layouts/pre.html +2 -0
- data/mods/core/layouts/simple.html +5 -0
- data/mods/core/set_patterns/01_all.rb +12 -0
- data/mods/core/set_patterns/02_all_plus.rb +11 -0
- data/mods/core/set_patterns/03_type.rb +19 -0
- data/mods/core/set_patterns/04_star.rb +11 -0
- data/mods/core/set_patterns/05_rstar.rb +13 -0
- data/mods/core/set_patterns/06_right.rb +16 -0
- data/mods/core/set_patterns/07_type_plus_right.rb +19 -0
- data/mods/core/set_patterns/08_self.rb +15 -0
- data/mods/core/sets/all/active_card.rb +21 -0
- data/mods/core/sets/all/attribute_tracking.rb +85 -0
- data/mods/core/sets/all/collection.rb +46 -0
- data/mods/core/sets/all/content.rb +90 -0
- data/mods/core/sets/all/fetch.rb +198 -0
- data/mods/core/sets/all/initialize.rb +45 -0
- data/mods/core/sets/all/name.rb +266 -0
- data/mods/core/sets/all/pattern.rb +79 -0
- data/mods/core/sets/all/permissions.rb +218 -0
- data/mods/core/sets/all/phases.rb +159 -0
- data/mods/core/sets/all/references.rb +102 -0
- data/mods/core/sets/all/rules.rb +125 -0
- data/mods/core/sets/all/states.rb +16 -0
- data/mods/core/sets/all/templating.rb +118 -0
- data/mods/core/sets/all/tracked_attributes.rb +145 -0
- data/mods/core/sets/all/trash.rb +45 -0
- data/mods/core/sets/all/type.rb +70 -0
- data/mods/core/sets/all/utils.rb +91 -0
- data/mods/standard/chunks/include.rb +85 -0
- data/mods/standard/chunks/link.rb +84 -0
- data/mods/standard/formats/css_format.rb +3 -0
- data/mods/standard/formats/csv_format.rb +3 -0
- data/mods/standard/formats/email_html_format.rb +9 -0
- data/mods/standard/formats/file_format.rb +3 -0
- data/mods/standard/formats/json_format.rb +3 -0
- data/mods/standard/formats/kml_format.rb +3 -0
- data/mods/standard/formats/rss_format.rb +8 -0
- data/mods/standard/formats/xml_format.rb +3 -0
- data/mods/standard/lib/google_maps_addon.rb +30 -0
- data/mods/standard/lib/stylesheets/functional.scss +181 -0
- data/mods/standard/lib/stylesheets/jquery-ui-smoothness.css +474 -0
- data/mods/standard/lib/stylesheets/standard.scss +614 -0
- data/mods/standard/sets/all/account.rb +241 -0
- data/mods/standard/sets/all/admin.rb +53 -0
- data/mods/standard/sets/all/all_css.rb +39 -0
- data/mods/standard/sets/all/all_csv.rb +53 -0
- data/mods/standard/sets/all/attach.rb +143 -0
- data/mods/standard/sets/all/base.rb +136 -0
- data/mods/standard/sets/all/comment.rb +39 -0
- data/mods/standard/sets/all/email_html.rb +7 -0
- data/mods/standard/sets/all/file.rb +14 -0
- data/mods/standard/sets/all/flexmail.rb +3 -0
- data/mods/standard/sets/all/follow.rb +117 -0
- data/mods/standard/sets/all/geocode.rb +16 -0
- data/mods/standard/sets/all/history.rb +112 -0
- data/mods/standard/sets/all/json.rb +73 -0
- data/mods/standard/sets/all/kml.rb +48 -0
- data/mods/standard/sets/all/rich_html.rb +472 -0
- data/mods/standard/sets/all/rss.rb +66 -0
- data/mods/standard/sets/all/text.rb +9 -0
- data/mods/standard/sets/right/account.rb +1 -0
- data/mods/standard/sets/right/add_help.rb +1 -0
- data/mods/standard/sets/right/comment.rb +3 -0
- data/mods/standard/sets/right/create.rb +82 -0
- data/mods/standard/sets/right/crypted_password.rb +4 -0
- data/mods/standard/sets/right/default.rb +2 -0
- data/mods/standard/sets/right/delete.rb +3 -0
- data/mods/standard/sets/right/email.rb +5 -0
- data/mods/standard/sets/right/help.rb +1 -0
- data/mods/standard/sets/right/read.rb +3 -0
- data/mods/standard/sets/right/salt.rb +4 -0
- data/mods/standard/sets/right/structure.rb +11 -0
- data/mods/standard/sets/right/style.rb +67 -0
- data/mods/standard/sets/right/update.rb +3 -0
- data/mods/standard/sets/right/when_created.rb +5 -0
- data/mods/standard/sets/right/when_last_edited.rb +5 -0
- data/mods/standard/sets/rstar/rules.rb +235 -0
- data/mods/standard/sets/self/account_links.rb +30 -0
- data/mods/standard/sets/self/alerts.rb +6 -0
- data/mods/standard/sets/self/foot.rb +9 -0
- data/mods/standard/sets/self/head.rb +105 -0
- data/mods/standard/sets/self/navbox.rb +28 -0
- data/mods/standard/sets/self/now.rb +7 -0
- data/mods/standard/sets/self/recent.rb +45 -0
- data/mods/standard/sets/self/search.rb +37 -0
- data/mods/standard/sets/self/style_functional.rb +8 -0
- data/mods/standard/sets/self/style_jquery_ui_smoothness.rb +8 -0
- data/mods/standard/sets/self/style_standard.rb +8 -0
- data/mods/standard/sets/self/version.rb +8 -0
- data/mods/standard/sets/type/account_request.rb +81 -0
- data/mods/standard/sets/type/basic.rb +43 -0
- data/mods/standard/sets/type/cardtype.rb +32 -0
- data/mods/standard/sets/type/css.rb +17 -0
- data/mods/standard/sets/type/date.rb +9 -0
- data/mods/standard/sets/type/file.rb +87 -0
- data/mods/standard/sets/type/html.rb +17 -0
- data/mods/standard/sets/type/image.rb +67 -0
- data/mods/standard/sets/type/layout_type.rb +11 -0
- data/mods/standard/sets/type/number.rb +20 -0
- data/mods/standard/sets/type/phrase.rb +3 -0
- data/mods/standard/sets/type/plain_text.rb +10 -0
- data/mods/standard/sets/type/pointer.rb +219 -0
- data/mods/standard/sets/type/ruby_and_script.rb +31 -0
- data/mods/standard/sets/type/scss.rb +34 -0
- data/mods/standard/sets/type/search_type.rb +268 -0
- data/mods/standard/sets/type/set.rb +109 -0
- data/mods/standard/sets/type/setting.rb +88 -0
- data/mods/standard/sets/type/skin.rb +27 -0
- data/mods/standard/sets/type/toggle.rb +12 -0
- data/mods/standard/sets/type/user.rb +24 -0
- data/public/404.html +27 -0
- data/public/500.html +28 -0
- data/public/assets/application-7f1664ac8e65db8af0bfa6539e23c7df.js +103 -0
- data/public/assets/application-7f1664ac8e65db8af0bfa6539e23c7df.js.gz +0 -0
- data/public/assets/application.js +103 -0
- data/public/assets/application.js.gz +0 -0
- data/public/assets/body-bg-660b752b44b87594071f3d0851ac5360.png +0 -0
- data/public/assets/body-bg-d031f29b6ba7399a6862382c3552f44c.bmp +0 -0
- data/public/assets/body-bg.bmp +0 -0
- data/public/assets/body-bg.png +0 -0
- data/public/assets/external_link-b15ab5051b4ec6f32892ed80019405b5.png +0 -0
- data/public/assets/external_link.png +0 -0
- data/public/assets/html5shiv-printshiv-ad36fc7219f4aeaa275f9a7fe2383413.js +1 -0
- data/public/assets/html5shiv-printshiv-ad36fc7219f4aeaa275f9a7fe2383413.js.gz +0 -0
- data/public/assets/html5shiv-printshiv.js +1 -0
- data/public/assets/html5shiv-printshiv.js.gz +0 -0
- data/public/assets/images/ui-bg_flat_0_aaaaaa_40x100-7d1197a52442bc56fcad60d0390f4b32.png +0 -0
- data/public/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/public/assets/images/ui-bg_flat_75_ffffff_40x100-3c4b974defa5e8bdaf8a603034c4435e.png +0 -0
- data/public/assets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/public/assets/images/ui-bg_glass_55_fbf9ee_1x400-38c2dea4d046fd3f56cc3996e2e6018b.png +0 -0
- data/public/assets/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/public/assets/images/ui-bg_glass_65_ffffff_1x400-ddb7ee7527bff283054406c50e597e1e.png +0 -0
- data/public/assets/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/assets/images/ui-bg_glass_75_dadada_1x400-d618461418b1ebc6b7996979f4c3dc92.png +0 -0
- data/public/assets/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/public/assets/images/ui-bg_glass_75_e6e6e6_1x400-48d8d545f708e5870a965ce9df8b0e38.png +0 -0
- data/public/assets/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/public/assets/images/ui-bg_glass_95_fef1ec_1x400-f3526b8f82249928f0a6baf044204b15.png +0 -0
- data/public/assets/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/public/assets/images/ui-bg_highlight-soft_75_cccccc_1x100-cec5c56503b8480f834c3fce35dae8df.png +0 -0
- data/public/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/public/assets/images/ui-icons_222222_256x240-66e635a2f90b9f90675d402617630b24.png +0 -0
- data/public/assets/images/ui-icons_222222_256x240.png +0 -0
- data/public/assets/images/ui-icons_2e83ff_256x240-2ea4c160a75c1992daa2eeac86255b99.png +0 -0
- data/public/assets/images/ui-icons_2e83ff_256x240.png +0 -0
- data/public/assets/images/ui-icons_454545_256x240-5c7f12676bcead9cb2d4cb8f23f16e95.png +0 -0
- data/public/assets/images/ui-icons_454545_256x240.png +0 -0
- data/public/assets/images/ui-icons_888888_256x240-95fd3047e1f7325d995a21c729b04125.png +0 -0
- data/public/assets/images/ui-icons_888888_256x240.png +0 -0
- data/public/assets/images/ui-icons_cd0a0a_256x240-c0c1ec6a8bcf48fec40303e975a4dfa6.png +0 -0
- data/public/assets/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/public/assets/jquerymobile/ajax-loader-a8a4bc1c4b502e156ed451507987eed7.png +0 -0
- data/public/assets/jquerymobile/ajax-loader-cad1a448fe000d9643c57860e5493861.gif +0 -0
- data/public/assets/jquerymobile/ajax-loader.gif +0 -0
- data/public/assets/jquerymobile/ajax-loader.png +0 -0
- data/public/assets/jquerymobile/icons-18-black-b6e62647e8518462e73fd052bfe25d6c.png +0 -0
- data/public/assets/jquerymobile/icons-18-black.png +0 -0
- data/public/assets/jquerymobile/icons-18-white-f4ae730f6acc1e5b1781652e5d6973c7.png +0 -0
- data/public/assets/jquerymobile/icons-18-white.png +0 -0
- data/public/assets/jquerymobile/icons-36-black-13a52024f9a92e59a69dca49014d9292.png +0 -0
- data/public/assets/jquerymobile/icons-36-black.png +0 -0
- data/public/assets/jquerymobile/icons-36-white-3b109c0900c418fd2e5468dfb35b3f59.png +0 -0
- data/public/assets/jquerymobile/icons-36-white.png +0 -0
- data/public/assets/manifest.yml +395 -0
- data/public/assets/tinymce-22b5a139d9ff7df7643afae9ce205508.js +13 -0
- data/public/assets/tinymce-22b5a139d9ff7df7643afae9ce205508.js.gz +0 -0
- data/public/assets/tinymce.js +13 -0
- data/public/assets/tinymce.js.gz +0 -0
- data/public/assets/tinymce/jquery.tinymce.js +1 -0
- data/public/assets/tinymce/langs/en.js +1 -0
- data/public/assets/tinymce/license.txt +504 -0
- data/public/assets/tinymce/plugins/advhr/css/advhr.css +5 -0
- data/public/assets/tinymce/plugins/advhr/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/advhr/editor_plugin_src.js +57 -0
- data/public/assets/tinymce/plugins/advhr/js/rule.js +43 -0
- data/public/assets/tinymce/plugins/advhr/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/advhr/rule.htm +58 -0
- data/public/assets/tinymce/plugins/advimage/css/advimage.css +13 -0
- data/public/assets/tinymce/plugins/advimage/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/advimage/editor_plugin_src.js +50 -0
- data/public/assets/tinymce/plugins/advimage/image.htm +235 -0
- data/public/assets/tinymce/plugins/advimage/img/sample.gif +0 -0
- data/public/assets/tinymce/plugins/advimage/js/image.js +464 -0
- data/public/assets/tinymce/plugins/advimage/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/advlink/css/advlink.css +8 -0
- data/public/assets/tinymce/plugins/advlink/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/advlink/editor_plugin_src.js +61 -0
- data/public/assets/tinymce/plugins/advlink/js/advlink.js +543 -0
- data/public/assets/tinymce/plugins/advlink/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/advlink/link.htm +338 -0
- data/public/assets/tinymce/plugins/advlist/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/advlist/editor_plugin_src.js +176 -0
- data/public/assets/tinymce/plugins/autolink/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/autolink/editor_plugin_src.js +184 -0
- data/public/assets/tinymce/plugins/autoresize/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/autoresize/editor_plugin_src.js +119 -0
- data/public/assets/tinymce/plugins/autosave/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/autosave/editor_plugin_src.js +433 -0
- data/public/assets/tinymce/plugins/bbcode/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/bbcode/editor_plugin_src.js +120 -0
- data/public/assets/tinymce/plugins/contextmenu/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/contextmenu/editor_plugin_src.js +163 -0
- data/public/assets/tinymce/plugins/directionality/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/directionality/editor_plugin_src.js +85 -0
- data/public/assets/tinymce/plugins/emotions/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/emotions/editor_plugin_src.js +43 -0
- data/public/assets/tinymce/plugins/emotions/emotions.htm +42 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/public/assets/tinymce/plugins/emotions/js/emotions.js +43 -0
- data/public/assets/tinymce/plugins/emotions/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/example/dialog.htm +22 -0
- data/public/assets/tinymce/plugins/example/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/example/editor_plugin_src.js +84 -0
- data/public/assets/tinymce/plugins/example/img/example.gif +0 -0
- data/public/assets/tinymce/plugins/example/js/dialog.js +19 -0
- data/public/assets/tinymce/plugins/example/langs/en.js +3 -0
- data/public/assets/tinymce/plugins/example/langs/en_dlg.js +3 -0
- data/public/assets/tinymce/plugins/example_dependency/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/example_dependency/editor_plugin_src.js +50 -0
- data/public/assets/tinymce/plugins/fullpage/css/fullpage.css +143 -0
- data/public/assets/tinymce/plugins/fullpage/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/fullpage/editor_plugin_src.js +405 -0
- data/public/assets/tinymce/plugins/fullpage/fullpage.htm +259 -0
- data/public/assets/tinymce/plugins/fullpage/js/fullpage.js +232 -0
- data/public/assets/tinymce/plugins/fullpage/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/fullscreen/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/fullscreen/editor_plugin_src.js +234 -0
- data/public/assets/tinymce/plugins/fullscreen/fullscreen.htm +117 -0
- data/public/assets/tinymce/plugins/iespell/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/iespell/editor_plugin_src.js +54 -0
- data/public/assets/tinymce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/inlinepopups/editor_plugin_src.js +699 -0
- data/public/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/public/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/public/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/public/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/public/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/public/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/public/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/public/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
- data/public/assets/tinymce/plugins/inlinepopups/template.htm +387 -0
- data/public/assets/tinymce/plugins/insertdatetime/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/insertdatetime/editor_plugin_src.js +83 -0
- data/public/assets/tinymce/plugins/layer/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/layer/editor_plugin_src.js +262 -0
- data/public/assets/tinymce/plugins/legacyoutput/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/legacyoutput/editor_plugin_src.js +139 -0
- data/public/assets/tinymce/plugins/lists/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/lists/editor_plugin_src.js +955 -0
- data/public/assets/tinymce/plugins/media/css/media.css +17 -0
- data/public/assets/tinymce/plugins/media/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/media/editor_plugin_src.js +898 -0
- data/public/assets/tinymce/plugins/media/js/embed.js +73 -0
- data/public/assets/tinymce/plugins/media/js/media.js +513 -0
- data/public/assets/tinymce/plugins/media/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/media/media.htm +922 -0
- data/public/assets/tinymce/plugins/media/moxieplayer.swf +0 -0
- data/public/assets/tinymce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/nonbreaking/editor_plugin_src.js +54 -0
- data/public/assets/tinymce/plugins/noneditable/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/noneditable/editor_plugin_src.js +537 -0
- data/public/assets/tinymce/plugins/pagebreak/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/pagebreak/editor_plugin_src.js +74 -0
- data/public/assets/tinymce/plugins/paste/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/paste/editor_plugin_src.js +885 -0
- data/public/assets/tinymce/plugins/paste/js/pastetext.js +36 -0
- data/public/assets/tinymce/plugins/paste/js/pasteword.js +51 -0
- data/public/assets/tinymce/plugins/paste/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/paste/pastetext.htm +27 -0
- data/public/assets/tinymce/plugins/paste/pasteword.htm +21 -0
- data/public/assets/tinymce/plugins/preview/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/preview/editor_plugin_src.js +53 -0
- data/public/assets/tinymce/plugins/preview/example.html +28 -0
- data/public/assets/tinymce/plugins/preview/jscripts/embed.js +73 -0
- data/public/assets/tinymce/plugins/preview/preview.html +17 -0
- data/public/assets/tinymce/plugins/print/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/print/editor_plugin_src.js +34 -0
- data/public/assets/tinymce/plugins/save/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/save/editor_plugin_src.js +101 -0
- data/public/assets/tinymce/plugins/searchreplace/css/searchreplace.css +6 -0
- data/public/assets/tinymce/plugins/searchreplace/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/searchreplace/editor_plugin_src.js +61 -0
- data/public/assets/tinymce/plugins/searchreplace/js/searchreplace.js +148 -0
- data/public/assets/tinymce/plugins/searchreplace/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/searchreplace/searchreplace.htm +100 -0
- data/public/assets/tinymce/plugins/spellchecker/css/content.css +1 -0
- data/public/assets/tinymce/plugins/spellchecker/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/spellchecker/editor_plugin_src.js +471 -0
- data/public/assets/tinymce/plugins/spellchecker/img/wline.gif +0 -0
- data/public/assets/tinymce/plugins/style/css/props.css +14 -0
- data/public/assets/tinymce/plugins/style/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/style/editor_plugin_src.js +71 -0
- data/public/assets/tinymce/plugins/style/js/props.js +709 -0
- data/public/assets/tinymce/plugins/style/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/style/props.htm +845 -0
- data/public/assets/tinymce/plugins/style/readme.txt +19 -0
- data/public/assets/tinymce/plugins/tabfocus/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/tabfocus/editor_plugin_src.js +122 -0
- data/public/assets/tinymce/plugins/table/cell.htm +180 -0
- data/public/assets/tinymce/plugins/table/css/cell.css +17 -0
- data/public/assets/tinymce/plugins/table/css/row.css +25 -0
- data/public/assets/tinymce/plugins/table/css/table.css +13 -0
- data/public/assets/tinymce/plugins/table/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/table/editor_plugin_src.js +1456 -0
- data/public/assets/tinymce/plugins/table/js/cell.js +319 -0
- data/public/assets/tinymce/plugins/table/js/merge_cells.js +27 -0
- data/public/assets/tinymce/plugins/table/js/row.js +254 -0
- data/public/assets/tinymce/plugins/table/js/table.js +501 -0
- data/public/assets/tinymce/plugins/table/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/table/merge_cells.htm +32 -0
- data/public/assets/tinymce/plugins/table/row.htm +158 -0
- data/public/assets/tinymce/plugins/table/table.htm +188 -0
- data/public/assets/tinymce/plugins/template/blank.htm +12 -0
- data/public/assets/tinymce/plugins/template/css/template.css +23 -0
- data/public/assets/tinymce/plugins/template/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/template/editor_plugin_src.js +159 -0
- data/public/assets/tinymce/plugins/template/js/template.js +106 -0
- data/public/assets/tinymce/plugins/template/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/plugins/template/template.htm +31 -0
- data/public/assets/tinymce/plugins/visualblocks/css/visualblocks.css +21 -0
- data/public/assets/tinymce/plugins/visualblocks/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/visualblocks/editor_plugin_src.js +63 -0
- data/public/assets/tinymce/plugins/visualchars/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/visualchars/editor_plugin_src.js +83 -0
- data/public/assets/tinymce/plugins/wordcount/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/wordcount/editor_plugin_src.js +122 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/abbr.htm +142 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/acronym.htm +142 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/attributes.htm +149 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/cite.htm +142 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/css/attributes.css +11 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/css/popup.css +9 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/del.htm +162 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/editor_plugin.js +1 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/ins.htm +162 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/js/abbr.js +28 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/js/acronym.js +28 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/js/attributes.js +111 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/js/cite.js +28 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/js/del.js +53 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/js/element_common.js +229 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/js/ins.js +53 -0
- data/public/assets/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/themes/advanced/about.htm +52 -0
- data/public/assets/tinymce/themes/advanced/anchor.htm +26 -0
- data/public/assets/tinymce/themes/advanced/charmap.htm +55 -0
- data/public/assets/tinymce/themes/advanced/color_picker.htm +70 -0
- data/public/assets/tinymce/themes/advanced/editor_template.js +1 -0
- data/public/assets/tinymce/themes/advanced/editor_template_src.js +1490 -0
- data/public/assets/tinymce/themes/advanced/image.htm +80 -0
- data/public/assets/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
- data/public/assets/tinymce/themes/advanced/img/flash.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/icons.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/iframe.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/pagebreak.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/quicktime.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/realmedia.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/shockwave.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/trans.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/video.gif +0 -0
- data/public/assets/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
- data/public/assets/tinymce/themes/advanced/js/about.js +73 -0
- data/public/assets/tinymce/themes/advanced/js/anchor.js +56 -0
- data/public/assets/tinymce/themes/advanced/js/charmap.js +363 -0
- data/public/assets/tinymce/themes/advanced/js/color_picker.js +345 -0
- data/public/assets/tinymce/themes/advanced/js/image.js +253 -0
- data/public/assets/tinymce/themes/advanced/js/link.js +159 -0
- data/public/assets/tinymce/themes/advanced/js/source_editor.js +78 -0
- data/public/assets/tinymce/themes/advanced/langs/en.js +1 -0
- data/public/assets/tinymce/themes/advanced/langs/en_dlg.js +1 -0
- data/public/assets/tinymce/themes/advanced/link.htm +57 -0
- data/public/assets/tinymce/themes/advanced/shortcuts.htm +47 -0
- data/public/assets/tinymce/themes/advanced/skins/default/content.css +50 -0
- data/public/assets/tinymce/themes/advanced/skins/default/dialog.css +118 -0
- data/public/assets/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/public/assets/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
- data/public/assets/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/public/assets/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/public/assets/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/public/assets/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/public/assets/tinymce/themes/advanced/skins/default/ui.css +219 -0
- data/public/assets/tinymce/themes/advanced/skins/highcontrast/content.css +24 -0
- data/public/assets/tinymce/themes/advanced/skins/highcontrast/dialog.css +106 -0
- data/public/assets/tinymce/themes/advanced/skins/highcontrast/ui.css +106 -0
- data/public/assets/tinymce/themes/advanced/skins/o2k7/content.css +48 -0
- data/public/assets/tinymce/themes/advanced/skins/o2k7/dialog.css +118 -0
- data/public/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/public/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/public/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/public/assets/tinymce/themes/advanced/skins/o2k7/ui.css +222 -0
- data/public/assets/tinymce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/public/assets/tinymce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/public/assets/tinymce/themes/advanced/source_editor.htm +25 -0
- data/public/assets/tinymce/themes/simple/editor_template.js +1 -0
- data/public/assets/tinymce/themes/simple/editor_template_src.js +84 -0
- data/public/assets/tinymce/themes/simple/img/icons.gif +0 -0
- data/public/assets/tinymce/themes/simple/langs/en.js +1 -0
- data/public/assets/tinymce/themes/simple/skins/default/content.css +25 -0
- data/public/assets/tinymce/themes/simple/skins/default/ui.css +32 -0
- data/public/assets/tinymce/themes/simple/skins/o2k7/content.css +17 -0
- data/public/assets/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/public/assets/tinymce/themes/simple/skins/o2k7/ui.css +35 -0
- data/public/assets/tinymce/tiny_mce.js +1 -0
- data/public/assets/tinymce/tiny_mce_jquery.js +1 -0
- data/public/assets/tinymce/tiny_mce_jquery_src.js +17913 -0
- data/public/assets/tinymce/tiny_mce_popup.js +5 -0
- data/public/assets/tinymce/tiny_mce_src.js +19127 -0
- data/public/assets/tinymce/utils/editable_selects.js +70 -0
- data/public/assets/tinymce/utils/form_utils.js +210 -0
- data/public/assets/tinymce/utils/mctabs.js +162 -0
- data/public/assets/tinymce/utils/validate.js +252 -0
- data/public/assets2bpacked/jstree/README.txt +10 -0
- data/public/assets2bpacked/jstree/_demo/_dump.sql +20 -0
- data/public/assets2bpacked/jstree/_demo/_inc/__mysql_errors.log +0 -0
- data/public/assets2bpacked/jstree/_demo/_inc/class._database.php +146 -0
- data/public/assets2bpacked/jstree/_demo/_inc/class._database_i.php +152 -0
- data/public/assets2bpacked/jstree/_demo/_inc/class.tree.php +602 -0
- data/public/assets2bpacked/jstree/_demo/_install.txt +6 -0
- data/public/assets2bpacked/jstree/_demo/config.php +14 -0
- data/public/assets2bpacked/jstree/_demo/file.png +0 -0
- data/public/assets2bpacked/jstree/_demo/folder.png +0 -0
- data/public/assets2bpacked/jstree/_demo/index.html +461 -0
- data/public/assets2bpacked/jstree/_demo/root.png +0 -0
- data/public/assets2bpacked/jstree/_demo/server.php +69 -0
- data/public/assets2bpacked/jstree/_docs/!style.css +48 -0
- data/public/assets2bpacked/jstree/_docs/_drive.png +0 -0
- data/public/assets2bpacked/jstree/_docs/_html_data.html +2 -0
- data/public/assets2bpacked/jstree/_docs/_json_data.json +4 -0
- data/public/assets2bpacked/jstree/_docs/_search_data.json +6 -0
- data/public/assets2bpacked/jstree/_docs/_search_result.json +1 -0
- data/public/assets2bpacked/jstree/_docs/_xml_flat.xml +12 -0
- data/public/assets2bpacked/jstree/_docs/_xml_nest.xml +18 -0
- data/public/assets2bpacked/jstree/_docs/checkbox.html +171 -0
- data/public/assets2bpacked/jstree/_docs/contextmenu.html +121 -0
- data/public/assets2bpacked/jstree/_docs/cookies.html +97 -0
- data/public/assets2bpacked/jstree/_docs/core.html +689 -0
- data/public/assets2bpacked/jstree/_docs/crrm.html +316 -0
- data/public/assets2bpacked/jstree/_docs/dnd.html +199 -0
- data/public/assets2bpacked/jstree/_docs/hotkeys.html +82 -0
- data/public/assets2bpacked/jstree/_docs/html_data.html +175 -0
- data/public/assets2bpacked/jstree/_docs/index.html +86 -0
- data/public/assets2bpacked/jstree/_docs/json_data.html +249 -0
- data/public/assets2bpacked/jstree/_docs/languages.html +152 -0
- data/public/assets2bpacked/jstree/_docs/logo.png +0 -0
- data/public/assets2bpacked/jstree/_docs/search.html +153 -0
- data/public/assets2bpacked/jstree/_docs/sort.html +85 -0
- data/public/assets2bpacked/jstree/_docs/syntax/!script.js +2232 -0
- data/public/assets2bpacked/jstree/_docs/syntax/!style.css +511 -0
- data/public/assets2bpacked/jstree/_docs/syntax/clipboard.swf +0 -0
- data/public/assets2bpacked/jstree/_docs/syntax/help.png +0 -0
- data/public/assets2bpacked/jstree/_docs/syntax/magnifier.png +0 -0
- data/public/assets2bpacked/jstree/_docs/syntax/page_white_code.png +0 -0
- data/public/assets2bpacked/jstree/_docs/syntax/page_white_copy.png +0 -0
- data/public/assets2bpacked/jstree/_docs/syntax/printer.png +0 -0
- data/public/assets2bpacked/jstree/_docs/syntax/wrapping.png +0 -0
- data/public/assets2bpacked/jstree/_docs/themeroller.html +107 -0
- data/public/assets2bpacked/jstree/_docs/themes.html +127 -0
- data/public/assets2bpacked/jstree/_docs/types.html +178 -0
- data/public/assets2bpacked/jstree/_docs/ui.html +197 -0
- data/public/assets2bpacked/jstree/_docs/unique.html +85 -0
- data/public/assets2bpacked/jstree/_docs/xml_data.html +218 -0
- data/public/assets2bpacked/jstree/_lib/jquery.cookie.js +96 -0
- data/public/assets2bpacked/jstree/_lib/jquery.hotkeys.js +99 -0
- data/public/assets2bpacked/jstree/_lib/jquery.js +5 -0
- data/public/assets2bpacked/jstree/jquery.jstree.js +4564 -0
- data/public/assets2bpacked/jstree/themes/apple/bg.jpg +0 -0
- data/public/assets2bpacked/jstree/themes/apple/d.png +0 -0
- data/public/assets2bpacked/jstree/themes/apple/dot_for_ie.gif +0 -0
- data/public/assets2bpacked/jstree/themes/apple/style.css +61 -0
- data/public/assets2bpacked/jstree/themes/apple/throbber.gif +0 -0
- data/public/assets2bpacked/jstree/themes/classic/d.gif +0 -0
- data/public/assets2bpacked/jstree/themes/classic/d.png +0 -0
- data/public/assets2bpacked/jstree/themes/classic/dot_for_ie.gif +0 -0
- data/public/assets2bpacked/jstree/themes/classic/style.css +77 -0
- data/public/assets2bpacked/jstree/themes/classic/throbber.gif +0 -0
- data/public/assets2bpacked/jstree/themes/default-rtl/d.gif +0 -0
- data/public/assets2bpacked/jstree/themes/default-rtl/d.png +0 -0
- data/public/assets2bpacked/jstree/themes/default-rtl/dots.gif +0 -0
- data/public/assets2bpacked/jstree/themes/default-rtl/style.css +84 -0
- data/public/assets2bpacked/jstree/themes/default-rtl/throbber.gif +0 -0
- data/public/assets2bpacked/jstree/themes/default/d.gif +0 -0
- data/public/assets2bpacked/jstree/themes/default/d.png +0 -0
- data/public/assets2bpacked/jstree/themes/default/style.css +74 -0
- data/public/assets2bpacked/jstree/themes/default/throbber.gif +0 -0
- data/public/favicon.ico +0 -0
- data/public/jasmine/card_form.html +13 -0
- data/public/robots.txt +12 -0
- data/script/autospec +4 -0
- data/script/rails +6 -0
- data/script/test_filter +25 -0
- data/script/wagn.rb +6 -0
- data/spec/controllers/account_controller_spec.rb +43 -0
- data/spec/controllers/admin_controller_spec.rb +23 -0
- data/spec/controllers/captcha_spec.rb +103 -0
- data/spec/controllers/card_controller_spec.rb +353 -0
- data/spec/controllers/location_spec.rb +49 -0
- data/spec/controllers/sets_spec.rb +97 -0
- data/spec/controllers/wagn_controller_spec.rb +5 -0
- data/spec/javascripts/helpers/.gitkeep +0 -0
- data/spec/javascripts/helpers/jasmine-config.js +2 -0
- data/spec/javascripts/helpers/jasmine-jquery-1.3.1.js +295 -0
- data/spec/javascripts/support/jasmine.yml +77 -0
- data/spec/javascripts/support/jasmine_config.rb +24 -0
- data/spec/javascripts/support/jasmine_runner.rb +21 -0
- data/spec/javascripts/wagn_spec.coffee +40 -0
- data/spec/lib/card/chunk_spec.rb +18 -0
- data/spec/lib/card/codename_spec.rb +30 -0
- data/spec/lib/card/content_spec.rb +293 -0
- data/spec/lib/card/diff_spec.rb +111 -0
- data/spec/lib/card/flexmail_spec.rb +209 -0
- data/spec/lib/card/format_spec.rb +173 -0
- data/spec/lib/card/name_spec.rb +275 -0
- data/spec/lib/card/query_spec.rb +456 -0
- data/spec/lib/card/set_pattern_spec.rb +40 -0
- data/spec/lib/card/set_spec.rb +84 -0
- data/spec/lib/wagn/cache_spec.rb +120 -0
- data/spec/lib/wagn/loader_spec.rb +33 -0
- data/spec/mailers/account_spec.rb +66 -0
- data/spec/mailers/mailer_spec.rb +57 -0
- data/spec/models/account_spec.rb +19 -0
- data/spec/models/card/cardtype_spec.rb +218 -0
- data/spec/models/card/comment_spec.rb +38 -0
- data/spec/models/card/create_spec.rb +83 -0
- data/spec/models/card/reference_spec.rb +214 -0
- data/spec/models/card/revision_spec.rb +58 -0
- data/spec/models/card/trash_spec.rb +258 -0
- data/spec/models/card/type_transition_spec.rb +162 -0
- data/spec/models/card/validation_spec.rb +37 -0
- data/spec/models/card_spec.rb +177 -0
- data/spec/models/user_spec.rb +95 -0
- data/spec/mods/core/chunks/literal_spec.rb +15 -0
- data/spec/mods/core/chunks/uri_spec.rb +293 -0
- data/spec/mods/core/formats/data_format_spec.rb +6 -0
- data/spec/mods/core/formats/html_format_spec.rb +165 -0
- data/spec/mods/core/formats/text_format_spec.rb +6 -0
- data/spec/mods/core/sets/all/active_card_spec.rb +6 -0
- data/spec/mods/core/sets/all/attribute_tracking_spec.rb +22 -0
- data/spec/mods/core/sets/all/collection_spec.rb +49 -0
- data/spec/mods/core/sets/all/content_spec.rb +15 -0
- data/spec/mods/core/sets/all/fetch_spec.rb +206 -0
- data/spec/mods/core/sets/all/initialize_spec.rb +59 -0
- data/spec/mods/core/sets/all/name_spec.rb +30 -0
- data/spec/mods/core/sets/all/pattern_spec.rb +93 -0
- data/spec/mods/core/sets/all/permissions_spec.rb +481 -0
- data/spec/mods/core/sets/all/phases_spec.rb +6 -0
- data/spec/mods/core/sets/all/references_spec.rb +9 -0
- data/spec/mods/core/sets/all/rules2_spec.rb +250 -0
- data/spec/mods/core/sets/all/rules_spec.rb +99 -0
- data/spec/mods/core/sets/all/states_spec.rb +6 -0
- data/spec/mods/core/sets/all/templating_spec.rb +105 -0
- data/spec/mods/core/sets/all/tracked_attributes_spec.rb +316 -0
- data/spec/mods/core/sets/all/type_spec.rb +49 -0
- data/spec/mods/core/sets/all/utils_spec.rb +6 -0
- data/spec/mods/standard/chunks/include_spec.rb +182 -0
- data/spec/mods/standard/chunks/link_spec.rb +60 -0
- data/spec/mods/standard/formats/css_format_spec.rb +6 -0
- data/spec/mods/standard/formats/csv_format_spec.rb +6 -0
- data/spec/mods/standard/formats/email_html_format_spec.rb +6 -0
- data/spec/mods/standard/formats/file_format_spec.rb +6 -0
- data/spec/mods/standard/formats/json_format_spec.rb +6 -0
- data/spec/mods/standard/formats/kml_format_spec.rb +6 -0
- data/spec/mods/standard/formats/rss_format_spec.rb +6 -0
- data/spec/mods/standard/formats/xml_format_spec.rb +6 -0
- data/spec/mods/standard/sets/all/account_spec.rb +117 -0
- data/spec/mods/standard/sets/all/admin_spec.rb +6 -0
- data/spec/mods/standard/sets/all/all_css_spec.rb +11 -0
- data/spec/mods/standard/sets/all/all_csv_spec.rb +10 -0
- data/spec/mods/standard/sets/all/attach_spec.rb +10 -0
- data/spec/mods/standard/sets/all/base_spec.rb +52 -0
- data/spec/mods/standard/sets/all/email_html_spec.rb +14 -0
- data/spec/mods/standard/sets/all/file_spec.rb +6 -0
- data/spec/mods/standard/sets/all/flexmail_spec.rb +6 -0
- data/spec/mods/standard/sets/all/follow_spec.rb +96 -0
- data/spec/mods/standard/sets/all/geocode_spec.rb +37 -0
- data/spec/mods/standard/sets/all/json_spec.rb +27 -0
- data/spec/mods/standard/sets/all/kml_spec.rb +6 -0
- data/spec/mods/standard/sets/all/rich_html_spec.rb +10 -0
- data/spec/mods/standard/sets/all/rss_spec.rb +6 -0
- data/spec/mods/standard/sets/all/text_spec.rb +6 -0
- data/spec/mods/standard/sets/right/account_spec.rb +6 -0
- data/spec/mods/standard/sets/right/add_help_spec.rb +6 -0
- data/spec/mods/standard/sets/right/comment_spec.rb +6 -0
- data/spec/mods/standard/sets/right/create_spec.rb +6 -0
- data/spec/mods/standard/sets/right/crypted_password_spec.rb +6 -0
- data/spec/mods/standard/sets/right/default_spec.rb +6 -0
- data/spec/mods/standard/sets/right/delete_spec.rb +6 -0
- data/spec/mods/standard/sets/right/email_spec.rb +27 -0
- data/spec/mods/standard/sets/right/help_spec.rb +6 -0
- data/spec/mods/standard/sets/right/read_spec.rb +6 -0
- data/spec/mods/standard/sets/right/salt_spec.rb +6 -0
- data/spec/mods/standard/sets/right/structure_spec.rb +10 -0
- data/spec/mods/standard/sets/right/style_spec.rb +6 -0
- data/spec/mods/standard/sets/right/update_spec.rb +6 -0
- data/spec/mods/standard/sets/right/when_created_spec.rb +8 -0
- data/spec/mods/standard/sets/right/when_last_edited_spec.rb +8 -0
- data/spec/mods/standard/sets/rstar/rules_spec.rb +26 -0
- data/spec/mods/standard/sets/self/account_links_spec.rb +10 -0
- data/spec/mods/standard/sets/self/alerts_spec.rb +6 -0
- data/spec/mods/standard/sets/self/foot_spec.rb +6 -0
- data/spec/mods/standard/sets/self/head_spec.rb +18 -0
- data/spec/mods/standard/sets/self/navbox_spec.rb +8 -0
- data/spec/mods/standard/sets/self/now_spec.rb +8 -0
- data/spec/mods/standard/sets/self/recent_spec.rb +6 -0
- data/spec/mods/standard/sets/self/search_spec.rb +6 -0
- data/spec/mods/standard/sets/self/style_functional_spec.rb +6 -0
- data/spec/mods/standard/sets/self/style_jquery_ui_smoothness_spec.rb +6 -0
- data/spec/mods/standard/sets/self/style_standard_spec.rb +6 -0
- data/spec/mods/standard/sets/self/version_spec.rb +8 -0
- data/spec/mods/standard/sets/type/account_request_spec.rb +160 -0
- data/spec/mods/standard/sets/type/basic_spec.rb +6 -0
- data/spec/mods/standard/sets/type/cardtype_spec.rb +6 -0
- data/spec/mods/standard/sets/type/css_spec.rb +6 -0
- data/spec/mods/standard/sets/type/date_spec.rb +8 -0
- data/spec/mods/standard/sets/type/file_spec.rb +6 -0
- data/spec/mods/standard/sets/type/html_spec.rb +24 -0
- data/spec/mods/standard/sets/type/image_spec.rb +17 -0
- data/spec/mods/standard/sets/type/layout_type_spec.rb +8 -0
- data/spec/mods/standard/sets/type/number_spec.rb +8 -0
- data/spec/mods/standard/sets/type/phrase_spec.rb +8 -0
- data/spec/mods/standard/sets/type/plain_text_spec.rb +12 -0
- data/spec/mods/standard/sets/type/pointer_spec.rb +74 -0
- data/spec/mods/standard/sets/type/ruby_and_script_spec.rb +6 -0
- data/spec/mods/standard/sets/type/scss_spec.rb +6 -0
- data/spec/mods/standard/sets/type/search_type_spec.rb +16 -0
- data/spec/mods/standard/sets/type/set_spec.rb +27 -0
- data/spec/mods/standard/sets/type/setting_spec.rb +6 -0
- data/spec/mods/standard/sets/type/skin_spec.rb +6 -0
- data/spec/mods/standard/sets/type/toggle_spec.rb +13 -0
- data/spec/mods/standard/sets/type/user_spec.rb +6 -0
- data/spec/spec.opts +6 -0
- data/test/fixtures/.gitkeep +0 -0
- data/test/fixtures/card_references.yml +1954 -0
- data/test/fixtures/card_revisions.yml +4499 -0
- data/test/fixtures/cards.yml +9419 -0
- data/test/fixtures/mao2.jpg +0 -0
- data/test/fixtures/rails.gif +0 -0
- data/test/fixtures/users.yml +169 -0
- data/test/performance/card_create_test.rb +22 -0
- data/test/performance/fetch_test.rb +9 -0
- data/test/performance/homepage_test.rb +9 -0
- data/test/performance/render_test.rb +10 -0
- data/test/seed.rb +192 -0
- data/test/test_helper.rb +123 -0
- data/wagn.gemspec +46 -0
- metadata +1307 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
|
3
|
+
include Card::Set::Type::Pointer
|
4
|
+
|
5
|
+
view :core, :type=>:pointer
|
6
|
+
|
7
|
+
format :html do
|
8
|
+
view :closed_content, :type=>:pointer
|
9
|
+
view :core, :type=>:pointer
|
10
|
+
view :editor, :type=>:pointer
|
11
|
+
view :list, :type=>:pointer
|
12
|
+
view :checkbox, :type=>:pointer
|
13
|
+
view :multiselect, :type=>:pointer
|
14
|
+
view :radio, :type=>:pointer
|
15
|
+
view :select, :type=>:pointer
|
16
|
+
end
|
17
|
+
|
18
|
+
format :css do
|
19
|
+
view :content, :type=>:pointer
|
20
|
+
view :core, :type=>:pointer
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
event :reset_style_for_skin, :after=>:store do
|
25
|
+
Card::Set::Right::Style.delete_style_files
|
26
|
+
end
|
27
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
|
3
|
+
include Card::Set::Type::Basic
|
4
|
+
|
5
|
+
attr_accessor :email
|
6
|
+
|
7
|
+
format :html do
|
8
|
+
#FIXME - should perms check permission to create account?
|
9
|
+
view :new do |args|
|
10
|
+
wrap_frame :invite, args.merge( :title=>'Invite', :show_help=>true, :hide_menu=>true ) do
|
11
|
+
card_form :create do |f|
|
12
|
+
@form = f
|
13
|
+
%{
|
14
|
+
#{ f.hidden_field :type_id }
|
15
|
+
#{ _render_name_editor :help=>'usually first and last name' }
|
16
|
+
#{ fieldset :email, text_field( :account, :email, :size=>60 ) }
|
17
|
+
#{ _render_invitation_field }
|
18
|
+
}
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
data/public/404.html
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Not in the Cards (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>"I can't find my little card" -- Wagn</h1>
|
23
|
+
<p>404. Can't find what you're looking for-oh-for.</p>
|
24
|
+
<p>Maybe it was a typo? Or the page moved?</p>
|
25
|
+
</div>
|
26
|
+
</body>
|
27
|
+
</html>
|
data/public/500.html
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Hitch! (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>Oh, man. Wagn Hitch.</h1>
|
23
|
+
<p>Server Error. Yuck. Sorry about that.</p>
|
24
|
+
<p><a href="http://www.wagn.org/new/Support_Ticket">Add a support ticket</a>
|
25
|
+
to tell us more and follow the fix.</p>
|
26
|
+
</div>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery JavaScript Library v1.8.3
|
3
|
+
* http://jquery.com/
|
4
|
+
*
|
5
|
+
* Includes Sizzle.js
|
6
|
+
* http://sizzlejs.com/
|
7
|
+
*
|
8
|
+
* Copyright 2012 jQuery Foundation and other contributors
|
9
|
+
* Released under the MIT license
|
10
|
+
* http://jquery.org/license
|
11
|
+
*
|
12
|
+
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
|
13
|
+
*/
|
14
|
+
!function(e,t){function i(e){var t=ft[e]={};return Z.each(e.split(tt),function(e,i){t[i]=!0}),t}function n(e,i,n){if(n===t&&1===e.nodeType){var o="data-"+i.replace(gt,"-$1").toLowerCase();if(n=e.getAttribute(o),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:mt.test(n)?Z.parseJSON(n):n}catch(a){}Z.data(e,i,n)}else n=t}return n}function o(e){var t;for(t in e)if(("data"!==t||!Z.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function a(){return!1}function r(){return!0}function s(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function l(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function c(e,t,i){if(t=t||0,Z.isFunction(t))return Z.grep(e,function(e,n){var o=!!t.call(e,n,e);return o===i});if(t.nodeType)return Z.grep(e,function(e){return e===t===i});if("string"==typeof t){var n=Z.grep(e,function(e){return 1===e.nodeType});if(Ot.test(t))return Z.filter(t,n,!i);t=Z.filter(t,n)}return Z.grep(e,function(e){return Z.inArray(e,t)>=0===i})}function u(e){var t=jt.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function h(e,t){if(1===t.nodeType&&Z.hasData(e)){var i,n,o,a=Z._data(e),r=Z._data(t,a),s=a.events;if(s){delete r.handle,r.events={};for(i in s)for(n=0,o=s[i].length;o>n;n++)Z.event.add(t,i,s[i][n])}r.data&&(r.data=Z.extend({},r.data))}}function p(e,t){var i;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),i=t.nodeName.toLowerCase(),"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),Z.support.html5Clone&&e.innerHTML&&!Z.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&Xt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.selected=e.defaultSelected:"input"===i||"textarea"===i?t.defaultValue=e.defaultValue:"script"===i&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(Z.expando))}function f(e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll("*"):[]}function m(e){Xt.test(e.type)&&(e.defaultChecked=e.checked)}function g(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,o=vi.length;o--;)if(t=vi[o]+i,t in e)return t;return n}function v(e,t){return e=t||e,"none"===Z.css(e,"display")||!Z.contains(e.ownerDocument,e)}function b(e,t){for(var i,n,o=[],a=0,r=e.length;r>a;a++)i=e[a],i.style&&(o[a]=Z._data(i,"olddisplay"),t?(o[a]||"none"!==i.style.display||(i.style.display=""),""===i.style.display&&v(i)&&(o[a]=Z._data(i,"olddisplay",x(i.nodeName)))):(n=ii(i,"display"),o[a]||"none"===n||Z._data(i,"olddisplay",n)));for(a=0;r>a;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function y(e,t,i){var n=ui.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function _(e,t,i,n){for(var o=i===(n?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===i&&(a+=Z.css(e,i+gi[o],!0)),n?("content"===i&&(a-=parseFloat(ii(e,"padding"+gi[o]))||0),"margin"!==i&&(a-=parseFloat(ii(e,"border"+gi[o]+"Width"))||0)):(a+=parseFloat(ii(e,"padding"+gi[o]))||0,"padding"!==i&&(a+=parseFloat(ii(e,"border"+gi[o]+"Width"))||0));return a}function w(e,t,i){var n="width"===t?e.offsetWidth:e.offsetHeight,o=!0,a=Z.support.boxSizing&&"border-box"===Z.css(e,"boxSizing");if(0>=n||null==n){if(n=ii(e,t),(0>n||null==n)&&(n=e.style[t]),di.test(n))return n;o=a&&(Z.support.boxSizingReliable||n===e.style[t]),n=parseFloat(n)||0}return n+_(e,t,i||(a?"border":"content"),o)+"px"}function x(e){if(pi[e])return pi[e];var t=Z("<"+e+">").appendTo(z.body),i=t.css("display");return t.remove(),("none"===i||""===i)&&(ni=z.body.appendChild(ni||Z.extend(z.createElement("iframe"),{frameBorder:0,width:0,height:0})),oi&&ni.createElement||(oi=(ni.contentWindow||ni.contentDocument).document,oi.write("<!doctype html><html><body>"),oi.close()),t=oi.body.appendChild(oi.createElement(e)),i=ii(t,"display"),z.body.removeChild(ni)),pi[e]=i,i}function C(e,t,i,n){var o;if(Z.isArray(t))Z.each(t,function(t,o){i||_i.test(e)?n(e,o):C(e+"["+("object"==typeof o?t:"")+"]",o,i,n)});else if(i||"object"!==Z.type(t))n(e,t);else for(o in t)C(e+"["+o+"]",t[o],i,n)}function k(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,o,a,r=t.toLowerCase().split(tt),s=0,l=r.length;if(Z.isFunction(i))for(;l>s;s++)n=r[s],a=/^\+/.test(n),a&&(n=n.substr(1)||"*"),o=e[n]=e[n]||[],o[a?"unshift":"push"](i)}}function T(e,i,n,o,a,r){a=a||i.dataTypes[0],r=r||{},r[a]=!0;for(var s,l=e[a],c=0,u=l?l.length:0,d=e===Oi;u>c&&(d||!s);c++)s=l[c](i,n,o),"string"==typeof s&&(!d||r[s]?s=t:(i.dataTypes.unshift(s),s=T(e,i,n,o,s,r)));return!d&&s||r["*"]||(s=T(e,i,n,o,"*",r)),s}function D(e,i){var n,o,a=Z.ajaxSettings.flatOptions||{};for(n in i)i[n]!==t&&((a[n]?e:o||(o={}))[n]=i[n]);o&&Z.extend(!0,e,o)}function S(e,i,n){var o,a,r,s,l=e.contents,c=e.dataTypes,u=e.responseFields;for(a in u)a in n&&(i[u[a]]=n[a]);for(;"*"===c[0];)c.shift(),o===t&&(o=e.mimeType||i.getResponseHeader("content-type"));if(o)for(a in l)if(l[a]&&l[a].test(o)){c.unshift(a);break}if(c[0]in n)r=c[0];else{for(a in n){if(!c[0]||e.converters[a+" "+c[0]]){r=a;break}s||(s=a)}r=r||s}return r?(r!==c[0]&&c.unshift(r),n[r]):void 0}function E(e,t){var i,n,o,a,r=e.dataTypes.slice(),s=r[0],l={},c=0;if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),r[1])for(i in e.converters)l[i.toLowerCase()]=e.converters[i];for(;o=r[++c];)if("*"!==o){if("*"!==s&&s!==o){if(i=l[s+" "+o]||l["* "+o],!i)for(n in l)if(a=n.split(" "),a[1]===o&&(i=l[s+" "+a[0]]||l["* "+a[0]])){i===!0?i=l[n]:l[n]!==!0&&(o=a[0],r.splice(c--,0,o));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(u){return{state:"parsererror",error:i?u:"No conversion from "+s+" to "+o}}}s=o}return{state:"success",data:t}}function N(){try{return new e.XMLHttpRequest}catch(t){}}function A(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function P(){return setTimeout(function(){Ki=t},0),Ki=Z.now()}function M(e,t){Z.each(t,function(t,i){for(var n=(Ji[t]||[]).concat(Ji["*"]),o=0,a=n.length;a>o;o++)if(n[o].call(e,t,i))return})}function I(e,t,i){var n,o=0,a=Zi.length,r=Z.Deferred().always(function(){delete s.elem}),s=function(){for(var t=Ki||P(),i=Math.max(0,l.startTime+l.duration-t),n=i/l.duration||0,o=1-n,a=0,s=l.tweens.length;s>a;a++)l.tweens[a].run(o);return r.notifyWith(e,[l,o,i]),1>o&&s?i:(r.resolveWith(e,[l]),!1)},l=r.promise({elem:e,props:Z.extend({},t),opts:Z.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:Ki||P(),duration:i.duration,tweens:[],createTween:function(t,i){var n=Z.Tween(e,l.opts,t,i,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){for(var i=0,n=t?l.tweens.length:0;n>i;i++)l.tweens[i].run(1);return t?r.resolveWith(e,[l,t]):r.rejectWith(e,[l,t]),this}}),c=l.props;for(H(c,l.opts.specialEasing);a>o;o++)if(n=Zi[o].call(l,e,c,l.opts))return n;return M(l,c),Z.isFunction(l.opts.start)&&l.opts.start.call(e,l),Z.fx.timer(Z.extend(s,{anim:l,queue:l.opts.queue,elem:e})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function H(e,t){var i,n,o,a,r;for(i in e)if(n=Z.camelCase(i),o=t[n],a=e[i],Z.isArray(a)&&(o=a[1],a=e[i]=a[0]),i!==n&&(e[n]=a,delete e[i]),r=Z.cssHooks[n],r&&"expand"in r){a=r.expand(a),delete e[n];for(i in a)i in e||(e[i]=a[i],t[i]=o)}else t[n]=o}function B(e,t,i){var n,o,a,r,s,l,c,u,d,h=this,p=e.style,f={},m=[],g=e.nodeType&&v(e);i.queue||(u=Z._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,d=u.empty.fire,u.empty.fire=function(){u.unqueued||d()}),u.unqueued++,h.always(function(){h.always(function(){u.unqueued--,Z.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===Z.css(e,"display")&&"none"===Z.css(e,"float")&&(Z.support.inlineBlockNeedsLayout&&"inline"!==x(e.nodeName)?p.zoom=1:p.display="inline-block")),i.overflow&&(p.overflow="hidden",Z.support.shrinkWrapBlocks||h.done(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(n in t)if(a=t[n],Xi.exec(a)){if(delete t[n],l=l||"toggle"===a,a===(g?"hide":"show"))continue;m.push(n)}if(r=m.length){s=Z._data(e,"fxshow")||Z._data(e,"fxshow",{}),"hidden"in s&&(g=s.hidden),l&&(s.hidden=!g),g?Z(e).show():h.done(function(){Z(e).hide()}),h.done(function(){var t;Z.removeData(e,"fxshow",!0);for(t in f)Z.style(e,t,f[t])});for(n=0;r>n;n++)o=m[n],c=h.createTween(o,g?s[o]:0),f[o]=s[o]||Z.style(e,o),o in s||(s[o]=c.start,g&&(c.end=c.start,c.start="width"===o||"height"===o?1:0))}}function O(e,t,i,n,o){return new O.prototype.init(e,t,i,n,o)}function R(e,t){var i,n={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)i=gi[o],n["margin"+i]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function L(e){return Z.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var j,F,z=e.document,$=e.location,q=e.navigator,W=e.jQuery,U=e.$,V=Array.prototype.push,K=Array.prototype.slice,Y=Array.prototype.indexOf,X=Object.prototype.toString,G=Object.prototype.hasOwnProperty,Q=String.prototype.trim,Z=function(e,t){return new Z.fn.init(e,t,j)},J=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,et=/\S/,tt=/\s+/,it=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,nt=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,ot=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,at=/^[\],:{}\s]*$/,rt=/(?:^|:|,)(?:\s*\[)+/g,st=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,lt=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,ct=/^-ms-/,ut=/-([\da-z])/gi,dt=function(e,t){return(t+"").toUpperCase()},ht=function(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",ht,!1),Z.ready()):"complete"===z.readyState&&(z.detachEvent("onreadystatechange",ht),Z.ready())},pt={};Z.fn=Z.prototype={constructor:Z,init:function(e,i,n){var o,a,r;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:nt.exec(e),!o||!o[1]&&i)return!i||i.jquery?(i||n).find(e):this.constructor(i).find(e);if(o[1])return i=i instanceof Z?i[0]:i,r=i&&i.nodeType?i.ownerDocument||i:z,e=Z.parseHTML(o[1],r,!0),ot.test(o[1])&&Z.isPlainObject(i)&&this.attr.call(e,i,!0),Z.merge(this,e);if(a=z.getElementById(o[2]),a&&a.parentNode){if(a.id!==o[2])return n.find(e);this.length=1,this[0]=a}return this.context=z,this.selector=e,this}return Z.isFunction(e)?n.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return K.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e,t,i){var n=Z.merge(this.constructor(),e);return n.prevObject=this,n.context=this.context,"find"===t?n.selector=this.selector+(this.selector?" ":"")+i:t&&(n.selector=this.selector+"."+t+"("+i+")"),n},each:function(e,t){return Z.each(this,e,t)},ready:function(e){return Z.ready.promise().done(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(K.apply(this,arguments),"slice",K.call(arguments).join(","))},map:function(e){return this.pushStack(Z.map(this,function(t,i){return e.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:[].sort,splice:[].splice},Z.fn.init.prototype=Z.fn,Z.extend=Z.fn.extend=function(){var e,i,n,o,a,r,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),"object"==typeof s||Z.isFunction(s)||(s={}),c===l&&(s=this,--l);c>l;l++)if(null!=(e=arguments[l]))for(i in e)n=s[i],o=e[i],s!==o&&(u&&o&&(Z.isPlainObject(o)||(a=Z.isArray(o)))?(a?(a=!1,r=n&&Z.isArray(n)?n:[]):r=n&&Z.isPlainObject(n)?n:{},s[i]=Z.extend(u,r,o)):o!==t&&(s[i]=o));return s},Z.extend({noConflict:function(t){return e.$===Z&&(e.$=U),t&&e.jQuery===Z&&(e.jQuery=W),Z},isReady:!1,readyWait:1,holdReady:function(e){e?Z.readyWait++:Z.ready(!0)},ready:function(e){if(e===!0?!--Z.readyWait:!Z.isReady){if(!z.body)return setTimeout(Z.ready,1);Z.isReady=!0,e!==!0&&--Z.readyWait>0||(F.resolveWith(z,[Z]),Z.fn.trigger&&Z(z).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray||function(e){return"array"===Z.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):pt[X.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==Z.type(e)||e.nodeType||Z.isWindow(e))return!1;try{if(e.constructor&&!G.call(e,"constructor")&&!G.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}var n;for(n in e);return n===t||G.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,i){var n;return e&&"string"==typeof e?("boolean"==typeof t&&(i=t,t=0),t=t||z,(n=ot.exec(e))?[t.createElement(n[1])]:(n=Z.buildFragment([e],t,i?null:[]),Z.merge([],(n.cacheable?Z.clone(n.fragment):n.fragment).childNodes))):null},parseJSON:function(t){return t&&"string"==typeof t?(t=Z.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):at.test(t.replace(st,"@").replace(lt,"]").replace(rt,""))?new Function("return "+t)():(Z.error("Invalid JSON: "+t),void 0)):null},parseXML:function(i){var n,o;if(!i||"string"!=typeof i)return null;try{e.DOMParser?(o=new DOMParser,n=o.parseFromString(i,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(i))}catch(a){n=t}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||Z.error("Invalid XML: "+i),n},noop:function(){},globalEval:function(t){t&&et.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ct,"ms-").replace(ut,dt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,i,n){var o,a=0,r=e.length,s=r===t||Z.isFunction(e);if(n)if(s){for(o in e)if(i.apply(e[o],n)===!1)break}else for(;r>a&&i.apply(e[a++],n)!==!1;);else if(s){for(o in e)if(i.call(e[o],o,e[o])===!1)break}else for(;r>a&&i.call(e[a],a,e[a++])!==!1;);return e},trim:Q&&!Q.call(" ")?function(e){return null==e?"":Q.call(e)}:function(e){return null==e?"":(e+"").replace(it,"")},makeArray:function(e,t){var i,n=t||[];return null!=e&&(i=Z.type(e),null==e.length||"string"===i||"function"===i||"regexp"===i||Z.isWindow(e)?V.call(n,e):Z.merge(n,e)),n},inArray:function(e,t,i){var n;if(t){if(Y)return Y.call(t,e,i);for(n=t.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,i){var n=i.length,o=e.length,a=0;if("number"==typeof n)for(;n>a;a++)e[o++]=i[a];else for(;i[a]!==t;)e[o++]=i[a++];return e.length=o,e},grep:function(e,t,i){var n,o=[],a=0,r=e.length;for(i=!!i;r>a;a++)n=!!t(e[a],a),i!==n&&o.push(e[a]);return o},map:function(e,i,n){var o,a,r=[],s=0,l=e.length,c=e instanceof Z||l!==t&&"number"==typeof l&&(l>0&&e[0]&&e[l-1]||0===l||Z.isArray(e));if(c)for(;l>s;s++)o=i(e[s],s,n),null!=o&&(r[r.length]=o);else for(a in e)o=i(e[a],a,n),null!=o&&(r[r.length]=o);return r.concat.apply([],r)},guid:1,proxy:function(e,i){var n,o,a;return"string"==typeof i&&(n=e[i],i=e,e=n),Z.isFunction(e)?(o=K.call(arguments,2),a=function(){return e.apply(i,o.concat(K.call(arguments)))},a.guid=e.guid=e.guid||Z.guid++,a):t},access:function(e,i,n,o,a,r,s){var l,c=null==n,u=0,d=e.length;if(n&&"object"==typeof n){for(u in n)Z.access(e,i,u,n[u],1,r,o);a=1}else if(o!==t){if(l=s===t&&Z.isFunction(o),c&&(l?(l=i,i=function(e,t,i){return l.call(Z(e),i)}):(i.call(e,o),i=null)),i)for(;d>u;u++)i(e[u],n,l?o.call(e[u],u,i(e[u],n)):o,s);a=1}return a?e:c?i.call(e):d?i(e[0],n):r},now:function(){return(new Date).getTime()}}),Z.ready.promise=function(t){if(!F)if(F=Z.Deferred(),"complete"===z.readyState)setTimeout(Z.ready,1);else if(z.addEventListener)z.addEventListener("DOMContentLoaded",ht,!1),e.addEventListener("load",Z.ready,!1);else{z.attachEvent("onreadystatechange",ht),e.attachEvent("onload",Z.ready);var i=!1;try{i=null==e.frameElement&&z.documentElement}catch(n){}i&&i.doScroll&&!function o(){if(!Z.isReady){try{i.doScroll("left")}catch(e){return setTimeout(o,50)}Z.ready()}}()}return F.promise(t)},Z.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){pt["[object "+t+"]"]=t.toLowerCase()}),j=Z(z);var ft={};Z.Callbacks=function(e){e="string"==typeof e?ft[e]||i(e):Z.extend({},e);var n,o,a,r,s,l,c=[],u=!e.once&&[],d=function(t){for(n=e.memory&&t,o=!0,l=r||0,r=0,s=c.length,a=!0;c&&s>l;l++)if(c[l].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}a=!1,c&&(u?u.length&&d(u.shift()):n?c=[]:h.disable())},h={add:function(){if(c){var t=c.length;!function i(t){Z.each(t,function(t,n){var o=Z.type(n);"function"===o?e.unique&&h.has(n)||c.push(n):n&&n.length&&"string"!==o&&i(n)})}(arguments),a?s=c.length:n&&(r=t,d(n))}return this},remove:function(){return c&&Z.each(arguments,function(e,t){for(var i;(i=Z.inArray(t,c,i))>-1;)c.splice(i,1),a&&(s>=i&&s--,l>=i&&l--)}),this},has:function(e){return Z.inArray(e,c)>-1},empty:function(){return c=[],this},disable:function(){return c=u=n=t,this},disabled:function(){return!c},lock:function(){return u=t,n||h.disable(),this},locked:function(){return!u},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!c||o&&!u||(a?u.push(t):d(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!o}};return h},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred(function(i){Z.each(t,function(t,n){var a=n[0],r=e[t];o[n[1]](Z.isFunction(r)?function(){var e=r.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[a+"With"](this===o?i:this,[e])}:i[a])}),e=null}).promise()},promise:function(e){return null!=e?Z.extend(e,n):n}},o={};return n.pipe=n.then,Z.each(t,function(e,a){var r=a[2],s=a[3];n[a[1]]=r.add,s&&r.add(function(){i=s},t[1^e][2].disable,t[2][2].lock),o[a[0]]=r.fire,o[a[0]+"With"]=r.fireWith}),n.promise(o),e&&e.call(o,o),o},when:function(e){var t,i,n,o=0,a=K.call(arguments),r=a.length,s=1!==r||e&&Z.isFunction(e.promise)?r:0,l=1===s?e:Z.Deferred(),c=function(e,i,n){return function(o){i[e]=this,n[e]=arguments.length>1?K.call(arguments):o,n===t?l.notifyWith(i,n):--s||l.resolveWith(i,n)}};if(r>1)for(t=new Array(r),i=new Array(r),n=new Array(r);r>o;o++)a[o]&&Z.isFunction(a[o].promise)?a[o].promise().done(c(o,n,a)).fail(l.reject).progress(c(o,i,t)):--s;return s||l.resolveWith(n,a),l.promise()}}),Z.support=function(){var t,i,n,o,a,r,s,l,c,u,d,h=z.createElement("div");if(h.setAttribute("className","t"),h.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=h.getElementsByTagName("*"),n=h.getElementsByTagName("a")[0],!i||!n||!i.length)return{};o=z.createElement("select"),a=o.appendChild(z.createElement("option")),r=h.getElementsByTagName("input")[0],n.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:3===h.firstChild.nodeType,tbody:!h.getElementsByTagName("tbody").length,htmlSerialize:!!h.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.5/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:"on"===r.value,optSelected:a.selected,getSetAttribute:"t"!==h.className,enctype:!!z.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===z.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},r.checked=!0,t.noCloneChecked=r.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!a.disabled;try{delete h.test}catch(p){t.deleteExpando=!1}if(!h.addEventListener&&h.attachEvent&&h.fireEvent&&(h.attachEvent("onclick",d=function(){t.noCloneEvent=!1}),h.cloneNode(!0).fireEvent("onclick"),h.detachEvent("onclick",d)),r=z.createElement("input"),r.value="t",r.setAttribute("type","radio"),t.radioValue="t"===r.value,r.setAttribute("checked","checked"),r.setAttribute("name","t"),h.appendChild(r),s=z.createDocumentFragment(),s.appendChild(h.lastChild),t.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=r.checked,s.removeChild(r),s.appendChild(h),h.attachEvent)for(c in{submit:!0,change:!0,focusin:!0})l="on"+c,u=l in h,u||(h.setAttribute(l,"return;"),u="function"==typeof h[l]),t[c+"Bubbles"]=u;return Z(function(){var i,n,o,a,r="padding:0;margin:0;border:0;display:block;overflow:hidden;",s=z.getElementsByTagName("body")[0];s&&(i=z.createElement("div"),i.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",s.insertBefore(i,s.firstChild),n=z.createElement("div"),i.appendChild(n),n.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=n.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",u=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=u&&0===o[0].offsetHeight,n.innerHTML="",n.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===n.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==s.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(n,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(n,null)||{width:"4px"}).width,a=z.createElement("div"),a.style.cssText=n.style.cssText=r,a.style.marginRight=a.style.width="0",n.style.width="1px",n.appendChild(a),t.reliableMarginRight=!parseFloat((e.getComputedStyle(a,null)||{}).marginRight)),"undefined"!=typeof n.style.zoom&&(n.innerHTML="",n.style.cssText=r+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===n.offsetWidth,n.style.display="block",n.style.overflow="visible",n.innerHTML="<div></div>",n.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==n.offsetWidth,i.style.zoom=1),s.removeChild(i),i=n=o=a=null)}),s.removeChild(h),i=n=o=a=r=s=h=null,t}();var mt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,gt=/([A-Z])/g;Z.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(Z.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?Z.cache[e[Z.expando]]:e[Z.expando],!!e&&!o(e)},data:function(e,i,n,o){if(Z.acceptData(e)){var a,r,s=Z.expando,l="string"==typeof i,c=e.nodeType,u=c?Z.cache:e,d=c?e[s]:e[s]&&s;if(d&&u[d]&&(o||u[d].data)||!l||n!==t)return d||(c?e[s]=d=Z.deletedIds.pop()||Z.guid++:d=s),u[d]||(u[d]={},c||(u[d].toJSON=Z.noop)),("object"==typeof i||"function"==typeof i)&&(o?u[d]=Z.extend(u[d],i):u[d].data=Z.extend(u[d].data,i)),a=u[d],o||(a.data||(a.data={}),a=a.data),n!==t&&(a[Z.camelCase(i)]=n),l?(r=a[i],null==r&&(r=a[Z.camelCase(i)])):r=a,r}},removeData:function(e,t,i){if(Z.acceptData(e)){var n,a,r,s=e.nodeType,l=s?Z.cache:e,c=s?e[Z.expando]:Z.expando;if(l[c]){if(t&&(n=i?l[c]:l[c].data)){Z.isArray(t)||(t in n?t=[t]:(t=Z.camelCase(t),t=t in n?[t]:t.split(" ")));for(a=0,r=t.length;r>a;a++)delete n[t[a]];if(!(i?o:Z.isEmptyObject)(n))return}(i||(delete l[c].data,o(l[c])))&&(s?Z.cleanData([e],!0):Z.support.deleteExpando||l!=l.window?delete l[c]:l[c]=null)}}},_data:function(e,t,i){return Z.data(e,t,i,!0)},acceptData:function(e){var t=e.nodeName&&Z.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),Z.fn.extend({data:function(e,i){var o,a,r,s,l,c=this[0],u=0,d=null;if(e===t){if(this.length&&(d=Z.data(c),1===c.nodeType&&!Z._data(c,"parsedAttrs"))){for(r=c.attributes,l=r.length;l>u;u++)s=r[u].name,s.indexOf("data-")||(s=Z.camelCase(s.substring(5)),n(c,s,d[s]));Z._data(c,"parsedAttrs",!0)}return d}return"object"==typeof e?this.each(function(){Z.data(this,e)}):(o=e.split(".",2),o[1]=o[1]?"."+o[1]:"",a=o[1]+"!",Z.access(this,function(i){return i===t?(d=this.triggerHandler("getData"+a,[o[0]]),d===t&&c&&(d=Z.data(c,e),d=n(c,e,d)),d===t&&o[1]?this.data(o[0]):d):(o[1]=i,this.each(function(){var t=Z(this);t.triggerHandler("setData"+a,o),Z.data(this,e,i),t.triggerHandler("changeData"+a,o)}),void 0)},null,i,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){Z.removeData(this,e)})}}),Z.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=Z._data(e,t),i&&(!n||Z.isArray(i)?n=Z._data(e,t,Z.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=Z.queue(e,t),n=i.length,o=i.shift(),a=Z._queueHooks(e,t),r=function(){Z.dequeue(e,t)};"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===t&&i.unshift("inprogress"),delete a.stop,o.call(e,r,a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Z._data(e,i)||Z._data(e,i,{empty:Z.Callbacks("once memory").add(function(){Z.removeData(e,t+"queue",!0),Z.removeData(e,i,!0)})})}}),Z.fn.extend({queue:function(e,i){var n=2;return"string"!=typeof e&&(i=e,e="fx",n--),arguments.length<n?Z.queue(this[0],e):i===t?this:this.each(function(){var t=Z.queue(this,e,i);Z._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&Z.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Z.dequeue(this,e)})},delay:function(e,t){return e=Z.fx?Z.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,i){var n=setTimeout(t,e);i.stop=function(){clearTimeout(n)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,i){var n,o=1,a=Z.Deferred(),r=this,s=this.length,l=function(){--o||a.resolveWith(r,[r])};for("string"!=typeof e&&(i=e,e=t),e=e||"fx";s--;)n=Z._data(r[s],e+"queueHooks"),n&&n.empty&&(o++,n.empty.add(l));return l(),a.promise(i)}});var vt,bt,yt,_t=/[\t\r\n]/g,wt=/\r/g,xt=/^(?:button|input)$/i,Ct=/^(?:button|input|object|select|textarea)$/i,kt=/^a(?:rea|)$/i,Tt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Dt=Z.support.getSetAttribute;Z.fn.extend({attr:function(e,t){return Z.access(this,Z.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Z.removeAttr(this,e)})},prop:function(e,t){return Z.access(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return e=Z.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(i){}})},addClass:function(e){var t,i,n,o,a,r,s;if(Z.isFunction(e))return this.each(function(t){Z(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(tt),i=0,n=this.length;n>i;i++)if(o=this[i],1===o.nodeType)if(o.className||1!==t.length){for(a=" "+o.className+" ",r=0,s=t.length;s>r;r++)a.indexOf(" "+t[r]+" ")<0&&(a+=t[r]+" ");o.className=Z.trim(a)}else o.className=e;return this},removeClass:function(e){var i,n,o,a,r,s,l;if(Z.isFunction(e))return this.each(function(t){Z(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||e===t)for(i=(e||"").split(tt),s=0,l=this.length;l>s;s++)if(o=this[s],1===o.nodeType&&o.className){for(n=(" "+o.className+" ").replace(_t," "),a=0,r=i.length;r>a;a++)for(;n.indexOf(" "+i[a]+" ")>=0;)n=n.replace(" "+i[a]+" "," ");o.className=e?Z.trim(n):""}return this},toggleClass:function(e,t){var i=typeof e,n="boolean"==typeof t;return Z.isFunction(e)?this.each(function(i){Z(this).toggleClass(e.call(this,i,this.className,t),t)}):this.each(function(){if("string"===i)for(var o,a=0,r=Z(this),s=t,l=e.split(tt);o=l[a++];)s=n?s:!r.hasClass(o),r[s?"addClass":"removeClass"](o);else("undefined"===i||"boolean"===i)&&(this.className&&Z._data(this,"__className__",this.className),this.className=this.className||e===!1?"":Z._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(_t," ").indexOf(t)>=0)return!0;return!1},val:function(e){var i,n,o,a=this[0];{if(arguments.length)return o=Z.isFunction(e),this.each(function(n){var a,r=Z(this);1===this.nodeType&&(a=o?e.call(this,n,r.val()):e,null==a?a="":"number"==typeof a?a+="":Z.isArray(a)&&(a=Z.map(a,function(e){return null==e?"":e+""})),i=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],i&&"set"in i&&i.set(this,a,"value")!==t||(this.value=a))});if(a)return i=Z.valHooks[a.type]||Z.valHooks[a.nodeName.toLowerCase()],i&&"get"in i&&(n=i.get(a,"value"))!==t?n:(n=a.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),Z.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,i,n=e.options,o=e.selectedIndex,a="select-one"===e.type||0>o,r=a?null:[],s=a?o+1:n.length,l=0>o?s:a?o:0;s>l;l++)if(i=n[l],!(!i.selected&&l!==o||(Z.support.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&Z.nodeName(i.parentNode,"optgroup"))){if(t=Z(i).val(),a)return t;r.push(t)}return r},set:function(e,t){var i=Z.makeArray(t);return Z(e).find("option").each(function(){this.selected=Z.inArray(Z(this).val(),i)>=0}),i.length||(e.selectedIndex=-1),i}}},attrFn:{},attr:function(e,i,n,o){var a,r,s,l=e.nodeType;if(e&&3!==l&&8!==l&&2!==l)return o&&Z.isFunction(Z.fn[i])?Z(e)[i](n):"undefined"==typeof e.getAttribute?Z.prop(e,i,n):(s=1!==l||!Z.isXMLDoc(e),s&&(i=i.toLowerCase(),r=Z.attrHooks[i]||(Tt.test(i)?bt:vt)),n!==t?null===n?(Z.removeAttr(e,i),void 0):r&&"set"in r&&s&&(a=r.set(e,n,i))!==t?a:(e.setAttribute(i,n+""),n):r&&"get"in r&&s&&null!==(a=r.get(e,i))?a:(a=e.getAttribute(i),null===a?t:a))},removeAttr:function(e,t){var i,n,o,a,r=0;if(t&&1===e.nodeType)for(n=t.split(tt);r<n.length;r++)o=n[r],o&&(i=Z.propFix[o]||o,a=Tt.test(o),a||Z.attr(e,o,""),e.removeAttribute(Dt?o:i),a&&i in e&&(e[i]=!1))},attrHooks:{type:{set:function(e,t){if(xt.test(e.nodeName)&&e.parentNode)Z.error("type property can't be changed");else if(!Z.support.radioValue&&"radio"===t&&Z.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}},value:{get:function(e,t){return vt&&Z.nodeName(e,"button")?vt.get(e,t):t in e?e.value:null},set:function(e,t,i){return vt&&Z.nodeName(e,"button")?vt.set(e,t,i):(e.value=t,void 0)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,i,n){var o,a,r,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return r=1!==s||!Z.isXMLDoc(e),r&&(i=Z.propFix[i]||i,a=Z.propHooks[i]),n!==t?a&&"set"in a&&(o=a.set(e,n,i))!==t?o:e[i]=n:a&&"get"in a&&null!==(o=a.get(e,i))?o:e[i]},propHooks:{tabIndex:{get:function(e){var i=e.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):Ct.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:t}}}}),bt={get:function(e,i){var n,o=Z.prop(e,i);return o===!0||"boolean"!=typeof o&&(n=e.getAttributeNode(i))&&n.nodeValue!==!1?i.toLowerCase():t},set:function(e,t,i){var n;return t===!1?Z.removeAttr(e,i):(n=Z.propFix[i]||i,n in e&&(e[n]=!0),e.setAttribute(i,i.toLowerCase())),i}},Dt||(yt={name:!0,id:!0,coords:!0},vt=Z.valHooks.button={get:function(e,i){var n;return n=e.getAttributeNode(i),n&&(yt[i]?""!==n.value:n.specified)?n.value:t},set:function(e,t,i){var n=e.getAttributeNode(i);return n||(n=z.createAttribute(i),e.setAttributeNode(n)),n.value=t+""}},Z.each(["width","height"],function(e,t){Z.attrHooks[t]=Z.extend(Z.attrHooks[t],{set:function(e,i){return""===i?(e.setAttribute(t,"auto"),i):void 0}})}),Z.attrHooks.contenteditable={get:vt.get,set:function(e,t,i){""===t&&(t="false"),vt.set(e,t,i)}}),Z.support.hrefNormalized||Z.each(["href","src","width","height"],function(e,i){Z.attrHooks[i]=Z.extend(Z.attrHooks[i],{get:function(e){var n=e.getAttribute(i,2);return null===n?t:n}})}),Z.support.style||(Z.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),Z.support.optSelected||(Z.propHooks.selected=Z.extend(Z.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),Z.support.enctype||(Z.propFix.enctype="encoding"),Z.support.checkOn||Z.each(["radio","checkbox"],function(){Z.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value
|
15
|
+
}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]=Z.extend(Z.valHooks[this],{set:function(e,t){return Z.isArray(t)?e.checked=Z.inArray(Z(e).val(),t)>=0:void 0}})});var St=/^(?:textarea|input|select)$/i,Et=/^([^\.]*|)(?:\.(.+)|)$/,Nt=/(?:^|\s)hover(\.\S+|)\b/,At=/^key/,Pt=/^(?:mouse|contextmenu)|click/,Mt=/^(?:focusinfocus|focusoutblur)$/,It=function(e){return Z.event.special.hover?e:e.replace(Nt,"mouseenter$1 mouseleave$1")};Z.event={add:function(e,i,n,o,a){var r,s,l,c,u,d,h,p,f,m,g;if(3!==e.nodeType&&8!==e.nodeType&&i&&n&&(r=Z._data(e))){for(n.handler&&(f=n,n=f.handler,a=f.selector),n.guid||(n.guid=Z.guid++),l=r.events,l||(r.events=l={}),s=r.handle,s||(r.handle=s=function(e){return"undefined"==typeof Z||e&&Z.event.triggered===e.type?t:Z.event.dispatch.apply(s.elem,arguments)},s.elem=e),i=Z.trim(It(i)).split(" "),c=0;c<i.length;c++)u=Et.exec(i[c])||[],d=u[1],h=(u[2]||"").split(".").sort(),g=Z.event.special[d]||{},d=(a?g.delegateType:g.bindType)||d,g=Z.event.special[d]||{},p=Z.extend({type:d,origType:u[1],data:o,handler:n,guid:n.guid,selector:a,needsContext:a&&Z.expr.match.needsContext.test(a),namespace:h.join(".")},f),m=l[d],m||(m=l[d]=[],m.delegateCount=0,g.setup&&g.setup.call(e,o,h,s)!==!1||(e.addEventListener?e.addEventListener(d,s,!1):e.attachEvent&&e.attachEvent("on"+d,s))),g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),a?m.splice(m.delegateCount++,0,p):m.push(p),Z.event.global[d]=!0;e=null}},global:{},remove:function(e,t,i,n,o){var a,r,s,l,c,u,d,h,p,f,m,g=Z.hasData(e)&&Z._data(e);if(g&&(h=g.events)){for(t=Z.trim(It(t||"")).split(" "),a=0;a<t.length;a++)if(r=Et.exec(t[a])||[],s=l=r[1],c=r[2],s){for(p=Z.event.special[s]||{},s=(n?p.delegateType:p.bindType)||s,f=h[s]||[],u=f.length,c=c?new RegExp("(^|\\.)"+c.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d=0;d<f.length;d++)m=f[d],!o&&l!==m.origType||i&&i.guid!==m.guid||c&&!c.test(m.namespace)||n&&n!==m.selector&&("**"!==n||!m.selector)||(f.splice(d--,1),m.selector&&f.delegateCount--,p.remove&&p.remove.call(e,m));0===f.length&&u!==f.length&&(p.teardown&&p.teardown.call(e,c,g.handle)!==!1||Z.removeEvent(e,s,g.handle),delete h[s])}else for(s in h)Z.event.remove(e,s+t[a],i,n,!0);Z.isEmptyObject(h)&&(delete g.handle,Z.removeData(e,"events",!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(i,n,o,a){if(!o||3!==o.nodeType&&8!==o.nodeType){var r,s,l,c,u,d,h,p,f,m,g=i.type||i,v=[];if(!Mt.test(g+Z.event.triggered)&&(g.indexOf("!")>=0&&(g=g.slice(0,-1),s=!0),g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),o&&!Z.event.customEvent[g]||Z.event.global[g]))if(i="object"==typeof i?i[Z.expando]?i:new Z.Event(g,i):new Z.Event(g),i.type=g,i.isTrigger=!0,i.exclusive=s,i.namespace=v.join("."),i.namespace_re=i.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d=g.indexOf(":")<0?"on"+g:"",o){if(i.result=t,i.target||(i.target=o),n=null!=n?Z.makeArray(n):[],n.unshift(i),h=Z.event.special[g]||{},!h.trigger||h.trigger.apply(o,n)!==!1){if(f=[[o,h.bindType||g]],!a&&!h.noBubble&&!Z.isWindow(o)){for(m=h.delegateType||g,c=Mt.test(m+g)?o:o.parentNode,u=o;c;c=c.parentNode)f.push([c,m]),u=c;u===(o.ownerDocument||z)&&f.push([u.defaultView||u.parentWindow||e,m])}for(l=0;l<f.length&&!i.isPropagationStopped();l++)c=f[l][0],i.type=f[l][1],p=(Z._data(c,"events")||{})[i.type]&&Z._data(c,"handle"),p&&p.apply(c,n),p=d&&c[d],p&&Z.acceptData(c)&&p.apply&&p.apply(c,n)===!1&&i.preventDefault();return i.type=g,a||i.isDefaultPrevented()||h._default&&h._default.apply(o.ownerDocument,n)!==!1||"click"===g&&Z.nodeName(o,"a")||!Z.acceptData(o)||d&&o[g]&&("focus"!==g&&"blur"!==g||0!==i.target.offsetWidth)&&!Z.isWindow(o)&&(u=o[d],u&&(o[d]=null),Z.event.triggered=g,o[g](),Z.event.triggered=t,u&&(o[d]=u)),i.result}}else{r=Z.cache;for(l in r)r[l].events&&r[l].events[g]&&Z.event.trigger(i,n,r[l].handle.elem,!0)}}},dispatch:function(i){i=Z.event.fix(i||e.event);var n,o,a,r,s,l,c,u,d,h=(Z._data(this,"events")||{})[i.type]||[],p=h.delegateCount,f=K.call(arguments),m=!i.exclusive&&!i.namespace,g=Z.event.special[i.type]||{},v=[];if(f[0]=i,i.delegateTarget=this,!g.preDispatch||g.preDispatch.call(this,i)!==!1){if(p&&(!i.button||"click"!==i.type))for(a=i.target;a!=this;a=a.parentNode||this)if(a.disabled!==!0||"click"!==i.type){for(s={},c=[],n=0;p>n;n++)u=h[n],d=u.selector,s[d]===t&&(s[d]=u.needsContext?Z(d,this).index(a)>=0:Z.find(d,this,null,[a]).length),s[d]&&c.push(u);c.length&&v.push({elem:a,matches:c})}for(h.length>p&&v.push({elem:this,matches:h.slice(p)}),n=0;n<v.length&&!i.isPropagationStopped();n++)for(l=v[n],i.currentTarget=l.elem,o=0;o<l.matches.length&&!i.isImmediatePropagationStopped();o++)u=l.matches[o],(m||!i.namespace&&!u.namespace||i.namespace_re&&i.namespace_re.test(u.namespace))&&(i.data=u.data,i.handleObj=u,r=((Z.event.special[u.origType]||{}).handle||u.handler).apply(l.elem,f),r!==t&&(i.result=r,r===!1&&(i.preventDefault(),i.stopPropagation())));return g.postDispatch&&g.postDispatch.call(this,i),i.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,i){var n,o,a,r=i.button,s=i.fromElement;return null==e.pageX&&null!=i.clientX&&(n=e.target.ownerDocument||z,o=n.documentElement,a=n.body,e.pageX=i.clientX+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),e.pageY=i.clientY+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?i.toElement:s),e.which||r===t||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[Z.expando])return e;var t,i,n=e,o=Z.event.fixHooks[e.type]||{},a=o.props?this.props.concat(o.props):this.props;for(e=Z.Event(n),t=a.length;t;)i=a[--t],e[i]=n[i];return e.target||(e.target=n.srcElement||z),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,n):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,i){Z.isWindow(this)&&(this.onbeforeunload=i)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,i,n){var o=Z.extend(new Z.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?Z.event.trigger(o,null,t):Z.event.dispatch.call(t,o),o.isDefaultPrevented()&&i.preventDefault()}},Z.event.handle=Z.event.dispatch,Z.removeEvent=z.removeEventListener?function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)}:function(e,t,i){var n="on"+t;e.detachEvent&&("undefined"==typeof e[n]&&(e[n]=null),e.detachEvent(n,i))},Z.Event=function(e,t){return this instanceof Z.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?r:a):this.type=e,t&&Z.extend(this,t),this.timeStamp=e&&e.timeStamp||Z.now(),this[Z.expando]=!0,void 0):new Z.Event(e,t)},Z.Event.prototype={preventDefault:function(){this.isDefaultPrevented=r;var e=this.originalEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=r;var e=this.originalEvent;e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r,this.stopPropagation()},isDefaultPrevented:a,isPropagationStopped:a,isImmediatePropagationStopped:a},Z.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){Z.event.special[e]={delegateType:t,bindType:t,handle:function(e){{var i,n=this,o=e.relatedTarget,a=e.handleObj;a.selector}return(!o||o!==n&&!Z.contains(n,o))&&(e.type=a.origType,i=a.handler.apply(this,arguments),e.type=t),i}}}),Z.support.submitBubbles||(Z.event.special.submit={setup:function(){return Z.nodeName(this,"form")?!1:(Z.event.add(this,"click._submit keypress._submit",function(e){var i=e.target,n=Z.nodeName(i,"input")||Z.nodeName(i,"button")?i.form:t;n&&!Z._data(n,"_submit_attached")&&(Z.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),Z._data(n,"_submit_attached",!0))}),void 0)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&Z.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return Z.nodeName(this,"form")?!1:(Z.event.remove(this,"._submit"),void 0)}}),Z.support.changeBubbles||(Z.event.special.change={setup:function(){return St.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(Z.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),Z.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),Z.event.simulate("change",this,e,!0)})),!1):(Z.event.add(this,"beforeactivate._change",function(e){var t=e.target;St.test(t.nodeName)&&!Z._data(t,"_change_attached")&&(Z.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||Z.event.simulate("change",this.parentNode,e,!0)}),Z._data(t,"_change_attached",!0))}),void 0)},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return Z.event.remove(this,"._change"),!St.test(this.nodeName)}}),Z.support.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(e,t){var i=0,n=function(e){Z.event.simulate(t,e.target,Z.event.fix(e),!0)};Z.event.special[t]={setup:function(){0===i++&&z.addEventListener(e,n,!0)},teardown:function(){0===--i&&z.removeEventListener(e,n,!0)}}}),Z.fn.extend({on:function(e,i,n,o,r){var s,l;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=t);for(l in e)this.on(l,i,n,e[l],r);return this}if(null==n&&null==o?(o=i,n=i=t):null==o&&("string"==typeof i?(o=n,n=t):(o=n,n=i,i=t)),o===!1)o=a;else if(!o)return this;return 1===r&&(s=o,o=function(e){return Z().off(e),s.apply(this,arguments)},o.guid=s.guid||(s.guid=Z.guid++)),this.each(function(){Z.event.add(this,e,o,n,i)})},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,i,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,Z(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,i,e[r]);return this}return(i===!1||"function"==typeof i)&&(n=i,i=t),n===!1&&(n=a),this.each(function(){Z.event.remove(this,e,n,i)})},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,i){return Z(this.context).on(e,this.selector,t,i),this},die:function(e,t){return Z(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},trigger:function(e,t){return this.each(function(){Z.event.trigger(e,t,this)})},triggerHandler:function(e,t){return this[0]?Z.event.trigger(e,t,this[0],!0):void 0},toggle:function(e){var t=arguments,i=e.guid||Z.guid++,n=0,o=function(i){var o=(Z._data(this,"lastToggle"+e.guid)||0)%n;return Z._data(this,"lastToggle"+e.guid,o+1),i.preventDefault(),t[o].apply(this,arguments)||!1};for(o.guid=i;n<t.length;)t[n++].guid=i;return this.click(o)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),Z.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){Z.fn[t]=function(e,i){return null==i&&(i=e,e=null),arguments.length>0?this.on(t,null,e,i):this.trigger(t)},At.test(t)&&(Z.event.fixHooks[t]=Z.event.keyHooks),Pt.test(t)&&(Z.event.fixHooks[t]=Z.event.mouseHooks)}),/*!
|
16
|
+
* Sizzle CSS Selector Engine
|
17
|
+
* Copyright 2012 jQuery Foundation and other contributors
|
18
|
+
* Released under the MIT license
|
19
|
+
* http://sizzlejs.com/
|
20
|
+
*/
|
21
|
+
function(e,t){function i(e,t,i,n){i=i||[],t=t||P;var o,a,r,s,l=t.nodeType;if(!e||"string"!=typeof e)return i;if(1!==l&&9!==l)return[];if(r=w(t),!r&&!n&&(o=it.exec(e)))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return i;if(a.id===s)return i.push(a),i}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&x(t,a)&&a.id===s)return i.push(a),i}else{if(o[2])return O.apply(i,R.call(t.getElementsByTagName(e),0)),i;if((s=o[3])&&ht&&t.getElementsByClassName)return O.apply(i,R.call(t.getElementsByClassName(s),0)),i}return m(e.replace(Q,"$1"),t,i,n,r)}function n(e){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===e}}function o(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function a(e){return j(function(t){return t=+t,j(function(i,n){for(var o,a=e([],i.length,t),r=a.length;r--;)i[o=a[r]]&&(i[o]=!(n[o]=i[o]))})})}function r(e,t,i){if(e===t)return i;for(var n=e.nextSibling;n;){if(n===t)return-1;n=n.nextSibling}return 1}function s(e,t){var n,o,a,r,s,l,c,u=$[N][e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=y.preFilter;s;){(!n||(o=J.exec(s)))&&(o&&(s=s.slice(o[0].length)||s),l.push(a=[])),n=!1,(o=et.exec(s))&&(a.push(n=new A(o.shift())),s=s.slice(n.length),n.type=o[0].replace(Q," "));for(r in y.filter)!(o=st[r].exec(s))||c[r]&&!(o=c[r](o))||(a.push(n=new A(o.shift())),s=s.slice(n.length),n.type=r,n.matches=o);if(!n)break}return t?s.length:s?i.error(e):$(e,l).slice(0)}function l(e,t,i){var n=t.dir,o=i&&"parentNode"===t.dir,a=H++;return t.first?function(t,i,a){for(;t=t[n];)if(o||1===t.nodeType)return e(t,i,a)}:function(t,i,r){if(r){for(;t=t[n];)if((o||1===t.nodeType)&&e(t,i,r))return t}else for(var s,l=I+" "+a+" ",c=l+v;t=t[n];)if(o||1===t.nodeType){if((s=t[N])===c)return t.sizset;if("string"==typeof s&&0===s.indexOf(l)){if(t.sizset)return t}else{if(t[N]=c,e(t,i,r))return t.sizset=!0,t;t.sizset=!1}}}}function c(e){return e.length>1?function(t,i,n){for(var o=e.length;o--;)if(!e[o](t,i,n))return!1;return!0}:e[0]}function u(e,t,i,n,o){for(var a,r=[],s=0,l=e.length,c=null!=t;l>s;s++)(a=e[s])&&(!i||i(a,n,o))&&(r.push(a),c&&t.push(s));return r}function d(e,t,i,n,o,a){return n&&!n[N]&&(n=d(n)),o&&!o[N]&&(o=d(o,a)),j(function(a,r,s,l){var c,d,h,p=[],m=[],g=r.length,v=a||f(t||"*",s.nodeType?[s]:s,[]),b=!e||!a&&t?v:u(v,p,e,s,l),y=i?o||(a?e:g||n)?[]:r:b;if(i&&i(b,y,s,l),n)for(c=u(y,m),n(c,[],s,l),d=c.length;d--;)(h=c[d])&&(y[m[d]]=!(b[m[d]]=h));if(a){if(o||e){if(o){for(c=[],d=y.length;d--;)(h=y[d])&&c.push(b[d]=h);o(null,y=[],c,l)}for(d=y.length;d--;)(h=y[d])&&(c=o?L.call(a,h):p[d])>-1&&(a[c]=!(r[c]=h))}}else y=u(y===r?y.splice(g,y.length):y),o?o(null,r,y,l):O.apply(r,y)})}function h(e){for(var t,i,n,o=e.length,a=y.relative[e[0].type],r=a||y.relative[" "],s=a?1:0,u=l(function(e){return e===t},r,!0),p=l(function(e){return L.call(t,e)>-1},r,!0),f=[function(e,i,n){return!a&&(n||i!==D)||((t=i).nodeType?u(e,i,n):p(e,i,n))}];o>s;s++)if(i=y.relative[e[s].type])f=[l(c(f),i)];else{if(i=y.filter[e[s].type].apply(null,e[s].matches),i[N]){for(n=++s;o>n&&!y.relative[e[n].type];n++);return d(s>1&&c(f),s>1&&e.slice(0,s-1).join("").replace(Q,"$1"),i,n>s&&h(e.slice(s,n)),o>n&&h(e=e.slice(n)),o>n&&e.join(""))}f.push(i)}return c(f)}function p(e,t){var n=t.length>0,o=e.length>0,a=function(r,s,l,c,d){var h,p,f,m=[],g=0,b="0",_=r&&[],w=null!=d,x=D,C=r||o&&y.find.TAG("*",d&&s.parentNode||s),k=I+=null==x?1:Math.E;for(w&&(D=s!==P&&s,v=a.el);null!=(h=C[b]);b++){if(o&&h){for(p=0;f=e[p];p++)if(f(h,s,l)){c.push(h);break}w&&(I=k,v=++a.el)}n&&((h=!f&&h)&&g--,r&&_.push(h))}if(g+=b,n&&b!==g){for(p=0;f=t[p];p++)f(_,m,s,l);if(r){if(g>0)for(;b--;)_[b]||m[b]||(m[b]=B.call(c));m=u(m)}O.apply(c,m),w&&!r&&m.length>0&&g+t.length>1&&i.uniqueSort(c)}return w&&(I=k,D=x),_};return a.el=0,n?j(a):a}function f(e,t,n){for(var o=0,a=t.length;a>o;o++)i(e,t[o],n);return n}function m(e,t,i,n,o){{var a,r,l,c,u,d=s(e);d.length}if(!n&&1===d.length){if(r=d[0]=d[0].slice(0),r.length>2&&"ID"===(l=r[0]).type&&9===t.nodeType&&!o&&y.relative[r[1].type]){if(t=y.find.ID(l.matches[0].replace(rt,""),t,o)[0],!t)return i;e=e.slice(r.shift().length)}for(a=st.POS.test(e)?-1:r.length-1;a>=0&&(l=r[a],!y.relative[c=l.type]);a--)if((u=y.find[c])&&(n=u(l.matches[0].replace(rt,""),nt.test(r[0].type)&&t.parentNode||t,o))){if(r.splice(a,1),e=n.length&&r.join(""),!e)return O.apply(i,R.call(n,0)),i;break}}return C(e,d)(n,t,o,i,nt.test(e)),i}function g(){}var v,b,y,_,w,x,C,k,T,D,S=!0,E="undefined",N=("sizcache"+Math.random()).replace(".",""),A=String,P=e.document,M=P.documentElement,I=0,H=0,B=[].pop,O=[].push,R=[].slice,L=[].indexOf||function(e){for(var t=0,i=this.length;i>t;t++)if(this[t]===e)return t;return-1},j=function(e,t){return e[N]=null==t||t,e},F=function(){var e={},t=[];return j(function(i,n){return t.push(i)>y.cacheLength&&delete e[t.shift()],e[i+" "]=n},e)},z=F(),$=F(),q=F(),W="[\\x20\\t\\r\\n\\f]",U="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",V=U.replace("w","w#"),K="([*^$|!~]?=)",Y="\\["+W+"*("+U+")"+W+"*(?:"+K+W+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+V+")|)|)"+W+"*\\]",X=":("+U+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+Y+")|[^:]|\\\\.)*|.*))\\)|)",G=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+W+"*((?:-\\d)?\\d*)"+W+"*\\)|)(?=[^-]|$)",Q=new RegExp("^"+W+"+|((?:^|[^\\\\])(?:\\\\.)*)"+W+"+$","g"),J=new RegExp("^"+W+"*,"+W+"*"),et=new RegExp("^"+W+"*([\\x20\\t\\r\\n\\f>+~])"+W+"*"),tt=new RegExp(X),it=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,nt=/[\x20\t\r\n\f]*[+~]/,ot=/h\d/i,at=/input|select|textarea|button/i,rt=/\\(?!\\)/g,st={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),NAME:new RegExp("^\\[name=['\"]?("+U+")['\"]?\\]"),TAG:new RegExp("^("+U.replace("w","w*")+")"),ATTR:new RegExp("^"+Y),PSEUDO:new RegExp("^"+X),POS:new RegExp(G,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+W+"*(even|odd|(([+-]|)(\\d*)n|)"+W+"*(?:([+-]|)"+W+"*(\\d+)|))"+W+"*\\)|)","i"),needsContext:new RegExp("^"+W+"*[>+~]|"+G,"i")},lt=function(e){var t=P.createElement("div");try{return e(t)}catch(i){return!1}finally{t=null}},ct=lt(function(e){return e.appendChild(P.createComment("")),!e.getElementsByTagName("*").length}),ut=lt(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==E&&"#"===e.firstChild.getAttribute("href")}),dt=lt(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),ht=lt(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),pt=lt(function(e){e.id=N+0,e.innerHTML="<a name='"+N+"'></a><div name='"+N+"'></div>",M.insertBefore(e,M.firstChild);var t=P.getElementsByName&&P.getElementsByName(N).length===2+P.getElementsByName(N+0).length;return b=!P.getElementById(N),M.removeChild(e),t});try{R.call(M.childNodes,0)[0].nodeType}catch(ft){R=function(e){for(var t,i=[];t=this[e];e++)i.push(t);return i}}i.matches=function(e,t){return i(e,null,null,t)},i.matchesSelector=function(e,t){return i(t,null,null,[e]).length>0},_=i.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=_(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n];n++)i+=_(t);return i},w=i.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},x=i.contains=M.contains?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!!(n&&1===n.nodeType&&i.contains&&i.contains(n))}:M.compareDocumentPosition?function(e,t){return t&&!!(16&e.compareDocumentPosition(t))}:function(e,t){for(;t=t.parentNode;)if(t===e)return!0;return!1},i.attr=function(e,t){var i,n=w(e);return n||(t=t.toLowerCase()),(i=y.attrHandle[t])?i(e):n||dt?e.getAttribute(t):(i=e.getAttributeNode(t),i?"boolean"==typeof e[t]?e[t]?t:null:i.specified?i.value:null:null)},y=i.selectors={cacheLength:50,createPseudo:j,match:st,attrHandle:ut?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:b?function(e,t,i){if(typeof t.getElementById!==E&&!i){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}}:function(e,i,n){if(typeof i.getElementById!==E&&!n){var o=i.getElementById(e);return o?o.id===e||typeof o.getAttributeNode!==E&&o.getAttributeNode("id").value===e?[o]:t:[]}},TAG:ct?function(e,t){return typeof t.getElementsByTagName!==E?t.getElementsByTagName(e):void 0}:function(e,t){var i=t.getElementsByTagName(e);if("*"===e){for(var n,o=[],a=0;n=i[a];a++)1===n.nodeType&&o.push(n);return o}return i},NAME:pt&&function(e,t){return typeof t.getElementsByName!==E?t.getElementsByName(name):void 0},CLASS:ht&&function(e,t,i){return typeof t.getElementsByClassName===E||i?void 0:t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,""),e[3]=(e[4]||e[5]||"").replace(rt,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||i.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&i.error(e[0]),e},PSEUDO:function(e){var t,i;return st.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(t=e[4])&&(tt.test(t)&&(i=s(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(t=t.slice(0,i),e[0]=e[0].slice(0,i)),e[2]=t),e.slice(0,3))}},filter:{ID:b?function(e){return e=e.replace(rt,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace(rt,""),function(t){var i=typeof t.getAttributeNode!==E&&t.getAttributeNode("id");return i&&i.value===e}},TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(rt,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=z[N][e+" "];return t||(t=new RegExp("(^|"+W+")"+e+"("+W+"|$)"))&&z(e,function(e){return t.test(e.className||typeof e.getAttribute!==E&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(o){var a=i.attr(o,e);return null==a?"!="===t:t?(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.substr(a.length-n.length)===n:"~="===t?(" "+a+" ").indexOf(n)>-1:"|="===t?a===n||a.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,i,n){return"nth"===e?function(e){var t,o,a=e.parentNode;if(1===i&&0===n)return!0;if(a)for(o=0,t=a.firstChild;t&&(1!==t.nodeType||(o++,e!==t));t=t.nextSibling);return o-=n,o===i||o%i===0&&o/i>=0}:function(t){var i=t;switch(e){case"only":case"first":for(;i=i.previousSibling;)if(1===i.nodeType)return!1;if("first"===e)return!0;i=t;case"last":for(;i=i.nextSibling;)if(1===i.nodeType)return!1;return!0}}},PSEUDO:function(e,t){var n,o=y.pseudos[e]||y.setFilters[e.toLowerCase()]||i.error("unsupported pseudo: "+e);return o[N]?o(t):o.length>1?(n=[e,e,"",t],y.setFilters.hasOwnProperty(e.toLowerCase())?j(function(e,i){for(var n,a=o(e,t),r=a.length;r--;)n=L.call(e,a[r]),e[n]=!(i[n]=a[r])}):function(e){return o(e,0,n)}):o}},pseudos:{not:j(function(e){var t=[],i=[],n=C(e.replace(Q,"$1"));return n[N]?j(function(e,t,i,o){for(var a,r=n(e,null,o,[]),s=e.length;s--;)(a=r[s])&&(e[s]=!(t[s]=a))}):function(e,o,a){return t[0]=e,n(t,null,a,i),!i.pop()}}),has:j(function(e){return function(t){return i(e,t).length>0}}),contains:j(function(e){return function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!y.pseudos.empty(e)},empty:function(e){var t;for(e=e.firstChild;e;){if(e.nodeName>"@"||3===(t=e.nodeType)||4===t)return!1;e=e.nextSibling}return!0},header:function(e){return ot.test(e.nodeName)},text:function(e){var t,i;return"input"===e.nodeName.toLowerCase()&&"text"===(t=e.type)&&(null==(i=e.getAttribute("type"))||i.toLowerCase()===t)},radio:n("radio"),checkbox:n("checkbox"),file:n("file"),password:n("password"),image:n("image"),submit:o("submit"),reset:o("reset"),button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return at.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:a(function(){return[0]}),last:a(function(e,t){return[t-1]}),eq:a(function(e,t,i){return[0>i?i+t:i]}),even:a(function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e}),odd:a(function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e}),lt:a(function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e}),gt:a(function(e,t,i){for(var n=0>i?i+t:i;++n<t;)e.push(n);return e})}},k=M.compareDocumentPosition?function(e,t){return e===t?(T=!0,0):(e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t):e.compareDocumentPosition)?-1:1}:function(e,t){if(e===t)return T=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var i,n,o=[],a=[],s=e.parentNode,l=t.parentNode,c=s;if(s===l)return r(e,t);if(!s)return-1;if(!l)return 1;for(;c;)o.unshift(c),c=c.parentNode;for(c=l;c;)a.unshift(c),c=c.parentNode;i=o.length,n=a.length;for(var u=0;i>u&&n>u;u++)if(o[u]!==a[u])return r(o[u],a[u]);return u===i?r(e,a[u],-1):r(o[u],t,1)},[0,0].sort(k),S=!T,i.uniqueSort=function(e){var t,i=[],n=1,o=0;if(T=S,e.sort(k),T){for(;t=e[n];n++)t===e[n-1]&&(o=i.push(n));for(;o--;)e.splice(i[o],1)}return e},i.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},C=i.compile=function(e,t){var i,n=[],o=[],a=q[N][e+" "];if(!a){for(t||(t=s(e)),i=t.length;i--;)a=h(t[i]),a[N]?n.push(a):o.push(a);a=q(e,p(o,n))}return a},P.querySelectorAll&&!function(){var e,t=m,n=/'|\\/g,o=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,a=[":focus"],r=[":active"],l=M.matchesSelector||M.mozMatchesSelector||M.webkitMatchesSelector||M.oMatchesSelector||M.msMatchesSelector;lt(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||a.push("\\["+W+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||a.push(":checked")}),lt(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&a.push("[*^$]="+W+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||a.push(":enabled",":disabled")}),a=new RegExp(a.join("|")),m=function(e,i,o,r,l){if(!r&&!l&&!a.test(e)){var c,u,d=!0,h=N,p=i,f=9===i.nodeType&&e;if(1===i.nodeType&&"object"!==i.nodeName.toLowerCase()){for(c=s(e),(d=i.getAttribute("id"))?h=d.replace(n,"\\$&"):i.setAttribute("id",h),h="[id='"+h+"'] ",u=c.length;u--;)c[u]=h+c[u].join("");p=nt.test(e)&&i.parentNode||i,f=c.join(",")}if(f)try{return O.apply(o,R.call(p.querySelectorAll(f),0)),o}catch(m){}finally{d||i.removeAttribute("id")}}return t(e,i,o,r,l)},l&&(lt(function(t){e=l.call(t,"div");try{l.call(t,"[test!='']:sizzle"),r.push("!=",X)}catch(i){}}),r=new RegExp(r.join("|")),i.matchesSelector=function(t,n){if(n=n.replace(o,"='$1']"),!w(t)&&!r.test(n)&&!a.test(n))try{var s=l.call(t,n);if(s||e||t.document&&11!==t.document.nodeType)return s}catch(c){}return i(n,null,null,[t]).length>0})}(),y.pseudos.nth=y.pseudos.eq,y.filters=g.prototype=y.pseudos,y.setFilters=new g,i.attr=Z.attr,Z.find=i,Z.expr=i.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=i.uniqueSort,Z.text=i.getText,Z.isXMLDoc=i.isXML,Z.contains=i.contains}(e);var Ht=/Until$/,Bt=/^(?:parents|prev(?:Until|All))/,Ot=/^.[^:#\[\.,]*$/,Rt=Z.expr.match.needsContext,Lt={children:!0,contents:!0,next:!0,prev:!0};Z.fn.extend({find:function(e){var t,i,n,o,a,r,s=this;if("string"!=typeof e)return Z(e).filter(function(){for(t=0,i=s.length;i>t;t++)if(Z.contains(s[t],this))return!0});for(r=this.pushStack("","find",e),t=0,i=this.length;i>t;t++)if(n=r.length,Z.find(e,this[t],r),t>0)for(o=n;o<r.length;o++)for(a=0;n>a;a++)if(r[a]===r[o]){r.splice(o--,1);break}return r},has:function(e){var t,i=Z(e,this),n=i.length;return this.filter(function(){for(t=0;n>t;t++)if(Z.contains(this,i[t]))return!0})},not:function(e){return this.pushStack(c(this,e,!1),"not",e)},filter:function(e){return this.pushStack(c(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?Rt.test(e)?Z(e,this.context).index(this[0])>=0:Z.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var i,n=0,o=this.length,a=[],r=Rt.test(e)||"string"!=typeof e?Z(e,t||this.context):0;o>n;n++)for(i=this[n];i&&i.ownerDocument&&i!==t&&11!==i.nodeType;){if(r?r.index(i)>-1:Z.find.matchesSelector(i,e)){a.push(i);break}i=i.parentNode}return a=a.length>1?Z.unique(a):a,this.pushStack(a,"closest",e)},index:function(e){return e?"string"==typeof e?Z.inArray(this[0],Z(e)):Z.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var i="string"==typeof e?Z(e,t):Z.makeArray(e&&e.nodeType?[e]:e),n=Z.merge(this.get(),i);return this.pushStack(s(i[0])||s(n[0])?n:Z.unique(n))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.fn.andSelf=Z.fn.addBack,Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,i){return Z.dir(e,"parentNode",i)},next:function(e){return l(e,"nextSibling")},prev:function(e){return l(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,i){return Z.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return Z.dir(e,"previousSibling",i)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return Z.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:Z.merge([],e.childNodes)}},function(e,t){Z.fn[e]=function(i,n){var o=Z.map(this,t,i);return Ht.test(e)||(n=i),n&&"string"==typeof n&&(o=Z.filter(n,o)),o=this.length>1&&!Lt[e]?Z.unique(o):o,this.length>1&&Bt.test(e)&&(o=o.reverse()),this.pushStack(o,e,K.call(arguments).join(","))}}),Z.extend({filter:function(e,t,i){return i&&(e=":not("+e+")"),1===t.length?Z.find.matchesSelector(t[0],e)?[t[0]]:[]:Z.find.matches(e,t)},dir:function(e,i,n){for(var o=[],a=e[i];a&&9!==a.nodeType&&(n===t||1!==a.nodeType||!Z(a).is(n));)1===a.nodeType&&o.push(a),a=a[i];return o},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}});var jt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ft=/ jQuery\d+="(?:null|\d+)"/g,zt=/^\s+/,$t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,qt=/<([\w:]+)/,Wt=/<tbody/i,Ut=/<|&#?\w+;/,Vt=/<(?:script|style|link)/i,Kt=/<(?:script|object|embed|option|style)/i,Yt=new RegExp("<(?:"+jt+")[\\s/>]","i"),Xt=/^(?:checkbox|radio)$/,Gt=/checked\s*(?:[^=]|=\s*.checked.)/i,Qt=/\/(java|ecma)script/i,Zt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Jt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},ei=u(z),ti=ei.appendChild(z.createElement("div"));Jt.optgroup=Jt.option,Jt.tbody=Jt.tfoot=Jt.colgroup=Jt.caption=Jt.thead,Jt.th=Jt.td,Z.support.htmlSerialize||(Jt._default=[1,"X<div>","</div>"]),Z.fn.extend({text:function(e){return Z.access(this,function(e){return e===t?Z.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(Z.isFunction(e))return this.each(function(t){Z(this).wrapAll(e.call(this,t))});if(this[0]){var t=Z(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return Z.isFunction(e)?this.each(function(t){Z(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Z(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=Z.isFunction(e);return this.each(function(i){Z(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!s(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(e,this),"before",this.selector)}},after:function(){if(!s(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var i,n=0;null!=(i=this[n]);n++)(!e||Z.filter(e,[i]).length)&&(t||1!==i.nodeType||(Z.cleanData(i.getElementsByTagName("*")),Z.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&Z.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Z.clone(this,e,t)})},html:function(e){return Z.access(this,function(e){var i=this[0]||{},n=0,o=this.length;if(e===t)return 1===i.nodeType?i.innerHTML.replace(Ft,""):t;if(!("string"!=typeof e||Vt.test(e)||!Z.support.htmlSerialize&&Yt.test(e)||!Z.support.leadingWhitespace&&zt.test(e)||Jt[(qt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace($t,"<$1></$2>");try{for(;o>n;n++)i=this[n]||{},1===i.nodeType&&(Z.cleanData(i.getElementsByTagName("*")),i.innerHTML=e);i=0}catch(a){}}i&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return s(this[0])?this.length?this.pushStack(Z(Z.isFunction(e)?e():e),"replaceWith",e):this:Z.isFunction(e)?this.each(function(t){var i=Z(this),n=i.html();i.replaceWith(e.call(this,t,n))}):("string"!=typeof e&&(e=Z(e).detach()),this.each(function(){var t=this.nextSibling,i=this.parentNode;Z(this).remove(),t?Z(t).before(e):Z(i).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,i,n){e=[].concat.apply([],e);var o,a,r,s,l=0,c=e[0],u=[],h=this.length;if(!Z.support.checkClone&&h>1&&"string"==typeof c&&Gt.test(c))return this.each(function(){Z(this).domManip(e,i,n)});if(Z.isFunction(c))return this.each(function(o){var a=Z(this);e[0]=c.call(this,o,i?a.html():t),a.domManip(e,i,n)});if(this[0]){if(o=Z.buildFragment(e,this,u),r=o.fragment,a=r.firstChild,1===r.childNodes.length&&(r=a),a)for(i=i&&Z.nodeName(a,"tr"),s=o.cacheable||h-1;h>l;l++)n.call(i&&Z.nodeName(this[l],"table")?d(this[l],"tbody"):this[l],l===s?r:Z.clone(r,!0,!0));r=a=null,u.length&&Z.each(u,function(e,t){t.src?Z.ajax?Z.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):Z.error("no ajax"):Z.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Zt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),Z.buildFragment=function(e,i,n){var o,a,r,s=e[0];return i=i||z,i=!i.nodeType&&i[0]||i,i=i.ownerDocument||i,!(1===e.length&&"string"==typeof s&&s.length<512&&i===z&&"<"===s.charAt(0))||Kt.test(s)||!Z.support.checkClone&&Gt.test(s)||!Z.support.html5Clone&&Yt.test(s)||(a=!0,o=Z.fragments[s],r=o!==t),o||(o=i.createDocumentFragment(),Z.clean(e,i,o,n),a&&(Z.fragments[s]=r&&o)),{fragment:o,cacheable:a}},Z.fragments={},Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Z.fn[e]=function(i){var n,o=0,a=[],r=Z(i),s=r.length,l=1===this.length&&this[0].parentNode;if((null==l||l&&11===l.nodeType&&1===l.childNodes.length)&&1===s)return r[t](this[0]),this;for(;s>o;o++)n=(o>0?this.clone(!0):this).get(),Z(r[o])[t](n),a=a.concat(n);return this.pushStack(a,e,r.selector)}}),Z.extend({clone:function(e,t,i){var n,o,a,r;if(Z.support.html5Clone||Z.isXMLDoc(e)||!Yt.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(ti.innerHTML=e.outerHTML,ti.removeChild(r=ti.firstChild)),!(Z.support.noCloneEvent&&Z.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Z.isXMLDoc(e)))for(p(e,r),n=f(e),o=f(r),a=0;n[a];++a)o[a]&&p(n[a],o[a]);if(t&&(h(e,r),i))for(n=f(e),o=f(r),a=0;n[a];++a)h(n[a],o[a]);return n=o=null,r},clean:function(e,t,i,n){var o,a,r,s,l,c,d,h,p,f,g,v=t===z&&ei,b=[];for(t&&"undefined"!=typeof t.createDocumentFragment||(t=z),o=0;null!=(r=e[o]);o++)if("number"==typeof r&&(r+=""),r){if("string"==typeof r)if(Ut.test(r)){for(v=v||u(t),d=t.createElement("div"),v.appendChild(d),r=r.replace($t,"<$1></$2>"),s=(qt.exec(r)||["",""])[1].toLowerCase(),l=Jt[s]||Jt._default,c=l[0],d.innerHTML=l[1]+r+l[2];c--;)d=d.lastChild;if(!Z.support.tbody)for(h=Wt.test(r),p="table"!==s||h?"<table>"!==l[1]||h?[]:d.childNodes:d.firstChild&&d.firstChild.childNodes,a=p.length-1;a>=0;--a)Z.nodeName(p[a],"tbody")&&!p[a].childNodes.length&&p[a].parentNode.removeChild(p[a]);!Z.support.leadingWhitespace&&zt.test(r)&&d.insertBefore(t.createTextNode(zt.exec(r)[0]),d.firstChild),r=d.childNodes,d.parentNode.removeChild(d)}else r=t.createTextNode(r);r.nodeType?b.push(r):Z.merge(b,r)}if(d&&(r=d=v=null),!Z.support.appendChecked)for(o=0;null!=(r=b[o]);o++)Z.nodeName(r,"input")?m(r):"undefined"!=typeof r.getElementsByTagName&&Z.grep(r.getElementsByTagName("input"),m);if(i)for(f=function(e){return!e.type||Qt.test(e.type)?n?n.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):void 0},o=0;null!=(r=b[o]);o++)Z.nodeName(r,"script")&&f(r)||(i.appendChild(r),"undefined"!=typeof r.getElementsByTagName&&(g=Z.grep(Z.merge([],r.getElementsByTagName("script")),f),b.splice.apply(b,[o+1,0].concat(g)),o+=g.length));return b},cleanData:function(e,t){for(var i,n,o,a,r=0,s=Z.expando,l=Z.cache,c=Z.support.deleteExpando,u=Z.event.special;null!=(o=e[r]);r++)if((t||Z.acceptData(o))&&(n=o[s],i=n&&l[n])){if(i.events)for(a in i.events)u[a]?Z.event.remove(o,a):Z.removeEvent(o,a,i.handle);l[n]&&(delete l[n],c?delete o[s]:o.removeAttribute?o.removeAttribute(s):o[s]=null,Z.deletedIds.push(n))}}}),function(){var e,t;Z.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=Z.uaMatch(q.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),Z.browser=t,Z.sub=function(){function e(t,i){return new e.fn.init(t,i)}Z.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(i,n){return n&&n instanceof Z&&!(n instanceof e)&&(n=e(n)),Z.fn.init.call(this,i,n,t)},e.fn.init.prototype=e.fn;var t=e(z);return e}}();var ii,ni,oi,ai=/alpha\([^)]*\)/i,ri=/opacity=([^)]*)/,si=/^(top|right|bottom|left)$/,li=/^(none|table(?!-c[ea]).+)/,ci=/^margin/,ui=new RegExp("^("+J+")(.*)$","i"),di=new RegExp("^("+J+")(?!px)[a-z%]+$","i"),hi=new RegExp("^([-+])=("+J+")","i"),pi={BODY:"block"},fi={position:"absolute",visibility:"hidden",display:"block"},mi={letterSpacing:0,fontWeight:400},gi=["Top","Right","Bottom","Left"],vi=["Webkit","O","Moz","ms"],bi=Z.fn.toggle;Z.fn.extend({css:function(e,i){return Z.access(this,function(e,i,n){return n!==t?Z.style(e,i,n):Z.css(e,i)},e,i,arguments.length>1)},show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e,t){var i="boolean"==typeof e;return Z.isFunction(e)&&Z.isFunction(t)?bi.apply(this,arguments):this.each(function(){(i?e:v(this))?Z(this).show():Z(this).hide()})}}),Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=ii(e,"opacity");return""===i?"1":i}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":Z.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,i,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,s,l=Z.camelCase(i),c=e.style;if(i=Z.cssProps[l]||(Z.cssProps[l]=g(c,l)),s=Z.cssHooks[i]||Z.cssHooks[l],n===t)return s&&"get"in s&&(a=s.get(e,!1,o))!==t?a:c[i];if(r=typeof n,"string"===r&&(a=hi.exec(n))&&(n=(a[1]+1)*a[2]+parseFloat(Z.css(e,i)),r="number"),!(null==n||"number"===r&&isNaN(n)||("number"!==r||Z.cssNumber[l]||(n+="px"),s&&"set"in s&&(n=s.set(e,n,o))===t)))try{c[i]=n}catch(u){}}},css:function(e,i,n,o){var a,r,s,l=Z.camelCase(i);return i=Z.cssProps[l]||(Z.cssProps[l]=g(e.style,l)),s=Z.cssHooks[i]||Z.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,o)),a===t&&(a=ii(e,i)),"normal"===a&&i in mi&&(a=mi[i]),n||o!==t?(r=parseFloat(a),n||Z.isNumeric(r)?r||0:a):a},swap:function(e,t,i){var n,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];n=i.call(e);for(o in t)e.style[o]=a[o];return n}}),e.getComputedStyle?ii=function(t,i){var n,o,a,r,s=e.getComputedStyle(t,null),l=t.style;return s&&(n=s.getPropertyValue(i)||s[i],""!==n||Z.contains(t.ownerDocument,t)||(n=Z.style(t,i)),di.test(n)&&ci.test(i)&&(o=l.width,a=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=n,n=s.width,l.width=o,l.minWidth=a,l.maxWidth=r)),n}:z.documentElement.currentStyle&&(ii=function(e,t){var i,n,o=e.currentStyle&&e.currentStyle[t],a=e.style;return null==o&&a&&a[t]&&(o=a[t]),di.test(o)&&!si.test(t)&&(i=a.left,n=e.runtimeStyle&&e.runtimeStyle.left,n&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=i,n&&(e.runtimeStyle.left=n)),""===o?"auto":o}),Z.each(["height","width"],function(e,t){Z.cssHooks[t]={get:function(e,i,n){return i?0===e.offsetWidth&&li.test(ii(e,"display"))?Z.swap(e,fi,function(){return w(e,t,n)}):w(e,t,n):void 0},set:function(e,i,n){return y(e,i,n?_(e,t,n,Z.support.boxSizing&&"border-box"===Z.css(e,"boxSizing")):0)}}}),Z.support.opacity||(Z.cssHooks.opacity={get:function(e,t){return ri.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,n=e.currentStyle,o=Z.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=n&&n.filter||i.filter||"";i.zoom=1,t>=1&&""===Z.trim(a.replace(ai,""))&&i.removeAttribute&&(i.removeAttribute("filter"),n&&!n.filter)||(i.filter=ai.test(a)?a.replace(ai,o):a+" "+o)}}),Z(function(){Z.support.reliableMarginRight||(Z.cssHooks.marginRight={get:function(e,t){return Z.swap(e,{display:"inline-block"},function(){return t?ii(e,"marginRight"):void 0})}}),!Z.support.pixelPosition&&Z.fn.position&&Z.each(["top","left"],function(e,t){Z.cssHooks[t]={get:function(e,i){if(i){var n=ii(e,t);return di.test(n)?Z(e).position()[t]+"px":n}}}})}),Z.expr&&Z.expr.filters&&(Z.expr.filters.hidden=function(e){return 0===e.offsetWidth&&0===e.offsetHeight||!Z.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||ii(e,"display"))},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)}),Z.each({margin:"",padding:"",border:"Width"},function(e,t){Z.cssHooks[e+t]={expand:function(i){var n,o="string"==typeof i?i.split(" "):[i],a={};for(n=0;4>n;n++)a[e+gi[n]+t]=o[n]||o[n-2]||o[0];return a}},ci.test(e)||(Z.cssHooks[e+t].set=y)});var yi=/%20/g,_i=/\[\]$/,wi=/\r?\n/g,xi=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ci=/^(?:select|textarea)/i;Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?Z.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Ci.test(this.nodeName)||xi.test(this.type))}).map(function(e,t){var i=Z(this).val();return null==i?null:Z.isArray(i)?Z.map(i,function(e){return{name:t.name,value:e.replace(wi,"\r\n")}}):{name:t.name,value:i.replace(wi,"\r\n")}}).get()}}),Z.param=function(e,i){var n,o=[],a=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)
|
22
|
+
};if(i===t&&(i=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,function(){a(this.name,this.value)});else for(n in e)C(n,e[n],i,a);return o.join("&").replace(yi,"+")};var ki,Ti,Di=/#.*$/,Si=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ei=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Ni=/^(?:GET|HEAD)$/,Ai=/^\/\//,Pi=/\?/,Mi=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ii=/([?&])_=[^&]*/,Hi=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Bi=Z.fn.load,Oi={},Ri={},Li=["*/"]+["*"];try{Ti=$.href}catch(ji){Ti=z.createElement("a"),Ti.href="",Ti=Ti.href}ki=Hi.exec(Ti.toLowerCase())||[],Z.fn.load=function(e,i,n){if("string"!=typeof e&&Bi)return Bi.apply(this,arguments);if(!this.length)return this;var o,a,r,s=this,l=e.indexOf(" ");return l>=0&&(o=e.slice(l,e.length),e=e.slice(0,l)),Z.isFunction(i)?(n=i,i=t):i&&"object"==typeof i&&(a="POST"),Z.ajax({url:e,type:a,dataType:"html",data:i,complete:function(e,t){n&&s.each(n,r||[e.responseText,t,e])}}).done(function(e){r=arguments,s.html(o?Z("<div>").append(e.replace(Mi,"")).find(o):e)}),this},Z.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){Z.fn[t]=function(e){return this.on(t,e)}}),Z.each(["get","post"],function(e,i){Z[i]=function(e,n,o,a){return Z.isFunction(n)&&(a=a||o,o=n,n=t),Z.ajax({type:i,url:e,data:n,success:o,dataType:a})}}),Z.extend({getScript:function(e,i){return Z.get(e,t,i,"script")},getJSON:function(e,t,i){return Z.get(e,t,i,"json")},ajaxSetup:function(e,t){return t?D(e,Z.ajaxSettings):(t=e,e=Z.ajaxSettings),D(e,t),e},ajaxSettings:{url:Ti,isLocal:Ei.test(ki[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Li},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:k(Oi),ajaxTransport:k(Ri),ajax:function(e,i){function n(e,i,n,r){var c,d,b,y,w,C=i;2!==_&&(_=2,l&&clearTimeout(l),s=t,a=r||"",x.readyState=e>0?4:0,n&&(y=S(h,x,n)),e>=200&&300>e||304===e?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(Z.lastModified[o]=w),w=x.getResponseHeader("Etag"),w&&(Z.etag[o]=w)),304===e?(C="notmodified",c=!0):(c=E(h,y),C=c.state,d=c.data,b=c.error,c=!b)):(b=C,(!C||e)&&(C="error",0>e&&(e=0))),x.status=e,x.statusText=(i||C)+"",c?m.resolveWith(p,[d,C,x]):m.rejectWith(p,[x,C,b]),x.statusCode(v),v=t,u&&f.trigger("ajax"+(c?"Success":"Error"),[x,h,c?d:b]),g.fireWith(p,[x,C]),u&&(f.trigger("ajaxComplete",[x,h]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=t),i=i||{};var o,a,r,s,l,c,u,d,h=Z.ajaxSetup({},i),p=h.context||h,f=p!==h&&(p.nodeType||p instanceof Z)?Z(p):Z.event,m=Z.Deferred(),g=Z.Callbacks("once memory"),v=h.statusCode||{},b={},y={},_=0,w="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!_){var i=e.toLowerCase();e=y[i]=y[i]||e,b[e]=t}return this},getAllResponseHeaders:function(){return 2===_?a:null},getResponseHeader:function(e){var i;if(2===_){if(!r)for(r={};i=Si.exec(a);)r[i[1].toLowerCase()]=i[2];i=r[e.toLowerCase()]}return i===t?null:i},overrideMimeType:function(e){return _||(h.mimeType=e),this},abort:function(e){return e=e||w,s&&s.abort(e),n(0,e),this}};if(m.promise(x),x.success=x.done,x.error=x.fail,x.complete=g.add,x.statusCode=function(e){if(e){var t;if(2>_)for(t in e)v[t]=[v[t],e[t]];else t=e[x.status],x.always(t)}return this},h.url=((e||h.url)+"").replace(Di,"").replace(Ai,ki[1]+"//"),h.dataTypes=Z.trim(h.dataType||"*").toLowerCase().split(tt),null==h.crossDomain&&(c=Hi.exec(h.url.toLowerCase()),h.crossDomain=!(!c||c[1]===ki[1]&&c[2]===ki[2]&&(c[3]||("http:"===c[1]?80:443))==(ki[3]||("http:"===ki[1]?80:443)))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Z.param(h.data,h.traditional)),T(Oi,h,i,x),2===_)return x;if(u=h.global,h.type=h.type.toUpperCase(),h.hasContent=!Ni.test(h.type),u&&0===Z.active++&&Z.event.trigger("ajaxStart"),!h.hasContent&&(h.data&&(h.url+=(Pi.test(h.url)?"&":"?")+h.data,delete h.data),o=h.url,h.cache===!1)){var C=Z.now(),k=h.url.replace(Ii,"$1_="+C);h.url=k+(k===h.url?(Pi.test(h.url)?"&":"?")+"_="+C:"")}(h.data&&h.hasContent&&h.contentType!==!1||i.contentType)&&x.setRequestHeader("Content-Type",h.contentType),h.ifModified&&(o=o||h.url,Z.lastModified[o]&&x.setRequestHeader("If-Modified-Since",Z.lastModified[o]),Z.etag[o]&&x.setRequestHeader("If-None-Match",Z.etag[o])),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Li+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)x.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(h.beforeSend.call(p,x,h)===!1||2===_))return x.abort();w="abort";for(d in{success:1,error:1,complete:1})x[d](h[d]);if(s=T(Ri,h,i,x)){x.readyState=1,u&&f.trigger("ajaxSend",[x,h]),h.async&&h.timeout>0&&(l=setTimeout(function(){x.abort("timeout")},h.timeout));try{_=1,s.send(b,n)}catch(D){if(!(2>_))throw D;n(-1,D)}}else n(-1,"No Transport");return x},active:0,lastModified:{},etag:{}});var Fi=[],zi=/\?/,$i=/(=)\?(?=&|$)|\?\?/,qi=Z.now();Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fi.pop()||Z.expando+"_"+qi++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",function(i,n,o){var a,r,s,l=i.data,c=i.url,u=i.jsonp!==!1,d=u&&$i.test(c),h=u&&!d&&"string"==typeof l&&!(i.contentType||"").indexOf("application/x-www-form-urlencoded")&&$i.test(l);return"jsonp"===i.dataTypes[0]||d||h?(a=i.jsonpCallback=Z.isFunction(i.jsonpCallback)?i.jsonpCallback():i.jsonpCallback,r=e[a],d?i.url=c.replace($i,"$1"+a):h?i.data=l.replace($i,"$1"+a):u&&(i.url+=(zi.test(c)?"&":"?")+i.jsonp+"="+a),i.converters["script json"]=function(){return s||Z.error(a+" was not called"),s[0]},i.dataTypes[0]="json",e[a]=function(){s=arguments},o.always(function(){e[a]=r,i[a]&&(i.jsonpCallback=n.jsonpCallback,Fi.push(a)),s&&Z.isFunction(r)&&r(s[0]),s=r=t}),"script"):void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),Z.ajaxTransport("script",function(e){if(e.crossDomain){var i,n=z.head||z.getElementsByTagName("head")[0]||z.documentElement;return{send:function(o,a){i=z.createElement("script"),i.async="async",e.scriptCharset&&(i.charset=e.scriptCharset),i.src=e.url,i.onload=i.onreadystatechange=function(e,o){(o||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,n&&i.parentNode&&n.removeChild(i),i=t,o||a(200,"success"))},n.insertBefore(i,n.firstChild)},abort:function(){i&&i.onload(0,1)}}}});var Wi,Ui=e.ActiveXObject?function(){for(var e in Wi)Wi[e](0,1)}:!1,Vi=0;Z.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&N()||A()}:N,function(e){Z.extend(Z.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(Z.ajaxSettings.xhr()),Z.support.ajax&&Z.ajaxTransport(function(i){if(!i.crossDomain||Z.support.cors){var n;return{send:function(o,a){var r,s,l=i.xhr();if(i.username?l.open(i.type,i.url,i.async,i.username,i.password):l.open(i.type,i.url,i.async),i.xhrFields)for(s in i.xhrFields)l[s]=i.xhrFields[s];i.mimeType&&l.overrideMimeType&&l.overrideMimeType(i.mimeType),i.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");try{for(s in o)l.setRequestHeader(s,o[s])}catch(c){}l.send(i.hasContent&&i.data||null),n=function(e,o){var s,c,u,d,h;try{if(n&&(o||4===l.readyState))if(n=t,r&&(l.onreadystatechange=Z.noop,Ui&&delete Wi[r]),o)4!==l.readyState&&l.abort();else{s=l.status,u=l.getAllResponseHeaders(),d={},h=l.responseXML,h&&h.documentElement&&(d.xml=h);try{d.text=l.responseText}catch(p){}try{c=l.statusText}catch(p){c=""}s||!i.isLocal||i.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(f){o||a(-1,f)}d&&a(s,c,d,u)},i.async?4===l.readyState?setTimeout(n,0):(r=++Vi,Ui&&(Wi||(Wi={},Z(e).unload(Ui)),Wi[r]=n),l.onreadystatechange=n):n()},abort:function(){n&&n(0,1)}}}});var Ki,Yi,Xi=/^(?:toggle|show|hide)$/,Gi=new RegExp("^(?:([-+])=|)("+J+")([a-z%]*)$","i"),Qi=/queueHooks$/,Zi=[B],Ji={"*":[function(e,t){var i,n,o=this.createTween(e,t),a=Gi.exec(t),r=o.cur(),s=+r||0,l=1,c=20;if(a){if(i=+a[2],n=a[3]||(Z.cssNumber[e]?"":"px"),"px"!==n&&s){s=Z.css(o.elem,e,!0)||i||1;do l=l||".5",s/=l,Z.style(o.elem,e,s+n);while(l!==(l=o.cur()/r)&&1!==l&&--c)}o.unit=n,o.start=s,o.end=a[1]?s+(a[1]+1)*i:i}return o}]};Z.Animation=Z.extend(I,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,n=0,o=e.length;o>n;n++)i=e[n],Ji[i]=Ji[i]||[],Ji[i].unshift(t)},prefilter:function(e,t){t?Zi.unshift(e):Zi.push(e)}}),Z.Tween=O,O.prototype={constructor:O,init:function(e,t,i,n,o,a){this.elem=e,this.prop=i,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(Z.cssNumber[i]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return e&&e.get?e.get(this):O.propHooks._default.get(this)},run:function(e){var t,i=O.propHooks[this.prop];return this.pos=t=this.options.duration?Z.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Z.css(e.elem,e.prop,!1,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Z.fx.step[e.prop]?Z.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Z.cssProps[e.prop]]||Z.cssHooks[e.prop])?Z.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Z.each(["toggle","show","hide"],function(e,t){var i=Z.fn[t];Z.fn[t]=function(n,o,a){return null==n||"boolean"==typeof n||!e&&Z.isFunction(n)&&Z.isFunction(o)?i.apply(this,arguments):this.animate(R(t,!0),n,o,a)}}),Z.fn.extend({fadeTo:function(e,t,i,n){return this.filter(v).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var o=Z.isEmptyObject(e),a=Z.speed(t,i,n),r=function(){var t=I(this,Z.extend({},e),a);o&&t.stop(!0)};return o||a.queue===!1?this.each(r):this.queue(a.queue,r)},stop:function(e,i,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=i,i=e,e=t),i&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",a=Z.timers,r=Z._data(this);if(i)r[i]&&r[i].stop&&o(r[i]);else for(i in r)r[i]&&r[i].stop&&Qi.test(i)&&o(r[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));(t||!n)&&Z.dequeue(this,e)})}}),Z.each({slideDown:R("show"),slideUp:R("hide"),slideToggle:R("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Z.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),Z.speed=function(e,t,i){var n=e&&"object"==typeof e?Z.extend({},e):{complete:i||!i&&t||Z.isFunction(e)&&e,duration:e,easing:i&&t||t&&!Z.isFunction(t)&&t};return n.duration=Z.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in Z.fx.speeds?Z.fx.speeds[n.duration]:Z.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){Z.isFunction(n.old)&&n.old.call(this),n.queue&&Z.dequeue(this,n.queue)},n},Z.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Z.timers=[],Z.fx=O.prototype.init,Z.fx.tick=function(){var e,i=Z.timers,n=0;for(Ki=Z.now();n<i.length;n++)e=i[n],e()||i[n]!==e||i.splice(n--,1);i.length||Z.fx.stop(),Ki=t},Z.fx.timer=function(e){e()&&Z.timers.push(e)&&!Yi&&(Yi=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.interval=13,Z.fx.stop=function(){clearInterval(Yi),Yi=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fx.step={},Z.expr&&Z.expr.filters&&(Z.expr.filters.animated=function(e){return Z.grep(Z.timers,function(t){return e===t.elem}).length});var en=/^(?:body|html)$/i;Z.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){Z.offset.setOffset(this,e,t)});var i,n,o,a,r,s,l,c={top:0,left:0},u=this[0],d=u&&u.ownerDocument;if(d)return(n=d.body)===u?Z.offset.bodyOffset(u):(i=d.documentElement,Z.contains(i,u)?("undefined"!=typeof u.getBoundingClientRect&&(c=u.getBoundingClientRect()),o=L(d),a=i.clientTop||n.clientTop||0,r=i.clientLeft||n.clientLeft||0,s=o.pageYOffset||i.scrollTop,l=o.pageXOffset||i.scrollLeft,{top:c.top+s-a,left:c.left+l-r}):c)},Z.offset={bodyOffset:function(e){var t=e.offsetTop,i=e.offsetLeft;return Z.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(Z.css(e,"marginTop"))||0,i+=parseFloat(Z.css(e,"marginLeft"))||0),{top:t,left:i}},setOffset:function(e,t,i){var n=Z.css(e,"position");"static"===n&&(e.style.position="relative");var o,a,r=Z(e),s=r.offset(),l=Z.css(e,"top"),c=Z.css(e,"left"),u=("absolute"===n||"fixed"===n)&&Z.inArray("auto",[l,c])>-1,d={},h={};u?(h=r.position(),o=h.top,a=h.left):(o=parseFloat(l)||0,a=parseFloat(c)||0),Z.isFunction(t)&&(t=t.call(e,i,s)),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):r.css(d)}},Z.fn.extend({position:function(){if(this[0]){var e=this[0],t=this.offsetParent(),i=this.offset(),n=en.test(t[0].nodeName)?{top:0,left:0}:t.offset();return i.top-=parseFloat(Z.css(e,"marginTop"))||0,i.left-=parseFloat(Z.css(e,"marginLeft"))||0,n.top+=parseFloat(Z.css(t[0],"borderTopWidth"))||0,n.left+=parseFloat(Z.css(t[0],"borderLeftWidth"))||0,{top:i.top-n.top,left:i.left-n.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||z.body;e&&!en.test(e.nodeName)&&"static"===Z.css(e,"position");)e=e.offsetParent;return e||z.body})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n=/Y/.test(i);Z.fn[e]=function(o){return Z.access(this,function(e,o,a){var r=L(e);return a===t?r?i in r?r[i]:r.document.documentElement[o]:e[o]:(r?r.scrollTo(n?Z(r).scrollLeft():a,n?a:Z(r).scrollTop()):e[o]=a,void 0)},e,o,arguments.length,null)}}),Z.each({Height:"height",Width:"width"},function(e,i){Z.each({padding:"inner"+e,content:i,"":"outer"+e},function(n,o){Z.fn[o]=function(o,a){var r=arguments.length&&(n||"boolean"!=typeof o),s=n||(o===!0||a===!0?"margin":"border");return Z.access(this,function(i,n,o){var a;return Z.isWindow(i)?i.document.documentElement["client"+e]:9===i.nodeType?(a=i.documentElement,Math.max(i.body["scroll"+e],a["scroll"+e],i.body["offset"+e],a["offset"+e],a["client"+e])):o===t?Z.css(i,n,o,s):Z.style(i,n,o,s)},i,r?o:t,r,null)}})}),e.jQuery=e.$=Z,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return Z})}(window),/*! jQuery UI - v1.9.2 - 2012-11-23
|
23
|
+
* http://jqueryui.com
|
24
|
+
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
|
25
|
+
* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */
|
26
|
+
function(e,t){function i(t,i){var o,a,r,s=t.nodeName.toLowerCase();return"area"===s?(o=t.parentNode,a=o.name,t.href&&a&&"map"===o.nodeName.toLowerCase()?(r=e("img[usemap=#"+a+"]")[0],!!r&&n(r)):!1):(/input|select|textarea|button|object/.test(s)?!t.disabled:"a"===s?t.href||i:i)&&n(t)}function n(t){return e.expr.filters.visible(t)&&!e(t).parents().andSelf().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var o=0,a=/^ui-id-\d+$/;e.ui=e.ui||{},e.ui.version||(e.extend(e.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,i){return"number"==typeof t?this.each(function(){var n=this;setTimeout(function(){e(n).focus(),i&&i.call(n)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var n,o,a=e(this[0]);a.length&&a[0]!==document;){if(n=a.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(o=parseInt(a.css("zIndex"),10),!isNaN(o)&&0!==o))return o;a=a.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++o)})},removeUniqueId:function(){return this.each(function(){a.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,n){return!!e.data(t,n[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),o=isNaN(n);return(o||n>=0)&&i(t,!o)}}),e(function(){var t=document.body,i=t.appendChild(i=document.createElement("div"));i.offsetHeight,e.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=100===i.offsetHeight,e.support.selectstart="onselectstart"in i,t.removeChild(i).style.display="none"}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,n){function o(t,i,n,o){return e.each(a,function(){i-=parseFloat(e.css(t,"padding"+this))||0,n&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),o&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var a="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),s={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+n]=function(i){return i===t?s["inner"+n].call(this):this.each(function(){e(this).css(r,o(this,i)+"px")})},e.fn["outer"+n]=function(t,i){return"number"!=typeof t?s["outer"+n].call(this,t):this.each(function(){e(this).css(r,o(this,t,!0,i)+"px")})}}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),function(){var t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];e.ui.ie=t.length?!0:!1,e.ui.ie6=6===parseFloat(t[1],10)}(),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,n){var o,a=e.ui[t].prototype;for(o in n)a.plugins[o]=a.plugins[o]||[],a.plugins[o].push([i,n[o]])},call:function(e,t,i){var n,o=e.plugins[t];if(o&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(n=0;n<o.length;n++)e.options[o[n][0]]&&o[n][1].apply(e.element,i)}},contains:e.contains,hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",o=!1;return t[n]>0?!0:(t[n]=1,o=t[n]>0,t[n]=0,o)},isOverAxis:function(e,t,i){return e>t&&t+i>e},isOver:function(t,i,n,o,a,r){return e.ui.isOverAxis(t,n,a)&&e.ui.isOverAxis(i,o,r)}}))}(jQuery),function(e,t){var i=0,n=Array.prototype.slice,o=e.cleanData;e.cleanData=function(t){for(var i,n=0;null!=(i=t[n]);n++)try{e(i).triggerHandler("remove")}catch(a){}o(t)},e.widget=function(t,i,n){var o,a,r,s,l=t.split(".")[0];t=t.split(".")[1],o=l+"-"+t,n||(n=i,i=e.Widget),e.expr[":"][o.toLowerCase()]=function(t){return!!e.data(t,o)},e[l]=e[l]||{},a=e[l][t],r=e[l][t]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new r(e,t)},e.extend(r,a,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),s=new i,s.options=e.widget.extend({},s.options),e.each(n,function(t,o){e.isFunction(o)&&(n[t]=function(){var e=function(){return i.prototype[t].apply(this,arguments)},n=function(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,a=this._superApply;return this._super=e,this._superApply=n,t=o.apply(this,arguments),this._super=i,this._superApply=a,t}}())}),r.prototype=e.widget.extend(s,{widgetEventPrefix:a?s.widgetEventPrefix:t},n,{constructor:r,namespace:l,widgetName:t,widgetBaseClass:o,widgetFullName:o}),a?(e.each(a._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete a._childConstructors):i._childConstructors.push(r),e.widget.bridge(t,r)},e.widget.extend=function(i){for(var o,a,r=n.call(arguments,1),s=0,l=r.length;l>s;s++)for(o in r[s])a=r[s][o],r[s].hasOwnProperty(o)&&a!==t&&(i[o]=e.isPlainObject(a)?e.isPlainObject(i[o])?e.widget.extend({},i[o],a):e.widget.extend({},a):a);return i},e.widget.bridge=function(i,o){var a=o.prototype.widgetFullName||i;e.fn[i]=function(r){var s="string"==typeof r,l=n.call(arguments,1),c=this;return r=!s&&l.length?e.widget.extend.apply(null,[r].concat(l)):r,s?this.each(function(){var n,o=e.data(this,a);return o?e.isFunction(o[r])&&"_"!==r.charAt(0)?(n=o[r].apply(o,l),n!==o&&n!==t?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):void 0):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new o(r,this))}),c}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),n!==this&&(e.data(n,this.widgetName,this),e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,n){var o,a,r,s=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(s={},o=i.split("."),i=o.shift(),o.length){for(a=s[i]=e.widget.extend({},this.options[i]),r=0;r<o.length-1;r++)a[o[r]]=a[o[r]]||{},a=a[o[r]];if(i=o.pop(),n===t)return a[i]===t?null:a[i];a[i]=n}else{if(n===t)return this.options[i]===t?null:this.options[i];s[i]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(t,i,n){var o,a=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=o=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),e.each(n,function(n,r){function s(){return t||a.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):void 0}"string"!=typeof r&&(s.guid=r.guid=r.guid||s.guid||e.guid++);var l=n.match(/^(\w+)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?o.delegate(u,c,s):i.bind(c,s)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,n){var o,a,r=this.options[t];if(n=n||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(o in a)o in i||(i[o]=a[o]);return this.element.trigger(i,n),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,o,a){"string"==typeof o&&(o={effect:o});var r,s=o?o===!0||"number"==typeof o?i:o.effect||i:t;o=o||{},"number"==typeof o&&(o={duration:o}),r=!e.isEmptyObject(o),o.complete=a,o.delay&&n.delay(o.delay),r&&e.effects&&(e.effects.effect[s]||e.uiBackCompat!==!1&&e.effects[s])?n[t](o):s!==t&&n[s]?n[s](o.duration,o.easing,a):n.queue(function(i){e(this)[t](),a&&a.call(n[0]),i()})}}),e.uiBackCompat!==!1&&(e.Widget.prototype._getCreateOptions=function(){return e.metadata&&e.metadata.get(this.element[0])[this.widgetName]})}(jQuery),function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,o=1===i.which,a="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return o&&!a&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return!e.ui.ie||document.documentMode>=9||t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(e){e.widget("ui.draggable",e.ui.mouse,{version:"1.9.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||e(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(t),this.handle?(e(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){e('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",t,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=!1;e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1);for(var n=this.element[0],o=!1;n&&(n=n.parentNode);)n==document&&(o=!0);if(!o&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!i||"valid"==this.options.revert&&i||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)){var a=this;e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",t)!==!1&&a._clear()})}else this._trigger("stop",t)!==!1&&this._clear();return!1},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var i=this.options.handle&&e(this.options.handle,this.element).length?!1:!0;return e(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(i=!0)}),i},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t])):"clone"==i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"==i.appendTo?this.element[0].parentNode:i.appendTo),n[0]==this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;if("parent"==t.containment&&(t.containment=this.helper[0].parentNode),("document"==t.containment||"window"==t.containment)&&(this.containment=["document"==t.containment?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==t.containment?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==t.containment?0:e(window).scrollLeft())+e("document"==t.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==t.containment?0:e(window).scrollTop())+(e("document"==t.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(t.containment)||t.containment.constructor==Array)t.containment.constructor==Array&&(this.containment=t.containment);else{var i=e(t.containment),n=i[0];if(!n)return;var o=(i.offset(),"hidden"!=e(n).css("overflow"));this.containment=[(parseInt(e(n).css("borderLeftWidth"),10)||0)+(parseInt(e(n).css("paddingLeft"),10)||0),(parseInt(e(n).css("borderTopWidth"),10)||0)+(parseInt(e(n).css("paddingTop"),10)||0),(o?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(e(n).css("borderLeftWidth"),10)||0)-(parseInt(e(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(o?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(e(n).css("borderTopWidth"),10)||0)-(parseInt(e(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i}},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"==t?1:-1,o=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),a=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())*n}},_generatePosition:function(t){var i=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName),a=t.pageX,r=t.pageY;if(this.originalPosition){var s;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();s=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else s=this.containment;t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(r=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(r=s[3]+this.offset.click.top)}if(i.grid){var c=i.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY;r=s?c-this.offset.click.top<s[1]||c-this.offset.click.top>s[3]?c-this.offset.click.top<s[1]?c+i.grid[1]:c-i.grid[1]:c:c;var u=i.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX;a=s?u-this.offset.click.left<s[0]||u-this.offset.click.left>s[2]?u-this.offset.click.left<s[0]?u+i.grid[0]:u-i.grid[0]:u:u}}return{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]==this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n]),"drag"==t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var n=e(this).data("draggable"),o=n.options,a=e.extend({},i,{item:n.element});n.sortables=[],e(o.connectToSortable).each(function(){var i=e.data(this,"sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,a))})},stop:function(t,i){var n=e(this).data("draggable"),o=e.extend({},i,{item:n.element});e.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"==n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,o))})},drag:function(t,i){var n=e(this).data("draggable"),o=this;e.each(n.sortables,function(){var a=!1,r=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(a=!0,e.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!=r&&this.instance._intersectsWith(this.instance.containerCache)&&e.ui.contains(r.instance.element[0],this.instance.element[0])&&(a=!1),a})),a?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(o).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",t),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",t),n.dropped=!1)})}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),i=e(this).data("draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor")),t.css("cursor",i.cursor)},stop:function(){var t=e(this).data("draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i){var n=e(i.helper),o=e(this).data("draggable").options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(t,i){var n=e(this).data("draggable").options;n._opacity&&e(i.helper).css("opacity",n._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("draggable");t.scrollParent[0]!=document&&"HTML"!=t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var i=e(this).data("draggable"),n=i.options,o=!1;i.scrollParent[0]!=document&&"HTML"!=i.scrollParent[0].tagName?(n.axis&&"x"==n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-t.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=o=i.scrollParent[0].scrollTop+n.scrollSpeed:t.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=o=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&"y"==n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-t.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=o=i.scrollParent[0].scrollLeft+n.scrollSpeed:t.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=o=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&"x"==n.axis||(t.pageY-e(document).scrollTop()<n.scrollSensitivity?o=e(document).scrollTop(e(document).scrollTop()-n.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<n.scrollSensitivity&&(o=e(document).scrollTop(e(document).scrollTop()+n.scrollSpeed))),n.axis&&"y"==n.axis||(t.pageX-e(document).scrollLeft()<n.scrollSensitivity?o=e(document).scrollLeft(e(document).scrollLeft()-n.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<n.scrollSensitivity&&(o=e(document).scrollLeft(e(document).scrollLeft()+n.scrollSpeed)))),o!==!1&&e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(){var t=e(this).data("draggable"),i=t.options;t.snapElements=[],e(i.snap.constructor!=String?i.snap.items||":data(draggable)":i.snap).each(function(){var i=e(this),n=i.offset();this!=t.element[0]&&t.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(t,i){for(var n=e(this).data("draggable"),o=n.options,a=o.snapTolerance,r=i.offset.left,s=r+n.helperProportions.width,l=i.offset.top,c=l+n.helperProportions.height,u=n.snapElements.length-1;u>=0;u--){var d=n.snapElements[u].left,h=d+n.snapElements[u].width,p=n.snapElements[u].top,f=p+n.snapElements[u].height;if(r>d-a&&h+a>r&&l>p-a&&f+a>l||r>d-a&&h+a>r&&c>p-a&&f+a>c||s>d-a&&h+a>s&&l>p-a&&f+a>l||s>d-a&&h+a>s&&c>p-a&&f+a>c){if("inner"!=o.snapMode){var m=Math.abs(p-c)<=a,g=Math.abs(f-l)<=a,v=Math.abs(d-s)<=a,b=Math.abs(h-r)<=a;m&&(i.position.top=n._convertPositionTo("relative",{top:p-n.helperProportions.height,left:0}).top-n.margins.top),g&&(i.position.top=n._convertPositionTo("relative",{top:f,left:0}).top-n.margins.top),v&&(i.position.left=n._convertPositionTo("relative",{top:0,left:d-n.helperProportions.width}).left-n.margins.left),b&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left-n.margins.left)}var y=m||g||v||b;if("outer"!=o.snapMode){var m=Math.abs(p-l)<=a,g=Math.abs(f-c)<=a,v=Math.abs(d-r)<=a,b=Math.abs(h-s)<=a;m&&(i.position.top=n._convertPositionTo("relative",{top:p,left:0}).top-n.margins.top),g&&(i.position.top=n._convertPositionTo("relative",{top:f-n.helperProportions.height,left:0}).top-n.margins.top),v&&(i.position.left=n._convertPositionTo("relative",{top:0,left:d}).left-n.margins.left),b&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left-n.margins.left)}!n.snapElements[u].snapping&&(m||g||v||b||y)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[u].item})),n.snapElements[u].snapping=m||g||v||b||y}else n.snapElements[u].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[u].item})),n.snapElements[u].snapping=!1}}}),e.ui.plugin.add("draggable","stack",{start:function(){var t=e(this).data("draggable").options,i=e.makeArray(e(t.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});if(i.length){var n=parseInt(i[0].style.zIndex)||0;e(i).each(function(e){this.style.zIndex=n+e}),this[0].style.zIndex=n+i.length}}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i){var n=e(i.helper),o=e(this).data("draggable").options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(t,i){var n=e(this).data("draggable").options;n._zIndex&&e(i.helper).css("zIndex",n._zIndex)}})}(jQuery),function(e){e.widget("ui.droppable",{version:"1.9.2",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var t=this.options,i=t.accept;this.isover=0,this.isout=1,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},e.ui.ddmanager.droppables[t.scope]=e.ui.ddmanager.droppables[t.scope]||[],e.ui.ddmanager.droppables[t.scope].push(this),t.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var t=e.ui.ddmanager.droppables[this.options.scope],i=0;i<t.length;i++)t[i]==this&&t.splice(i,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,i){"accept"==t&&(this.accept=e.isFunction(i)?i:function(e){return e.is(i)
|
27
|
+
}),e.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var n=i||e.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]==this.element[0])return!1;var o=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var t=e.data(this,"droppable");return t.options.greedy&&!t.options.disabled&&t.options.scope==n.options.scope&&t.accept.call(t.element[0],n.currentItem||n.element)&&e.ui.intersect(n,e.extend(t,{offset:t.element.offset()}),t.options.tolerance)?(o=!0,!1):void 0}),o?!1:this.accept.call(this.element[0],n.currentItem||n.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(n)),this.element):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(t,i,n){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left,a=o+t.helperProportions.width,r=(t.positionAbs||t.position.absolute).top,s=r+t.helperProportions.height,l=i.offset.left,c=l+i.proportions.width,u=i.offset.top,d=u+i.proportions.height;switch(n){case"fit":return o>=l&&c>=a&&r>=u&&d>=s;case"intersect":return l<o+t.helperProportions.width/2&&a-t.helperProportions.width/2<c&&u<r+t.helperProportions.height/2&&s-t.helperProportions.height/2<d;case"pointer":var h=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,p=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,f=e.ui.isOver(p,h,u,l,i.proportions.height,i.proportions.width);return f;case"touch":return(r>=u&&d>=r||s>=u&&d>=s||u>r&&s>d)&&(o>=l&&c>=o||a>=l&&c>=a||l>o&&a>c);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var n=e.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,a=(t.currentItem||t.element).find(":data(droppable)").andSelf();e:for(var r=0;r<n.length;r++)if(!(n[r].options.disabled||t&&!n[r].accept.call(n[r].element[0],t.currentItem||t.element))){for(var s=0;s<a.length;s++)if(a[s]==n[r].element[0]){n[r].proportions.height=0;continue e}n[r].visible="none"!=n[r].element.css("display"),n[r].visible&&("mousedown"==o&&n[r]._activate.call(n[r],i),n[r].offset=n[r].element.offset(),n[r].proportions={width:n[r].element[0].offsetWidth,height:n[r].element[0].offsetHeight})}},drop:function(t,i){var n=!1;return e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,i)))}),n},dragStart:function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n=e.ui.intersect(t,this,this.options.tolerance),o=n||1!=this.isover?n&&0==this.isover?"isover":null:"isout";if(o){var a;if(this.options.greedy){var r=this.options.scope,s=this.element.parents(":data(droppable)").filter(function(){return e.data(this,"droppable").options.scope===r});s.length&&(a=e.data(s[0],"droppable"),a.greedyChild="isover"==o?1:0)}a&&"isover"==o&&(a.isover=0,a.isout=1,a._out.call(a,i)),this[o]=1,this["isout"==o?"isover":"isout"]=0,this["isover"==o?"_over":"_out"].call(this,i),a&&"isout"==o&&(a.isout=0,a.isover=1,a._over.call(a,i))}}})},dragStop:function(t,i){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}}}(jQuery),function(e){e.widget("ui.resizable",e.ui.mouse,{version:"1.9.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var t=this,i=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=i.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var n=this.handles.split(",");this.handles={};for(var o=0;o<n.length;o++){var a=e.trim(n[o]),r="ui-resizable-"+a,s=e('<div class="ui-resizable-handle '+r+'"></div>');s.css({zIndex:i.zIndex}),"se"==a&&s.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[a]=".ui-resizable-"+a,this.element.append(s)}}this._renderAxis=function(t){t=t||this.element;for(var i in this.handles){if(this.handles[i].constructor==String&&(this.handles[i]=e(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=e(this.handles[i],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth();var a=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");t.css(a,o),this._proportionallyResize()}e(this.handles[i]).length}},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!t.resizing){if(this.className)var e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);t.axis=e&&e[1]?e[1]:"se"}}),i.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){i.disabled||(e(this).removeClass("ui-resizable-autohide"),t._handles.show())}).mouseleave(function(){i.disabled||t.resizing||(e(this).addClass("ui-resizable-autohide"),t._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){t(this.element);var i=this.element;this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()}return this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_mouseCapture:function(t){var i=!1;for(var n in this.handles)e(this.handles[n])[0]==t.target&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(i){var n=this.options,o=this.element.position(),a=this.element;this.resizing=!0,this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()},(a.is(".ui-draggable")||/absolute/.test(a.css("position")))&&a.css({position:"absolute",top:o.top,left:o.left}),this._renderProxy();var r=t(this.helper.css("left")),s=t(this.helper.css("top"));n.containment&&(r+=e(n.containment).scrollLeft()||0,s+=e(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:r,top:s},this.size=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalPosition={left:r,top:s},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=e(".ui-resizable-"+this.axis).css("cursor");return e("body").css("cursor","auto"==l?this.axis+"-resize":l),a.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var t=this.helper,i=(this.options,this.originalMousePosition),n=this.axis,o=e.pageX-i.left||0,a=e.pageY-i.top||0,r=this._change[n];if(!r)return!1;var s=r.apply(this,[e,o,a]);return this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(s=this._updateRatio(s,e)),s=this._respectSize(s,e),this._propagate("resize",e),t.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(s),this._trigger("resize",e,this.ui()),!1},_mouseStop:function(t){this.resizing=!1;var i=this.options,n=this;if(this._helper){var o=this._proportionallyResizeElements,a=o.length&&/textarea/i.test(o[0].nodeName),r=a&&e.ui.hasScroll(o[0],"left")?0:n.sizeDiff.height,s=a?0:n.sizeDiff.width,l={width:n.helper.width()-s,height:n.helper.height()-r},c=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,u=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;i.animate||this.element.css(e.extend(l,{top:u,left:c})),n.helper.height(n.size.height),n.helper.width(n.size.width),this._helper&&!i.animate&&this._proportionallyResize()}return e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,n,o,a,r,s=this.options;r={minWidth:i(s.minWidth)?s.minWidth:0,maxWidth:i(s.maxWidth)?s.maxWidth:1/0,minHeight:i(s.minHeight)?s.minHeight:0,maxHeight:i(s.maxHeight)?s.maxHeight:1/0},(this._aspectRatio||e)&&(t=r.minHeight*this.aspectRatio,o=r.minWidth/this.aspectRatio,n=r.maxHeight*this.aspectRatio,a=r.maxWidth/this.aspectRatio,t>r.minWidth&&(r.minWidth=t),o>r.minHeight&&(r.minHeight=o),n<r.maxWidth&&(r.maxWidth=n),a<r.maxHeight&&(r.maxHeight=a)),this._vBoundaries=r},_updateCache:function(e){this.options;this.offset=this.helper.offset(),i(e.left)&&(this.position.left=e.left),i(e.top)&&(this.position.top=e.top),i(e.height)&&(this.size.height=e.height),i(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=(this.options,this.position),n=this.size,o=this.axis;return i(e.height)?e.width=e.height*this.aspectRatio:i(e.width)&&(e.height=e.width/this.aspectRatio),"sw"==o&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"==o&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e,t){var n=(this.helper,this._vBoundaries),o=(this._aspectRatio||t.shiftKey,this.axis),a=i(e.width)&&n.maxWidth&&n.maxWidth<e.width,r=i(e.height)&&n.maxHeight&&n.maxHeight<e.height,s=i(e.width)&&n.minWidth&&n.minWidth>e.width,l=i(e.height)&&n.minHeight&&n.minHeight>e.height;s&&(e.width=n.minWidth),l&&(e.height=n.minHeight),a&&(e.width=n.maxWidth),r&&(e.height=n.maxHeight);var c=this.originalPosition.left+this.originalSize.width,u=this.position.top+this.size.height,d=/sw|nw|w/.test(o),h=/nw|ne|n/.test(o);s&&d&&(e.left=c-n.minWidth),a&&d&&(e.left=c-n.maxWidth),l&&h&&(e.top=u-n.minHeight),r&&h&&(e.top=u-n.maxHeight);var p=!e.width&&!e.height;return p&&!e.left&&e.top?e.top=null:p&&!e.top&&e.left&&(e.left=null),e},_proportionallyResize:function(){this.options;if(this._proportionallyResizeElements.length)for(var t=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){var n=this._proportionallyResizeElements[i];if(!this.borderDif){var o=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],a=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];this.borderDif=e.map(o,function(e,t){var i=parseInt(e,10)||0,n=parseInt(a[t],10)||0;return i+n})}n.css({height:t.height()-this.borderDif[0]-this.borderDif[2]||0,width:t.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var t=this.element,i=this.options;if(this.elementOffset=t.offset(),this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var n=e.ui.ie6?1:0,o=e.ui.ie6?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+o,height:this.element.outerHeight()+o,position:"absolute",left:this.elementOffset.left-n+"px",top:this.elementOffset.top-n+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=(this.options,this.originalSize),n=this.originalPosition;return{left:n.left+t,width:i.width-t}},n:function(e,t,i){var n=(this.options,this.originalSize),o=this.originalPosition;return{top:o.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!=t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("resizable"),i=t.options,n=function(t){e(t).each(function(){var t=e(this);t.data("resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):e.each(i.alsoResize,function(e){n(e)})},resize:function(t,i){var n=e(this).data("resizable"),o=n.options,a=n.originalSize,r=n.originalPosition,s={height:n.size.height-a.height||0,width:n.size.width-a.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0},l=function(t,n){e(t).each(function(){var t=e(this),o=e(this).data("resizable-alsoresize"),a={},r=n&&n.length?n:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(e,t){var i=(o[t]||0)+(s[t]||0);i&&i>=0&&(a[t]=i||null)}),t.css(a)})};"object"!=typeof o.alsoResize||o.alsoResize.nodeType?l(o.alsoResize):e.each(o.alsoResize,function(e,t){l(e,t)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).data("resizable"),n=i.options,o=i._proportionallyResizeElements,a=o.length&&/textarea/i.test(o[0].nodeName),r=a&&e.ui.hasScroll(o[0],"left")?0:i.sizeDiff.height,s=a?0:i.sizeDiff.width,l={width:i.size.width-s,height:i.size.height-r},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,u&&c?{top:u,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};o&&o.length&&e(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var i=e(this).data("resizable"),n=i.options,o=i.element,a=n.containment,r=a instanceof e?a.get(0):/parent/.test(a)?o.parent().get(0):a;if(r)if(i.containerElement=e(r),/document/.test(a)||a==document)i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0},i.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight};else{var s=e(r),l=[];e(["Top","Right","Left","Bottom"]).each(function(e,i){l[e]=t(s.css("padding"+i))}),i.containerOffset=s.offset(),i.containerPosition=s.position(),i.containerSize={height:s.innerHeight()-l[3],width:s.innerWidth()-l[1]};var c=i.containerOffset,u=i.containerSize.height,d=i.containerSize.width,h=e.ui.hasScroll(r,"left")?r.scrollWidth:d,p=e.ui.hasScroll(r)?r.scrollHeight:u;i.parentData={element:r,left:c.left,top:c.top,width:h,height:p}}},resize:function(t){var i=e(this).data("resizable"),n=i.options,o=(i.containerSize,i.containerOffset),a=(i.size,i.position),r=i._aspectRatio||t.shiftKey,s={top:0,left:0},l=i.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(s=o),a.left<(i._helper?o.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-o.left:i.position.left-s.left),r&&(i.size.height=i.size.width/i.aspectRatio),i.position.left=n.helper?o.left:0),a.top<(i._helper?o.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-o.top:i.position.top),r&&(i.size.width=i.size.height*i.aspectRatio),i.position.top=i._helper?o.top:0),i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top;var c=Math.abs((i._helper?i.offset.left-s.left:i.offset.left-s.left)+i.sizeDiff.width),u=Math.abs((i._helper?i.offset.top-s.top:i.offset.top-o.top)+i.sizeDiff.height),d=i.containerElement.get(0)==i.element.parent().get(0),h=/relative|absolute/.test(i.containerElement.css("position"));d&&h&&(c-=i.parentData.left),c+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-c,r&&(i.size.height=i.size.width/i.aspectRatio)),u+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-u,r&&(i.size.width=i.size.height*i.aspectRatio))},stop:function(){var t=e(this).data("resizable"),i=t.options,n=(t.position,t.containerOffset),o=t.containerPosition,a=t.containerElement,r=e(t.helper),s=r.offset(),l=r.outerWidth()-t.sizeDiff.width,c=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:s.left-o.left-n.left,width:l,height:c}),t._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:s.left-o.left-n.left,width:l,height:c})}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("resizable"),i=t.options,n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){{var t=e(this).data("resizable");t.options}t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){{var t=e(this).data("resizable");t.options}t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(t){{var i=e(this).data("resizable"),n=i.options,o=i.size,a=i.originalSize,r=i.originalPosition,s=i.axis;n._aspectRatio||t.shiftKey}n.grid="number"==typeof n.grid?[n.grid,n.grid]:n.grid;var l=Math.round((o.width-a.width)/(n.grid[0]||1))*(n.grid[0]||1),c=Math.round((o.height-a.height)/(n.grid[1]||1))*(n.grid[1]||1);/^(se|s|e)$/.test(s)?(i.size.width=a.width+l,i.size.height=a.height+c):/^(ne)$/.test(s)?(i.size.width=a.width+l,i.size.height=a.height+c,i.position.top=r.top-c):/^(sw)$/.test(s)?(i.size.width=a.width+l,i.size.height=a.height+c,i.position.left=r.left-l):(i.size.width=a.width+l,i.size.height=a.height+c,i.position.top=r.top-c,i.position.left=r.left-l)}});var t=function(e){return parseInt(e,10)||0},i=function(e){return!isNaN(parseInt(e,10))}}(jQuery),function(e){e.widget("ui.selectable",e.ui.mouse,{version:"1.9.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var t=this;this.element.addClass("ui-selectable"),this.dragged=!1;var i;this.refresh=function(){i=e(t.options.filter,t.element[0]),i.addClass("ui-selectee"),i.each(function(){var t=e(this),i=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=i.addClass("ui-selectee"),this._mouseInit(),this.helper=e("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var i=this;if(this.opos=[t.pageX,t.pageY],!this.options.disabled){var n=this.options;this.selectees=e(n.filter,this.element[0]),this._trigger("start",t),e(n.appendTo).append(this.helper),this.helper.css({left:t.clientX,top:t.clientY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=e.data(this,"selectable-item");n.startselected=!0,t.metaKey||t.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element}))}),e(t.target).parents().andSelf().each(function(){var n=e.data(this,"selectable-item");if(n){var o=!t.metaKey&&!t.ctrlKey||!n.$element.hasClass("ui-selected");return n.$element.removeClass(o?"ui-unselecting":"ui-selected").addClass(o?"ui-selecting":"ui-unselecting"),n.unselecting=!o,n.selecting=o,n.selected=o,o?i._trigger("selecting",t,{selecting:n.element}):i._trigger("unselecting",t,{unselecting:n.element}),!1}})}},_mouseDrag:function(t){var i=this;if(this.dragged=!0,!this.options.disabled){var n=this.options,o=this.opos[0],a=this.opos[1],r=t.pageX,s=t.pageY;if(o>r){var l=r;r=o,o=l}if(a>s){var l=s;s=a,a=l}return this.helper.css({left:o,top:a,width:r-o,height:s-a}),this.selectees.each(function(){var l=e.data(this,"selectable-item");if(l&&l.element!=i.element[0]){var c=!1;"touch"==n.tolerance?c=!(l.left>r||l.right<o||l.top>s||l.bottom<a):"fit"==n.tolerance&&(c=l.left>o&&l.right<r&&l.top>a&&l.bottom<s),c?(l.selected&&(l.$element.removeClass("ui-selected"),l.selected=!1),l.unselecting&&(l.$element.removeClass("ui-unselecting"),l.unselecting=!1),l.selecting||(l.$element.addClass("ui-selecting"),l.selecting=!0,i._trigger("selecting",t,{selecting:l.element}))):(l.selecting&&((t.metaKey||t.ctrlKey)&&l.startselected?(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.$element.addClass("ui-selected"),l.selected=!0):(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.startselected&&(l.$element.addClass("ui-unselecting"),l.unselecting=!0),i._trigger("unselecting",t,{unselecting:l.element}))),l.selected&&(t.metaKey||t.ctrlKey||l.startselected||(l.$element.removeClass("ui-selected"),l.selected=!1,l.$element.addClass("ui-unselecting"),l.unselecting=!0,i._trigger("unselecting",t,{unselecting:l.element}))))}}),!1}},_mouseStop:function(t){var i=this;this.dragged=!1;this.options;return e(".ui-unselecting",this.element[0]).each(function(){var n=e.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",t,{unselected:n.element})}),e(".ui-selecting",this.element[0]).each(function(){var n=e.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",t,{selected:n.element})}),this._trigger("stop",t),this.helper.remove(),!1}})}(jQuery),function(e){e.widget("ui.sortable",e.ui.mouse,{version:"1.9.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===e.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,i){"disabled"===t?(this.options[t]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,i){var n=this;if(this.reverting)return!1;if(this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(t);{var o=null;e(t.target).parents().each(function(){return e.data(this,n.widgetName+"-item")==n?(o=e(this),!1):void 0})}if(e.data(t.target,n.widgetName+"-item")==n&&(o=e(t.target)),!o)return!1;if(this.options.handle&&!i){var a=!1;if(e(this.options.handle,o).find("*").andSelf().each(function(){this==t.target&&(a=!0)}),!a)return!1}return this.currentItem=o,this._removeCurrentsFromItems(),!0},_mouseStart:function(t,i,n){var o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&(e("body").css("cursor")&&(this._storedCursor=e("body").css("cursor")),e("body").css("cursor",o.cursor)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(var a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var i=this.options,n=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(t.pageY-e(document).scrollTop()<i.scrollSensitivity?n=e(document).scrollTop(e(document).scrollTop()-i.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<i.scrollSensitivity&&(n=e(document).scrollTop(e(document).scrollTop()+i.scrollSpeed)),t.pageX-e(document).scrollLeft()<i.scrollSensitivity?n=e(document).scrollLeft(e(document).scrollLeft()-i.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<i.scrollSensitivity&&(n=e(document).scrollLeft(e(document).scrollLeft()+i.scrollSpeed))),n!==!1&&e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)}this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");for(var o=this.items.length-1;o>=0;o--){var a=this.items[o],r=a.item[0],s=this._intersectsWithPointer(a);if(s&&a.instance===this.currentContainer&&r!=this.currentItem[0]&&this.placeholder[1==s?"next":"prev"]()[0]!=r&&!e.contains(this.placeholder[0],r)&&("semi-dynamic"==this.options.type?!e.contains(this.element[0],r):!0)){if(this.direction=1==s?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(a))break;this._rearrange(t,a),this._trigger("change",t,this._uiHash());break}}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,o=this.placeholder.offset();this.reverting=!0,e(this.helper).animate({left:o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this
|
28
|
+
},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,a=e.left,r=a+e.width,s=e.top,l=s+e.height,c=this.offset.click.top,u=this.offset.click.left,d=n+c>s&&l>n+c&&t+u>a&&r>t+u;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?d:a<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&s<n+this.helperProportions.height/2&&o-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var i="x"===this.options.axis||e.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||e.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=i&&n,a=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return o?this.floating?r&&"right"==r||"down"==a?2:1:a&&("down"==a?2:1):!1},_intersectsWithSides:function(t){var i=e.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=e.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),o=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?"right"==a&&n||"left"==a&&!n:o&&("down"==o&&i||"up"==o&&!i)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!=e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!=e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor==String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i=[],n=[],o=this._connectWith();if(o&&t)for(var a=o.length-1;a>=0;a--)for(var r=e(o[a]),s=r.length-1;s>=0;s--){var l=e.data(r[s],this.widgetName);l&&l!=this&&!l.options.disabled&&n.push([e.isFunction(l.options.items)?l.options.items.call(l.element):e(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}n.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var a=n.length-1;a>=0;a--)n[a][0].each(function(){i.push(this)});return e(i)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]==e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i=this.items,n=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],o=this._connectWith();if(o&&this.ready)for(var a=o.length-1;a>=0;a--)for(var r=e(o[a]),s=r.length-1;s>=0;s--){var l=e.data(r[s],this.widgetName);l&&l!=this&&!l.options.disabled&&(n.push([e.isFunction(l.options.items)?l.options.items.call(l.element[0],t,{item:this.currentItem}):e(l.options.items,l.element),l]),this.containers.push(l))}for(var a=n.length-1;a>=0;a--)for(var c=n[a][1],u=n[a][0],s=0,d=u.length;d>s;s++){var h=e(u[s]);h.data(this.widgetName+"-item",c),i.push({item:h,instance:c,width:0,height:0,left:0,top:0})}},refreshPositions:function(t){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var i=this.items.length-1;i>=0;i--){var n=this.items[i];if(n.instance==this.currentContainer||!this.currentContainer||n.item[0]==this.currentItem[0]){var o=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item;t||(n.width=o.outerWidth(),n.height=o.outerHeight());var a=o.offset();n.left=a.left,n.top=a.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var i=this.containers.length-1;i>=0;i--){var a=this.containers[i].element.offset();this.containers[i].containerCache.left=a.left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}return this},_createPlaceholder:function(t){t=t||this;var i=t.options;if(!i.placeholder||i.placeholder.constructor==String){var n=i.placeholder;i.placeholder={element:function(){var i=e(document.createElement(t.currentItem[0].nodeName)).addClass(n||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return n||(i.style.visibility="hidden"),i},update:function(e,o){(!n||i.forcePlaceholderSize)&&(o.height()||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}}t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_contactContainers:function(t){for(var i=null,n=null,o=this.containers.length-1;o>=0;o--)if(!e.contains(this.currentItem[0],this.containers[o].element[0]))if(this._intersectsWith(this.containers[o].containerCache)){if(i&&e.contains(this.containers[o].element[0],i.element[0]))continue;i=this.containers[o],n=o}else this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",t,this._uiHash(this)),this.containers[o].containerCache.over=0);if(i)if(1===this.containers.length)this.containers[n]._trigger("over",t,this._uiHash(this)),this.containers[n].containerCache.over=1;else{for(var a=1e4,r=null,s=this.containers[n].floating?"left":"top",l=this.containers[n].floating?"width":"height",c=this.positionAbs[s]+this.offset.click[s],u=this.items.length-1;u>=0;u--)if(e.contains(this.containers[n].element[0],this.items[u].item[0])&&this.items[u].item[0]!=this.currentItem[0]){var d=this.items[u].item.offset()[s],h=!1;Math.abs(d-c)>Math.abs(d+this.items[u][l]-c)&&(h=!0,d+=this.items[u][l]),Math.abs(d-c)<a&&(a=Math.abs(d-c),r=this.items[u],this.direction=h?"up":"down")}if(!r&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[n],r?this._rearrange(t,r,null,!0):this._rearrange(t,null,this.containers[n].element,!0),this._trigger("change",t,this._uiHash()),this.containers[n]._trigger("change",t,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[n]._trigger("over",t,this._uiHash(this)),this.containers[n].containerCache.over=1}},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"==i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||e("parent"!=i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(""==n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(""==n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;if("parent"==t.containment&&(t.containment=this.helper[0].parentNode),("document"==t.containment||"window"==t.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e("document"==t.containment?document:window).width()-this.helperProportions.width-this.margins.left,(e("document"==t.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(t.containment)){var i=e(t.containment)[0],n=e(t.containment).offset(),o="hidden"!=e(i).css("overflow");this.containment=[n.left+(parseInt(e(i).css("borderLeftWidth"),10)||0)+(parseInt(e(i).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(i).css("borderTopWidth"),10)||0)+(parseInt(e(i).css("paddingTop"),10)||0)-this.margins.top,n.left+(o?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e(i).css("borderLeftWidth"),10)||0)-(parseInt(e(i).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(o?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e(i).css("borderTopWidth"),10)||0)-(parseInt(e(i).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"==t?1:-1,o=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),a=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())*n}},_generatePosition:function(t){var i=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);"relative"!=this.cssPosition||this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset());var a=t.pageX,r=t.pageY;if(this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),i.grid)){var s=this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1];r=this.containment?s-this.offset.click.top<this.containment[1]||s-this.offset.click.top>this.containment[3]?s-this.offset.click.top<this.containment[1]?s+i.grid[1]:s-i.grid[1]:s:s;var l=this.originalPageX+Math.round((a-this.originalPageX)/i.grid[0])*i.grid[0];a=this.containment?l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2]?l-this.offset.click.left<this.containment[0]?l+i.grid[0]:l-i.grid[0]:l:l}return{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"==this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o==this.counter&&this.refreshPositions(!n)})},_clear:function(t,i){this.reverting=!1;var n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(var o in this._storedCSS)("auto"==this._storedCSS[o]||"static"==this._storedCSS[o])&&(this._storedCSS[o]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!i&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev==this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent==this.currentItem.parent()[0]||i||n.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(i||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))));for(var o=this.containers.length-1;o>=0;o--)i||n.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over&&(n.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over=0);if(this._storedCursor&&e("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!i){this._trigger("beforeStop",t,this._uiHash());for(var o=0;o<n.length;o++)n[o].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(i||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null,!i){for(var o=0;o<n.length;o++)n[o].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){e.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})}(jQuery),jQuery.effects||function(e,t){var i=e.uiBackCompat!==!1,n="ui-effects-";e.effects={effect:{}},/*!
|
29
|
+
* jQuery Color Animations v2.0.0
|
30
|
+
* http://jquery.com/
|
31
|
+
*
|
32
|
+
* Copyright 2012 jQuery Foundation and other contributors
|
33
|
+
* Released under the MIT license.
|
34
|
+
* http://jquery.org/license
|
35
|
+
*
|
36
|
+
* Date: Mon Aug 13 13:41:02 2012 -0500
|
37
|
+
*/
|
38
|
+
function(t,i){function n(e,t,i){var n=h[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:0>e?0:n.max<e?n.max:e)}function o(e){var i=u(),n=i._rgba=[];return e=e.toLowerCase(),m(c,function(t,o){var a,r=o.re.exec(e),s=r&&o.parse(r),l=o.space||"rgba";return s?(a=i[l](s),i[d[l].cache]=a[d[l].cache],n=i._rgba=a._rgba,!1):void 0}),n.length?("0,0,0,0"===n.join()&&t.extend(n,r.transparent),i):r[e]}function a(e,t,i){return i=(i+1)%1,1>6*i?e+(t-e)*i*6:1>2*i?t:2>3*i?e+(t-e)*(2/3-i)*6:e}var r,s="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),l=/^([\-+])=\s*(\d+\.?\d*)/,c=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],u=t.Color=function(e,i,n,o){return new t.Color.fn.parse(e,i,n,o)},d={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},p=u.support={},f=t("<p>")[0],m=t.each;f.style.cssText="background-color:rgba(1,1,1,.5)",p.rgba=f.style.backgroundColor.indexOf("rgba")>-1,m(d,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(a,s,l,c){if(a===i)return this._rgba=[null,null,null,null],this;(a.jquery||a.nodeType)&&(a=t(a).css(s),s=i);var h=this,p=t.type(a),f=this._rgba=[];return s!==i&&(a=[a,s,l,c],p="array"),"string"===p?this.parse(o(a)||r._default):"array"===p?(m(d.rgba.props,function(e,t){f[t.idx]=n(a[t.idx],t)}),this):"object"===p?(a instanceof u?m(d,function(e,t){a[t.cache]&&(h[t.cache]=a[t.cache].slice())}):m(d,function(t,i){var o=i.cache;m(i.props,function(e,t){if(!h[o]&&i.to){if("alpha"===e||null==a[e])return;h[o]=i.to(h._rgba)}h[o][t.idx]=n(a[e],t,!0)}),h[o]&&e.inArray(null,h[o].slice(0,3))<0&&(h[o][3]=1,i.from&&(h._rgba=i.from(h[o])))}),this):void 0},is:function(e){var t=u(e),i=!0,n=this;return m(d,function(e,o){var a,r=t[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],m(o.props,function(e,t){return null!=r[t.idx]?i=r[t.idx]===a[t.idx]:void 0})),i}),i},_space:function(){var e=[],t=this;return m(d,function(i,n){t[n.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var i=u(e),o=i._space(),a=d[o],r=0===this.alpha()?u("transparent"):this,s=r[a.cache]||a.to(r._rgba),l=s.slice();return i=i[a.cache],m(a.props,function(e,o){var a=o.idx,r=s[a],c=i[a],u=h[o.type]||{};null!==c&&(null===r?l[a]=c:(u.mod&&(c-r>u.mod/2?r+=u.mod:r-c>u.mod/2&&(r-=u.mod)),l[a]=n((c-r)*t+r,o)))}),this[o](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=u(e)._rgba;return u(t.map(i,function(e,t){return(1-n)*o[t]+n*e}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,d.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,o=e[1]/255,a=e[2]/255,r=e[3],s=Math.max(n,o,a),l=Math.min(n,o,a),c=s-l,u=s+l,d=.5*u;return t=l===s?0:n===s?60*(o-a)/c+360:o===s?60*(a-n)/c+120:60*(n-o)/c+240,i=0===d||1===d?d:.5>=d?c/u:c/(2-u),[Math.round(t)%360,i,d,null==r?1:r]},d.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],o=e[3],r=.5>=n?n*(1+i):n+i-n*i,s=2*n-r;return[Math.round(255*a(s,r,t+1/3)),Math.round(255*a(s,r,t)),Math.round(255*a(s,r,t-1/3)),o]},m(d,function(e,o){var a=o.props,r=o.cache,s=o.to,c=o.from;u.fn[e]=function(e){if(s&&!this[r]&&(this[r]=s(this._rgba)),e===i)return this[r].slice();var o,l=t.type(e),d="array"===l||"object"===l?e:arguments,h=this[r].slice();return m(a,function(e,t){var i=d["object"===l?e:t.idx];null==i&&(i=h[t.idx]),h[t.idx]=n(i,t)}),c?(o=u(c(h)),o[r]=h,o):u(h)},m(a,function(i,n){u.fn[i]||(u.fn[i]=function(o){var a,r=t.type(o),s="alpha"===i?this._hsla?"hsla":"rgba":e,c=this[s](),u=c[n.idx];return"undefined"===r?u:("function"===r&&(o=o.call(this,u),r=t.type(o)),null==o&&n.empty?this:("string"===r&&(a=l.exec(o),a&&(o=u+parseFloat(a[2])*("+"===a[1]?1:-1))),c[n.idx]=o,this[s](c)))})})}),m(s,function(e,i){t.cssHooks[i]={set:function(e,n){var a,r,s="";if("string"!==t.type(n)||(a=o(n))){if(n=u(a||n),!p.rgba&&1!==n._rgba[3]){for(r="backgroundColor"===i?e.parentNode:e;(""===s||"transparent"===s)&&r&&r.style;)try{s=t.css(r,"backgroundColor"),r=r.parentNode}catch(l){}n=n.blend(s&&"transparent"!==s?s:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(c){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=u(e.elem,i),e.end=u(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}}),t.cssHooks.borderColor={expand:function(e){var t={};return m(["Top","Right","Bottom","Left"],function(i,n){t["border"+n+"Color"]=e}),t}},r=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(){var t,i,n=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)t=n[i],"string"==typeof n[t]&&(o[e.camelCase(t)]=n[t]);else for(t in n)"string"==typeof n[t]&&(o[t]=n[t]);return o}function n(t,i){var n,o,r={};for(n in i)o=i[n],t[n]!==o&&(a[n]||(e.fx.step[n]||!isNaN(parseFloat(o)))&&(r[n]=o));return r}var o=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(jQuery.style(e.elem,i,e.end),e.setAttr=!0)}}),e.effects.animateClass=function(t,a,r,s){var l=e.speed(a,r,s);return this.queue(function(){var a,r=e(this),s=r.attr("class")||"",c=l.children?r.find("*").andSelf():r;c=c.map(function(){var t=e(this);return{el:t,start:i.call(this)}}),a=function(){e.each(o,function(e,i){t[i]&&r[i+"Class"](t[i])})},a(),c=c.map(function(){return this.end=i.call(this.el[0]),this.diff=n(this.start,this.end),this}),r.attr("class",s),c=c.map(function(){var t=this,i=e.Deferred(),n=jQuery.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()}),e.when.apply(e,c.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),l.complete.call(r[0])})})},e.fn.extend({_addClass:e.fn.addClass,addClass:function(t,i,n,o){return i?e.effects.animateClass.call(this,{add:t},i,n,o):this._addClass(t)},_removeClass:e.fn.removeClass,removeClass:function(t,i,n,o){return i?e.effects.animateClass.call(this,{remove:t},i,n,o):this._removeClass(t)},_toggleClass:e.fn.toggleClass,toggleClass:function(i,n,o,a,r){return"boolean"==typeof n||n===t?o?e.effects.animateClass.call(this,n?{add:i}:{remove:i},o,a,r):this._toggleClass(i,n):e.effects.animateClass.call(this,{toggle:i},n,o,a)},switchClass:function(t,i,n,o,a){return e.effects.animateClass.call(this,{add:i,remove:t},n,o,a)}})}(),function(){function o(t,i,n,o){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(o=n,n=i,i={}),e.isFunction(n)&&(o=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=o||i.complete,t}function a(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?!1:i&&e.effects[t]?!1:!0}e.extend(e.effects,{version:"1.9.2",save:function(e,t){for(var i=0;i<t.length;i++)null!==t[i]&&e.data(n+t[i],e[0].style[t[i]])},restore:function(e,i){var o,a;for(a=0;a<i.length;a++)null!==i[a]&&(o=e.data(n+i[a]),o===t&&(o=""),e.css(i[a],o))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(r){a=document.body}return t.wrap(n),(t[0]===a||e.contains(t[0],a))&&e(a).focus(),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(o),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).focus()),t},setTransition:function(t,i,n,o){return o=o||{},e.each(i,function(e,i){var a=t.cssUnit(i);a[0]>0&&(o[i]=a[0]*n+a[1])}),o}}),e.fn.extend({effect:function(){function t(t){function i(){e.isFunction(a)&&a.call(o[0]),e.isFunction(t)&&t()}var o=e(this),a=n.complete,r=n.mode;(o.is(":hidden")?"hide"===r:"show"===r)?i():s.call(o[0],n,i)}var n=o.apply(this,arguments),a=n.mode,r=n.queue,s=e.effects.effect[n.effect],l=!s&&i&&e.effects[n.effect];return e.fx.off||!s&&!l?a?this[a](n.duration,n.complete):this.each(function(){n.complete&&n.complete.call(this)}):s?r===!1?this.each(t):this.queue(r||"fx",t):l.call(this,{options:n,duration:n.duration,callback:n.complete,mode:n.mode})},_show:e.fn.show,show:function(e){if(a(e))return this._show.apply(this,arguments);var t=o.apply(this,arguments);return t.mode="show",this.effect.call(this,t)},_hide:e.fn.hide,hide:function(e){if(a(e))return this._hide.apply(this,arguments);var t=o.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(a(t)||"boolean"==typeof t||e.isFunction(t))return this.__toggle.apply(this,arguments);var i=o.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)},cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])}),n}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}()}(jQuery),function(e){var t=0,i={},n={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="show",e.widget("ui.accordion",{version:"1.9.2",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var i=this.accordionId="ui-accordion-"+(this.element.attr("id")||++t),n=this.options;this.prevShow=this.prevHide=e(),this.element.addClass("ui-accordion ui-widget ui-helper-reset"),this.headers=this.element.find(n.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this._hoverable(this.headers),this._focusable(this.headers),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),n.collapsible||n.active!==!1&&null!=n.active||(n.active=0),n.active<0&&(n.active+=this.headers.length),this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top"),this.active.next().addClass("ui-accordion-content-active").show(),this._createIcons(),this.refresh(),this.element.attr("role","tablist"),this.headers.attr("role","tab").each(function(t){var n=e(this),o=n.attr("id"),a=n.next(),r=a.attr("id");o||(o=i+"-header-"+t,n.attr("id",o)),r||(r=i+"-panel-"+t,a.attr("id",r)),n.attr("aria-controls",r),a.attr("aria-labelledby",o)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._on(this.headers,{keydown:"_keydown"}),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._setupEvents(n.event)},_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():e()}},_createIcons:function(){var t=this.options.icons;t&&(e("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||this.options.active!==!1||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons()),"disabled"===e&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t),void 0)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCode,n=this.headers.length,o=this.headers.index(t.target),a=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(o+1)%n];break;case i.LEFT:case i.UP:a=this.headers[(o-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[n-1]}a&&(e(t.target).attr("tabIndex",-1),e(a).attr("tabIndex",0),a.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().focus()},refresh:function(){var t,i,n=this.options.heightStyle,o=this.element.parent();"fill"===n?(e.support.minHeight||(i=o.css("overflow"),o.css("overflow","hidden")),t=o.height(),this.element.siblings(":visible").each(function(){var i=e(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(t-=i.outerHeight(!0))}),i&&o.css("overflow",i),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===n&&(t=0,this.headers.next().each(function(){t=Math.max(t,e(this).css("height","").height())}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={};t&&(e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._on(this.headers,i))},_eventHandler:function(t){var i=this.options,n=this.active,o=e(t.currentTarget),a=o[0]===n[0],r=a&&i.collapsible,s=r?e():o.next(),l=n.next(),c={oldHeader:n,oldPanel:l,newHeader:r?e():o,newPanel:s};t.preventDefault(),a&&!i.collapsible||this._trigger("beforeActivate",t,c)===!1||(i.active=r?!1:this.headers.index(o),this.active=a?e():o,this._toggle(c),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),a||(o.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&o.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),o.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var i=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,t):(n.hide(),i.show(),this._toggleComplete(t)),n.attr({"aria-expanded":"false","aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(e,t,o){var a,r,s,l=this,c=0,u=e.length&&(!t.length||e.index()<t.index()),d=this.options.animate||{},h=u&&d.down||d,p=function(){l._toggleComplete(o)};return"number"==typeof h&&(s=h),"string"==typeof h&&(r=h),r=r||h.easing||d.easing,s=s||h.duration||d.duration,t.length?e.length?(a=e.show().outerHeight(),t.animate(i,{duration:s,easing:r,step:function(e,t){t.now=Math.round(e)}}),e.hide().animate(n,{duration:s,easing:r,complete:p,step:function(e,i){i.now=Math.round(e),"height"!==i.prop?c+=i.now:"content"!==l.options.heightStyle&&(i.now=Math.round(a-t.outerHeight()-c),c=0)}}),void 0):t.animate(i,s,r,p):e.animate(n,s,r,p)},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.uiBackCompat!==!1&&(!function(e,t){e.extend(t.options,{navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}});var i=t._create;t._create=function(){if(this.options.navigation){var t=this,n=this.element.find(this.options.header),o=n.next(),a=n.add(o).find("a").filter(this.options.navigationFilter)[0];a&&n.add(o).each(function(i){return e.contains(this,a)?(t.options.active=Math.floor(i/2),!1):void 0})}i.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options,{heightStyle:null,autoHeight:!0,clearStyle:!1,fillSpace:!1});var i=t._create,n=t._setOption;e.extend(t,{_create:function(){this.options.heightStyle=this.options.heightStyle||this._mergeHeightStyle(),i.call(this)},_setOption:function(e){("autoHeight"===e||"clearStyle"===e||"fillSpace"===e)&&(this.options.heightStyle=this._mergeHeightStyle()),n.apply(this,arguments)},_mergeHeightStyle:function(){var e=this.options;return e.fillSpace?"fill":e.clearStyle?"content":e.autoHeight?"auto":void 0}})}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options.icons,{activeHeader:null,headerSelected:"ui-icon-triangle-1-s"});var i=t._createIcons;t._createIcons=function(){this.options.icons&&(this.options.icons.activeHeader=this.options.icons.activeHeader||this.options.icons.headerSelected),i.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){t.activate=t._activate;var i=t._findActive;t._findActive=function(e){return-1===e&&(e=!1),e&&"number"!=typeof e&&(e=this.headers.index(this.headers.filter(e)),-1===e&&(e=!1)),i.call(this,e)}}(jQuery,jQuery.ui.accordion.prototype),jQuery.ui.accordion.prototype.resize=jQuery.ui.accordion.prototype.refresh,function(e,t){e.extend(t.options,{change:null,changestart:null});var i=t._trigger;t._trigger=function(e,t,n){var o=i.apply(this,arguments);return o?("beforeActivate"===e?o=i.call(this,"changestart",t,{oldHeader:n.oldHeader,oldContent:n.oldPanel,newHeader:n.newHeader,newContent:n.newPanel}):"activate"===e&&(o=i.call(this,"change",t,{oldHeader:n.oldHeader,oldContent:n.oldPanel,newHeader:n.newHeader,newContent:n.newPanel})),o):!1}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options,{animate:null,animated:"slide"});var i=t._create;t._create=function(){var e=this.options;null===e.animate&&(e.animate=e.animated?"slide"===e.animated?300:"bounceslide"===e.animated?{duration:200,down:{easing:"easeOutBounce",duration:1e3}}:e.animated:!1),i.call(this)}}(jQuery,jQuery.ui.accordion.prototype))}(jQuery),function(e){var t=0;e.widget("ui.autocomplete",{version:"1.9.2",defaultElement:"<input>",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,i,n;this.isMultiLine=this._isMultiLine(),this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return t=!0,n=!0,i=!0,void 0;t=!1,n=!1,i=!1;var a=e.ui.keyCode;switch(o.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",o);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",o);break;case a.UP:t=!0,this._keyEvent("previous",o);break;case a.DOWN:t=!0,this._keyEvent("next",o);break;case a.ENTER:case a.NUMPAD_ENTER:this.menu.active&&(t=!0,o.preventDefault(),this.menu.select(o));break;case a.TAB:this.menu.active&&this.menu.select(o);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(o),o.preventDefault());break;default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(t)return t=!1,n.preventDefault(),void 0;if(!i){var o=e.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n);break;case o.PAGE_DOWN:this._move("nextPage",n);break;case o.UP:this._keyEvent("previous",n);break;case o.DOWN:this._keyEvent("next",n)}}},input:function(e){return n?(n=!1,e.preventDefault(),void 0):(this._searchTimeout(e),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(e),this._change(e),void 0)}}),this._initSource(),this.menu=e("<ul>").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:e(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(n){n.target===t.element[0]||n.target===i||e.contains(i,n.target)||t.close()})})},menufocus:function(t,i){if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)}),void 0;var n=i.item.data("ui-autocomplete-item")||i.item.data("item.autocomplete");!1!==this._trigger("focus",t,{item:n})?t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item")||t.item.data("item.autocomplete"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element),e.fn.bgiframe&&this.menu.element.bgiframe(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this.document.find(t||"body")[0]),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){return this.element.is("textarea")?!0:this.element.is("input")?!1:this.element.prop("isContentEditable")},_initSource:function(){var t,i,n=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(i,n){n(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,o){n.xhr&&n.xhr.abort(),n.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){o(e)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):this._trigger("search",t)!==!1?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=this,i=++t;return function(n){i===t&&e.__response(n),e.pending--,e.pending||e.element.removeClass("ui-autocomplete-loading")}},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({label:t.label||t.value,value:t.value||t.label},t)})},_suggest:function(t){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,t),this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var n=this;e.each(i,function(e,i){n._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<a>").text(i.label)).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this._value(this.term),this.menu.blur(),void 0):(this.menu[e](t),void 0):(this.search(null,t),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var n=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return n.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.text(t))}})}(jQuery),function(e){var t,i,n,o,a="ui-button ui-widget ui-state-default ui-corner-all",r="ui-state-hover ui-state-active ",s="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",l=function(){var t=e(this).find(":ui-button");setTimeout(function(){t.button("refresh")},1)},c=function(t){var i=t.name,n=t.form,o=e([]);return i&&(o=n?e(n).find("[name='"+i+"']"):e("[name='"+i+"']",t.ownerDocument).filter(function(){return!this.form})),o};e.widget("ui.button",{version:"1.9.2",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,l),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var r=this,s=this.options,u="checkbox"===this.type||"radio"===this.type,d=u?"":"ui-state-active",h="ui-state-focus";null===s.label&&(s.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(a).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){s.disabled||this===t&&e(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){s.disabled||e(this).removeClass(d)}).bind("click"+this.eventNamespace,function(e){s.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){r.buttonElement.addClass(h)}).bind("blur"+this.eventNamespace,function(){r.buttonElement.removeClass(h)}),u&&(this.element.bind("change"+this.eventNamespace,function(){o||r.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(e){s.disabled||(o=!1,i=e.pageX,n=e.pageY)}).bind("mouseup"+this.eventNamespace,function(e){s.disabled||(i!==e.pageX||n!==e.pageY)&&(o=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return s.disabled||o?!1:(e(this).toggleClass("ui-state-active"),r.buttonElement.attr("aria-pressed",r.element[0].checked),void 0)}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(s.disabled||o)return!1;
|
39
|
+
e(this).addClass("ui-state-active"),r.buttonElement.attr("aria-pressed","true");var t=r.element[0];c(t).not(t).map(function(){return e(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return s.disabled?!1:(e(this).addClass("ui-state-active"),t=this,r.document.one("mouseup",function(){t=null}),void 0)}).bind("mouseup"+this.eventNamespace,function(){return s.disabled?!1:(e(this).removeClass("ui-state-active"),void 0)}).bind("keydown"+this.eventNamespace,function(t){return s.disabled?!1:((t.keyCode===e.ui.keyCode.SPACE||t.keyCode===e.ui.keyCode.ENTER)&&e(this).addClass("ui-state-active"),void 0)}).bind("keyup"+this.eventNamespace,function(){e(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t){t.keyCode===e.ui.keyCode.SPACE&&e(this).click()})),this._setOption("disabled",s.disabled),this._resetButton()},_determineButtonType:function(){var e,t,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(e=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=e.find(t),this.buttonElement.length||(e=e.length?e.siblings():this.element.siblings(),this.buttonElement=e.filter(t),this.buttonElement.length||(this.buttonElement=e.find(t))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(a+" "+r+" "+s).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(e,t){return this._super(e,t),"disabled"===e?(t?this.element.prop("disabled",!0):this.element.prop("disabled",!1),void 0):(this._resetButton(),void 0)},refresh:function(){var t=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("disabled",t),"radio"===this.type?c(this.element[0]).each(function(){e(this).is(":checked")?e(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):e(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return this.options.label&&this.element.val(this.options.label),void 0;var t=this.buttonElement.removeClass(s),i=e("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(t.empty()).text(),n=this.options.icons,o=n.primary&&n.secondary,a=[];n.primary||n.secondary?(this.options.text&&a.push("ui-button-text-icon"+(o?"s":n.primary?"-primary":"-secondary")),n.primary&&t.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>"),n.secondary&&t.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>"),this.options.text||(a.push(o?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||t.attr("title",e.trim(i)))):a.push("ui-button-text-only"),t.addClass(a.join(" "))}}),e.widget("ui.buttonset",{version:"1.9.2",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,t){"disabled"===e&&this.buttons.button("option",e,t),this._super(e,t)},refresh:function(){var t="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(t,"mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).removeClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).removeClass("ui-datepicker-next-hover")}).delegate(t,"mouseover",function(){$.datepicker._isDisabledDatepicker(instActive.inline?e.parent()[0]:instActive.input[0])||($(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).addClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).addClass("ui-datepicker-next-hover"))})}function extendRemove(e,t){$.extend(e,t);for(var i in t)(null==t[i]||t[i]==undefined)&&(e[i]=t[i]);return e}$.extend($.ui,{datepicker:{version:"1.9.2"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(e,t){var i=e[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:i,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(e,t){var i=$(e);t.append=$([]),t.trigger=$([]),i.hasClass(this.markerClassName)||(this._attachments(i,t),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,i,n){t.settings[i]=n}).bind("getData.datepicker",function(e,i){return this._get(t,i)}),this._autoSize(t),$.data(e,PROP_NAME,t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var i=this._get(t,"appendText"),n=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=$('<span class="'+this._appendClass+'">'+i+"</span>"),e[n?"before":"after"](t.append)),e.unbind("focus",this._showDatepicker),t.trigger&&t.trigger.remove();var o=this._get(t,"showOn");if(("focus"==o||"both"==o)&&e.focus(this._showDatepicker),"button"==o||"both"==o){var a=this._get(t,"buttonText"),r=this._get(t,"buttonImage");t.trigger=$(this._get(t,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:r,alt:a,title:a}):$('<button type="button"></button>').addClass(this._triggerClass).html(""==r?a:$("<img/>").attr({src:r,alt:a,title:a}))),e[n?"before":"after"](t.trigger),t.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==e[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=e[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(e[0])):$.datepicker._showDatepicker(e[0]),!1})}},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t=new Date(2009,11,20),i=this._get(e,"dateFormat");if(i.match(/[DM]/)){var n=function(e){for(var t=0,i=0,n=0;n<e.length;n++)e[n].length>t&&(t=e[n].length,i=n);return i};t.setMonth(n(this._get(e,i.match(/MM/)?"monthNames":"monthNamesShort"))),t.setDate(n(this._get(e,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-t.getDay())}e.input.attr("size",this._formatDate(e,t).length)}},_inlineDatepicker:function(e,t){var i=$(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(t.dpDiv).bind("setData.datepicker",function(e,i,n){t.settings[i]=n}).bind("getData.datepicker",function(e,i){return this._get(t,i)}),$.data(e,PROP_NAME,t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,i,n,o){var a=this._dialogInst;if(!a){this.uuid+=1;var r="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+r+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),a=this._dialogInst=this._newInst(this._dialogInput,!1),a.settings={},$.data(this._dialogInput[0],PROP_NAME,a)}if(extendRemove(a.settings,n||{}),t=t&&t.constructor==Date?this._formatDate(a,t):t,this._dialogInput.val(t),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,!this._pos){var s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[s/2-100+c,l/2-150+u]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,a),this},_destroyDatepicker:function(e){var t=$(e),i=$.data(e,PROP_NAME);if(t.hasClass(this.markerClassName)){var n=e.nodeName.toLowerCase();$.removeData(e,PROP_NAME),"input"==n?(i.append.remove(),i.trigger.remove(),t.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"==n||"span"==n)&&t.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(e){var t=$(e),i=$.data(e,PROP_NAME);if(t.hasClass(this.markerClassName)){var n=e.nodeName.toLowerCase();if("input"==n)e.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==n||"span"==n){var o=t.children("."+this._inlineClass);o.children().removeClass("ui-state-disabled"),o.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)}this._disabledInputs=$.map(this._disabledInputs,function(t){return t==e?null:t})}},_disableDatepicker:function(e){var t=$(e),i=$.data(e,PROP_NAME);if(t.hasClass(this.markerClassName)){var n=e.nodeName.toLowerCase();if("input"==n)e.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==n||"span"==n){var o=t.children("."+this._inlineClass);o.children().addClass("ui-state-disabled"),o.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)}this._disabledInputs=$.map(this._disabledInputs,function(t){return t==e?null:t}),this._disabledInputs[this._disabledInputs.length]=e}},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]==e)return!0;return!1},_getInst:function(e){try{return $.data(e,PROP_NAME)}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,i){var n=this._getInst(e);if(2==arguments.length&&"string"==typeof t)return"defaults"==t?$.extend({},$.datepicker._defaults):n?"all"==t?$.extend({},n.settings):this._get(n,t):null;var o=t||{};if("string"==typeof t&&(o={},o[t]=i),n){this._curInst==n&&this._hideDatepicker();var a=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(n,"min"),s=this._getMinMaxDate(n,"max");extendRemove(n.settings,o),null!==r&&o.dateFormat!==undefined&&o.minDate===undefined&&(n.settings.minDate=this._formatDate(n,r)),null!==s&&o.dateFormat!==undefined&&o.maxDate===undefined&&(n.settings.maxDate=this._formatDate(n,s)),this._attachments($(e),n),this._autoSize(n),this._setDate(n,a),this._updateAlternate(n),this._updateDatepicker(n)}},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(e){var t=$.datepicker._getInst(e.target),i=!0,n=t.dpDiv.is(".ui-datepicker-rtl");if(t._keyEvent=!0,$.datepicker._datepickerShowing)switch(e.keyCode){case 9:$.datepicker._hideDatepicker(),i=!1;break;case 13:var o=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",t.dpDiv);o[0]&&$.datepicker._selectDay(e.target,t.selectedMonth,t.selectedYear,o[0]);var a=$.datepicker._get(t,"onSelect");if(a){var r=$.datepicker._formatDate(t);a.apply(t.input?t.input[0]:null,[r,t])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(t,"stepBigMonths"):-$.datepicker._get(t,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(t,"stepBigMonths"):+$.datepicker._get(t,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&$.datepicker._clearDate(e.target),i=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&$.datepicker._gotoToday(e.target),i=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,n?1:-1,"D"),i=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(t,"stepBigMonths"):-$.datepicker._get(t,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,-7,"D"),i=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,n?-1:1,"D"),i=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(t,"stepBigMonths"):+$.datepicker._get(t,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,7,"D"),i=e.ctrlKey||e.metaKey;break;default:i=!1}else 36==e.keyCode&&e.ctrlKey?$.datepicker._showDatepicker(this):i=!1;i&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t=$.datepicker._getInst(e.target);if($.datepicker._get(t,"constrainInput")){var i=$.datepicker._possibleChars($.datepicker._get(t,"dateFormat")),n=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return e.ctrlKey||e.metaKey||" ">n||!i||i.indexOf(n)>-1}},_doKeyUp:function(e){var t=$.datepicker._getInst(e.target);if(t.input.val()!=t.lastVal)try{var i=$.datepicker.parseDate($.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,$.datepicker._getFormatConfig(t));i&&($.datepicker._setDateFromField(t),$.datepicker._updateAlternate(t),$.datepicker._updateDatepicker(t))}catch(n){$.datepicker.log(n)}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!=e.nodeName.toLowerCase()&&(e=$("input",e.parentNode)[0]),!$.datepicker._isDisabledDatepicker(e)&&$.datepicker._lastInput!=e){var t=$.datepicker._getInst(e);$.datepicker._curInst&&$.datepicker._curInst!=t&&($.datepicker._curInst.dpDiv.stop(!0,!0),t&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var i=$.datepicker._get(t,"beforeShow"),n=i?i.apply(e,[e,t]):{};if(n!==!1){extendRemove(t.settings,n),t.lastVal=null,$.datepicker._lastInput=e,$.datepicker._setDateFromField(t),$.datepicker._inDialog&&(e.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(e),$.datepicker._pos[1]+=e.offsetHeight);var o=!1;$(e).parents().each(function(){return o|="fixed"==$(this).css("position"),!o});var a={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(t),a=$.datepicker._checkOffset(t,a,o),t.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),!t.inline){var r=$.datepicker._get(t,"showAnim"),s=$.datepicker._get(t,"duration"),l=function(){var e=t.dpDiv.find("iframe.ui-datepicker-cover");if(e.length){var i=$.datepicker._getBorders(t.dpDiv);e.css({left:-i[0],top:-i[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()})}};t.dpDiv.zIndex($(e).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&($.effects.effect[r]||$.effects[r])?t.dpDiv.show(r,$.datepicker._get(t,"showOptions"),s,l):t.dpDiv[r||"show"](r?s:null,l),r&&s||l(),t.input.is(":visible")&&!t.input.is(":disabled")&&t.input.focus(),$.datepicker._curInst=t}}}},_updateDatepicker:function(e){this.maxRows=4;var t=$.datepicker._getBorders(e.dpDiv);instActive=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i=e.dpDiv.find("iframe.ui-datepicker-cover");i.length&&i.css({left:-t[0],top:-t[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()}),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var n=this._getNumberOfMonths(e),o=n[1],a=17;if(e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&e.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",a*o+"em"),e.dpDiv[(1!=n[0]||1!=n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e==$.datepicker._curInst&&$.datepicker._datepickerShowing&&e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&e.input[0]!=document.activeElement&&e.input.focus(),e.yearshtml){var r=e.yearshtml;setTimeout(function(){r===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),r=e.yearshtml=null},0)}},_getBorders:function(e){var t=function(e){return{thin:1,medium:2,thick:3}[e]||e};return[parseFloat(t(e.css("border-left-width"))),parseFloat(t(e.css("border-top-width")))]},_checkOffset:function(e,t,i){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,s=document.documentElement.clientWidth+(i?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:$(document).scrollTop());return t.left-=this._get(e,"isRTL")?n-a:0,t.left-=i&&t.left==e.input.offset().left?$(document).scrollLeft():0,t.top-=i&&t.top==e.input.offset().top+r?$(document).scrollTop():0,t.left-=Math.min(t.left,t.left+n>s&&s>n?Math.abs(t.left+n-s):0),t.top-=Math.min(t.top,t.top+o>l&&l>o?Math.abs(o+r):0),t},_findPos:function(e){for(var t=this._getInst(e),i=this._get(t,"isRTL");e&&("hidden"==e.type||1!=e.nodeType||$.expr.filters.hidden(e));)e=e[i?"previousSibling":"nextSibling"];var n=$(e).offset();return[n.left,n.top]},_hideDatepicker:function(e){var t=this._curInst;if(t&&(!e||t==$.data(e,PROP_NAME))&&this._datepickerShowing){var i=this._get(t,"showAnim"),n=this._get(t,"duration"),o=function(){$.datepicker._tidyDialog(t)};$.effects&&($.effects.effect[i]||$.effects[i])?t.dpDiv.hide(i,$.datepicker._get(t,"showOptions"),n,o):t.dpDiv["slideDown"==i?"slideUp":"fadeIn"==i?"fadeOut":"hide"](i?n:null,o),i||o(),this._datepickerShowing=!1;var a=this._get(t,"onClose");a&&a.apply(t.input?t.input[0]:null,[t.input?t.input.val():"",t]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if($.datepicker._curInst){var t=$(e.target),i=$.datepicker._getInst(t[0]);(t[0].id!=$.datepicker._mainDivId&&0==t.parents("#"+$.datepicker._mainDivId).length&&!t.hasClass($.datepicker.markerClassName)&&!t.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||t.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=i)&&$.datepicker._hideDatepicker()}},_adjustDate:function(e,t,i){var n=$(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,t+("M"==i?this._get(o,"showCurrentAtPos"):0),i),this._updateDatepicker(o))},_gotoToday:function(e){var t=$(e),i=this._getInst(t[0]);if(this._get(i,"gotoCurrent")&&i.currentDay)i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear;else{var n=new Date;i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()}this._notifyChange(i),this._adjustDate(t)},_selectMonthYear:function(e,t,i){var n=$(e),o=this._getInst(n[0]);o["selected"+("M"==i?"Month":"Year")]=o["draw"+("M"==i?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,t,i,n){var o=$(e);if(!$(n).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(o[0])){var a=this._getInst(o[0]);a.selectedDay=a.currentDay=$("a",n).html(),a.selectedMonth=a.currentMonth=t,a.selectedYear=a.currentYear=i,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear))}},_clearDate:function(e){{var t=$(e);this._getInst(t[0])}this._selectDate(t,"")},_selectDate:function(e,t){var i=$(e),n=this._getInst(i[0]);t=null!=t?t:this._formatDate(n),n.input&&n.input.val(t),this._updateAlternate(n);var o=this._get(n,"onSelect");o?o.apply(n.input?n.input[0]:null,[t,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var t=this._get(e,"altField");if(t){var i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),o=this.formatDate(i,n,this._getFormatConfig(e));$(t).each(function(){$(this).val(o)})}},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t=new Date(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));var i=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(e,t,i){if(null==e||null==t)throw"Invalid arguments";if(t="object"==typeof t?t.toString():t+"",""==t)return null;var n=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff;n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10);for(var o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,s=(i?i.monthNames:null)||this._defaults.monthNames,l=-1,c=-1,u=-1,d=-1,h=!1,p=function(t){var i=b+1<e.length&&e.charAt(b+1)==t;return i&&b++,i},f=function(e){var i=p(e),n="@"==e?14:"!"==e?20:"y"==e&&i?4:"o"==e?3:2,o=new RegExp("^\\d{1,"+n+"}"),a=t.substring(v).match(o);if(!a)throw"Missing number at position "+v;return v+=a[0].length,parseInt(a[0],10)},m=function(e,i,n){var o=$.map(p(e)?n:i,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)}),a=-1;if($.each(o,function(e,i){var n=i[1];return t.substr(v,n.length).toLowerCase()==n.toLowerCase()?(a=i[0],v+=n.length,!1):void 0}),-1!=a)return a+1;throw"Unknown name at position "+v},g=function(){if(t.charAt(v)!=e.charAt(b))throw"Unexpected literal at position "+v;v++},v=0,b=0;b<e.length;b++)if(h)"'"!=e.charAt(b)||p("'")?g():h=!1;else switch(e.charAt(b)){case"d":u=f("d");break;case"D":m("D",o,a);break;case"o":d=f("o");break;case"m":c=f("m");break;case"M":c=m("M",r,s);break;case"y":l=f("y");break;case"@":var y=new Date(f("@"));l=y.getFullYear(),c=y.getMonth()+1,u=y.getDate();break;case"!":var y=new Date((f("!")-this._ticksTo1970)/1e4);l=y.getFullYear(),c=y.getMonth()+1,u=y.getDate();break;case"'":p("'")?g():h=!0;break;default:g()}if(v<t.length){var _=t.substr(v);if(!/^\s+/.test(_))throw"Extra/unparsed characters found in date: "+_}if(-1==l?l=(new Date).getFullYear():100>l&&(l+=(new Date).getFullYear()-(new Date).getFullYear()%100+(n>=l?0:-100)),d>-1)for(c=1,u=d;;){var w=this._getDaysInMonth(l,c-1);if(w>=u)break;c++,u-=w}var y=this._daylightSavingAdjust(new Date(l,c-1,u));if(y.getFullYear()!=l||y.getMonth()+1!=c||y.getDate()!=u)throw"Invalid date";return y},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";var n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,s=function(t){var i=h+1<e.length&&e.charAt(h+1)==t;return i&&h++,i},l=function(e,t,i){var n=""+t;if(s(e))for(;n.length<i;)n="0"+n;return n},c=function(e,t,i,n){return s(e)?n[t]:i[t]},u="",d=!1;if(t)for(var h=0;h<e.length;h++)if(d)"'"!=e.charAt(h)||s("'")?u+=e.charAt(h):d=!1;else switch(e.charAt(h)){case"d":u+=l("d",t.getDate(),2);break;case"D":u+=c("D",t.getDay(),n,o);break;case"o":u+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=l("m",t.getMonth()+1,2);break;case"M":u+=c("M",t.getMonth(),a,r);break;case"y":u+=s("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":s("'")?u+="'":d=!0;break;default:u+=e.charAt(h)}return u},_possibleChars:function(e){for(var t="",i=!1,n=function(t){var i=o+1<e.length&&e.charAt(o+1)==t;return i&&o++,i},o=0;o<e.length;o++)if(i)"'"!=e.charAt(o)||n("'")?t+=e.charAt(o):i=!1;else switch(e.charAt(o)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":n("'")?t+="'":i=!0;break;default:t+=e.charAt(o)}return t},_get:function(e,t){return e.settings[t]!==undefined?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!=e.lastVal){var i,n,o=this._get(e,"dateFormat"),a=e.lastVal=e.input?e.input.val():null;i=n=this._getDefaultDate(e);var r=this._getFormatConfig(e);try{i=this.parseDate(o,a,r)||n}catch(s){this.log(s),a=t?"":a}e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),e.currentDay=a?i.getDate():0,e.currentMonth=a?i.getMonth():0,e.currentYear=a?i.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(e,t,i){var n=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},o=function(t){try{return $.datepicker.parseDate($.datepicker._get(e,"dateFormat"),t,$.datepicker._getFormatConfig(e))}catch(i){}for(var n=(t.toLowerCase().match(/^c/)?$.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),a=n.getMonth(),r=n.getDate(),s=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(t);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(o,a))}l=s.exec(t)}return new Date(o,a,r)},a=null==t||""===t?i:"string"==typeof t?o(t):"number"==typeof t?isNaN(t)?i:n(t):new Date(t.getTime());return a=a&&"Invalid Date"==a.toString()?i:a,a&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,o=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),o==e.selectedMonth&&a==e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""==e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,-t,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,+t,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(i)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t=new Date;t=this._daylightSavingAdjust(new Date(t.getFullYear(),t.getMonth(),t.getDate()));var i=this._get(e,"isRTL"),n=this._get(e,"showButtonPanel"),o=this._get(e,"hideIfNoPrevNext"),a=this._get(e,"navigationAsDateFormat"),r=this._getNumberOfMonths(e),s=this._get(e,"showCurrentAtPos"),l=this._get(e,"stepMonths"),c=1!=r[0]||1!=r[1],u=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),d=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max"),p=e.drawMonth-s,f=e.drawYear;if(0>p&&(p+=12,f--),h){var m=this._daylightSavingAdjust(new Date(h.getFullYear(),h.getMonth()-r[0]*r[1]+1,h.getDate()));
|
40
|
+
for(m=d&&d>m?d:m;this._daylightSavingAdjust(new Date(f,p,1))>m;)p--,0>p&&(p=11,f--)}e.drawMonth=p,e.drawYear=f;var g=this._get(e,"prevText");g=a?this.formatDate(g,this._daylightSavingAdjust(new Date(f,p-l,1)),this._getFormatConfig(e)):g;var v=this._canAdjustMonth(e,-1,f,p)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+g+"</span></a>":o?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+g+"</span></a>",b=this._get(e,"nextText");b=a?this.formatDate(b,this._daylightSavingAdjust(new Date(f,p+l,1)),this._getFormatConfig(e)):b;var y=this._canAdjustMonth(e,1,f,p)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+b+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+b+"</span></a>":o?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+b+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+b+"</span></a>",_=this._get(e,"currentText"),w=this._get(e,"gotoCurrent")&&e.currentDay?u:t;_=a?this.formatDate(_,w,this._getFormatConfig(e)):_;var x=e.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(e,"closeText")+"</button>",C=n?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?x:"")+(this._isInRange(e,w)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+_+"</button>":"")+(i?"":x)+"</div>":"",k=parseInt(this._get(e,"firstDay"),10);k=isNaN(k)?0:k;for(var T=this._get(e,"showWeek"),D=this._get(e,"dayNames"),S=(this._get(e,"dayNamesShort"),this._get(e,"dayNamesMin")),E=this._get(e,"monthNames"),N=this._get(e,"monthNamesShort"),A=this._get(e,"beforeShowDay"),P=this._get(e,"showOtherMonths"),M=this._get(e,"selectOtherMonths"),I=(this._get(e,"calculateWeek")||this.iso8601Week,this._getDefaultDate(e)),H="",B=0;B<r[0];B++){var O="";this.maxRows=4;for(var R=0;R<r[1];R++){var L=this._daylightSavingAdjust(new Date(f,p,e.selectedDay)),j=" ui-corner-all",F="";if(c){if(F+='<div class="ui-datepicker-group',r[1]>1)switch(R){case 0:F+=" ui-datepicker-group-first",j=" ui-corner-"+(i?"right":"left");break;case r[1]-1:F+=" ui-datepicker-group-last",j=" ui-corner-"+(i?"left":"right");break;default:F+=" ui-datepicker-group-middle",j=""}F+='">'}F+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+j+'">'+(/all|left/.test(j)&&0==B?i?y:v:"")+(/all|right/.test(j)&&0==B?i?v:y:"")+this._generateMonthYearHeader(e,p,f,d,h,B>0||R>0,E,N)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var z=T?'<th class="ui-datepicker-week-col">'+this._get(e,"weekHeader")+"</th>":"",q=0;7>q;q++){var W=(q+k)%7;z+="<th"+((q+k+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+D[W]+'">'+S[W]+"</span></th>"}F+=z+"</tr></thead><tbody>";var U=this._getDaysInMonth(f,p);f==e.selectedYear&&p==e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,U));var V=(this._getFirstDayOfMonth(f,p)-k+7)%7,K=Math.ceil((V+U)/7),Y=c?this.maxRows>K?this.maxRows:K:K;this.maxRows=Y;for(var X=this._daylightSavingAdjust(new Date(f,p,1-V)),G=0;Y>G;G++){F+="<tr>";for(var Q=T?'<td class="ui-datepicker-week-col">'+this._get(e,"calculateWeek")(X)+"</td>":"",q=0;7>q;q++){var Z=A?A.apply(e.input?e.input[0]:null,[X]):[!0,""],J=X.getMonth()!=p,et=J&&!M||!Z[0]||d&&d>X||h&&X>h;Q+='<td class="'+((q+k+6)%7>=5?" ui-datepicker-week-end":"")+(J?" ui-datepicker-other-month":"")+(X.getTime()==L.getTime()&&p==e.selectedMonth&&e._keyEvent||I.getTime()==X.getTime()&&I.getTime()==L.getTime()?" "+this._dayOverClass:"")+(et?" "+this._unselectableClass+" ui-state-disabled":"")+(J&&!P?"":" "+Z[1]+(X.getTime()==u.getTime()?" "+this._currentClass:"")+(X.getTime()==t.getTime()?" ui-datepicker-today":""))+'"'+(J&&!P||!Z[2]?"":' title="'+Z[2]+'"')+(et?"":' data-handler="selectDay" data-event="click" data-month="'+X.getMonth()+'" data-year="'+X.getFullYear()+'"')+">"+(J&&!P?" ":et?'<span class="ui-state-default">'+X.getDate()+"</span>":'<a class="ui-state-default'+(X.getTime()==t.getTime()?" ui-state-highlight":"")+(X.getTime()==u.getTime()?" ui-state-active":"")+(J?" ui-priority-secondary":"")+'" href="#">'+X.getDate()+"</a>")+"</td>",X.setDate(X.getDate()+1),X=this._daylightSavingAdjust(X)}F+=Q+"</tr>"}p++,p>11&&(p=0,f++),F+="</tbody></table>"+(c?"</div>"+(r[0]>0&&R==r[1]-1?'<div class="ui-datepicker-row-break"></div>':""):""),O+=F}H+=O}return H+=C+($.ui.ie6&&!e.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),e._keyEvent=!1,H},_generateMonthYearHeader:function(e,t,i,n,o,a,r,s){var l=this._get(e,"changeMonth"),c=this._get(e,"changeYear"),u=this._get(e,"showMonthAfterYear"),d='<div class="ui-datepicker-title">',h="";if(a||!l)h+='<span class="ui-datepicker-month">'+r[t]+"</span>";else{var p=n&&n.getFullYear()==i,f=o&&o.getFullYear()==i;h+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var m=0;12>m;m++)(!p||m>=n.getMonth())&&(!f||m<=o.getMonth())&&(h+='<option value="'+m+'"'+(m==t?' selected="selected"':"")+">"+s[m]+"</option>");h+="</select>"}if(u||(d+=h+(!a&&l&&c?"":" ")),!e.yearshtml)if(e.yearshtml="",a||!c)d+='<span class="ui-datepicker-year">'+i+"</span>";else{var g=this._get(e,"yearRange").split(":"),v=(new Date).getFullYear(),b=function(e){var t=e.match(/c[+-].*/)?i+parseInt(e.substring(1),10):e.match(/[+-].*/)?v+parseInt(e,10):parseInt(e,10);return isNaN(t)?v:t},y=b(g[0]),_=Math.max(y,b(g[1]||""));for(y=n?Math.max(y,n.getFullYear()):y,_=o?Math.min(_,o.getFullYear()):_,e.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';_>=y;y++)e.yearshtml+='<option value="'+y+'"'+(y==i?' selected="selected"':"")+">"+y+"</option>";e.yearshtml+="</select>",d+=e.yearshtml,e.yearshtml=null}return d+=this._get(e,"yearSuffix"),u&&(d+=(!a&&l&&c?"":" ")+h),d+="</div>"},_adjustInstDate:function(e,t,i){var n=e.drawYear+("Y"==i?t:0),o=e.drawMonth+("M"==i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,o))+("D"==i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,o,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"==i||"Y"==i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),o=i&&i>t?i:t;return o=n&&o>n?n:o},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var o=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(0>t?t:o[0]*o[1]),1));return 0>t&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max");return(!i||t.getTime()>=i.getTime())&&(!n||t.getTime()<=n.getTime())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var o=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),o,this._getFormatConfig(e))}}),$.fn.datepicker=function(e){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!=e&&"getDate"!=e&&"widget"!=e?"option"==e&&2==arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this].concat(t)):$.datepicker._attachDatepicker(this,e)}):$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.2",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(e,t){var i="ui-dialog ui-widget ui-widget-content ui-corner-all ",n={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},o={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};e.widget("ui.dialog",{version:"1.9.2",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;0>i&&e(this).css("top",t.top-i)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.options.title=this.options.title||this.originalTitle;var t,n,o,a,r,s=this,l=this.options,c=l.title||" ";t=(this.uiDialog=e("<div>")).addClass(i+l.dialogClass).css({display:"none",outline:0,zIndex:l.zIndex}).attr("tabIndex",-1).keydown(function(t){l.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE&&(s.close(t),t.preventDefault())}).mousedown(function(e){s.moveToTop(!1,e)}).appendTo("body"),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(t),n=(this.uiDialogTitlebar=e("<div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").bind("mousedown",function(){t.focus()}).prependTo(t),o=e("<a href='#'></a>").addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").click(function(e){e.preventDefault(),s.close(e)}).appendTo(n),(this.uiDialogTitlebarCloseText=e("<span>")).addClass("ui-icon ui-icon-closethick").text(l.closeText).appendTo(o),a=e("<span>").uniqueId().addClass("ui-dialog-title").html(c).prependTo(n),r=(this.uiDialogButtonPane=e("<div>")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uiButtonSet=e("<div>")).addClass("ui-dialog-buttonset").appendTo(r),t.attr({role:"dialog","aria-labelledby":a.attr("id")}),n.find("*").add(n).disableSelection(),this._hoverable(o),this._focusable(o),l.draggable&&e.fn.draggable&&this._makeDraggable(),l.resizable&&e.fn.resizable&&this._makeResizable(),this._createButtons(l.buttons),this._isOpen=!1,e.fn.bgiframe&&t.bgiframe(),this._on(t,{keydown:function(i){if(l.modal&&i.keyCode===e.ui.keyCode.TAB){var n=e(":tabbable",t),o=n.filter(":first"),a=n.filter(":last");return i.target!==a[0]||i.shiftKey?i.target===o[0]&&i.shiftKey?(a.focus(1),!1):void 0:(o.focus(1),!1)}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var e,t=this.oldPosition;this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(t){var i,n,o=this;if(this._isOpen&&!1!==this._trigger("beforeClose",t))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){o._trigger("close",t)}):(this.uiDialog.hide(),this._trigger("close",t)),e.ui.dialog.overlay.resize(),this.options.modal&&(i=0,e(".ui-dialog").each(function(){this!==o.uiDialog[0]&&(n=e(this).css("z-index"),isNaN(n)||(i=Math.max(i,n)))}),e.ui.dialog.maxZ=i),this},isOpen:function(){return this._isOpen},moveToTop:function(t,i){var n,o=this.options;return o.modal&&!t||!o.stack&&!o.modal?this._trigger("focus",i):(o.zIndex>e.ui.dialog.maxZ&&(e.ui.dialog.maxZ=o.zIndex),this.overlay&&(e.ui.dialog.maxZ+=1,e.ui.dialog.overlay.maxZ=e.ui.dialog.maxZ,this.overlay.$el.css("z-index",e.ui.dialog.overlay.maxZ)),n={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},e.ui.dialog.maxZ+=1,this.uiDialog.css("z-index",e.ui.dialog.maxZ),this.element.attr(n),this._trigger("focus",i),this)},open:function(){if(!this._isOpen){var t,i=this.options,n=this.uiDialog;return this._size(),this._position(i.position),n.show(i.show),this.overlay=i.modal?new e.ui.dialog.overlay(this):null,this.moveToTop(!0),t=this.element.find(":tabbable"),t.length||(t=this.uiDialogButtonPane.find(":tabbable"),t.length||(t=n)),t.eq(0).focus(),this._isOpen=!0,this._trigger("open"),this}},_createButtons:function(t){var i=this,n=!1;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),"object"==typeof t&&null!==t&&e.each(t,function(){return!(n=!0)}),n?(e.each(t,function(t,n){var o,a;n=e.isFunction(n)?{click:n,text:t}:n,n=e.extend({type:"button"},n),a=n.click,n.click=function(){a.apply(i.element[0],arguments)},o=e("<button></button>",n).appendTo(i.uiButtonSet),e.fn.button&&o.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,o){e(this).addClass("ui-dialog-dragging"),i._trigger("dragStart",n,t(o))},drag:function(e,n){i._trigger("drag",e,t(n))},stop:function(o,a){n.position=[a.position.left-i.document.scrollLeft(),a.position.top-i.document.scrollTop()],e(this).removeClass("ui-dialog-dragging"),i._trigger("dragStop",o,t(a)),e.ui.dialog.overlay.resize()}})},_makeResizable:function(i){function n(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}i=i===t?this.options.resizable:i;var o=this,a=this.options,r=this.uiDialog.css("position"),s="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:s,start:function(t,i){e(this).addClass("ui-dialog-resizing"),o._trigger("resizeStart",t,n(i))},resize:function(e,t){o._trigger("resize",e,n(t))},stop:function(t,i){e(this).removeClass("ui-dialog-resizing"),a.height=e(this).height(),a.width=e(this).width(),o._trigger("resizeStop",t,n(i)),e.ui.dialog.overlay.resize()}}).css("position",r).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(t){var i,n=[],o=[0,0];t?(("string"==typeof t||"object"==typeof t&&"0"in t)&&(n=t.split?t.split(" "):[t[0],t[1]],1===n.length&&(n[1]=n[0]),e.each(["left","top"],function(e,t){+n[e]===n[e]&&(o[e]=n[e],n[e]=t)}),t={my:n[0]+(o[0]<0?o[0]:"+"+o[0])+" "+n[1]+(o[1]<0?o[1]:"+"+o[1]),at:n.join(" ")}),t=e.extend({},e.ui.dialog.prototype.options.position,t)):t=e.ui.dialog.prototype.options.position,i=this.uiDialog.is(":visible"),i||this.uiDialog.show(),this.uiDialog.position(t),i||this.uiDialog.hide()},_setOptions:function(t){var i=this,a={},r=!1;e.each(t,function(e,t){i._setOption(e,t),e in n&&(r=!0),e in o&&(a[e]=t)}),r&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(t,n){var o,a,r=this.uiDialog;switch(t){case"buttons":this._createButtons(n);break;case"closeText":this.uiDialogTitlebarCloseText.text(""+n);break;case"dialogClass":r.removeClass(this.options.dialogClass).addClass(i+n);break;case"disabled":n?r.addClass("ui-dialog-disabled"):r.removeClass("ui-dialog-disabled");break;case"draggable":o=r.is(":data(draggable)"),o&&!n&&r.draggable("destroy"),!o&&n&&this._makeDraggable();break;case"position":this._position(n);break;case"resizable":a=r.is(":data(resizable)"),a&&!n&&r.resizable("destroy"),a&&"string"==typeof n&&r.resizable("option","handles",n),a||n===!1||this._makeResizable(n);break;case"title":e(".ui-dialog-title",this.uiDialogTitlebar).html(""+(n||" "))}this._super(t,n)},_size:function(){var t,i,n,o=this.options,a=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),o.minWidth>o.width&&(o.width=o.minWidth),t=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),i=Math.max(0,o.minHeight-t),"auto"===o.height?e.support.minHeight?this.element.css({minHeight:i,height:"auto"}):(this.uiDialog.show(),n=this.element.css("height","auto").height(),a||this.uiDialog.hide(),this.element.height(Math.max(n,i))):this.element.height(Math.max(o.height-t,0)),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),e.extend(e.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(e){var t=e.attr("id");return t||(this.uuid+=1,t=this.uuid),"ui-dialog-title-"+t},overlay:function(t){this.$el=e.ui.dialog.overlay.create(t)}}),e.extend(e.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(e){return e+".dialog-overlay"}).join(" "),create:function(t){0===this.instances.length&&(setTimeout(function(){e.ui.dialog.overlay.instances.length&&e(document).bind(e.ui.dialog.overlay.events,function(t){return e(t.target).zIndex()<e.ui.dialog.overlay.maxZ?!1:void 0})},1),e(window).bind("resize.dialog-overlay",e.ui.dialog.overlay.resize));var i=this.oldInstances.pop()||e("<div>").addClass("ui-widget-overlay");return e(document).bind("keydown.dialog-overlay",function(n){var o=e.ui.dialog.overlay.instances;0!==o.length&&o[o.length-1]===i&&t.options.closeOnEscape&&!n.isDefaultPrevented()&&n.keyCode&&n.keyCode===e.ui.keyCode.ESCAPE&&(t.close(n),n.preventDefault())}),i.appendTo(document.body).css({width:this.width(),height:this.height()}),e.fn.bgiframe&&i.bgiframe(),this.instances.push(i),i},destroy:function(t){var i=e.inArray(t,this.instances),n=0;-1!==i&&this.oldInstances.push(this.instances.splice(i,1)[0]),0===this.instances.length&&e([document,window]).unbind(".dialog-overlay"),t.height(0).width(0).remove(),e.each(this.instances,function(){n=Math.max(n,this.css("z-index"))}),this.maxZ=n},height:function(){var t,i;return e.ui.ie?(t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),i=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),i>t?e(window).height()+"px":t+"px"):e(document).height()+"px"},width:function(){var t,i;return e.ui.ie?(t=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),i>t?e(window).width()+"px":t+"px"):e(document).width()+"px"},resize:function(){var t=e([]);e.each(e.ui.dialog.overlay.instances,function(){t=t.add(this)}),t.css({width:0,height:0}).css({width:e.ui.dialog.overlay.width(),height:e.ui.dialog.overlay.height()})}}),e.extend(e.ui.dialog.overlay.prototype,{destroy:function(){e.ui.dialog.overlay.destroy(this.$el)}})}(jQuery),function(e){var t=/up|down|vertical/,i=/up|left|vertical|horizontal/;e.effects.effect.blind=function(n,o){var a,r,s,l=e(this),c=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(l,n.mode||"hide"),d=n.direction||"up",h=t.test(d),p=h?"height":"width",f=h?"top":"left",m=i.test(d),g={},v="show"===u;l.parent().is(".ui-effects-wrapper")?e.effects.save(l.parent(),c):e.effects.save(l,c),l.show(),a=e.effects.createWrapper(l).css({overflow:"hidden"}),r=a[p](),s=parseFloat(a.css(f))||0,g[p]=v?r:0,m||(l.css(h?"bottom":"right",0).css(h?"top":"left","auto").css({position:"absolute"}),g[f]=v?s:r+s),v&&(a.css(p,0),m||a.css(f,s+r)),a.animate(g,{duration:n.duration,easing:n.easing,queue:!1,complete:function(){"hide"===u&&l.hide(),e.effects.restore(l,c),e.effects.removeWrapper(l),o()}})}}(jQuery),function(e){e.effects.effect.bounce=function(t,i){var n,o,a,r=e(this),s=["position","top","bottom","left","right","height","width"],l=e.effects.setMode(r,t.mode||"effect"),c="hide"===l,u="show"===l,d=t.direction||"up",h=t.distance,p=t.times||5,f=2*p+(u||c?1:0),m=t.duration/f,g=t.easing,v="up"===d||"down"===d?"top":"left",b="up"===d||"left"===d,y=r.queue(),_=y.length;for((u||c)&&s.push("opacity"),e.effects.save(r,s),r.show(),e.effects.createWrapper(r),h||(h=r["top"===v?"outerHeight":"outerWidth"]()/3),u&&(a={opacity:1},a[v]=0,r.css("opacity",0).css(v,b?2*-h:2*h).animate(a,m,g)),c&&(h/=Math.pow(2,p-1)),a={},a[v]=0,n=0;p>n;n++)o={},o[v]=(b?"-=":"+=")+h,r.animate(o,m,g).animate(a,m,g),h=c?2*h:h/2;c&&(o={opacity:0},o[v]=(b?"-=":"+=")+h,r.animate(o,m,g)),r.queue(function(){c&&r.hide(),e.effects.restore(r,s),e.effects.removeWrapper(r),i()}),_>1&&y.splice.apply(y,[1,0].concat(y.splice(_,f+1))),r.dequeue()}}(jQuery),function(e){e.effects.effect.clip=function(t,i){var n,o,a,r=e(this),s=["position","top","bottom","left","right","height","width"],l=e.effects.setMode(r,t.mode||"hide"),c="show"===l,u=t.direction||"vertical",d="vertical"===u,h=d?"height":"width",p=d?"top":"left",f={};e.effects.save(r,s),r.show(),n=e.effects.createWrapper(r).css({overflow:"hidden"}),o="IMG"===r[0].tagName?n:r,a=o[h](),c&&(o.css(h,0),o.css(p,a/2)),f[h]=c?a:0,f[p]=c?0:a/2,o.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){c||r.hide(),e.effects.restore(r,s),e.effects.removeWrapper(r),i()}})}}(jQuery),function(e){e.effects.effect.drop=function(t,i){var n,o=e(this),a=["position","top","bottom","left","right","opacity","height","width"],r=e.effects.setMode(o,t.mode||"hide"),s="show"===r,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l?"pos":"neg",d={opacity:s?1:0};e.effects.save(o,a),o.show(),e.effects.createWrapper(o),n=t.distance||o["top"===c?"outerHeight":"outerWidth"](!0)/2,s&&o.css("opacity",0).css(c,"pos"===u?-n:n),d[c]=(s?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+n,o.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&o.hide(),e.effects.restore(o,a),e.effects.removeWrapper(o),i()}})}}(jQuery),function(e){e.effects.effect.explode=function(t,i){function n(){y.push(this),y.length===d*h&&o()}function o(){p.css({visibility:"visible"}),e(y).remove(),m||p.hide(),i()}var a,r,s,l,c,u,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=d,p=e(this),f=e.effects.setMode(p,t.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/h),b=Math.ceil(p.outerHeight()/d),y=[];for(a=0;d>a;a++)for(l=g.top+a*b,u=a-(d-1)/2,r=0;h>r;r++)s=g.left+r*v,c=r-(h-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*v,top:-a*b}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:b,left:s+(m?c*v:0),top:l+(m?u*b:0),opacity:m?0:1}).animate({left:s+(m?0:c*v),top:l+(m?0:u*b),opacity:m?1:0},t.duration||500,t.easing,n)}}(jQuery),function(e){e.effects.effect.fade=function(t,i){var n=e(this),o=e.effects.setMode(n,t.mode||"toggle");n.animate({opacity:o},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}}(jQuery),function(e){e.effects.effect.fold=function(t,i){var n,o,a=e(this),r=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(a,t.mode||"hide"),l="show"===s,c="hide"===s,u=t.size||15,d=/([0-9]+)%/.exec(u),h=!!t.horizFirst,p=l!==h,f=p?["width","height"]:["height","width"],m=t.duration/2,g={},v={};e.effects.save(a,r),a.show(),n=e.effects.createWrapper(a).css({overflow:"hidden"}),o=p?[n.width(),n.height()]:[n.height(),n.width()],d&&(u=parseInt(d[1],10)/100*o[c?0:1]),l&&n.css(h?{height:0,width:u}:{height:u,width:0}),g[f[0]]=l?o[0]:u,v[f[1]]=l?o[1]:0,n.animate(g,m,t.easing).animate(v,m,t.easing,function(){c&&a.hide(),e.effects.restore(a,r),e.effects.removeWrapper(a),i()})}}(jQuery),function(e){e.effects.effect.highlight=function(t,i){var n=e(this),o=["backgroundImage","backgroundColor","opacity"],a=e.effects.setMode(n,t.mode||"show"),r={backgroundColor:n.css("backgroundColor")};"hide"===a&&(r.opacity=0),e.effects.save(n,o),n.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===a&&n.hide(),e.effects.restore(n,o),i()}})}}(jQuery),function(e){e.effects.effect.pulsate=function(t,i){var n,o=e(this),a=e.effects.setMode(o,t.mode||"show"),r="show"===a,s="hide"===a,l=r||"hide"===a,c=2*(t.times||5)+(l?1:0),u=t.duration/c,d=0,h=o.queue(),p=h.length;for((r||!o.is(":visible"))&&(o.css("opacity",0).show(),d=1),n=1;c>n;n++)o.animate({opacity:d},u,t.easing),d=1-d;o.animate({opacity:d},u,t.easing),o.queue(function(){s&&o.hide(),i()}),p>1&&h.splice.apply(h,[1,0].concat(h.splice(p,c+1))),o.dequeue()}}(jQuery),function(e){e.effects.effect.puff=function(t,i){var n=e(this),o=e.effects.setMode(n,t.mode||"hide"),a="hide"===o,r=parseInt(t.percent,10)||150,s=r/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:o,complete:i,percent:a?r:100,from:a?l:{height:l.height*s,width:l.width*s,outerHeight:l.outerHeight*s,outerWidth:l.outerWidth*s}}),n.effect(t)},e.effects.effect.scale=function(t,i){var n=e(this),o=e.extend(!0,{},t),a=e.effects.setMode(n,t.mode||"effect"),r=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===a?0:100),s=t.direction||"both",l=t.origin,c={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},u={y:"horizontal"!==s?r/100:1,x:"vertical"!==s?r/100:1};o.effect="size",o.queue=!1,o.complete=i,"effect"!==a&&(o.origin=l||["middle","center"],o.restore=!0),o.from=t.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:c),o.to={height:c.height*u.y,width:c.width*u.x,outerHeight:c.outerHeight*u.y,outerWidth:c.outerWidth*u.x},o.fade&&("show"===a&&(o.from.opacity=0,o.to.opacity=1),"hide"===a&&(o.from.opacity=1,o.to.opacity=0)),n.effect(o)},e.effects.effect.size=function(t,i){var n,o,a,r=e(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],c=["width","height","overflow"],u=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(r,t.mode||"effect"),f=t.restore||"effect"!==p,m=t.scale||"both",g=t.origin||["middle","center"],v=r.css("position"),b=f?s:l,y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&r.show(),n={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===t.mode&&"show"===p?(r.from=t.to||y,r.to=t.from||n):(r.from=t.from||("show"===p?y:n),r.to=t.to||("hide"===p?y:n)),a={from:{y:r.from.height/n.height,x:r.from.width/n.width},to:{y:r.to.height/n.height,x:r.to.width/n.width}},("box"===m||"both"===m)&&(a.from.y!==a.to.y&&(b=b.concat(d),r.from=e.effects.setTransition(r,d,a.from.y,r.from),r.to=e.effects.setTransition(r,d,a.to.y,r.to)),a.from.x!==a.to.x&&(b=b.concat(h),r.from=e.effects.setTransition(r,h,a.from.x,r.from),r.to=e.effects.setTransition(r,h,a.to.x,r.to))),("content"===m||"both"===m)&&a.from.y!==a.to.y&&(b=b.concat(u).concat(c),r.from=e.effects.setTransition(r,u,a.from.y,r.from),r.to=e.effects.setTransition(r,u,a.to.y,r.to)),e.effects.save(r,b),r.show(),e.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),g&&(o=e.effects.getBaseline(g,n),r.from.top=(n.outerHeight-r.outerHeight())*o.y,r.from.left=(n.outerWidth-r.outerWidth())*o.x,r.to.top=(n.outerHeight-r.to.outerHeight)*o.y,r.to.left=(n.outerWidth-r.to.outerWidth)*o.x),r.css(r.from),("content"===m||"both"===m)&&(d=d.concat(["marginTop","marginBottom"]).concat(u),h=h.concat(["marginLeft","marginRight"]),c=s.concat(d).concat(h),r.find("*[width]").each(function(){var i=e(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&e.effects.save(i,c),i.from={height:n.height*a.from.y,width:n.width*a.from.x,outerHeight:n.outerHeight*a.from.y,outerWidth:n.outerWidth*a.from.x},i.to={height:n.height*a.to.y,width:n.width*a.to.x,outerHeight:n.height*a.to.y,outerWidth:n.width*a.to.x},a.from.y!==a.to.y&&(i.from=e.effects.setTransition(i,d,a.from.y,i.from),i.to=e.effects.setTransition(i,d,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=e.effects.setTransition(i,h,a.from.x,i.from),i.to=e.effects.setTransition(i,h,a.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,c)})})),r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===p&&r.hide(),e.effects.restore(r,b),f||("static"===v?r.css({position:"relative",top:r.to.top,left:r.to.left}):e.each(["top","left"],function(e,t){r.css(t,function(t,i){var n=parseInt(i,10),o=e?r.to.left:r.to.top;return"auto"===i?o+"px":n+o+"px"})})),e.effects.removeWrapper(r),i()}})}}(jQuery),function(e){e.effects.effect.shake=function(t,i){var n,o=e(this),a=["position","top","bottom","left","right","height","width"],r=e.effects.setMode(o,t.mode||"effect"),s=t.direction||"left",l=t.distance||20,c=t.times||3,u=2*c+1,d=Math.round(t.duration/u),h="up"===s||"down"===s?"top":"left",p="up"===s||"left"===s,f={},m={},g={},v=o.queue(),b=v.length;for(e.effects.save(o,a),o.show(),e.effects.createWrapper(o),f[h]=(p?"-=":"+=")+l,m[h]=(p?"+=":"-=")+2*l,g[h]=(p?"-=":"+=")+2*l,o.animate(f,d,t.easing),n=1;c>n;n++)o.animate(m,d,t.easing).animate(g,d,t.easing);o.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function(){"hide"===r&&o.hide(),e.effects.restore(o,a),e.effects.removeWrapper(o),i()}),b>1&&v.splice.apply(v,[1,0].concat(v.splice(b,u+1))),o.dequeue()}}(jQuery),function(e){e.effects.effect.slide=function(t,i){var n,o=e(this),a=["position","top","bottom","left","right","width","height"],r=e.effects.setMode(o,t.mode||"show"),s="show"===r,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,d={};e.effects.save(o,a),o.show(),n=t.distance||o["top"===c?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(o).css({overflow:"hidden"}),s&&o.css(c,u?isNaN(n)?"-"+n:-n:n),d[c]=(s?u?"+=":"-=":u?"-=":"+=")+n,o.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&o.hide(),e.effects.restore(o,a),e.effects.removeWrapper(o),i()}})}}(jQuery),function(e){e.effects.effect.transfer=function(t,i){var n=e(this),o=e(t.to),a="fixed"===o.css("position"),r=e("body"),s=a?r.scrollTop():0,l=a?r.scrollLeft():0,c=o.offset(),u={top:c.top-s,left:c.left-l,height:o.innerHeight(),width:o.innerWidth()},d=n.offset(),h=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(t.className).css({top:d.top-s,left:d.left-l,height:n.innerHeight(),width:n.innerWidth(),position:a?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){h.remove(),i()})}}(jQuery),function(e){var t=!1;e.widget("ui.menu",{version:"1.9.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy(function(e){this.options.disabled&&e.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()
|
41
|
+
},"click .ui-menu-item:has(a)":function(i){var n=e(i.target).closest(".ui-menu-item");!t&&n.not(".ui-state-disabled").length&&(t=!0,this.select(i),n.has(".ui-menu").length?this.expand(i):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var i=e(t.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,i)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(i){e(i.target).closest(".ui-menu").length||this.collapseAll(i),t=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,o,a,r,s,l=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:l=!1,o=this.previousFilter||"",a=String.fromCharCode(t.keyCode),r=!1,clearTimeout(this.filterTimer),a===o?r=!0:a=o+a,s=new RegExp("^"+i(a),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return s.test(e(this).children("a").text())}),n=r&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(a=String.fromCharCode(t.keyCode),s=new RegExp("^"+i(a),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return s.test(e(this).children("a").text())})),n.length?(this.focus(t,n),n.length>1?(this.previousFilter=a,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i=this.options.icons.submenu,n=this.element.find(this.options.menus);n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.prev("a"),o=e("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(o),t.attr("aria-labelledby",n.attr("id"))}),t=n.add(this.element),t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=e(this);/[^\-—–\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(e,t){var i,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=t.children(".ui-menu"),i.length&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,n,o,a,r,s;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,o=t.offset().top-this.activeMenu.offset().top-i-n,a=this.activeMenu.scrollTop(),r=this.activeMenu.height(),s=t.height(),0>o?this.activeMenu.scrollTop(a+o):o+s>r&&this.activeMenu.scrollTop(a+o-r+s))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(t),this.activeMenu=n},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.children(".ui-menu-item")[t]()),this.focus(i,n)},nextPage:function(t){var i,n,o;return this.active?(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=e(this),i.offset().top-n-o<0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),void 0):(this.next(t),void 0)},previousPage:function(t){var i,n,o;return this.active?(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=e(this),i.offset().top-n+o>0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item").first())),void 0):(this.next(t),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)}})}(jQuery),function(e,t){function i(e,t,i){return[parseInt(e[0],10)*(h.test(e[0])?t/100:1),parseInt(e[1],10)*(h.test(e[1])?i/100:1)]}function n(t,i){return parseInt(e.css(t,i),10)||0}e.ui=e.ui||{};var o,a=Math.max,r=Math.abs,s=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+%?/,d=/^\w+/,h=/%$/,p=e.fn.position;e.position={scrollbarWidth:function(){if(o!==t)return o;var i,n,a=e("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),r=a.children()[0];return e("body").append(a),i=r.offsetWidth,a.css("overflow","scroll"),n=r.offsetWidth,i===n&&(n=a[0].clientWidth),a.remove(),o=i-n},getScrollInfo:function(t){var i=t.isWindow?"":t.element.css("overflow-x"),n=t.isWindow?"":t.element.css("overflow-y"),o="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,a="scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight;return{width:o?e.position.scrollbarWidth():0,height:a?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),n=e.isWindow(i[0]);return{element:i,isWindow:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return p.apply(this,arguments);t=e.extend({},t);var o,h,f,m,g,v=e(t.of),b=e.position.getWithinInfo(t.within),y=e.position.getScrollInfo(b),_=v[0],w=(t.collision||"flip").split(" "),x={};return 9===_.nodeType?(h=v.width(),f=v.height(),m={top:0,left:0}):e.isWindow(_)?(h=v.width(),f=v.height(),m={top:v.scrollTop(),left:v.scrollLeft()}):_.preventDefault?(t.at="left top",h=f=0,m={top:_.pageY,left:_.pageX}):(h=v.outerWidth(),f=v.outerHeight(),m=v.offset()),g=e.extend({},m),e.each(["my","at"],function(){var e,i,n=(t[this]||"").split(" ");1===n.length&&(n=l.test(n[0])?n.concat(["center"]):c.test(n[0])?["center"].concat(n):["center","center"]),n[0]=l.test(n[0])?n[0]:"center",n[1]=c.test(n[1])?n[1]:"center",e=u.exec(n[0]),i=u.exec(n[1]),x[this]=[e?e[0]:0,i?i[0]:0],t[this]=[d.exec(n[0])[0],d.exec(n[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?g.left+=h:"center"===t.at[0]&&(g.left+=h/2),"bottom"===t.at[1]?g.top+=f:"center"===t.at[1]&&(g.top+=f/2),o=i(x.at,h,f),g.left+=o[0],g.top+=o[1],this.each(function(){var l,c,u=e(this),d=u.outerWidth(),p=u.outerHeight(),_=n(this,"marginLeft"),C=n(this,"marginTop"),k=d+_+n(this,"marginRight")+y.width,T=p+C+n(this,"marginBottom")+y.height,D=e.extend({},g),S=i(x.my,u.outerWidth(),u.outerHeight());"right"===t.my[0]?D.left-=d:"center"===t.my[0]&&(D.left-=d/2),"bottom"===t.my[1]?D.top-=p:"center"===t.my[1]&&(D.top-=p/2),D.left+=S[0],D.top+=S[1],e.support.offsetFractions||(D.left=s(D.left),D.top=s(D.top)),l={marginLeft:_,marginTop:C},e.each(["left","top"],function(i,n){e.ui.position[w[i]]&&e.ui.position[w[i]][n](D,{targetWidth:h,targetHeight:f,elemWidth:d,elemHeight:p,collisionPosition:l,collisionWidth:k,collisionHeight:T,offset:[o[0]+S[0],o[1]+S[1]],my:t.my,at:t.at,within:b,elem:u})}),e.fn.bgiframe&&u.bgiframe(),t.using&&(c=function(e){var i=m.left-D.left,n=i+h-d,o=m.top-D.top,s=o+f-p,l={target:{element:v,left:m.left,top:m.top,width:h,height:f},element:{element:u,left:D.left,top:D.top,width:d,height:p},horizontal:0>n?"left":i>0?"right":"center",vertical:0>s?"top":o>0?"bottom":"middle"};d>h&&r(i+n)<h&&(l.horizontal="center"),p>f&&r(o+s)<f&&(l.vertical="middle"),l.important=a(r(i),r(n))>a(r(o),r(s))?"horizontal":"vertical",t.using.call(this,e,l)}),u.offset(e.extend(D,{using:c}))})},e.ui.position={fit:{left:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,s=e.left-t.collisionPosition.marginLeft,l=o-s,c=s+t.collisionWidth-r-o;t.collisionWidth>r?l>0&&0>=c?(i=e.left+l+t.collisionWidth-r-o,e.left+=l-i):e.left=c>0&&0>=l?o:l>c?o+r-t.collisionWidth:o:l>0?e.left+=l:c>0?e.left-=c:e.left=a(e.left-s,e.left)},top:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,s=e.top-t.collisionPosition.marginTop,l=o-s,c=s+t.collisionHeight-r-o;t.collisionHeight>r?l>0&&0>=c?(i=e.top+l+t.collisionHeight-r-o,e.top+=l-i):e.top=c>0&&0>=l?o:l>c?o+r-t.collisionHeight:o:l>0?e.top+=l:c>0?e.top-=c:e.top=a(e.top-s,e.top)}},flip:{left:function(e,t){var i,n,o=t.within,a=o.offset.left+o.scrollLeft,s=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=e.left-t.collisionPosition.marginLeft,u=c-l,d=c+t.collisionWidth-s-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+h+p+f+t.collisionWidth-s-a,(0>i||i<r(u))&&(e.left+=h+p+f)):d>0&&(n=e.left-t.collisionPosition.marginLeft+h+p+f-l,(n>0||r(n)<d)&&(e.left+=h+p+f))},top:function(e,t){var i,n,o=t.within,a=o.offset.top+o.scrollTop,s=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=e.top-t.collisionPosition.marginTop,u=c-l,d=c+t.collisionHeight-s-l,h="top"===t.my[1],p=h?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(n=e.top+p+f+m+t.collisionHeight-s-a,e.top+p+f+m>u&&(0>n||n<r(u))&&(e.top+=p+f+m)):d>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-l,e.top+p+f+m>d&&(i>0||r(i)<d)&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,n,o,a,r=document.getElementsByTagName("body")[0],s=document.createElement("div");t=document.createElement(r?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&e.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(a in n)t.style[a]=n[a];t.appendChild(s),i=r||document.documentElement,i.insertBefore(t,i.firstChild),s.style.cssText="position: absolute; left: 10.7432222px;",o=e(s).offset().left,e.support.offsetFractions=o>10&&11>o,t.innerHTML="",i.removeChild(t)}(),e.uiBackCompat!==!1&&!function(e){var i=e.fn.position;e.fn.position=function(n){if(!n||!n.offset)return i.call(this,n);var o=n.offset.split(" "),a=n.at.split(" ");return 1===o.length&&(o[1]=o[0]),/^\d/.test(o[0])&&(o[0]="+"+o[0]),/^\d/.test(o[1])&&(o[1]="+"+o[1]),1===a.length&&(/left|center|right/.test(a[0])?a[1]="center":(a[1]=a[0],a[0]="center")),i.call(this,e.extend(n,{at:a[0]+o[0]+" "+a[1]+o[1],offset:t}))}}(jQuery)}(jQuery),function(e,t){e.widget("ui.progressbar",{version:"1.9.2",options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=e("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){return e===t?this._value():(this._setOption("value",e),this)},_setOption:function(e,t){"value"===e&&(this.options.value=t,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),this._super(e,t)},_value:function(){var e=this.options.value;return"number"!=typeof e&&(e=0),Math.min(this.options.max,Math.max(this.min,e))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var e=this.value(),t=this._percentage();this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),this.valueDiv.toggle(e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(t.toFixed(0)+"%"),this.element.attr("aria-valuenow",e)}})}(jQuery),function(e){var t=5;e.widget("ui.slider",e.ui.mouse,{version:"1.9.2",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var i,n,o=this.options,a=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),r="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",s=[];for(this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(o.disabled?" ui-slider-disabled ui-disabled":"")),this.range=e([]),o.range&&(o.range===!0&&(o.values||(o.values=[this._valueMin(),this._valueMin()]),o.values.length&&2!==o.values.length&&(o.values=[o.values[0],o.values[0]])),this.range=e("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===o.range||"max"===o.range?" ui-slider-range-"+o.range:""))),n=o.values&&o.values.length||1,i=a.length;n>i;i++)s.push(r);this.handles=a.add(e(s.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(e){e.preventDefault()}).mouseenter(function(){o.disabled||e(this).addClass("ui-state-hover")}).mouseleave(function(){e(this).removeClass("ui-state-hover")}).focus(function(){o.disabled?e(this).blur():(e(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),e(this).addClass("ui-state-focus"))}).blur(function(){e(this).removeClass("ui-state-focus")}),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t)}),this._on(this.handles,{keydown:function(i){var n,o,a,r,s=e(i.target).data("ui-slider-handle-index");switch(i.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i.preventDefault(),!this._keySliding&&(this._keySliding=!0,e(i.target).addClass("ui-state-active"),n=this._start(i,s),n===!1))return}switch(r=this.options.step,o=a=this.options.values&&this.options.values.length?this.values(s):this.value(),i.keyCode){case e.ui.keyCode.HOME:a=this._valueMin();break;case e.ui.keyCode.END:a=this._valueMax();break;case e.ui.keyCode.PAGE_UP:a=this._trimAlignValue(o+(this._valueMax()-this._valueMin())/t);break;case e.ui.keyCode.PAGE_DOWN:a=this._trimAlignValue(o-(this._valueMax()-this._valueMin())/t);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(o===this._valueMax())return;a=this._trimAlignValue(o+r);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(o===this._valueMin())return;a=this._trimAlignValue(o-r)}this._slide(i,s,a)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),e(t.target).removeClass("ui-state-active"))}}),this._refreshValue(),this._animateOff=!1},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var i,n,o,a,r,s,l,c,u=this,d=this.options;return d.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var i=Math.abs(n-u.values(t));o>i&&(o=i,a=e(this),r=t)}),d.range===!0&&this.values(1)===d.min&&(r+=1,a=e(this.handles[r])),s=this._start(t,r),s===!1?!1:(this._mouseSliding=!0,this._handleIndex=r,a.addClass("ui-state-active").focus(),l=a.offset(),c=!e(t.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-l.left-a.width()/2,top:t.pageY-l.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,o,a;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/t,n>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),o=this._valueMax()-this._valueMin(),a=this._valueMin()+n*o,this._trimAlignValue(a)},_start:function(e,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",e,i)},_slide:function(e,t,i){var n,o,a;this.options.values&&this.options.values.length?(n=this.values(t?0:1),2===this.options.values.length&&this.options.range===!0&&(0===t&&i>n||1===t&&n>i)&&(i=n),i!==this.values(t)&&(o=this.values(),o[t]=i,a=this._trigger("slide",e,{handle:this.handles[t],value:i,values:o}),n=this.values(t?0:1),a!==!1&&this.values(t,i,!0))):i!==this.value()&&(a=this._trigger("slide",e,{handle:this.handles[t],value:i}),a!==!1&&this.value(i))},_stop:function(e,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",e,i)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("change",e,i)}},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(t,i){var n,o,a;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t),void 0;if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(n=this.options.values,o=arguments[0],a=0;a<n.length;a+=1)n[a]=this._trimAlignValue(o[a]),this._change(null,a);this._refreshValue()},_setOption:function(t,i){var n,o=0;switch(e.isArray(this.options.values)&&(o=this.options.values.length),e.Widget.prototype._setOption.apply(this,arguments),t){case"disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.prop("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.prop("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;o>n;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1}},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=i>0?t:-t),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var t,i,n,o,a,r=this.options.range,s=this.options,l=this,c=this._animateOff?!1:s.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[c?"animate":"css"](u,s.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},s.animate),1===n&&l.range[c?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:s.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},s.animate),1===n&&l.range[c?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:s.animate}))),t=i}):(n=this.value(),o=this._valueMin(),a=this._valueMax(),i=a!==o?(n-o)/(a-o)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](u,s.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},s.animate),"max"===r&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:s.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},s.animate),"max"===r&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:s.animate}))}})}(jQuery),function(e){function t(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.spinner",{version:"1.9.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},i=this.element;return e.each(["min","max","step"],function(e,n){var o=i.attr(n);void 0!==o&&o.length&&(t[n]=o)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e),void 0)},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){var e=this.element[0]===this.document[0].activeElement;e||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(t)!==!1&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return e(t.currentTarget).hasClass("ui-state-active")?this._start(t)===!1?!1:(this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var i=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>▲</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>▼</span></a>"},_start:function(e){return this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return t=null!==n.min?n.min:0,i=e-t,i=Math.round(i/n.step)*n.step,e=t+i,e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&e<n.min?n.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){if("culture"===e||"numberFormat"===e){var i=this._parse(this.element.val());return this.options[e]=t,this.element.val(this._format(i)),void 0}("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),this._super(e,t),"disabled"===e&&(t?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:t(function(e){this._super(e),this._value(this.element.val())}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(e,t){var i;""!==e&&(i=this._parse(e),null!==i&&(t||(i=this._adjustValue(i)),e=this._format(i))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t(function(e){this._stepUp(e)}),_stepUp:function(e){this._spin((e||1)*this.options.step)},stepDown:t(function(e){this._stepDown(e)}),_stepDown:function(e){this._spin((e||1)*-this.options.step)},pageUp:t(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:t(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?(t(this._value).call(this,e),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(jQuery),function(e,t){function i(){return++o}function n(e){return e.hash.length>1&&e.href.replace(a,"")===location.href.replace(a,"").replace(/\s/g,"%20")}var o=0,a=/#.*$/;e.widget("ui.tabs",{version:"1.9.2",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var t=this,i=this.options,n=i.active,o=location.hash.substring(1);this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()
|
42
|
+
}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),null===n&&(o&&this.tabs.each(function(t,i){return e(i).attr("aria-controls")===o?(n=t,!1):void 0}),null===n&&(n=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===n||-1===n)&&(n=this.tabs.length?0:!1)),n!==!1&&(n=this.tabs.index(this.tabs.eq(n)),-1===n&&(n=i.collapsible?!1:0)),i.active=n,!i.collapsible&&i.active===!1&&this.anchors.length&&(i.active=0),e.isArray(i.disabled)&&(i.disabled=e.unique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(this.options.active):e(),this._refresh(),this.active.length&&this.load(i.active)},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),o=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:n++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:o=!1,n--;break;case e.ui.keyCode.END:n=this.anchors.length-1;break;case e.ui.keyCode.HOME:n=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),this._activate(n),void 0;case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),this._activate(n===this.options.active?!1:n),void 0;default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,o),t.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function n(){return t>o&&(t=0),0>t&&(t=o),t}for(var o=this.tabs.length-1;-1!==e.inArray(n(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):"disabled"===e?(this._setupDisabled(t),void 0):(this._super(e,t),"collapsible"===e&&(this.element.toggleClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t),void 0)},_tabId:function(e){return e.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=e(),this.anchors.each(function(i,o){var a,r,s,l=e(o).uniqueId().attr("id"),c=e(o).closest("li"),u=c.attr("aria-controls");n(o)?(a=o.hash,r=t.element.find(t._sanitizeSelector(a))):(s=t._tabId(c),a="#"+s,r=t.element.find(a),r.length||(r=t._createPanel(s),r.insertAfter(t.panels[i-1]||t.tablist)),r.attr("aria-live","polite")),r.length&&(t.panels=t.panels.add(r)),u&&c.data("ui-tabs-aria-controls",u),c.attr({"aria-controls":a.substring(1),"aria-labelledby":l}),r.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i,n=0;i=this.tabs[n];n++)t===!0||-1!==e.inArray(n,t)?e(i).addClass("ui-state-disabled").attr("aria-disabled","true"):e(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={click:function(e){e.preventDefault()}};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,n,o=this.element.parent();"fill"===t?(e.support.minHeight||(n=o.css("overflow"),o.css("overflow","hidden")),i=o.height(),this.element.siblings(":visible").each(function(){var t=e(this),n=t.css("position");"absolute"!==n&&"fixed"!==n&&(i-=t.outerHeight(!0))}),n&&o.css("overflow",n),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,n=this.active,o=e(t.currentTarget),a=o.closest("li"),r=a[0]===n[0],s=r&&i.collapsible,l=s?e():this._getPanelForTab(a),c=n.length?this._getPanelForTab(n):e(),u={oldTab:n,oldPanel:c,newTab:s?e():a,newPanel:l};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||r&&!i.collapsible||this._trigger("beforeActivate",t,u)===!1||(i.active=s?!1:this.tabs.index(a),this.active=r?e():a,this.xhr&&this.xhr.abort(),c.length||l.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(a),t),this._toggle(t,u))},_toggle:function(t,i){function n(){a.running=!1,a._trigger("activate",t,i)}function o(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&a.options.show?a._show(r,a.options.show,n):(r.show(),n())}var a=this,r=i.newPanel,s=i.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),o()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),r.length&&s.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var i,n=this._findActive(t);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var n=this.options.disabled;n!==!1&&(i===t?n=!1:(i=this._getIndex(i),n=e.isArray(n)?e.map(n,function(e){return e!==i?e:null}):e.map(this.tabs,function(e,t){return t!==i?t:null})),this._setupDisabled(n))},disable:function(i){var n=this.options.disabled;if(n!==!0){if(i===t)n=!0;else{if(i=this._getIndex(i),-1!==e.inArray(i,n))return;n=e.isArray(n)?e.merge([i],n).sort():[i]}this._setupDisabled(n)}},load:function(t,i){t=this._getIndex(t);var o=this,a=this.tabs.eq(t),r=a.find(".ui-tabs-anchor"),s=this._getPanelForTab(a),l={tab:a,panel:s};n(r[0])||(this.xhr=e.ajax(this._ajaxSettings(r,i,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(a.addClass("ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.success(function(e){setTimeout(function(){s.html(e),o._trigger("load",i,l)},1)}).complete(function(e,t){setTimeout(function(){"abort"===t&&o.panels.stop(!1,!0),a.removeClass("ui-tabs-loading"),s.removeAttr("aria-busy"),e===o.xhr&&delete o.xhr},1)})))},_ajaxSettings:function(t,i,n){var o=this;return{url:t.attr("href"),beforeSend:function(t,a){return o._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:a},n))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),e.uiBackCompat!==!1&&(e.ui.tabs.prototype._ui=function(e,t){return{tab:e,panel:t,index:this.anchors.index(e)}},e.widget("ui.tabs",e.ui.tabs,{url:function(e,t){this.anchors.eq(e).attr("href",t)}}),e.widget("ui.tabs",e.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var t=this;this._on({tabsbeforeload:function(i,n){return e.data(n.tab[0],"cache.tabs")?(i.preventDefault(),void 0):(n.jqXHR.success(function(){t.options.cache&&e.data(n.tab[0],"cache.tabs",!0)}),void 0)}})},_ajaxSettings:function(t,i,n){var o=this.options.ajaxOptions;return e.extend({},o,{error:function(e,t){try{o.error(e,t,n.tab.closest("li").index(),n.tab[0])}catch(i){}}},this._superApply(arguments))},_setOption:function(e,t){"cache"===e&&t===!1&&this.anchors.removeData("cache.tabs"),this._super(e,t)},_destroy:function(){this.anchors.removeData("cache.tabs"),this._super()},url:function(e){this.anchors.eq(e).removeData("cache.tabs"),this._superApply(arguments)}}),e.widget("ui.tabs",e.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),e.widget("ui.tabs",e.ui.tabs,{options:{spinner:"<em>Loading…</em>"},_create:function(){this._super(),this._on({tabsbeforeload:function(e,t){if(e.target===this.element[0]&&this.options.spinner){var i=t.tab.find("span"),n=i.html();i.html(this.options.spinner),t.jqXHR.complete(function(){i.html(n)})}}})}}),e.widget("ui.tabs",e.ui.tabs,{options:{enable:null,disable:null},enable:function(t){var i,n=this.options;(t&&n.disabled===!0||e.isArray(n.disabled)&&-1!==e.inArray(t,n.disabled))&&(i=!0),this._superApply(arguments),i&&this._trigger("enable",null,this._ui(this.anchors[t],this.panels[t]))},disable:function(t){var i,n=this.options;(t&&n.disabled===!1||e.isArray(n.disabled)&&-1===e.inArray(t,n.disabled))&&(i=!0),this._superApply(arguments),i&&this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))}}),e.widget("ui.tabs",e.ui.tabs,{options:{add:null,remove:null,tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},add:function(i,n,o){o===t&&(o=this.anchors.length);var a,r,s=this.options,l=e(s.tabTemplate.replace(/#\{href\}/g,i).replace(/#\{label\}/g,n)),c=i.indexOf("#")?this._tabId(l):i.replace("#","");return l.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),l.attr("aria-controls",c),a=o>=this.tabs.length,r=this.element.find("#"+c),r.length||(r=this._createPanel(c),a?o>0?r.insertAfter(this.panels.eq(-1)):r.appendTo(this.element):r.insertBefore(this.panels[o])),r.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide(),a?l.appendTo(this.tablist):l.insertBefore(this.tabs[o]),s.disabled=e.map(s.disabled,function(e){return e>=o?++e:e}),this.refresh(),1===this.tabs.length&&s.active===!1&&this.option("active",0),this._trigger("add",null,this._ui(this.anchors[o],this.panels[o])),this},remove:function(t){t=this._getIndex(t);var i=this.options,n=this.tabs.eq(t).remove(),o=this._getPanelForTab(n).remove();return n.hasClass("ui-tabs-active")&&this.anchors.length>2&&this._activate(t+(t+1<this.anchors.length?1:-1)),i.disabled=e.map(e.grep(i.disabled,function(e){return e!==t}),function(e){return e>=t?--e:e}),this.refresh(),this._trigger("remove",null,this._ui(n.find("a")[0],o[0])),this}}),e.widget("ui.tabs",e.ui.tabs,{length:function(){return this.anchors.length}}),e.widget("ui.tabs",e.ui.tabs,{options:{idPrefix:"ui-tabs-"},_tabId:function(t){var n=t.is("li")?t.find("a[href]"):t;return n=n[0],e(n).closest("li").attr("aria-controls")||n.title&&n.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF\-]/g,"")||this.options.idPrefix+i()}}),e.widget("ui.tabs",e.ui.tabs,{options:{panelTemplate:"<div></div>"},_createPanel:function(t){return e(this.options.panelTemplate).attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),e.widget("ui.tabs",e.ui.tabs,{_create:function(){var e=this.options;null===e.active&&e.selected!==t&&(e.active=-1===e.selected?!1:e.selected),this._super(),e.selected=e.active,e.selected===!1&&(e.selected=-1)},_setOption:function(e,t){if("selected"!==e)return this._super(e,t);var i=this.options;this._super("active",-1===t?!1:t),i.selected=i.active,i.selected===!1&&(i.selected=-1)},_eventHandler:function(){this._superApply(arguments),this.options.selected=this.options.active,this.options.selected===!1&&(this.options.selected=-1)}}),e.widget("ui.tabs",e.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),this.options.active!==!1&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(e,t,i){var n,o,a=this._superApply(arguments);return a?("beforeActivate"===e?(n=i.newTab.length?i.newTab:i.oldTab,o=i.newPanel.length?i.newPanel:i.oldPanel,a=this._super("select",t,{tab:n.find(".ui-tabs-anchor")[0],panel:o[0],index:n.closest("li").index()})):"activate"===e&&i.newTab.length&&(a=this._super("show",t,{tab:i.newTab.find(".ui-tabs-anchor")[0],panel:i.newPanel[0],index:i.newTab.closest("li").index()})),a):!1}}),e.widget("ui.tabs",e.ui.tabs,{select:function(e){if(e=this._getIndex(e),-1===e){if(!this.options.collapsible||-1===this.options.selected)return;e=this.options.selected}this.anchors.eq(e).trigger(this.options.event+this.eventNamespace)}}),function(){var t=0;e.widget("ui.tabs",e.ui.tabs,{options:{cookie:null},_create:function(){var e,t=this.options;null==t.active&&t.cookie&&(e=parseInt(this._cookie(),10),-1===e&&(e=!1),t.active=e),this._super()},_cookie:function(i){var n=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++t)];return arguments.length&&(n.push(i===!1?-1:i),n.push(this.options.cookie)),e.cookie.apply(null,n)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),e.widget("ui.tabs",e.ui.tabs,{_trigger:function(t,i,n){var o=e.extend({},n);return"load"===t&&(o.panel=o.panel[0],o.tab=o.tab.find(".ui-tabs-anchor")[0]),this._super(t,i,o)}}),e.widget("ui.tabs",e.ui.tabs,{options:{fx:null},_getFx:function(){var t,i,n=this.options.fx;return n&&(e.isArray(n)?(t=n[0],i=n[1]):t=i=n),n?{show:i,hide:t}:null},_toggle:function(e,t){function i(){o.running=!1,o._trigger("activate",e,t)}function n(){t.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&s.show?a.animate(s.show,s.show.duration,function(){i()}):(a.show(),i())}var o=this,a=t.newPanel,r=t.oldPanel,s=this._getFx();return s?(o.running=!0,r.length&&s.hide?r.animate(s.hide,s.hide.duration,function(){t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r.hide(),n()),void 0):this._super(e,t)}}))}(jQuery),function(e){function t(t,i){var n=(t.attr("aria-describedby")||"").split(/\s+/);n.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",e.trim(n.join(" ")))}function i(t){var i=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/),o=e.inArray(i,n);-1!==o&&n.splice(o,1),t.removeData("ui-tooltip-id"),n=e.trim(n.join(" ")),n?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")}var n=0;e.widget("ui.tooltip",{version:"1.9.2",options:{content:function(){return e(this).attr("title")},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(t,i){var n=this;return"disabled"===t?(this[i?"_disable":"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&e.each(this.tooltips,function(e,t){n._updateContent(t)}),void 0)},_disable:function(){var t=this;e.each(this.tooltips,function(i,n){var o=e.Event("blur");o.target=o.currentTarget=n[0],t.close(o,!0)}),this.element.find(this.options.items).andSelf().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,n=e(t?t.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&n.parents().each(function(){var t,n=e(this);n.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.currentTarget=this,i.close(t,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,t))},_updateContent:function(e,t){var i,n=this.options.content,o=this,a=t?t.type:null;return"string"==typeof n?this._open(t,e,n):(i=n.call(e[0],function(i){e.data("ui-tooltip-open")&&o._delay(function(){t&&(t.type=a),this._open(t,e,i)})}),i&&this._open(t,e,i),void 0)},_open:function(i,n,o){function a(e){c.of=e,r.is(":hidden")||r.position(c)}var r,s,l,c=e.extend({},this.options.position);if(o){if(r=this._find(n),r.length)return r.find(".ui-tooltip-content").html(o),void 0;n.is("[title]")&&(i&&"mouseover"===i.type?n.attr("title",""):n.removeAttr("title")),r=this._tooltip(n),t(n,r.attr("id")),r.find(".ui-tooltip-content").html(o),this.options.track&&i&&/^mouse/.test(i.type)?(this._on(this.document,{mousemove:a}),a(i)):r.position(e.extend({of:n},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.show&&this.options.show.delay&&(l=setInterval(function(){r.is(":visible")&&(a(c.of),clearInterval(l))},e.fx.interval)),this._trigger("open",i,{tooltip:r}),s={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var i=e.Event(t);i.currentTarget=n[0],this.close(i,!0)}},remove:function(){this._removeTooltip(r)}},i&&"mouseover"!==i.type||(s.mouseleave="close"),i&&"focusin"!==i.type||(s.focusout="close"),this._on(!0,n,s)}},close:function(t){var n=this,o=e(t?t.currentTarget:this.element),a=this._find(o);this.closing||(o.data("ui-tooltip-title")&&o.attr("title",o.data("ui-tooltip-title")),i(o),a.stop(!0),this._hide(a,this.options.hide,function(){n._removeTooltip(e(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,i){e(i.element).attr("title",i.title),delete n.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:a}),this.closing=!1)},_tooltip:function(t){var i="ui-tooltip-"+n++,o=e("<div>").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return e("<div>").addClass("ui-tooltip-content").appendTo(o),o.appendTo(this.document[0].body),e.fn.bgiframe&&o.bgiframe(),this.tooltips[i]=t,o},_find:function(t){var i=t.data("ui-tooltip-id");return i?e("#"+i):e()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(i,n){var o=e.Event("blur");o.target=o.currentTarget=n[0],t.close(o,!0),e("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})}})}(jQuery),/*
|
43
|
+
* jQuery File Upload Plugin 5.19.4
|
44
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
45
|
+
*
|
46
|
+
* Copyright 2010, Sebastian Tschan
|
47
|
+
* https://blueimp.net
|
48
|
+
*
|
49
|
+
* Licensed under the MIT license:
|
50
|
+
* http://www.opensource.org/licenses/MIT
|
51
|
+
*/
|
52
|
+
function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):e(window.jQuery)}(function(e){"use strict";e.support.xhrFileUpload=!(!window.XMLHttpRequestUpload||!window.FileReader),e.support.xhrFormDataFileUpload=!!window.FormData,e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:e(document),fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,formData:function(e){return e.serializeArray()},add:function(e,t){t.submit()},processData:!1,contentType:!1,cache:!1},_refreshOptionsList:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_BitrateTimer:function(){this.timestamp=+new Date,this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,i){var n=e-this.timestamp;return(!this.bitrate||!i||n>i)&&(this.bitrate=(t-this.loaded)*(1e3/n)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var i;return"function"==typeof t.formData?t.formData(t.form):e.isArray(t.formData)?t.formData:t.formData?(i=[],e.each(t.formData,function(e,t){i.push({name:e,value:t})}),i):[]},_getTotal:function(t){var i=0;return e.each(t,function(e,t){i+=t.size||1}),i},_onProgress:function(e,t){if(e.lengthComputable){var i,n,o=+new Date;if(t._time&&t.progressInterval&&o-t._time<t.progressInterval&&e.loaded!==e.total)return;t._time=o,i=t.total||this._getTotal(t.files),n=parseInt(e.loaded/e.total*(t.chunkSize||i),10)+(t.uploadedBytes||0),this._loaded+=n-(t.loaded||t.uploadedBytes||0),t.lengthComputable=!0,t.loaded=n,t.total=i,t.bitrate=t._bitrateTimer.getBitrate(o,n,t.bitrateInterval),this._trigger("progress",e,t),this._trigger("progressall",e,{lengthComputable:!0,loaded:this._loaded,total:this._total,bitrate:this._bitrateTimer.getBitrate(o,this._loaded,t.bitrateInterval)})}},_initProgressListener:function(t){var i=this,n=t.xhr?t.xhr():e.ajaxSettings.xhr();n.upload&&(e(n.upload).bind("progress",function(e){var n=e.originalEvent;e.lengthComputable=n.lengthComputable,e.loaded=n.loaded,e.total=n.total,i._onProgress(e,t)}),t.xhr=function(){return n})},_initXHRData:function(t){var i,n=t.files[0],o=t.multipart||!e.support.xhrFileUpload,a=t.paramName[0];t.headers=t.headers||{},t.contentRange&&(t.headers["Content-Range"]=t.contentRange),o?e.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:a,value:t.blob}):e.each(t.files,function(e,n){i.push({name:t.paramName[e]||a,value:n})})):(t.formData instanceof FormData?i=t.formData:(i=new FormData,e.each(this._getFormData(t),function(e,t){i.append(t.name,t.value)})),t.blob?(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(n.name)+'"',t.headers["Content-Description"]=encodeURI(n.type),i.append(a,t.blob,n.name)):e.each(t.files,function(e,n){(window.Blob&&n instanceof Blob||window.File&&n instanceof File)&&i.append(t.paramName[e]||a,n,n.name)})),t.data=i):(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(n.name)+'"',t.contentType=n.type,t.data=t.blob||n),t.blob=null},_initIframeSettings:function(t){t.dataType="iframe "+(t.dataType||""),t.formData=this._getFormData(t),t.redirect&&e("<a></a>").prop("href",t.url).prop("host")!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e,"iframe")},_getParamName:function(t){var i=e(t.fileInput),n=t.paramName;return n?e.isArray(n)||(n=[n]):(n=[],i.each(function(){for(var t=e(this),i=t.prop("name")||"files[]",o=(t.prop("files")||[1]).length;o;)n.push(i),o-=1}),n.length||(n=[i.prop("name")||"files[]"])),n},_initFormSettings:function(t){t.form&&t.form.length||(t.form=e(t.fileInput.prop("form")),t.form.length||(t.form=e(this.options.fileInput.prop("form")))),t.paramName=this._getParamName(t),t.url||(t.url=t.form.prop("action")||location.href),t.type=(t.type||t.form.prop("method")||"").toUpperCase(),"POST"!==t.type&&"PUT"!==t.type&&(t.type="POST"),t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var i=e.extend({},this.options,t);return this._initFormSettings(i),this._initDataSettings(i),i},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(t,i,n){var o=e.Deferred(),a=o.promise();return i=i||this.options.context||a,t===!0?o.resolveWith(i,n):t===!1&&o.rejectWith(i,n),a.abort=o.promise,this._enhancePromise(a)},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),i=t&&t.split("-"),n=i&&i.length>1&&parseInt(i[1],10);return n&&n+1},_chunkedUpload:function(t,i){var n,o,a=this,r=t.files[0],s=r.size,l=t.uploadedBytes=t.uploadedBytes||0,c=t.maxChunkSize||s,u=r.slice||r.webkitSlice||r.mozSlice,d=e.Deferred(),h=d.promise();return this._isXHRUpload(t)&&u&&(l||s>c)&&!t.data?i?!0:l>=s?(r.error="Uploaded bytes exceed file size",this._getXHRPromise(!1,t.context,[null,"error",r.error])):(o=function(){var i=e.extend({},t);i.blob=u.call(r,l,l+c),i.chunkSize=i.blob.size,i.contentRange="bytes "+l+"-"+(l+i.chunkSize-1)+"/"+s,a._initXHRData(i),a._initProgressListener(i),n=(e.ajax(i)||a._getXHRPromise(!1,i.context)).done(function(n,r,c){l=a._getUploadedBytes(c)||l+i.chunkSize,i.loaded||a._onProgress(e.Event("progress",{lengthComputable:!0,loaded:l-i.uploadedBytes,total:l-i.uploadedBytes}),i),t.uploadedBytes=i.uploadedBytes=l,s>l?o():d.resolveWith(i.context,[n,r,c])}).fail(function(e,t,n){d.rejectWith(i.context,[e,t,n])})},this._enhancePromise(h),h.abort=function(){return n.abort()},o(),h):!1},_beforeSend:function(e,t){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer),this._active+=1,this._loaded+=t.uploadedBytes||0,this._total+=this._getTotal(t.files)},_onDone:function(t,i,n,o){this._isXHRUpload(o)||this._onProgress(e.Event("progress",{lengthComputable:!0,loaded:1,total:1}),o),o.result=t,o.textStatus=i,o.jqXHR=n,this._trigger("done",null,o)},_onFail:function(e,t,i,n){n.jqXHR=e,n.textStatus=t,n.errorThrown=i,this._trigger("fail",null,n),n.recalculateProgress&&(this._loaded-=n.loaded||n.uploadedBytes||0,this._total-=n.total||this._getTotal(n.files))},_onAlways:function(e,t,i,n){this._active-=1,n.textStatus=t,i&&i.always?(n.jqXHR=i,n.result=e):(n.jqXHR=e,n.errorThrown=i),this._trigger("always",null,n),0===this._active&&(this._trigger("stop"),this._loaded=this._total=0,this._bitrateTimer=null)},_onSend:function(t,i){var n,o,a,r,s=this,l=s._getAJAXSettings(i),c=function(){return s._sending+=1,l._bitrateTimer=new s._BitrateTimer,n=n||((o||s._trigger("send",t,l)===!1)&&s._getXHRPromise(!1,l.context,o)||s._chunkedUpload(l)||e.ajax(l)).done(function(e,t,i){s._onDone(e,t,i,l)}).fail(function(e,t,i){s._onFail(e,t,i,l)}).always(function(e,t,i){if(s._sending-=1,s._onAlways(e,t,i,l),l.limitConcurrentUploads&&l.limitConcurrentUploads>s._sending)for(var n,o=s._slots.shift();o;){if(n=o.state?"pending"===o.state():!o.isRejected()){o.resolve();break}o=s._slots.shift()}})};return this._beforeSend(t,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(a=e.Deferred(),this._slots.push(a),r=a.pipe(c)):r=this._sequence=this._sequence.pipe(c,c),r.abort=function(){return o=[void 0,"abort","abort"],n?n.abort():(a&&a.rejectWith(l.context,o),c())},this._enhancePromise(r)):c()},_onAdd:function(t,i){var n,o,a,r,s=this,l=!0,c=e.extend({},this.options,i),u=c.limitMultiFileUploads,d=this._getParamName(c);if((c.singleFileUploads||u)&&this._isXHRUpload(c))if(!c.singleFileUploads&&u)for(a=[],n=[],r=0;r<i.files.length;r+=u)a.push(i.files.slice(r,r+u)),o=d.slice(r,r+u),o.length||(o=d),n.push(o);else n=d;else a=[i.files],n=[d];return i.originalFiles=i.files,e.each(a||i.files,function(o,r){var c=e.extend({},i);return c.files=a?r:[r],c.paramName=n[o],c.submit=function(){return c.jqXHR=this.jqXHR=s._trigger("submit",t,this)!==!1&&s._onSend(t,this),this.jqXHR},l=s._trigger("add",t,c)}),l},_replaceFileInput:function(t){var i=t.clone(!0);e("<form></form>").append(i)[0].reset(),t.after(i).detach(),e.cleanData(t.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(e,n){return n===t[0]?i[0]:n}),t[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(t,i){var n,o=this,a=e.Deferred(),r=function(e){e&&!e.entry&&(e.entry=t),a.resolve([e])};return i=i||"",t.isFile?t._file?(t._file.relativePath=i,a.resolve(t._file)):t.file(function(e){e.relativePath=i,a.resolve(e)},r):t.isDirectory?(n=t.createReader(),n.readEntries(function(e){o._handleFileTreeEntries(e,i+t.name+"/").done(function(e){a.resolve(e)}).fail(r)},r)):a.resolve([]),a.promise()},_handleFileTreeEntries:function(t,i){var n=this;return e.when.apply(e,e.map(t,function(e){return n._handleFileTreeEntry(e,i)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){t=t||{};var i=t.items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(e.map(i,function(e){var t;return e.webkitGetAsEntry?(t=e.webkitGetAsEntry(),t&&(t._file=e.getAsFile()),t):e.getAsEntry()})):e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){t=e(t);var i,n,o=t.prop("webkitEntries")||t.prop("entries");if(o&&o.length)return this._handleFileTreeEntries(o);if(i=e.makeArray(t.prop("files")),i.length)void 0===i[0].name&&i[0].fileName&&e.each(i,function(e,t){t.name=t.fileName,t.size=t.fileSize});else{if(n=t.prop("value"),!n)return e.Deferred().resolve([]).promise();i=[{name:n.replace(/^.*\\/,"")}]}return e.Deferred().resolve(i).promise()},_getFileInputFiles:function(t){return t instanceof e&&1!==t.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(t)},_onChange:function(t){var i=this,n={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(n.fileInput).always(function(e){n.files=e,i.options.replaceFileInput&&i._replaceFileInput(n.fileInput),i._trigger("change",t,n)!==!1&&i._onAdd(t,n)})},_onPaste:function(t){var i=t.originalEvent.clipboardData,n=i&&i.items||[],o={files:[]};return e.each(n,function(e,t){var i=t.getAsFile&&t.getAsFile();i&&o.files.push(i)}),this._trigger("paste",t,o)===!1||this._onAdd(t,o)===!1?!1:void 0},_onDrop:function(e){e.preventDefault();var t=this,i=e.dataTransfer=e.originalEvent.dataTransfer,n={};this._getDroppedFiles(i).always(function(i){n.files=i,t._trigger("drop",e,n)!==!1&&t._onAdd(e,n)})},_onDragOver:function(e){var t=e.dataTransfer=e.originalEvent.dataTransfer;return this._trigger("dragover",e)===!1?!1:(t&&(t.dropEffect="copy"),e.preventDefault(),void 0)},_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop}),this._on(this.options.pasteZone,{paste:this._onPaste})),this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(t,i){var n=-1!==e.inArray(t,this._refreshOptionsList);n&&this._destroyEventHandlers(),this._super(t,i),n&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;void 0===t.fileInput?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof e||(t.fileInput=e(t.fileInput)),t.dropZone instanceof e||(t.dropZone=e(t.dropZone)),t.pasteZone instanceof e||(t.pasteZone=e(t.pasteZone))},_create:function(){var t=this.options;e.extend(t,e(this.element[0].cloneNode(!1)).data()),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=this._loaded=this._total=0,this._initEventHandlers()},_destroy:function(){this._destroyEventHandlers()},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(e){t.files=e,i._onAdd(null,t)}):(t.files=e.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var i,n,o=this,a=e.Deferred(),r=a.promise();return r.abort=function(){return n=!0,i?i.abort():(a.reject(null,"abort","abort"),r)},this._getFileInputFiles(t.fileInput).always(function(e){n||(t.files=e,i=o._onSend(null,t).then(function(e,t,i){a.resolve(e,t,i)},function(e,t,i){a.reject(e,t,i)}))}),this._enhancePromise(r)}if(t.files=e.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),/*
|
53
|
+
* jQuery Iframe Transport Plugin 1.2.5
|
54
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
55
|
+
*
|
56
|
+
* Copyright 2011, Sebastian Tschan
|
57
|
+
* https://blueimp.net
|
58
|
+
*
|
59
|
+
* Licensed under the MIT license:
|
60
|
+
* http://creativecommons.org/licenses/MIT/
|
61
|
+
*/
|
62
|
+
function(e){"use strict";var t=0;e.ajaxTransport("iframe",function(i){if(i.async&&("POST"===i.type||"GET"===i.type)){var n,o;return{send:function(a,r){n=e('<form style="display:none;"></form>'),o=e('<iframe src="javascript:false;" name="iframe-transport-'+(t+=1)+'"></iframe>').bind("load",function(){var t;o.unbind("load").bind("load",function(){var t;try{if(t=o.contents(),!t.length||!t[0].firstChild)throw new Error}catch(i){t=void 0}r(200,"success",{iframe:t}),e('<iframe src="javascript:false;"></iframe>').appendTo(n),n.remove()}),n.prop("target",o.prop("name")).prop("action",i.url).prop("method",i.type),i.formData&&e.each(i.formData,function(t,i){e('<input type="hidden"/>').prop("name",i.name).val(i.value).appendTo(n)}),i.fileInput&&i.fileInput.length&&"POST"===i.type&&(t=i.fileInput.clone(),i.fileInput.after(function(e){return t[e]}),i.paramName&&i.fileInput.each(function(){e(this).prop("name",i.paramName)}),n.append(i.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data")),n.submit(),t&&t.length&&i.fileInput.each(function(i,n){var o=e(t[i]);e(n).prop("name",o.prop("name")),o.replaceWith(n)})}),n.append(o).appendTo(document.body)},abort:function(){o&&o.unbind("load").prop("src","javascript".concat(":false;")),n&&n.remove()}}}}),e.ajaxSetup({converters:{"iframe text":function(t){return e(t[0].body).text()},"iframe json":function(t){return e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return e(t[0].body).html()},"iframe script":function(t){return e.globalEval(e(t[0].body).text())}}})}(jQuery),/*
|
63
|
+
* jQuery UI Autocomplete HTML Extension
|
64
|
+
*
|
65
|
+
* Copyright 2010, Scott González (http://scottgonzalez.com)
|
66
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
67
|
+
*
|
68
|
+
* http://github.com/scottgonzalez/jquery-ui-extensions
|
69
|
+
*/
|
70
|
+
function(e){function t(t,i){var n=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(t){return n.test(e("<div>").html(t.label||t.value||t).text())})}var i=e.ui.autocomplete.prototype,n=i._initSource;e.extend(i,{_initSource:function(){this.options.html&&e.isArray(this.options.source)?this.source=function(e,i){i(t(this.options.source,e.term))}:n.call(this)},_renderItem:function(t,i){return e("<li></li>").data("item.autocomplete",i).append(e("<a></a>")[this.options.html?"html":"text"](i.label)).appendTo(t)}})}(jQuery),function(e,t){var i=function(){var t=e._data(document,"events");return t&&t.click&&e.grep(t.click,function(e){return"rails"===e.namespace}).length};i()&&e.error("jquery-ujs has already been loaded!");var n;e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input:file",linkDisableSelector:"a[data-disable-with]",CSRFProtection:function(t){var i=e('meta[name="csrf-token"]').attr("content");i&&t.setRequestHeader("X-CSRF-Token",i)},fire:function(t,i,n){var o=e.Event(i);return t.trigger(o,n),o.result!==!1},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e.attr("href")},handleRemote:function(i){var o,a,r,s,l,c,u,d;if(n.fire(i,"ajax:before")){if(s=i.data("cross-domain"),l=s===t?null:s,c=i.data("with-credentials")||null,u=i.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,i.is("form")){o=i.attr("method"),a=i.attr("action"),r=i.serializeArray();var h=i.data("ujs:submit-button");h&&(r.push(h),i.data("ujs:submit-button",null))}else i.is(n.inputChangeSelector)?(o=i.data("method"),a=i.data("url"),r=i.serialize(),i.data("params")&&(r=r+"&"+i.data("params"))):(o=i.data("method"),a=n.href(i),r=i.data("params")||null);d={type:o||"GET",data:r,dataType:u,beforeSend:function(e,o){return o.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+o.accepts.script),n.fire(i,"ajax:beforeSend",[e,o])},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},xhrFields:{withCredentials:c},crossDomain:l},a&&(d.url=a);var p=n.ajax(d);return i.trigger("ajax:send",p),p}return!1},handleMethod:function(i){var o=n.href(i),a=i.data("method"),r=i.attr("target"),s=e("meta[name=csrf-token]").attr("content"),l=e("meta[name=csrf-param]").attr("content"),c=e('<form method="post" action="'+o+'"></form>'),u='<input name="_method" value="'+a+'" type="hidden" />';l!==t&&s!==t&&(u+='<input name="'+l+'" value="'+s+'" type="hidden" />'),r&&c.attr("target",r),c.hide().append(u).appendTo("body"),c.submit()},disableFormElements:function(t){t.find(n.disableSelector).each(function(){var t=e(this),i=t.is("button")?"html":"val";t.data("ujs:enable-with",t[i]()),t[i](t.data("disable-with")),t.prop("disabled",!0)})},enableFormElements:function(t){t.find(n.enableSelector).each(function(){var t=e(this),i=t.is("button")?"html":"val";t.data("ujs:enable-with")&&t[i](t.data("ujs:enable-with")),t.prop("disabled",!1)})},allowAction:function(e){var t,i=e.data("confirm"),o=!1;return i?(n.fire(e,"confirm")&&(o=n.confirm(i),t=n.fire(e,"confirm:complete",[o])),o&&t):!0},blankInputs:function(t,i,n){var o,a,r=e(),s=i||"input,textarea",l=t.find(s);return l.each(function(){if(o=e(this),a=o.is(":checkbox,:radio")?o.is(":checked"):o.val(),!a==!n){if(o.is(":radio")&&l.filter('input:radio:checked[name="'+o.attr("name")+'"]').length)return!0;r=r.add(o)}}),r.length?r:!1},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},callFormSubmitBindings:function(i,n){var o=i.data("events"),a=!0;return o!==t&&o.submit!==t&&e.each(o.submit,function(e,t){return"function"==typeof t.handler?a=t.handler(n):void 0}),a},disableElement:function(e){e.data("ujs:enable-with",e.html()),e.html(e.data("disable-with")),e.bind("click.railsDisable",function(e){return n.stopEverything(e)})},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.data("ujs:enable-with",!1)),e.unbind("click.railsDisable")}},n.fire(e(document),"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,i){e.crossDomain||n.CSRFProtection(i)}),e(document).delegate(n.linkDisableSelector,"ajax:complete",function(){n.enableElement(e(this))}),e(document).delegate(n.linkClickSelector,"click.rails",function(i){var o=e(this),a=o.data("method"),r=o.data("params");if(!n.allowAction(o))return n.stopEverything(i);if(o.is(n.linkDisableSelector)&&n.disableElement(o),o.data("remote")!==t){if(!(!i.metaKey&&!i.ctrlKey||a&&"GET"!==a||r))return!0;var s=n.handleRemote(o);return s===!1?n.enableElement(o):s.error(function(){n.enableElement(o)}),!1}return o.data("method")?(n.handleMethod(o),!1):void 0}),e(document).delegate(n.inputChangeSelector,"change.rails",function(t){var i=e(this);return n.allowAction(i)?(n.handleRemote(i),!1):n.stopEverything(t)}),e(document).delegate(n.formSubmitSelector,"submit.rails",function(i){var o=e(this),a=o.data("remote")!==t,r=n.blankInputs(o,n.requiredInputSelector),s=n.nonBlankInputs(o,n.fileInputSelector);if(!n.allowAction(o))return n.stopEverything(i);if(r&&o.attr("novalidate")==t&&n.fire(o,"ajax:aborted:required",[r]))return n.stopEverything(i);if(a){if(s){setTimeout(function(){n.disableFormElements(o)},13);var l=n.fire(o,"ajax:aborted:file",[s]);return l||setTimeout(function(){n.enableFormElements(o)},13),l}return!e.support.submitBubbles&&e().jquery<"1.7"&&n.callFormSubmitBindings(o,i)===!1?n.stopEverything(i):(n.handleRemote(o),!1)}setTimeout(function(){n.disableFormElements(o)},13)}),e(document).delegate(n.formInputClickSelector,"click.rails",function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);var o=i.attr("name"),a=o?{name:o,value:i.val()}:null;i.closest("form").data("ujs:submit-button",a)}),e(document).delegate(n.formSubmitSelector,"ajax:beforeSend.rails",function(t){this==t.target&&n.disableFormElements(e(this))}),e(document).delegate(n.formSubmitSelector,"ajax:complete.rails",function(t){this==t.target&&n.enableFormElements(e(this))}),e(function(){csrf_token=e("meta[name=csrf-token]").attr("content"),csrf_param=e("meta[name=csrf-param]").attr("content"),e('form input[name="'+csrf_param+'"]').val(csrf_token)}))}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery||window.$)}(function(e){var t,i={className:"autosizejs",append:"",callback:!1,resizeDelay:10},n='<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',o=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],a=e(n).data("autosize",!0)[0];a.style.lineHeight="99px","99px"===e(a).css("lineHeight")&&o.push("lineHeight"),a.style.lineHeight="",e.fn.autosize=function(n){return n=e.extend({},i,n||{}),a.parentNode!==document.body&&e(document.body).append(a),this.each(function(){function i(){var t,i;"getComputedStyle"in window?(t=window.getComputedStyle(h),i=h.getBoundingClientRect().width,e.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(e,n){i-=parseInt(t[n],10)}),a.style.width=i+"px"):a.style.width=Math.max(p.width(),0)+"px"}function r(){var r={};if(t=h,a.className=n.className,c=parseInt(p.css("maxHeight"),10),e.each(o,function(e,t){r[t]=p.css(t)}),e(a).css(r),i(),window.chrome){var s=h.style.width;h.style.width="0px";{h.offsetWidth}h.style.width=s}}function s(){var e,o;t!==h?r():i(),a.value=h.value+n.append,a.style.overflowY=h.style.overflowY,o=parseInt(h.style.height,10),a.scrollTop=0,a.scrollTop=9e4,e=a.scrollTop,c&&e>c?(h.style.overflowY="scroll",e=c):(h.style.overflowY="hidden",u>e&&(e=u)),e+=f,o!==e&&(h.style.height=e+"px",m&&n.callback.call(h,h))}function l(){clearTimeout(d),d=setTimeout(function(){var e=p.width();e!==v&&(v=e,s())},parseInt(n.resizeDelay,10))}var c,u,d,h=this,p=e(h),f=0,m=e.isFunction(n.callback),g={height:h.style.height,overflow:h.style.overflow,overflowY:h.style.overflowY,wordWrap:h.style.wordWrap,resize:h.style.resize},v=p.width();p.data("autosize")||(p.data("autosize",!0),("border-box"===p.css("box-sizing")||"border-box"===p.css("-moz-box-sizing")||"border-box"===p.css("-webkit-box-sizing"))&&(f=p.outerHeight()-p.height()),u=Math.max(parseInt(p.css("minHeight"),10)-f||0,p.height()),p.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word",resize:"none"===p.css("resize")||"vertical"===p.css("resize")?"none":"horizontal"}),"onpropertychange"in h?"oninput"in h?p.on("input.autosize keyup.autosize",s):p.on("propertychange.autosize",function(){"value"===event.propertyName&&s()}):p.on("input.autosize",s),n.resizeDelay!==!1&&e(window).on("resize.autosize",l),p.on("autosize.resize",s),p.on("autosize.resizeIncludeStyle",function(){t=null,s()}),p.on("autosize.destroy",function(){t=null,clearTimeout(d),e(window).off("resize",l),p.off("autosize").off(".autosize").css(g).removeData("autosize")}),s())})}}),window.tinyMCEPreInit=window.tinyMCEPreInit||{base:"/assets/tinymce",query:"3.5.9",suffix:""},function(e){var t,i=/^\s*|\s*$/g,n="$1"==="B".replace(/A(.)|B/,"$1"),o={majorVersion:"3",minorVersion:"5.9",releaseDate:"2013-10-10",_init:function(){function t(e){return e.src&&/tiny_mce(|_gzip|_jquery|_prototype|_full)(_dev|_src)?.js/.test(e.src)?(/_(src|dev)\.js/g.test(e.src)&&(l.suffix="_src"),-1!=(r=e.src.indexOf("?"))&&(l.query=e.src.substring(r+1)),l.baseURL=e.src.substring(0,e.src.lastIndexOf("/")),a&&-1==l.baseURL.indexOf("://")&&0!==l.baseURL.indexOf("/")&&(l.baseURL=a+l.baseURL),l.baseURL):null}var i,n,o,a,r,s,l=this,c=document,u=navigator,d=u.userAgent;if(l.isIE11=-1!=d.indexOf("Trident/")&&-1!=d.indexOf("rv:"),l.isOpera=e.opera&&opera.buildNumber,l.isWebKit=/WebKit/.test(d),l.isIE=!l.isWebKit&&!l.isOpera&&/MSIE/gi.test(d)&&/Explorer/gi.test(u.appName)||l.isIE11,l.isIE6=l.isIE&&/MSIE [56]/.test(d),l.isIE7=l.isIE&&/MSIE [7]/.test(d),l.isIE8=l.isIE&&/MSIE [8]/.test(d),l.isIE9=l.isIE&&/MSIE [9]/.test(d),l.isGecko=!l.isWebKit&&!l.isIE11&&/Gecko/.test(d),l.isMac=-1!=d.indexOf("Mac"),l.isAir=/adobeair/i.test(d),l.isIDevice=/(iPad|iPhone)/.test(d),l.isIOS5=l.isIDevice&&d.match(/AppleWebKit\/(\d*)/)[1]>=534,e.tinyMCEPreInit)return l.suffix=tinyMCEPreInit.suffix,l.baseURL=tinyMCEPreInit.base,l.query=tinyMCEPreInit.query,void 0;for(l.suffix="",n=c.getElementsByTagName("base"),i=0;i<n.length;i++)s=n[i].href,s&&(/^https?:\/\/[^\/]+$/.test(s)&&(s+="/"),a=s?s.match(/.*\//)[0]:"");for(n=c.getElementsByTagName("script"),i=0;i<n.length;i++)if(t(n[i]))return;if(o=c.getElementsByTagName("head")[0])for(n=o.getElementsByTagName("script"),i=0;i<n.length;i++)if(t(n[i]))return},is:function(e,i){return i?"array"==i&&o.isArray(e)?!0:typeof e==i:e!==t},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},makeMap:function(e,t,i){var n;for(e=e||[],t=t||",","string"==typeof e&&(e=e.split(t)),i=i||{},n=e.length;n--;)i[e[n]]={};return i},each:function(e,i,n){var o,a;if(!e)return 0;if(n=n||e,e.length!==t){for(o=0,a=e.length;a>o;o++)if(i.call(n,e[o],o,e)===!1)return 0}else for(o in e)if(e.hasOwnProperty(o)&&i.call(n,e[o],o,e)===!1)return 0;return 1},map:function(e,t){var i=[];return o.each(e,function(e){i.push(t(e))}),i},grep:function(e,t){var i=[];return o.each(e,function(e){(!t||t(e))&&i.push(e)}),i},inArray:function(e,t){var i,n;if(e)for(i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1},extend:function(e,i){var n,o,a,r,s=arguments;for(n=1,o=s.length;o>n;n++){i=s[n];for(a in i)i.hasOwnProperty(a)&&(r=i[a],r!==t&&(e[a]=r))}return e},trim:function(e){return(e?""+e:"").replace(i,"")},create:function(e,t,i){var n,o,a,r,s,l=this,c=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),a=e[3].match(/(^|\.)(\w+)$/i)[2],o=l.createNS(e[3].replace(/\.\w+$/,""),i),!o[a]){if("static"==e[2])return o[a]=t,this.onCreate&&this.onCreate(e[2],e[3],o[a]),void 0;t[a]||(t[a]=function(){},c=1),o[a]=t[a],l.extend(o[a].prototype,t),e[5]&&(n=l.resolve(e[5]).prototype,r=e[5].match(/\.(\w+)$/i)[1],s=o[a],o[a]=c?function(){return n[r].apply(this,arguments)}:function(){return this.parent=n[r],s.apply(this,arguments)},o[a].prototype[a]=o[a],l.each(n,function(e,t){o[a].prototype[t]=n[t]}),l.each(t,function(e,t){n[t]?o[a].prototype[t]=function(){return this.parent=n[t],e.apply(this,arguments)}:t!=a&&(o[a].prototype[t]=e)})),l.each(t["static"],function(e,t){o[a][t]=e}),this.onCreate&&this.onCreate(e[2],e[3],o[a].prototype)}},walk:function(e,t,i,n){n=n||this,e&&(i&&(e=e[i]),o.each(e,function(e,a){return t.call(n,e,a,i)===!1?!1:(o.walk(e,t,i,n),void 0)}))},createNS:function(t,i){var n,o;for(i=i||e,t=t.split("."),n=0;n<t.length;n++)o=t[n],i[o]||(i[o]={}),i=i[o];return i},resolve:function(t,i){var n,o;for(i=i||e,t=t.split("."),n=0,o=t.length;o>n&&(i=i[t[n]],i);n++);return i},addUnload:function(t,i){function n(){function t(){i.detachEvent("onstop",t),o&&o(),i=0}var i=document;"interactive"==i.readyState&&(i&&i.attachEvent("onstop",t),e.setTimeout(function(){i&&i.detachEvent("onstop",t)},0))}var o,a=this;return o=function(){var t,i,r=a.unloads;if(r){for(i in r)t=r[i],t&&t.func&&t.func.call(t.scope,1);e.detachEvent?(e.detachEvent("onbeforeunload",n),e.detachEvent("onunload",o)):e.removeEventListener&&e.removeEventListener("unload",o,!1),a.unloads=t=r=w=o=0,e.CollectGarbage&&CollectGarbage()}},t={func:t,scope:i||this},a.unloads?a.unloads.push(t):(e.attachEvent?(e.attachEvent("onunload",o),e.attachEvent("onbeforeunload",n)):e.addEventListener&&e.addEventListener("unload",o,!1),a.unloads=[t]),t},removeUnload:function(e){var t=this.unloads,i=null;return o.each(t,function(n,o){return n&&n.func==e?(t.splice(o,1),i=e,!1):void 0}),i},explode:function(e,t){return!e||o.is(e,"array")?e:o.map(e.split(t||","),o.trim)},_addVer:function(e){var t;return this.query?(t=(-1==e.indexOf("?")?"?":"&")+this.query,-1==e.indexOf("#")?e+t:e.replace("#",t+"#")):e},_replace:function(e,i,o){return n?o.replace(e,function(){var e,n=i,o=arguments;for(e=0;e<o.length-2;e++)n=o[e]===t?n.replace(new RegExp("\\$"+e,"g"),""):n.replace(new RegExp("\\$"+e,"g"),o[e]);return n}):o.replace(e,i)}};o._init(),e.tinymce=e.tinyMCE=o}(window),tinymce.create("tinymce.util.Dispatcher",{scope:null,listeners:null,inDispatch:!1,Dispatcher:function(e){this.scope=e||this,this.listeners=[]},add:function(e,t){return this.listeners.push({cb:e,scope:t||this.scope}),e},addToTop:function(e,t){var i=this,n={cb:e,scope:t||i.scope};return i.inDispatch?i.listeners=[n].concat(i.listeners):i.listeners.unshift(n),e},remove:function(e){var t=this.listeners,i=null;return tinymce.each(t,function(n,o){return e==n.cb?(i=n,t.splice(o,1),!1):void 0}),i},dispatch:function(){var e,t,i,n=this,o=arguments,a=n.listeners;for(n.inDispatch=!0,t=0;t<a.length&&(i=a[t],e=i.cb.apply(i.scope,o.length>0?o:[i.scope]),e!==!1);t++);return n.inDispatch=!1,e}}),function(){var e=tinymce.each;tinymce.create("tinymce.util.URI",{URI:function(t,i){var n,o,a=this;return t=tinymce.trim(t),i=a.settings=i||{},/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t)?(a.source=t,void 0):(0===t.indexOf("/")&&0!==t.indexOf("//")&&(t=(i.base_uri?i.base_uri.protocol||"http":"http")+"://mce_host"+t),/^[\w\-]*:?\/\//.test(t)||(o=i.base_uri?i.base_uri.path:new tinymce.util.URI(location.href).directory,t=(i.base_uri&&i.base_uri.protocol||"http")+"://mce_host"+a.toAbsPath(o,t)),t=t.replace(/@@/g,"(mce_at)"),t=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),e(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],function(e,i){var n=t[i];n&&(n=n.replace(/\(mce_at\)/g,"@@")),a[e]=n}),n=i.base_uri,n&&(a.protocol||(a.protocol=n.protocol),a.userInfo||(a.userInfo=n.userInfo),a.port||"mce_host"!==a.host||(a.port=n.port),a.host&&"mce_host"!==a.host||(a.host=n.host),a.source=""),void 0)},setPath:function(e){var t=this;e=/^(.*?)\/?(\w+)?$/.exec(e),t.path=e[0],t.directory=e[1],t.file=e[2],t.source="",t.getURI()},toRelative:function(e){var t,i=this;if("./"===e)return e;if(e=new tinymce.util.URI(e,{base_uri:i}),"mce_host"!=e.host&&i.host!=e.host&&e.host||i.port!=e.port||i.protocol!=e.protocol)return e.getURI();var n=i.getURI(),o=e.getURI();return n==o||"/"==n.charAt(n.length-1)&&n.substr(0,n.length-1)==o?n:(t=i.toRelPath(i.path,e.path),e.query&&(t+="?"+e.query),e.anchor&&(t+="#"+e.anchor),t)},toAbsolute:function(e,t){return e=new tinymce.util.URI(e,{base_uri:this}),e.getURI(this.host==e.host&&this.protocol==e.protocol?t:0)},toRelPath:function(e,t){var i,n,o,a=0,r="";if(e=e.substring(0,e.lastIndexOf("/")),e=e.split("/"),i=t.split("/"),e.length>=i.length)for(n=0,o=e.length;o>n;n++)if(n>=i.length||e[n]!=i[n]){a=n+1;break}if(e.length<i.length)for(n=0,o=i.length;o>n;n++)if(n>=e.length||e[n]!=i[n]){a=n+1;break}if(1===a)return t;for(n=0,o=e.length-(a-1);o>n;n++)r+="../";for(n=a-1,o=i.length;o>n;n++)r+=n!=a-1?"/"+i[n]:i[n];return r},toAbsPath:function(t,i){var n,o,a,r=0,s=[];for(o=/\/$/.test(i)?"/":"",t=t.split("/"),i=i.split("/"),e(t,function(e){e&&s.push(e)}),t=s,n=i.length-1,s=[];n>=0;n--)0!==i[n].length&&"."!==i[n]&&(".."!==i[n]?r>0?r--:s.push(i[n]):r++);return n=t.length-r,a=0>=n?s.reverse().join("/"):t.slice(0,n).join("/")+"/"+s.reverse().join("/"),0!==a.indexOf("/")&&(a="/"+a),o&&a.lastIndexOf("/")!==a.length-1&&(a+=o),a},getURI:function(e){var t,i=this;return(!i.source||e)&&(t="",e||(i.protocol&&(t+=i.protocol+"://"),i.userInfo&&(t+=i.userInfo+"@"),i.host&&(t+=i.host),i.port&&(t+=":"+i.port)),i.path&&(t+=i.path),i.query&&(t+="?"+i.query),i.anchor&&(t+="#"+i.anchor),i.source=t),i.source}})}(),function(){var e=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(t){var i,n=this.get(t);return n&&e(n.split("&"),function(e){e=e.split("="),i=i||{},i[unescape(e[0])]=unescape(e[1])}),i},setHash:function(t,i,n,o,a,r){var s="";e(i,function(e,t){s+=(s?"&":"")+escape(t)+"="+escape(e)}),this.set(t,s,n,o,a,r)},get:function(e){var t,i,n=document.cookie,o=e+"=";if(n){if(i=n.indexOf("; "+o),-1==i){if(i=n.indexOf(o),0!==i)return null}else i+=2;return t=n.indexOf(";",i),-1==t&&(t=n.length),unescape(n.substring(i+o.length,t))}},set:function(e,t,i,n,o,a){document.cookie=e+"="+escape(t)+(i?"; expires="+i.toGMTString():"")+(n?"; path="+escape(n):"")+(o?"; domain="+o:"")+(a?"; secure":"")},remove:function(e,t,i){var n=new Date;n.setTime(n.getTime()-1e3),this.set(e,"",n,t,i)}})}(),function(){function serialize(e,t){var i,n,o,a;if(t=t||'"',null==e)return"null";if(o=typeof e,"string"==o)return n="\bb t\nn\ff\rr\"\"''\\\\",t+e.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(e,o){return'"'===t&&"'"===e?e:(i=n.indexOf(o),i+1?"\\"+n.charAt(i+1):(e=o.charCodeAt().toString(16),"\\u"+"0000".substring(e.length)+e))})+t;if("object"==o){if(e.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(e)){for(i=0,n="[";i<e.length;i++)n+=(i>0?",":"")+serialize(e[i],t);return n+"]"}n="{";for(a in e)e.hasOwnProperty(a)&&(n+="function"!=typeof e[a]?(n.length>1?","+t:t)+a+t+":"+serialize(e[a],t):"");return n+"}"}return""+e}tinymce.util.JSON={serialize:serialize,parse:function(s){try{return eval("("+s+")")}catch(ex){}}}}(),tinymce.create("static tinymce.util.XHR",{send:function(e){function t(){!e.async||4==n.readyState||r++>1e4?(e.success&&1e4>r&&200==n.status?e.success.call(e.success_scope,""+n.responseText,n,e):e.error&&e.error.call(e.error_scope,r>1e4?"TIMED_OUT":"GENERAL",n,e),n=null):a.setTimeout(t,10)}function i(e){n=0;try{n=new ActiveXObject(e)}catch(t){}return n}var n,o,a=window,r=0;if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=e.async===!1?!1:!0,e.data=e.data||"",n=a.XMLHttpRequest?new XMLHttpRequest:i("Microsoft.XMLHTTP")||i("Msxml2.XMLHTTP")){if(n.overrideMimeType&&n.overrideMimeType(e.content_type),n.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.content_type&&n.setRequestHeader("Content-Type",e.content_type),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(e.data),!e.async)return t();o=a.setTimeout(t,10)}}}),function(){var e=tinymce.extend,t=tinymce.util.JSON,i=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(t){this.settings=e({},t),this.count=0},send:function(n){var o=n.error,a=n.success;n=e(this.settings,n),n.success=function(e,i){e=t.parse(e),"undefined"==typeof e&&(e={error:"JSON Parse error."}),e.error?o.call(n.error_scope||n.scope,e.error,i):a.call(n.success_scope||n.scope,e.result)},n.error=function(e,t){o&&o.call(n.error_scope||n.scope,e,t)},n.data=t.serialize({id:n.id||"c"+this.count++,method:n.method,params:n.params}),n.content_type="application/json",i.send(n)},"static":{sendRPC:function(e){return(new tinymce.util.JSONRequest).send(e)}}})}(),function(e){e.VK={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey},metaKeyPressed:function(t){return e.isMac?t.metaKey:t.ctrlKey&&!t.altKey}}}(tinymce),tinymce.util.Quirks=function(e){function t(t,i){try{e.getDoc().execCommand(t,!1,i)}catch(n){}}function i(){var t=e.getDoc().documentMode;return t?t:6}function n(e){return e.isDefaultPrevented()}function o(){function t(t){function i(){if(3==s.nodeType){if(t&&l==s.length)return!0;if(!t&&0===l)return!0}}var n,o,a,r,s,l,c;n=M.getRng();var u=[n.startContainer,n.startOffset,n.endContainer,n.endOffset];if(n.collapsed||(t=!0),s=n[(t?"start":"end")+"Container"],l=n[(t?"start":"end")+"Offset"],3==s.nodeType&&(o=P.getParent(n.startContainer,P.isBlock),t&&(o=P.getNext(o,P.isBlock)),!o||!i()&&n.collapsed||(a=P.create("em",{id:"__mceDel"}),O(tinymce.grep(o.childNodes),function(e){a.appendChild(e)}),o.appendChild(a))),n=P.createRng(),n.setStart(u[0],u[1]),n.setEnd(u[2],u[3]),M.setRng(n),e.getDoc().execCommand(t?"ForwardDelete":"Delete",!1,null),a){for(r=M.getBookmark();c=P.get("__mceDel");)P.remove(c,!0);M.moveToBookmark(r)}}e.onKeyDown.add(function(e,i){var o;o=i.keyCode==A,n(i)||!o&&i.keyCode!=N||E.modifierPressed(i)||(i.preventDefault(),t(o))}),e.addCommand("Delete",function(){t()})}function a(){function t(e){var t=P.create("body"),i=e.cloneContents();return t.appendChild(i),M.serializer.serialize(t,{format:"html"})}function i(i){var n=t(i),o=P.createRng();o.selectNode(e.getBody());var a=t(o);return n===a}e.onKeyDown.add(function(e,t){var o,a=t.keyCode;if(!n(t)&&(a==A||a==N)){if(o=e.selection.isCollapsed(),o&&!P.isEmpty(e.getBody()))return;if(tinymce.isIE&&!o)return;if(!o&&!i(e.selection.getRng()))return;e.setContent(""),e.selection.setCursorLocation(e.getBody(),0),e.nodeChanged()}})}function r(){e.onKeyDown.add(function(e,t){!n(t)&&65==t.keyCode&&E.metaKeyPressed(t)&&(t.preventDefault(),e.execCommand("SelectAll"))})}function s(){e.settings.content_editable||(P.bind(e.getDoc(),"focusin",function(){M.setRng(M.getRng())}),P.bind(e.getDoc(),"mousedown",function(t){t.target==e.getDoc().documentElement&&(e.getWin().focus(),M.setRng(M.getRng()))}))}function l(){e.onKeyDown.add(function(e,t){if(!n(t)&&t.keyCode===N&&M.isCollapsed()&&0===M.getRng(!0).startOffset){var i=M.getNode(),o=i.previousSibling;o&&o.nodeName&&"hr"===o.nodeName.toLowerCase()&&(P.remove(o),tinymce.dom.Event.cancel(t))}})}function c(){Range.prototype.getClientRects||e.onMouseDown.add(function(e,t){if(!n(t)&&"HTML"===t.target.nodeName){var i=e.getBody();i.blur(),setTimeout(function(){i.focus()},0)}})}function u(){e.onClick.add(function(e,t){t=t.target,/^(IMG|HR)$/.test(t.nodeName)&&M.getSel().setBaseAndExtent(t,0,t,1),"A"==t.nodeName&&P.hasClass(t,"mceItemAnchor")&&M.select(t),e.nodeChanged()})}function d(){function t(){var t=P.getAttribs(M.getStart().cloneNode(!1));return function(){var i=M.getStart();i!==e.getBody()&&(P.setAttrib(i,"style",null),O(t,function(e){i.setAttributeNode(e.cloneNode(!0))}))}}function i(){return!M.isCollapsed()&&P.getParent(M.getStart(),P.isBlock)!=P.getParent(M.getEnd(),P.isBlock)}function o(e,t){return t.preventDefault(),!1}e.onKeyPress.add(function(e,o){var a;return n(o)||8!=o.keyCode&&46!=o.keyCode||!i()?void 0:(a=t(),e.getDoc().execCommand("delete",!1,null),a(),o.preventDefault(),!1)}),P.bind(e.getDoc(),"cut",function(a){var r;!n(a)&&i()&&(r=t(),e.onKeyUp.addToTop(o),setTimeout(function(){r(),e.onKeyUp.remove(o)},0))})}function h(){var t,i;P.bind(e.getDoc(),"selectionchange",function(){i&&(clearTimeout(i),i=0),i=window.setTimeout(function(){var i=M.getRng();t&&tinymce.dom.RangeUtils.compareRanges(i,t)||(e.nodeChanged(),t=i)},50)})}function p(){document.body.setAttribute("role","application")}function f(){e.onKeyDown.add(function(e,t){if(!n(t)&&t.keyCode===N&&M.isCollapsed()&&0===M.getRng(!0).startOffset){var i=M.getNode().previousSibling;if(i&&i.nodeName&&"table"===i.nodeName.toLowerCase())return tinymce.dom.Event.cancel(t)}})}function m(){i()>7||(t("RespectVisibilityInDesign",!0),e.contentStyles.push(".mceHideBrInPre pre br {display: none}"),P.addClass(e.getBody(),"mceHideBrInPre"),H.addNodeFilter("pre",function(e){for(var t,i,n,o,a=e.length;a--;)for(t=e[a].getAll("br"),i=t.length;i--;)n=t[i],o=n.prev,o&&3===o.type&&"\n"!=o.value.charAt(o.value-1)?o.value+="\n":n.parent.insert(new tinymce.html.Node("#text",3),n,!0).value="\n"}),B.addNodeFilter("pre",function(e){for(var t,i,n,o,a=e.length;a--;)for(t=e[a].getAll("br"),i=t.length;i--;)n=t[i],o=n.prev,o&&3==o.type&&(o.value=o.value.replace(/\r?\n$/,""))}))}function g(){P.bind(e.getBody(),"mouseup",function(){var e,t=M.getNode();"IMG"==t.nodeName&&((e=P.getStyle(t,"width"))&&(P.setAttrib(t,"width",e.replace(/[^0-9%]+/g,"")),P.setStyle(t,"width","")),(e=P.getStyle(t,"height"))&&(P.setAttrib(t,"height",e.replace(/[^0-9%]+/g,"")),P.setStyle(t,"height","")))})}function v(){e.onKeyDown.add(function(e,t){var i,o,a,r,s,l,c;if(i=t.keyCode==A,!n(t)&&(i||t.keyCode==N)&&!E.modifierPressed(t)&&(o=M.getRng(),a=o.startContainer,r=o.startOffset,c=o.collapsed,3==a.nodeType&&a.nodeValue.length>0&&(0===r&&!c||c&&r===(i?0:1)))){if(l=a.previousSibling,l&&"IMG"==l.nodeName)return;nonEmptyElements=e.schema.getNonEmptyElements(),t.preventDefault(),s=P.create("br",{id:"__tmp"}),a.parentNode.insertBefore(s,a),e.getDoc().execCommand(i?"ForwardDelete":"Delete",!1,null),a=M.getRng().startContainer,l=a.previousSibling,l&&1==l.nodeType&&!P.isBlock(l)&&P.isEmpty(l)&&!nonEmptyElements[l.nodeName.toLowerCase()]&&P.remove(l),P.remove("__tmp")}})}function b(){e.onKeyDown.add(function(e,t){var i,o,a,r,s;if(!n(t)&&t.keyCode==E.BACKSPACE&&(i=M.getRng(),o=i.startContainer,a=i.startOffset,r=P.getRoot(),s=o,i.collapsed&&0===a)){for(;s&&s.parentNode&&s.parentNode.firstChild==s&&s.parentNode!=r;)s=s.parentNode;"BLOCKQUOTE"===s.tagName&&(e.formatter.toggle("blockquote",null,s),i=P.createRng(),i.setStart(o,0),i.setEnd(o,0),M.setRng(i))}})}function y(){function i(){e._refreshContentEditable(),t("StyleWithCSS",!1),t("enableInlineTableEditing",!1),I.object_resizing||t("enableObjectResizing",!1)}I.readonly||(e.onBeforeExecCommand.add(i),e.onMouseDown.add(i))}function _(){function t(){O(P.select("a"),function(e){var t=e.parentNode,i=P.getRoot();if(t.lastChild===e){for(;t&&!P.isBlock(t);){if(t.parentNode.lastChild!==t||t===i)return;t=t.parentNode}P.add(t,"br",{"data-mce-bogus":1})}})}e.onExecCommand.add(function(e,i){"CreateLink"===i&&t(e)}),e.onSetContent.add(M.onSetContent.add(t))}function w(){I.forced_root_block&&e.onInit.add(function(){t("DefaultParagraphSeparator",I.forced_root_block)})}function x(){function t(t,i){t&&i.initial||e.execCommand("mceRepaint")}e.onUndo.add(t),e.onRedo.add(t),e.onSetContent.add(t)}function C(){e.onKeyDown.add(function(e,t){var i;n(t)||t.keyCode!=N||(i=e.getDoc().selection.createRange(),i&&i.item&&(t.preventDefault(),e.undoManager.beforeChange(),P.remove(i.item(0)),e.undoManager.add()))})}function k(){var t;i()>=10&&(t="",O("p div h1 h2 h3 h4 h5 h6".split(" "),function(e,i){t+=(i>0?",":"")+e+":empty"}),e.contentStyles.push(t+"{padding-right: 1px !important}"))}function T(){function i(e){var t,i;t=e.screenX-h,i=e.screenY-p,b=t*d[2]+f,y=i*d[3]+m,b=5>b?5:b,y=5>y?5:y,(E.modifierPressed(e)||"IMG"==c.nodeName&&d[2]*d[3]!==0)&&(b=Math.round(y/g),y=Math.round(b*g)),P.setStyles(u,{width:b,height:y}),d[2]<0&&u.clientWidth<=b&&P.setStyle(u,"left",s+(f-b)),d[3]<0&&u.clientHeight<=y&&P.setStyle(u,"top",l+(m-y))}function n(){function t(t,i){i&&(c.style[t]||!e.schema.isValid(c.nodeName.toLowerCase(),t)?P.setStyle(c,t,i):P.setAttrib(c,t,i))}t("width",b),t("height",y),P.unbind(w,"mousemove",i),P.unbind(w,"mouseup",n),_!=w&&(P.unbind(_,"mousemove",i),P.unbind(_,"mouseup",n)),P.remove(u),o(c)}function o(e){var t,o,r;a(),t=P.getPos(e),s=t.x,l=t.y,o=e.offsetWidth,r=e.offsetHeight,c!=e&&(c=e,b=y=0),O(v,function(e,t){var a;a=P.get("mceResizeHandle"+t),a?P.show(a):(a=P.add(w.documentElement,"div",{id:"mceResizeHandle"+t,"class":"mceResizeHandle",style:"cursor:"+t+"-resize; margin:0; padding:0"}),P.bind(a,"mousedown",function(t){t.preventDefault(),n(),h=t.screenX,p=t.screenY,f=c.clientWidth,m=c.clientHeight,g=m/f,d=e,u=c.cloneNode(!0),P.addClass(u,"mceClonedResizable"),P.setStyles(u,{left:s,top:l,margin:0}),w.documentElement.appendChild(u),P.bind(w,"mousemove",i),P.bind(w,"mouseup",n),_!=w&&(P.bind(_,"mousemove",i),P.bind(_,"mouseup",n))})),P.setStyles(a,{left:o*e[0]+s-a.offsetWidth/2,top:r*e[1]+l-a.offsetHeight/2})}),tinymce.isOpera||"IMG"!=c.nodeName||c.setAttribute("data-mce-selected","1")}function a(){c&&c.removeAttribute("data-mce-selected");for(var e in v)P.hide("mceResizeHandle"+e)}function r(){var e=P.getParent(M.getNode(),"table,img");O(P.select("img[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),e?o(e):a()}var s,l,c,u,d,h,p,f,m,g,v,b,y,_=document,w=e.getDoc();I.object_resizing&&I.webkit_fake_resize!==!1&&(t("enableObjectResizing",!1),v={n:[.5,0,0,-1],e:[1,.5,1,0],s:[.5,1,0,1],w:[0,.5,-1,0],nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},e.contentStyles.push(".mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000}"),e.onNodeChange.add(r),P.bind(w,"selectionchange",r),e.serializer.addAttributeFilter("data-mce-selected",function(e,t){for(var i=e.length;i--;)e[i].attr(t,null)}))}function D(){i()<9&&(H.addNodeFilter("noscript",function(e){for(var t,i,n=e.length;n--;)t=e[n],i=t.firstChild,i&&t.attr("data-mce-innertext",i.value)}),B.addNodeFilter("noscript",function(e){for(var t,i,n,o=e.length;o--;)t=e[o],i=e[o].firstChild,i?i.value=tinymce.html.Entities.decode(i.value):(n=t.attributes.map["data-mce-innertext"],n&&(t.attr("data-mce-innertext",null),i=new tinymce.html.Node("#text",3),i.value=n,i.raw=!0,t.append(i)))}))}function S(){e.contentStyles.push("body {min-height: 100px}"),e.onClick.add(function(t,i){"HTML"==i.target.nodeName&&(e.execCommand("SelectAll"),e.selection.collapse(!0),e.nodeChanged())})}var E=tinymce.VK,N=E.BACKSPACE,A=E.DELETE,P=e.dom,M=e.selection,I=e.settings,H=e.parser,B=e.serializer,O=tinymce.each;f(),b(),a(),tinymce.isWebKit&&(v(),o(),s(),u(),w(),tinymce.isIDevice?h():(T(),r())),tinymce.isIE&&!tinymce.isIE11&&(l(),p(),m(),g(),C(),k(),D()),tinymce.isIE11&&S(),tinymce.isGecko&&!tinymce.isIE11&&(l(),c(),d(),y(),_(),x()),tinymce.isOpera&&T()},function(e){function t(e){var t;return t=document.createElement("div"),t.innerHTML=e,t.textContent||t.innerText||e}function i(e,t){var i,n,a,r={};if(e){for(e=e.split(","),t=t||10,i=0;i<e.length;i+=2)n=String.fromCharCode(parseInt(e[i],t)),o[n]||(a="&"+e[i+1]+";",r[n]=a,r[a]=n);return r}}var n,o,a,r=/[&<>\"\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=/[<>&\"\']/g,c=/&(#x|#)?([\w]+);/g,u={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};
|
71
|
+
o={'"':""","'":"'","<":"<",">":">","&":"&"},a={"<":"<",">":">","&":"&",""":'"',"'":"'"},n=i("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),e.html=e.html||{},e.html.Entities={encodeRaw:function(e,t){return e.replace(t?r:s,function(e){return o[e]||e})},encodeAllRaw:function(e){return(""+e).replace(l,function(e){return o[e]||e})},encodeNumeric:function(e,t){return e.replace(t?r:s,function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":o[e]||"&#"+e.charCodeAt(0)+";"})},encodeNamed:function(e,t,i){return i=i||n,e.replace(t?r:s,function(e){return o[e]||i[e]||e})},getEncodeFunc:function(t,a){function l(e,t){return e.replace(t?r:s,function(e){return o[e]||a[e]||"&#"+e.charCodeAt(0)+";"||e})}function c(e,t){return u.encodeNamed(e,t,a)}var u=e.html.Entities;return a=i(a)||n,t=e.makeMap(t.replace(/\+/g,",")),t.named&&t.numeric?l:t.named?a?c:u.encodeNamed:t.numeric?u.encodeNumeric:u.encodeRaw},decode:function(e){return e.replace(c,function(e,i,o){return i?(o=parseInt(o,2===i.length?16:10),o>65535?(o-=65536,String.fromCharCode(55296+(o>>10),56320+(1023&o))):u[o]||String.fromCharCode(o)):a[e]||n[e]||t(e)})}}}(tinymce),tinymce.html.Styles=function(e,t){function i(e,t,i,n){function o(e){return e=parseInt(e).toString(16),e.length>1?e:"0"+e}return"#"+o(t)+o(i)+o(n)}var n,o,a,r=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,l=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,u={};for(e=e||{},a="\\\" \\' \\; \\: ; : ".split(" "),o=0;o<a.length;o++)u[a[o]]=""+o,u[""+o]=a[o];return{toHex:function(e){return e.replace(r,i)},parse:function(t){function n(e,t){var i,n,o,a;"none"===b["border-image"]&&delete b["border-image"],i=b[e+"-top"+t],i&&(n=b[e+"-right"+t],i==n&&(o=b[e+"-bottom"+t],n==o&&(a=b[e+"-left"+t],o==a&&(b[e+t]=a,delete b[e+"-top"+t],delete b[e+"-right"+t],delete b[e+"-bottom"+t],delete b[e+"-left"+t]))))}function o(e){var t,i=b[e];if(i&&!(i.indexOf(" ")<0)){for(i=i.split(" "),t=i.length;t--;)if(i[t]!==i[0])return!1;return b[e]=i[0],!0}}function a(e,t,i,n){o(t)&&o(i)&&o(n)&&(b[e]=b[t]+" "+b[i]+" "+b[n],delete b[t],delete b[i],delete b[n])}function d(e){return v=!0,u[e]}function h(e,t){return v&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return u[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e}function p(e,t,i,n,o,a){return(o=o||a)?(o=h(o),"'"+o.replace(/\'/g,"\\'")+"'"):(t=h(t||i||n),y&&(t=y.call(_,t,"style")),"url('"+t.replace(/\'/g,"\\'")+"')")}var f,m,g,v,b={},y=e.url_converter,_=e.url_converter_scope||this;if(t){for(t=t.replace(/\\[\"\';:\uFEFF]/g,d).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,d)});f=l.exec(t);)m=f[1].replace(c,"").toLowerCase(),g=f[2].replace(c,""),m&&g.length>0&&("font-weight"===m&&"700"===g?g="bold":("color"===m||"background-color"===m)&&(g=g.toLowerCase()),g=g.replace(r,i),g=g.replace(s,p),b[m]=v?h(g,!0):g),l.lastIndex=f.index+f[0].length;n("border",""),n("border","-width"),n("border","-color"),n("border","-style"),n("padding",""),n("margin",""),a("border","border-width","border-style","border-color"),"medium none"===b.border&&delete b.border}return b},serialize:function(e,i){function o(i){var o,a,r,l;if(o=t.styles[i])for(a=0,r=o.length;r>a;a++)i=o[a],l=e[i],l!==n&&l.length>0&&(s+=(s.length>0?" ":"")+i+": "+l+";")}var a,r,s="";if(i&&t&&t.styles)o("*"),o(i);else for(a in e)r=e[a],r!==n&&r.length>0&&(s+=(s.length>0?" ":"")+a+": "+r+";");return s}}},function(e){function t(e,t){return e.split(t||",")}function i(e,i){function n(t){return t.replace(/[A-Z]+/g,function(t){return n(e[t])})}var o,a={};for(o in e)e.hasOwnProperty(o)&&(e[o]=n(e[o]));return n(i).replace(/#/g,"#text").replace(/(\w+)\[([^\]]+)\]\[([^\]]*)\]/g,function(e,i,n,o){n=t(n,"|"),a[i]={attributes:r(n),attributesOrder:n,children:r(o,"|",{"#comment":{}})}}),a}function n(){var e=a.html5;return e||(e=a.html5=i({A:"id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"#|a|abbr|area|audio|b|bdo|br|button|canvas|cite|code|command|datalist|del|dfn|em|embed|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|meta|meter|noscript|object|output|progress|q|ruby|samp|script|select|small|span|strong|sub|sup|svg|textarea|time|var|video|wbr",C:"#|a|abbr|area|address|article|aside|audio|b|bdo|blockquote|br|button|canvas|cite|code|command|datalist|del|details|dfn|dialog|div|dl|em|embed|fieldset|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|menu|meta|meter|nav|noscript|ol|object|output|p|pre|progress|q|ruby|samp|script|section|select|small|span|strong|style|sub|sup|svg|table|textarea|time|ul|var|video"},"html[A|manifest][body|head]head[A][base|command|link|meta|noscript|script|style|title]title[A][#]base[A|href|target][]link[A|href|rel|media|type|sizes][]meta[A|http-equiv|name|content|charset][]style[A|type|media|scoped][#]script[A|charset|type|src|defer|async][#]noscript[A][C]body[A][C]section[A][C]nav[A][C]article[A][C]aside[A][C]h1[A][B]h2[A][B]h3[A][B]h4[A][B]h5[A][B]h6[A][B]hgroup[A][h1|h2|h3|h4|h5|h6]header[A][C]footer[A][C]address[A][C]p[A][B]br[A][]pre[A][B]dialog[A][dd|dt]blockquote[A|cite][C]ol[A|start|reversed][li]ul[A][li]li[A|value][C]dl[A][dd|dt]dt[A][B]dd[A][C]a[A|href|target|ping|rel|media|type][B]em[A][B]strong[A][B]small[A][B]cite[A][B]q[A|cite][B]dfn[A][B]abbr[A][B]code[A][B]var[A][B]samp[A][B]kbd[A][B]sub[A][B]sup[A][B]i[A][B]b[A][B]mark[A][B]progress[A|value|max][B]meter[A|value|min|max|low|high|optimum][B]time[A|datetime][B]ruby[A][B|rt|rp]rt[A][B]rp[A][B]bdo[A][B]span[A][B]ins[A|cite|datetime][B]del[A|cite|datetime][B]figure[A][C|legend|figcaption]figcaption[A][C]img[A|alt|src|height|width|usemap|ismap][]iframe[A|name|src|height|width|sandbox|seamless][]embed[A|src|height|width|type][]object[A|data|type|height|width|usemap|name|form|classid][param]param[A|name|value][]details[A|open][C|legend]command[A|type|label|icon|disabled|checked|radiogroup][]menu[A|type|label][C|li]legend[A][C|B]div[A][C]source[A|src|type|media][]audio[A|src|autobuffer|autoplay|loop|controls][source]video[A|src|autobuffer|autoplay|loop|controls|width|height|poster][source]hr[A][]form[A|accept-charset|action|autocomplete|enctype|method|name|novalidate|target][C]fieldset[A|disabled|form|name][C|legend]label[A|form|for][B]input[A|type|accept|alt|autocomplete|autofocus|checked|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|height|list|max|maxlength|min|multiple|pattern|placeholder|readonly|required|size|src|step|width|files|value|name][]button[A|autofocus|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|name|value|type][B]select[A|autofocus|disabled|form|multiple|name|size][option|optgroup]datalist[A][B|option]optgroup[A|disabled|label][option]option[A|disabled|selected|label|value][]textarea[A|autofocus|disabled|form|maxlength|name|placeholder|readonly|required|rows|cols|wrap][]keygen[A|autofocus|challenge|disabled|form|keytype|name][]output[A|for|form|name][B]canvas[A|width|height][]map[A|name][B|C]area[A|shape|coords|href|alt|target|media|rel|ping|type][]mathml[A][]svg[A][]table[A|border][caption|colgroup|thead|tfoot|tbody|tr]caption[A][C]colgroup[A|span][col]col[A|span][]thead[A][tr]tfoot[A][tr]tbody[A][tr]tr[A][th|td]th[A|headers|rowspan|colspan|scope][B]td[A|headers|rowspan|colspan][C]wbr[A][]")),e}function o(){var e=a.html4;return e||(e=a.html4=i({Z:"H|K|N|O|P",Y:"X|form|R|Q",ZG:"E|span|width|align|char|charoff|valign",X:"p|T|div|U|W|isindex|fieldset|table",ZF:"E|align|char|charoff|valign",W:"pre|hr|blockquote|address|center|noframes",ZE:"abbr|axis|headers|scope|rowspan|colspan|align|char|charoff|valign|nowrap|bgcolor|width|height",ZD:"[E][S]",U:"ul|ol|dl|menu|dir",ZC:"p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q",T:"h1|h2|h3|h4|h5|h6",ZB:"X|S|Q",S:"R|P",ZA:"a|G|J|M|O|P",R:"a|H|K|N|O",Q:"noscript|P",P:"ins|del|script",O:"input|select|textarea|label|button",N:"M|L",M:"em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym",L:"sub|sup",K:"J|I",J:"tt|i|b|u|s|strike",I:"big|small|font|basefont",H:"G|F",G:"br|span|bdo",F:"object|applet|img|map|iframe",E:"A|B|C",D:"accesskey|tabindex|onfocus|onblur",C:"onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"lang|xml:lang|dir",A:"id|class|style|title"},"script[id|charset|type|language|src|defer|xml:space][]style[B|id|type|media|title|xml:space][]object[E|declare|classid|codebase|data|type|codetype|archive|standby|width|height|usemap|name|tabindex|align|border|hspace|vspace][#|param|Y]param[id|name|value|valuetype|type][]p[E|align][#|S]a[E|D|charset|type|name|href|hreflang|rel|rev|shape|coords|target][#|Z]br[A|clear][]span[E][#|S]bdo[A|C|B][#|S]applet[A|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][#|param|Y]h1[E|align][#|S]img[E|src|alt|name|longdesc|width|height|usemap|ismap|align|border|hspace|vspace][]map[B|C|A|name][X|form|Q|area]h2[E|align][#|S]iframe[A|longdesc|name|src|frameborder|marginwidth|marginheight|scrolling|align|width|height][#|Y]h3[E|align][#|S]tt[E][#|S]i[E][#|S]b[E][#|S]u[E][#|S]s[E][#|S]strike[E][#|S]big[E][#|S]small[E][#|S]font[A|B|size|color|face][#|S]basefont[id|size|color|face][]em[E][#|S]strong[E][#|S]dfn[E][#|S]code[E][#|S]q[E|cite][#|S]samp[E][#|S]kbd[E][#|S]var[E][#|S]cite[E][#|S]abbr[E][#|S]acronym[E][#|S]sub[E][#|S]sup[E][#|S]input[E|D|type|name|value|checked|disabled|readonly|size|maxlength|src|alt|usemap|onselect|onchange|accept|align][]select[E|name|size|multiple|disabled|tabindex|onfocus|onblur|onchange][optgroup|option]optgroup[E|disabled|label][option]option[E|selected|disabled|label|value][]textarea[E|D|name|rows|cols|disabled|readonly|onselect|onchange][]label[E|for|accesskey|onfocus|onblur][#|S]button[E|D|name|value|type|disabled][#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]h4[E|align][#|S]ins[E|cite|datetime][#|Y]h5[E|align][#|S]del[E|cite|datetime][#|Y]h6[E|align][#|S]div[E|align][#|Y]ul[E|type|compact][li]li[E|type|value][#|Y]ol[E|type|compact|start][li]dl[E|compact][dt|dd]dt[E][#|S]dd[E][#|Y]menu[E|compact][li]dir[E|compact][li]pre[E|width|xml:space][#|ZA]hr[E|align|noshade|size|width][]blockquote[E|cite][#|Y]address[E][#|S|p]center[E][#|Y]noframes[E][#|Y]isindex[A|B|prompt][]fieldset[E][#|legend|Y]legend[E|accesskey|align][#|S]table[E|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|col|colgroup|thead|tfoot|tbody|tr]caption[E|align][#|S]col[ZG][]colgroup[ZG][col]thead[ZF][tr]tr[ZF|bgcolor][th|td]th[E|ZE][#|Y]form[E|action|method|name|enctype|onsubmit|onreset|accept|accept-charset|target][#|X|R|Q]noscript[E][#|Y]td[E|ZE][#|Y]tfoot[ZF][tr]tbody[ZF][tr]area[E|D|shape|coords|href|nohref|alt|target][]base[id|href|target][]body[E|onload|onunload|background|bgcolor|text|link|vlink|alink][#|Y]")),e}var a={},r=e.makeMap,s=e.each;e.html.Schema=function(i){function l(t,n,o){var s=i[t];return s?s=r(s,",",r(s.toUpperCase()," ")):(s=a[t],s||(s=r(n," ",r(n.toUpperCase()," ")),s=e.extend(s,o),a[t]=s)),s}function c(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")}function u(i){var n,o,a,s,l,u,d,h,p,f,m,g,v,b,y,_,w,x,C,T=/^([#+\-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,S=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,E=/[*?+]/;if(i)for(i=t(i),k["@"]&&(_=k["@"].attributes,w=k["@"].attributesOrder),n=0,o=i.length;o>n;n++)if(l=T.exec(i[n])){if(b=l[1],p=l[2],y=l[3],h=l[4],g={},v=[],u={attributes:g,attributesOrder:v},"#"===b&&(u.paddEmpty=!0),"-"===b&&(u.removeEmpty=!0),_){for(x in _)g[x]=_[x];v.push.apply(v,w)}if(h)for(h=t(h,"|"),a=0,s=h.length;s>a;a++)if(l=S.exec(h[a])){if(d={},m=l[1],f=l[2].replace(/::/g,":"),b=l[3],C=l[4],"!"===m&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(f),d.required=!0),"-"===m){delete g[f],v.splice(e.inArray(v,f),1);continue}b&&("="===b&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:f,value:C}),d.defaultValue=C),":"===b&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:f,value:C}),d.forcedValue=C),"<"===b&&(d.validValues=r(C,"?"))),E.test(f)?(u.attributePatterns=u.attributePatterns||[],d.pattern=c(f),u.attributePatterns.push(d)):(g[f]||v.push(f),g[f]=d)}_||"@"!=p||(_=g,w=v),y&&(u.outputName=p,k[y]=u),E.test(p)?(u.pattern=c(p),D.push(u)):k[p]=u}}function d(e){k={},D=[],u(e),s(g,function(e,t){T[t]=e.children})}function h(e){var i=/^(~)?(.+)$/;e&&s(t(e),function(e){var t=i.exec(e),n="~"===t[1],o=n?"span":"div",a=t[2];T[a]=T[o],S[a]=o,n||(w[a.toUpperCase()]={},w[a]={}),k[a]||(k[a]=k[o]),s(T,function(e){e[o]&&(e[a]=e[o])})})}function p(e){var i=/^([+\-]?)(\w+)\[([^\]]+)\]$/;e&&s(t(e),function(e){var n,o,a=i.exec(e);a&&(o=a[1],n=o?T[a[2]]:T[a[2]]={"#comment":{}},n=T[a[2]],s(t(a[3],"|"),function(e){"-"===o?delete n[e]:n[e]={}}))})}function f(e){var t,i=k[e];if(i)return i;for(t=D.length;t--;)if(i=D[t],i.pattern.test(e))return i}var m,g,v,b,y,_,w,x,C=this,k={},T={},D=[],S={};i=i||{},g="html5"==i.schema?n():o(),i.verify_html===!1&&(i.valid_elements="*[*]"),i.valid_styles&&(m={},s(i.valid_styles,function(t,i){m[i]=e.explode(t)})),v=l("whitespace_elements","pre script noscript style textarea"),b=l("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),y=l("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr"),_=l("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),x=l("non_empty_elements","td th iframe video audio object script",y),textBlockElementsMap=l("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside nav figure"),w=l("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex samp option datalist select optgroup",textBlockElementsMap),i.valid_elements?d(i.valid_elements):(s(g,function(e,t){k[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},T[t]=e.children}),"html5"!=i.schema&&s(t("strong/b,em/i"),function(e){e=t(e,"/"),k[e[1]].outputName=e[0]}),k.img.attributesDefault=[{name:"alt",value:""}],s(t("ol,ul,sub,sup,blockquote,span,font,a,table,tbody,tr,strong,em,b,i"),function(e){k[e]&&(k[e].removeEmpty=!0)}),s(t("p,h1,h2,h3,h4,h5,h6,th,td,pre,div,address,caption"),function(e){k[e].paddEmpty=!0})),h(i.custom_elements),p(i.valid_children),u(i.extended_valid_elements),p("+ol[ul|ol],+ul[ul|ol]"),i.invalid_elements&&e.each(e.explode(i.invalid_elements),function(e){k[e]&&delete k[e]}),f("span")||u("span[!data-mce-type|*]"),C.children=T,C.styles=m,C.getBoolAttrs=function(){return _},C.getBlockElements=function(){return w},C.getTextBlockElements=function(){return textBlockElementsMap},C.getShortEndedElements=function(){return y},C.getSelfClosingElements=function(){return b},C.getNonEmptyElements=function(){return x},C.getWhiteSpaceElements=function(){return v},C.isValidChild=function(e,t){var i=T[e];return!(!i||!i[t])},C.isValid=function(e,t){var i,n,o=f(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(i=o.attributePatterns)for(n=i.length;n--;)if(i[n].pattern.test(e))return!0}return!1},C.getElementRule=f,C.getCustomElements=function(){return S},C.addValidElements=u,C.setValidElements=d,C.addCustomElements=h,C.addValidChildren=p,C.elements=k}}(tinymce),function(e){e.html.SaxParser=function(t,i){var n=this,o=function(){};t=t||{},n.schema=i=i||new e.html.Schema,t.fix_self_closing!==!1&&(t.fix_self_closing=!0),e.each("comment cdata text start end pi doctype".split(" "),function(e){e&&(n[e]=t[e]||o)}),n.parse=function(n){function o(e){var t,i;for(t=L.length;t--&&L[t].name!==e;);if(t>=0){for(i=L.length-1;i>=t;i--)e=L[i],e.valid&&O.end(e.name);L.length=t}}function a(e,t,i,n,o){var a,r;if(t=t.toLowerCase(),i=t in g?t:F(i||n||o||""),b&&!p&&0!==t.indexOf("data-")){if(a=k[t],!a&&T){for(r=T.length;r--&&(a=T[r],!a.pattern.test(t)););-1===r&&(a=null)}if(!a)return;if(a.validValues&&!(i in a.validValues))return}c.map[t]=i,c.push({name:t,value:i})}var r,s,l,c,u,d,h,p,f,m,g,v,b,y,_,w,x,C,k,T,D,S,E,N,A,P,M,I,H,B,O=this,R=0,L=[],j=0,F=e.html.Entities.decode;for(A=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([A-Za-z0-9\\-\\:\\.]+)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),P=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,M={script:/<\/script[^>]*>/gi,style:/<\/style[^>]*>/gi,noscript:/<\/noscript[^>]*>/gi},m=i.getShortEndedElements(),N=t.self_closing_elements||i.getSelfClosingElements(),g=i.getBoolAttrs(),b=t.validate,f=t.remove_internals,H=t.fix_self_closing,B=e.isIE,C=/^:/;r=A.exec(n);){if(R<r.index&&O.text(F(n.substr(R,r.index-R))),s=r[6])s=s.toLowerCase(),B&&C.test(s)&&(s=s.substr(1)),o(s);else if(s=r[7]){if(s=s.toLowerCase(),B&&C.test(s)&&(s=s.substr(1)),v=s in m,H&&N[s]&&L.length>0&&L[L.length-1].name===s&&o(s),!b||(y=i.getElementRule(s))){if(_=!0,b&&(k=y.attributes,T=y.attributePatterns),(x=r[8])?(p=-1!==x.indexOf("data-mce-type"),p&&f&&(_=!1),c=[],c.map={},x.replace(P,a)):(c=[],c.map={}),b&&!p){if(D=y.attributesRequired,S=y.attributesDefault,E=y.attributesForced)for(u=E.length;u--;)w=E[u],h=w.name,I=w.value,"{$uid}"===I&&(I="mce_"+j++),c.map[h]=I,c.push({name:h,value:I});if(S)for(u=S.length;u--;)w=S[u],h=w.name,h in c.map||(I=w.value,"{$uid}"===I&&(I="mce_"+j++),c.map[h]=I,c.push({name:h,value:I}));if(D){for(u=D.length;u--&&!(D[u]in c.map););-1===u&&(_=!1)}c.map["data-mce-bogus"]&&(_=!1)}_&&O.start(s,c,v)}else _=!1;if(l=M[s]){l.lastIndex=R=r.index+r[0].length,(r=l.exec(n))?(_&&(d=n.substr(R,r.index-R)),R=r.index+r[0].length):(d=n.substr(R),R=n.length),_&&d.length>0&&O.text(d,!0),_&&O.end(s),A.lastIndex=R;continue}v||(x&&x.indexOf("/")==x.length-1?_&&O.end(s):L.push({name:s,valid:_}))}else(s=r[1])?O.comment(s):(s=r[2])?O.cdata(s):(s=r[3])?O.doctype(s):(s=r[4])&&O.pi(s,r[5]);R=r.index+r[0].length}for(R<n.length&&O.text(F(n.substr(R))),u=L.length-1;u>=0;u--)s=L[u],s.valid&&O.end(s.name)}}}(tinymce),function(e){function t(e,t,i){var n,o,a=i?"lastChild":"firstChild",r=i?"prev":"next";if(e[a])return e[a];if(e!==t){if(n=e[r])return n;for(o=e.parent;o&&o!==t;o=o.parent)if(n=o[r])return n}}function i(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}var n=/^[ \t\r\n]*$/,o={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};e.extend(i.prototype,{replace:function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},attr:function(e,t){var i,n,o,a=this;if("string"!=typeof e){for(n in e)a.attr(n,e[n]);return a}if(i=a.attributes){if(t!==o){if(null===t){if(e in i.map)for(delete i.map[e],n=i.length;n--;)if(i[n].name===e)return i=i.splice(n,1),a;return a}if(e in i.map){for(n=i.length;n--;)if(i[n].name===e){i[n].value=t;break}}else i.push({name:e,value:t});return i.map[e]=t,a}return i.map[e]}},clone:function(){var e,t,n,o,a,r=this,s=new i(r.name,r.type);if(n=r.attributes){for(a=[],a.map={},e=0,t=n.length;t>e;e++)o=n[e],"id"!==o.name&&(a[a.length]={name:o.name,value:o.value},a.map[o.name]=o.value);s.attributes=a}return s.value=r.value,s.shortEnded=r.shortEnded,s},wrap:function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},unwrap:function(){var e,t,i=this;for(e=i.firstChild;e;)t=e.next,i.insert(e,i,!0),e=t;i.remove()},remove:function(){var e=this,t=e.parent,i=e.next,n=e.prev;return t&&(t.firstChild===e?(t.firstChild=i,i&&(i.prev=null)):n.next=i,t.lastChild===e?(t.lastChild=n,n&&(n.next=null)):i.prev=n,e.parent=e.next=e.prev=null),e},append:function(e){var t,i=this;return e.parent&&e.remove(),t=i.lastChild,t?(t.next=e,e.prev=t,i.lastChild=e):i.lastChild=i.firstChild=e,e.parent=i,e},insert:function(e,t,i){var n;return e.parent&&e.remove(),n=t.parent||this,i?(t===n.firstChild?n.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===n.lastChild?n.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=n,e},getAll:function(e){var i,n=this,o=[];for(i=n.firstChild;i;i=t(i,n))i.name===e&&o.push(i);return o},empty:function(){var e,i,n,o=this;if(o.firstChild){for(e=[],n=o.firstChild;n;n=t(n,o))e.push(n);for(i=e.length;i--;)n=e[i],n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}return o.firstChild=o.lastChild=null,o},isEmpty:function(e){var i,o,a=this,r=a.firstChild;if(r)do{if(1===r.type){if(r.attributes.map["data-mce-bogus"])continue;if(e[r.name])return!1;for(i=r.attributes.length;i--;)if(o=r.attributes[i].name,"name"===o||0===o.indexOf("data-mce-"))return!1}if(8===r.type)return!1;if(3===r.type&&!n.test(r.value))return!1}while(r=t(r,a));return!0},walk:function(e){return t(this,null,e)}}),e.extend(i,{create:function(e,t){var n,a;if(n=new i(e,o[e]||1),t)for(a in t)n.attr(a,t[a]);return n}}),e.html.Node=i}(tinymce),function(e){var t=e.html.Node;e.html.DomParser=function(i,n){function o(i){var o,r,s,l,c,u,d,h,p,f,m,g,v,b;for(m=e.makeMap("tr,td,th,tbody,thead,tfoot,table"),f=n.getNonEmptyElements(),g=n.getTextBlockElements(),o=0;o<i.length;o++)if(r=i[o],r.parent&&!r.fixed)if(g[r.name]&&"li"==r.parent.name){for(v=r.next;v&&g[v.name];)v.name="li",v.fixed=!0,r.parent.insert(v,r.parent),v=v.next;r.unwrap(r)}else{for(l=[r],s=r.parent;s&&!n.isValidChild(s.name,r.name)&&!m[s.name];s=s.parent)l.push(s);if(s&&l.length>1){for(l.reverse(),c=u=a.filterNode(l[0].clone()),p=0;p<l.length-1;p++){for(n.isValidChild(u.name,l[p].name)?(d=a.filterNode(l[p].clone()),u.append(d)):d=u,h=l[p].firstChild;h&&h!=l[p+1];)b=h.next,d.append(h),h=b;u=d}c.isEmpty(f)?s.insert(r,l[0],!0):(s.insert(c,l[0],!0),s.insert(r,c)),s=l[0],(s.isEmpty(f)||s.firstChild===s.lastChild&&"br"===s.firstChild.name)&&s.empty().remove()}else if(r.parent){if("li"===r.name){if(v=r.prev,v&&("ul"===v.name||"ul"===v.name)){v.append(r);continue}if(v=r.next,v&&("ul"===v.name||"ul"===v.name)){v.insert(r,v.firstChild,!0);continue}r.wrap(a.filterNode(new t("ul",1)));continue}n.isValidChild(r.parent.name,"div")&&n.isValidChild("div",r.name)?r.wrap(a.filterNode(new t("div",1))):"style"===r.name||"script"===r.name?r.empty().remove():r.unwrap()}}}var a=this,r={},s=[],l={},c={};i=i||{},i.validate="validate"in i?i.validate:!0,i.root_name=i.root_name||"body",a.schema=n=n||new e.html.Schema,a.filterNode=function(e){var t,i,n;i in r&&(n=l[i],n?n.push(e):l[i]=[e]),t=s.length;for(;t--;)i=s[t].name,i in e.attributes.map&&(n=c[i],n?n.push(e):c[i]=[e]);return e},a.addNodeFilter=function(t,i){e.each(e.explode(t),function(e){var t=r[e];t||(r[e]=t=[]),t.push(i)})},a.addAttributeFilter=function(t,i){e.each(e.explode(t),function(e){var t;for(t=0;t<s.length;t++)if(s[t].name===e)return s[t].callbacks.push(i),void 0;s.push({name:e,callbacks:[i]})})},a.parse=function(a,u){function d(){for(var e,t,i=g.firstChild;i;)e=i.next,3==i.type||1==i.type&&"p"!==i.name&&!D[i.name]&&!i.attr("data-mce-type")?t?t.append(i):(t=h(B,1),g.insert(t,i),t.append(i)):t=null,i=e}function h(e,i){var n,o=new t(e,i);return e in r&&(n=l[e],n?n.push(o):l[e]=[o]),o}function p(e){var t,i,n;for(t=e.prev;t&&3===t.type;)i=t.value.replace(N,""),i.length>0?(t.value=i,t=t.prev):(n=t.prev,t.remove(),t=n)}function f(e){var t,i={};for(t in e)"li"!==t&&"p"!=t&&(i[t]=e[t]);return i}var m,g,v,b,y,_,w,x,C,k,T,D,S,E,N,A,P,M,I,H,B,O=[];if(u=u||{},l={},c={},D=e.extend(e.makeMap("script,style,head,html,body,title,meta,param"),n.getBlockElements()),H=n.getNonEmptyElements(),I=n.children,T=i.validate,B="forced_root_block"in u?u.forced_root_block:i.forced_root_block,M=n.getWhiteSpaceElements(),S=/^[ \t\r\n]+/,N=/[ \t\r\n]+$/,A=/[ \t\r\n]+/g,P=/^[ \t\r\n]+$/,m=new e.html.SaxParser({validate:T,self_closing_elements:f(n.getSelfClosingElements()),cdata:function(e){v.append(h("#cdata",4)).value=e},text:function(e,t){var i;E||(e=e.replace(A," "),v.lastChild&&D[v.lastChild.name]&&(e=e.replace(S,""))),0!==e.length&&(i=h("#text",3),i.raw=!!t,v.append(i).value=e)},comment:function(e){v.append(h("#comment",8)).value=e},pi:function(e,t){v.append(h(e,7)).value=t,p(v)},doctype:function(e){var t;t=v.append(h("#doctype",10)),t.value=e,p(v)},start:function(e,t,i){var o,a,r,l,u;if(r=T?n.getElementRule(e):{}){for(o=h(r.outputName||e,1),o.attributes=t,o.shortEnded=i,v.append(o),u=I[v.name],u&&I[o.name]&&!u[o.name]&&O.push(o),a=s.length;a--;)l=s[a].name,l in t.map&&(C=c[l],C?C.push(o):c[l]=[o]);D[e]&&p(o),i||(v=o),!E&&M[e]&&(E=!0)}},end:function(e){var i,o,a,r,s;if(o=T?n.getElementRule(e):{}){if(D[e]&&!E){if(i=v.firstChild,i&&3===i.type)for(a=i.value.replace(S,""),a.length>0?(i.value=a,i=i.next):(r=i.next,i.remove(),i=r);i&&3===i.type;)a=i.value,r=i.next,(0===a.length||P.test(a))&&(i.remove(),i=r),i=r;if(i=v.lastChild,i&&3===i.type)for(a=i.value.replace(N,""),a.length>0?(i.value=a,i=i.prev):(r=i.prev,i.remove(),i=r);i&&3===i.type;)a=i.value,r=i.prev,(0===a.length||P.test(a))&&(i.remove(),i=r),i=r}if(E&&M[e]&&(E=!1),(o.removeEmpty||o.paddEmpty)&&v.isEmpty(H))if(o.paddEmpty)v.empty().append(new t("#text","3")).value=" ";else if(!v.attributes.map.name&&!v.attributes.map.id)return s=v.parent,v.empty().remove(),v=s,void 0;v=v.parent}}},n),g=v=new t(u.context||i.root_name,11),m.parse(a),T&&O.length&&(u.context?u.invalid=!0:o(O)),B&&"body"==g.name&&d(),!u.invalid){for(k in l){for(C=r[k],b=l[k],w=b.length;w--;)b[w].parent||b.splice(w,1);for(y=0,_=C.length;_>y;y++)C[y](b,k,u)}for(y=0,_=s.length;_>y;y++)if(C=s[y],C.name in c){for(b=c[C.name],w=b.length;w--;)b[w].parent||b.splice(w,1);for(w=0,x=C.callbacks.length;x>w;w++)C.callbacks[w](b,C.name,u)}}return g},i.remove_trailing_brs&&a.addNodeFilter("br",function(t){var i,o,a,r,s,l,c=t.length,u=e.extend({},n.getBlockElements()),d=n.getNonEmptyElements();for(u.body=1,i=0;c>i;i++)if(o=t[i],a=o.parent,u[o.parent.name]&&o===a.lastChild){for(s=o.prev;s;){if(l=s.name,"span"!==l||"bookmark"!==s.attr("data-mce-type")){if("br"!==l)break;if("br"===l){o=null;break}}s=s.prev}o&&(o.remove(),a.isEmpty(d)&&(elementRule=n.getElementRule(a.name),elementRule&&(elementRule.removeEmpty?a.remove():elementRule.paddEmpty&&(a.empty().append(new e.html.Node("#text",3)).value=" "))))}else{for(r=o;a.firstChild===r&&a.lastChild===r&&(r=a,!u[a.name]);)a=a.parent;r===a&&(textNode=new e.html.Node("#text",3),textNode.value=" ",o.replace(textNode))}}),i.allow_html_in_named_anchor||a.addAttributeFilter("id,name",function(e){for(var t,i,n,o,a=e.length;a--;)if(o=e[a],"a"===o.name&&o.firstChild&&!o.attr("href")){n=o.parent,t=o.lastChild;do i=t.prev,n.insert(t,o),t=i;while(t)}})}}(tinymce),tinymce.html.Writer=function(e){var t,i,n,o,a,r=[];return e=e||{},t=e.indent,i=tinymce.makeMap(e.indent_before||""),n=tinymce.makeMap(e.indent_after||""),o=tinymce.html.Entities.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"==e.element_format,{start:function(e,s,l){var c,u,d,h;if(t&&i[e]&&r.length>0&&(h=r[r.length-1],h.length>0&&"\n"!==h&&r.push("\n")),r.push("<",e),s)for(c=0,u=s.length;u>c;c++)d=s[c],r.push(" ",d.name,'="',o(d.value,!0),'"');r[r.length]=!l||a?">":" />",l&&t&&n[e]&&r.length>0&&(h=r[r.length-1],h.length>0&&"\n"!==h&&r.push("\n"))},end:function(e){var i;r.push("</",e,">"),t&&n[e]&&r.length>0&&(i=r[r.length-1],i.length>0&&"\n"!==i&&r.push("\n"))},text:function(e,t){e.length>0&&(r[r.length]=t?e:o(e))},cdata:function(e){r.push("<![CDATA[",e,"]]>")},comment:function(e){r.push("<!--",e,"-->")},pi:function(e,i){i?r.push("<?",e," ",i,"?>"):r.push("<?",e,"?>"),t&&r.push("\n")},doctype:function(e){r.push("<!DOCTYPE",e,">",t?"\n":"")},reset:function(){r.length=0},getContent:function(){return r.join("").replace(/\n$/,"")}}},function(e){e.html.Serializer=function(t,i){var n=this,o=new e.html.Writer(t);t=t||{},t.validate="validate"in t?t.validate:!0,n.schema=i=i||new e.html.Schema,n.writer=o,n.serialize=function(e){function n(e){var t,s,l,c,u,d,h,p,f,m=a[e.type];if(m)m(e);else{if(t=e.name,s=e.shortEnded,l=e.attributes,r&&l&&l.length>1){for(d=[],d.map={},f=i.getElementRule(e.name),h=0,p=f.attributesOrder.length;p>h;h++)c=f.attributesOrder[h],c in l.map&&(u=l.map[c],d.map[c]=u,d.push({name:c,value:u}));for(h=0,p=l.length;p>h;h++)c=l[h].name,c in d.map||(u=l.map[c],d.map[c]=u,d.push({name:c,value:u}));l=d}if(o.start(e.name,l,s),!s){if(e=e.firstChild)do n(e);while(e=e.next);o.end(t)}}}var a,r;return r=t.validate,a={3:function(e){o.text(e.value,e.raw)},8:function(e){o.comment(e.value)},7:function(e){o.pi(e.name,e.value)},10:function(e){o.doctype(e.value)},4:function(e){o.cdata(e.value)},11:function(e){if(e=e.firstChild)do n(e);while(e=e.next)}},o.reset(),1!=e.type||t.inner?a[11](e):n(e),o.getContent()}}}(tinymce),tinymce.dom={},function(e,t){function i(e,t,i,n){e.addEventListener?e.addEventListener(t,i,n||!1):e.attachEvent&&e.attachEvent("on"+t,i)}function n(e,t,i,n){e.removeEventListener?e.removeEventListener(t,i,n||!1):e.detachEvent&&e.detachEvent("on"+t,i)}function o(e,t){function i(){return!1}function n(){return!0}var o,a=t||{};for(o in e)"layerX"!==o&&"layerY"!==o&&(a[o]=e[o]);return a.target||(a.target=a.srcElement||document),a.preventDefault=function(){a.isDefaultPrevented=n,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},a.stopPropagation=function(){a.isPropagationStopped=n,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},a.stopImmediatePropagation=function(){a.isImmediatePropagationStopped=n,a.stopPropagation()},a.isDefaultPrevented||(a.isDefaultPrevented=i,a.isPropagationStopped=i,a.isImmediatePropagationStopped=i),a}function a(e,t,o){function a(){o.domLoaded||(o.domLoaded=!0,t(l))}var r=e.document,l={type:"ready"};return"complete"==r.readyState?(a(),void 0):(s?i(e,"DOMContentLoaded",a):(i(r,"readystatechange",function(){"complete"===r.readyState&&(n(r,"readystatechange",arguments.callee),a())}),r.documentElement.doScroll&&e===e.top&&!function(){try{r.documentElement.doScroll("left")}catch(e){return setTimeout(arguments.callee,0),void 0}a()}()),i(e,"load",a),void 0)}function r(e){function r(e,t){var i,n,o,a;if(i=p[t][e.type])for(n=0,o=i.length;o>n;n++)if(a=i[n],a&&a.func.call(a.scope,e)===!1&&e.preventDefault(),e.isImmediatePropagationStopped())return}var l,c,u,d,h=this,p={};u="onmouseenter"in document.documentElement,c="onfocusin"in document.documentElement,d={mouseenter:"mouseover",mouseleave:"mouseout"},l=1,h.domLoaded=!1,h.events=p,h.bind=function(n,f,m,g){function v(e){r(o(e||T.event),b)}var b,y,_,w,x,C,k,T=window;
|
72
|
+
if(n&&3!==n.nodeType&&8!==n.nodeType){for(n[t]?(b=n[t],p[b]||(p[b]={})):(b=l++,n[t]=b,p[b]={}),g=g||n,f=f.split(" "),_=f.length;_--;)w=f[_],C=v,x=k=!1,"DOMContentLoaded"===w&&(w="ready"),!h.domLoaded&&"complete"!=n.readyState||"ready"!==w?(u||(x=d[w],x&&(C=function(e){var t,i;if(t=e.currentTarget,i=e.relatedTarget,i&&t.contains)i=t.contains(i);else for(;i&&i!==t;)i=i.parentNode;i||(e=o(e||T.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,r(e,b))})),c||"focusin"!==w&&"focusout"!==w||(k=!0,x="focusin"===w?"focus":"blur",C=function(e){e=o(e||T.event),e.type="focus"===e.type?"focusin":"focusout",r(e,b)}),y=p[b][w],y?y.push({func:m,scope:g}):(p[b][w]=y=[{func:m,scope:g}],y.fakeName=x,y.capture=k,y.nativeHandler=C,s||(y.proxyHandler=e(b)),"ready"===w?a(n,C,h):i(n,x||w,s?C:y.proxyHandler,k))):(h.domLoaded=!0,m.call(g,o({type:w})));return n=y=0,m}},h.unbind=function(e,i,o){var a,r,l,c,u,d;if(!e||3===e.nodeType||8===e.nodeType)return h;if(a=e[t]){if(d=p[a],i){for(i=i.split(" "),l=i.length;l--;)if(u=i[l],r=d[u]){if(o)for(c=r.length;c--;)r[c].func===o&&r.splice(c,1);o&&0!==r.length||(delete d[u],n(e,r.fakeName||u,s?r.nativeHandler:r.proxyHandler,r.capture))}}else{for(u in d)r=d[u],n(e,r.fakeName||u,s?r.nativeHandler:r.proxyHandler,r.capture);d={}}for(u in d)return h;delete p[a];try{delete e[t]}catch(f){e[t]=null}}return h},h.fire=function(e,i,n){var a,s;if(!e||3===e.nodeType||8===e.nodeType)return h;s=o(null,n),s.type=i;do a=e[t],a&&r(s,a),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow;while(e&&!s.isPropagationStopped());return h},h.clean=function(e){var i,n,o=h.unbind;if(!e||3===e.nodeType||8===e.nodeType)return h;if(e[t]&&o(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(o(e),n=e.getElementsByTagName("*"),i=n.length;i--;)e=n[i],e[t]&&o(e);return h},h.callNativeHandler=function(e,t){p&&p[e][t.type].nativeHandler(t)},h.destory=function(){p={}},h.add=function(e,t,i,n){"string"==typeof e&&(e=document.getElementById(e));{if(!(e&&e instanceof Array))return"init"===t&&(t="ready"),h.bind(e,t instanceof Array?t.join(" "):t,i,n);for(var o=e.length;o--;)h.add(e[o],t,i,n)}},h.remove=function(e,t,i,n){if(!e)return h;if("string"==typeof e&&(e=document.getElementById(e)),e instanceof Array){for(var o=e.length;o--;)h.remove(e[o],t,i,n);return h}return h.unbind(e,t instanceof Array?t.join(" "):t,i)},h.clear=function(e){return"string"==typeof e&&(e=document.getElementById(e)),h.clean(e)},h.cancel=function(e){return e&&(h.prevent(e),h.stop(e)),!1},h.prevent=function(e){return e.preventDefault||(e=o(e)),e.preventDefault(),!1},h.stop=function(e){return e.stopPropagation||(e=o(e)),e.stopPropagation(),!1}}var s=!!document.addEventListener;e.EventUtils=r,e.Event=new r(function(e){return function(t){tinymce.dom.Event.callNativeHandler(e,t)}}),e.Event.bind(window,"ready",function(){}),e=0}(tinymce.dom,"data-mce-expando"),tinymce.dom.TreeWalker=function(e,t){function i(e,i,n,o){var a,r;if(e){if(!o&&e[i])return e[i];if(e!=t){if(a=e[n])return a;for(r=e.parentNode;r&&r!=t;r=r.parentNode)if(a=r[n])return a}}}var n=e;this.current=function(){return n},this.next=function(e){return n=i(n,"firstChild","nextSibling",e)},this.prev=function(e){return n=i(n,"lastChild","previousSibling",e)}},function(e){var t=e.each,i=e.is,n=e.isWebKit,o=e.isIE,a=e.html.Entities,r=/^([a-z0-9],?)+$/i,s=/^[ \t\r\n]*$/;e.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(t,i){var n,o=this;if(o.doc=t,o.win=window,o.files={},o.cssFlicker=!1,o.counter=0,o.stdMode=!e.isIE||t.documentMode>=8,o.boxModel=!e.isIE||"CSS1Compat"==t.compatMode||o.stdMode,o.hasOuterHTML="outerHTML"in t.createElement("a"),o.settings=i=e.extend({keep_values:!1,hex_colors:1},i),o.schema=i.schema,o.styles=new e.html.Styles({url_converter:i.url_converter,url_converter_scope:i.url_converter_scope},i.schema),e.isIE6)try{t.execCommand("BackgroundImageCache",!1,!0)}catch(a){o.cssFlicker=!0}o.fixDoc(t),o.events=i.ownEvents?new e.dom.EventUtils(i.proxy):e.dom.Event,e.addUnload(o.destroy,o),n=i.schema?i.schema.getBlockElements():{},o.isBlock=function(e){if(!e)return!1;var t=e.nodeType;return t?!(1!==t||!n[e.nodeName]):!!n[e]}},fixDoc:function(t){var i,n=this.settings;if(o&&!e.isIE11&&n.schema){"abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video".replace(/\w+/g,function(e){t.createElement(e)});for(i in n.schema.getCustomElements())t.createElement(i)}},clone:function(i,n){var a,r,s=this;return!o||e.isIE11||1!==i.nodeType||n?i.cloneNode(n):(r=s.doc,n?a.firstChild:(a=r.createElement(i.nodeName),t(s.getAttribs(i),function(e){s.setAttrib(a,e.nodeName,s.getAttrib(i,e.nodeName))}),a))},getRoot:function(){var e=this,t=e.settings;return t&&e.get(t.root_element)||e.doc.body},getViewPort:function(e){var t,i;return e=e?e:this.win,t=e.document,i=this.boxModel?t.documentElement:t.body,{x:e.pageXOffset||i.scrollLeft,y:e.pageYOffset||i.scrollTop,w:e.innerWidth||i.clientWidth,h:e.innerHeight||i.clientHeight}},getRect:function(e){var t,i,n=this;return e=n.get(e),t=n.getPos(e),i=n.getSize(e),{x:t.x,y:t.y,w:i.w,h:i.h}},getSize:function(e){var t,i,n=this;return e=n.get(e),t=n.getStyle(e,"width"),i=n.getStyle(e,"height"),-1===t.indexOf("px")&&(t=0),-1===i.indexOf("px")&&(i=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(i,10)||e.offsetHeight||e.clientHeight}},getParent:function(e,t,i){return this.getParents(e,t,i,!1)},getParents:function(e,t,n,o){var a,r=this,s=r.settings,l=[];for(e=r.get(e),o=void 0===o,s.strict_root&&(n=n||r.getRoot()),i(t,"string")&&(a=t,t="*"===t?function(e){return 1==e.nodeType}:function(e){return r.is(e,a)});e&&e!=n&&e.nodeType&&9!==e.nodeType;){if(!t||t(e)){if(!o)return e;l.push(e)}e=e.parentNode}return o?l:null},get:function(e){var t;return e&&this.doc&&"string"==typeof e&&(t=e,e=this.doc.getElementById(e),e&&e.id!==t)?this.doc.getElementsByName(t)[1]:e},getNext:function(e,t){return this._findSib(e,t,"nextSibling")},getPrev:function(e,t){return this._findSib(e,t,"previousSibling")},select:function(t,i){var n=this;return e.dom.Sizzle(t,n.get(i)||n.get(n.settings.root_element)||n.doc,[])},is:function(t,i){var n;if(void 0===t.length){if("*"===i)return 1==t.nodeType;if(r.test(i)){for(i=i.toLowerCase().split(/,/),t=t.nodeName.toLowerCase(),n=i.length-1;n>=0;n--)if(i[n]==t)return!0;return!1}}return e.dom.Sizzle.matches(i,t.nodeType?[t]:t).length>0},add:function(e,t,n,o,a){var r=this;return this.run(e,function(e){var s;return s=i(t,"string")?r.doc.createElement(t):t,r.setAttribs(s,n),o&&(o.nodeType?s.appendChild(o):r.setHTML(s,o)),a?s:e.appendChild(s)})},create:function(e,t,i){return this.add(this.doc.createElement(e),e,t,i,1)},createHTML:function(e,t,i){var n,o="",a=this;o+="<"+e;for(n in t)t.hasOwnProperty(n)&&(o+=" "+n+'="'+a.encode(t[n])+'"');return"undefined"!=typeof i?o+">"+i+"</"+e+">":o+" />"},remove:function(t,i){return this.run(t,function(t){var n,o=t.parentNode;if(!o)return null;if(i)for(;n=t.firstChild;)!e.isIE||3!==n.nodeType||n.nodeValue?o.insertBefore(n,t):t.removeChild(n);return o.removeChild(t)})},setStyle:function(t,i,n){var a=this;return a.run(t,function(r){var s;switch(s=r.style,i=i.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}),a.pixelStyles.test(i)&&(e.is(n,"number")||/^[\-0-9\.]+$/.test(n))&&(n+="px"),i){case"opacity":o&&!e.isIE11&&(s.filter=""===n?"":"alpha(opacity="+100*n+")",t.currentStyle&&t.currentStyle.hasLayout||(s.display="inline-block")),s[i]=s["-moz-opacity"]=s["-khtml-opacity"]=n||"";break;case"float":o&&!e.isIE11?s.styleFloat=n:s.cssFloat=n;break;default:s[i]=n||""}a.settings.update_styles&&a.setAttrib(r,"data-mce-style")})},getStyle:function(e,t,i){if(e=this.get(e)){if(this.doc.defaultView&&i){t=t.replace(/[A-Z]/g,function(e){return"-"+e});try{return this.doc.defaultView.getComputedStyle(e,null).getPropertyValue(t)}catch(n){return null}}return t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}),"float"==t&&(t=o?"styleFloat":"cssFloat"),e.currentStyle&&i?e.currentStyle[t]:e.style?e.style[t]:void 0}},setStyles:function(e,i){var n,o=this,a=o.settings;n=a.update_styles,a.update_styles=0,t(i,function(t,i){o.setStyle(e,i,t)}),a.update_styles=n,a.update_styles&&o.setAttrib(e,a.cssText)},removeAllAttribs:function(e){return this.run(e,function(e){var t,i=e.attributes;for(t=i.length-1;t>=0;t--)e.removeAttributeNode(i.item(t))})},setAttrib:function(e,n,o){var a=this;if(e&&n)return a.settings.strict&&(n=n.toLowerCase()),this.run(e,function(e){var r=a.settings,s=e.getAttribute(n);if(null!==o)switch(n){case"style":if(!i(o,"string"))return t(o,function(t,i){a.setStyle(e,i,t)}),void 0;r.keep_values&&(o&&!a._isRes(o)?e.setAttribute("data-mce-style",o,2):e.removeAttribute("data-mce-style",2)),e.style.cssText=o;break;case"class":e.className=o||"";break;case"src":case"href":r.keep_values&&(r.url_converter&&(o=r.url_converter.call(r.url_converter_scope||a,o,n,e)),a.setAttrib(e,"data-mce-"+n,o,2));break;case"shape":e.setAttribute("data-mce-style",o)}if(i(o)&&null!==o&&0!==o.length?e.setAttribute(n,""+o,2):e.removeAttribute(n,2),tinyMCE.activeEditor&&s!=o){var l=tinyMCE.activeEditor;l.onSetAttrib.dispatch(l,e,n,o)}})},setAttribs:function(e,i){var n=this;return this.run(e,function(e){t(i,function(t,i){n.setAttrib(e,i,t)})})},getAttrib:function(t,a,r){var s,l,c=this;if(t=c.get(t),!t||1!==t.nodeType)return r===l?!1:r;if(i(r)||(r=""),/^(src|href|style|coords|shape)$/.test(a)&&(s=t.getAttribute("data-mce-"+a)))return s;if(o&&c.props[a]&&(s=t[c.props[a]],s=s&&s.nodeValue?s.nodeValue:s),s||(s=t.getAttribute(a,2)),/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(a))return t[c.props[a]]===!0&&""===s?a:s?a:"";if("FORM"===t.nodeName&&t.getAttributeNode(a))return t.getAttributeNode(a).nodeValue;if("style"===a&&(s=s||t.style.cssText,s&&(s=c.serializeStyle(c.parseStyle(s),t.nodeName),c.settings.keep_values&&!c._isRes(s)&&t.setAttribute("data-mce-style",s))),n&&"class"===a&&s&&(s=s.replace(/(apple|webkit)\-[a-z\-]+/gi,"")),o)switch(a){case"rowspan":case"colspan":1===s&&(s="");break;case"size":("+0"===s||20===s||0===s)&&(s="");break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":0===s&&(s="");break;case"hspace":-1===s&&(s="");break;case"maxlength":case"tabindex":(32768===s||2147483647===s||"32768"===s)&&(s="");break;case"multiple":case"compact":case"noshade":case"nowrap":return 65535===s?a:r;case"shape":s=s.toLowerCase();break;default:0===a.indexOf("on")&&s&&(s=e._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1",""+s))}return s!==l&&null!==s&&""!==s?""+s:r},getPos:function(e,t){var i,n,o=this,a=0,r=0,s=o.doc;if(e=o.get(e),t=t||s.body,e){if(e.getBoundingClientRect)return e=e.getBoundingClientRect(),i=o.boxModel?s.documentElement:s.body,a=e.left+(s.documentElement.scrollLeft||s.body.scrollLeft)-i.clientTop,r=e.top+(s.documentElement.scrollTop||s.body.scrollTop)-i.clientLeft,{x:a,y:r};for(n=e;n&&n!=t&&n.nodeType;)a+=n.offsetLeft||0,r+=n.offsetTop||0,n=n.offsetParent;for(n=e.parentNode;n&&n!=t&&n.nodeType;)a-=n.scrollLeft||0,r-=n.scrollTop||0,n=n.parentNode}return{x:a,y:r}},parseStyle:function(e){return this.styles.parse(e)},serializeStyle:function(e,t){return this.styles.serialize(e,t)},addStyle:function(e){var t,i=this.doc;styleElm=i.getElementById("mceDefaultStyles"),styleElm||(styleElm=i.createElement("style"),styleElm.id="mceDefaultStyles",styleElm.type="text/css",t=i.getElementsByTagName("head")[0],t.firstChild?t.insertBefore(styleElm,t.firstChild):t.appendChild(styleElm)),styleElm.styleSheet?styleElm.styleSheet.cssText+=e:styleElm.appendChild(i.createTextNode(e))},loadCSS:function(i){var n,a=this,r=a.doc;i||(i=""),n=r.getElementsByTagName("head")[0],t(i.split(","),function(t){var i;a.files[t]||(a.files[t]=!0,i=a.create("link",{rel:"stylesheet",href:e._addVer(t)}),o&&!e.isIE11&&r.documentMode&&r.recalc&&(i.onload=function(){r.recalc&&r.recalc(),i.onload=null}),n.appendChild(i))})},addClass:function(e,t){return this.run(e,function(e){var i;return t?this.hasClass(e,t)?e.className:(i=this.removeClass(e,t),e.className=(""!=i?i+" ":"")+t):0})},removeClass:function(t,i){var n,o=this;return o.run(t,function(t){var a;return o.hasClass(t,i)?(n||(n=new RegExp("(^|\\s+)"+i+"(\\s+|$)","g")),a=t.className.replace(n," "),a=e.trim(" "!=a?a:""),t.className=a,a||(t.removeAttribute("class"),t.removeAttribute("className")),a):t.className})},hasClass:function(e,t){return e=this.get(e),e&&t?-1!==(" "+e.className+" ").indexOf(" "+t+" "):!1},show:function(e){return this.setStyle(e,"display","block")},hide:function(e){return this.setStyle(e,"display","none")},isHidden:function(e){return e=this.get(e),!e||"none"==e.style.display||"none"==this.getStyle(e,"display")},uniqueId:function(e){return(e?e:"mce_")+this.counter++},setHTML:function(i,n){var a=this;return a.run(i,function(i){if(o){for(;i.firstChild;)i.removeChild(i.firstChild);try{i.innerHTML="<br />"+n,i.removeChild(i.firstChild)}catch(r){var s=a.create("div");s.innerHTML="<br />"+n,t(e.grep(s.childNodes),function(e,t){t&&i.canHaveHTML&&i.appendChild(e)})}}else i.innerHTML=n;return n})},getOuterHTML:function(e){var t,i=this;return(e=i.get(e))?1===e.nodeType&&i.hasOuterHTML?e.outerHTML:(t=(e.ownerDocument||i.doc).createElement("body"),t.appendChild(e.cloneNode(!0)),t.innerHTML):null},setOuterHTML:function(e,t,i){function n(e,t,i){var n,o;for(o=i.createElement("body"),o.innerHTML=t,n=o.lastChild;n;)a.insertAfter(n.cloneNode(!0),e),n=n.previousSibling;a.remove(e)}var a=this;return this.run(e,function(e){if(e=a.get(e),1==e.nodeType)if(i=i||e.ownerDocument||a.doc,o)try{o&&1==e.nodeType?e.outerHTML=t:n(e,t,i)}catch(r){n(e,t,i)}else n(e,t,i)})},decode:a.decode,encode:a.encodeAllRaw,insertAfter:function(e,t){return t=this.get(t),this.run(e,function(e){var i,n;return i=t.parentNode,n=t.nextSibling,n?i.insertBefore(e,n):i.appendChild(e),e})},replace:function(n,o,a){var r=this;return i(o,"array")&&(n=n.cloneNode(!0)),r.run(o,function(i){return a&&t(e.grep(i.childNodes),function(e){n.appendChild(e)}),i.parentNode.replaceChild(n,i)})},rename:function(e,i){var n,o=this;return e.nodeName!=i.toUpperCase()&&(n=o.create(i),t(o.getAttribs(e),function(t){o.setAttrib(n,t.nodeName,o.getAttrib(e,t.nodeName))}),o.replace(n,e,1)),n||e},findCommonAncestor:function(e,t){for(var i,n=e;n;){for(i=t;i&&n!=i;)i=i.parentNode;if(n==i)break;n=n.parentNode}return!n&&e.ownerDocument?e.ownerDocument.documentElement:n},toHex:function(e){function t(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e}var i=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(e);return i?e="#"+t(i[1])+t(i[2])+t(i[3]):e},getClasses:function(){function i(o){t(o.imports,function(e){i(e)}),t(o.cssRules||o.rules,function(o){switch(o.type||1){case 1:o.selectorText&&t(o.selectorText.split(","),function(t){t=t.replace(/^\s*|\s*$|^\s\./g,""),!/\.mce/.test(t)&&/\.[\w\-]+$/.test(t)&&(n=t,t=e._replace(/.*\.([a-z0-9_\-]+).*/i,"$1",t),(!s||(t=s(t,n)))&&(r[t]||(a.push({"class":t}),r[t]=1)))});break;case 3:try{i(o.styleSheet)}catch(l){}}})}var n,o=this,a=[],r={},s=o.settings.class_filter;if(o.classes)return o.classes;try{t(o.doc.styleSheets,i)}catch(l){}return a.length>0&&(o.classes=a),a},run:function(e,i,n){var o,a=this;return a.doc&&"string"==typeof e&&(e=a.get(e)),e?(n=n||this,e.nodeType||!e.length&&0!==e.length?i.call(n,e):(o=[],t(e,function(e,t){e&&("string"==typeof e&&(e=a.doc.getElementById(e)),o.push(i.call(n,e,t)))}),o)):!1},getAttribs:function(e){var t;return e=this.get(e),e?o?(t=[],"OBJECT"==e.nodeName?e.attributes:("OPTION"===e.nodeName&&this.getAttrib(e,"selected")&&t.push({specified:1,nodeName:"selected"}),e.cloneNode(!1).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(e){t.push({specified:1,nodeName:e})}),t)):e.attributes:[]},isEmpty:function(t,i){var n,o,a,r,l,c=this,u=0;if(t=t.firstChild){r=new e.dom.TreeWalker(t,t.parentNode),i=i||c.schema?c.schema.getNonEmptyElements():null;do{if(a=t.nodeType,1===a){if(t.getAttribute("data-mce-bogus"))continue;if(l=t.nodeName.toLowerCase(),i&&i[l]){if("br"===l){u++;continue}return!1}for(o=c.getAttribs(t),n=t.attributes.length;n--;)if(l=t.attributes[n].nodeName,"name"===l||"data-mce-bookmark"===l)return!1}if(8==a)return!1;if(3===a&&!s.test(t.nodeValue))return!1}while(t=r.next())}return 1>=u},destroy:function(t){var i=this;i.win=i.doc=i.root=i.events=i.frag=null,t||e.removeUnload(i.destroy)},createRng:function(){var t=this.doc;return t.createRange?t.createRange():new e.dom.Range(this)},nodeIndex:function(e,t){var i,n,o,a=0;if(e)for(i=e.nodeType,e=e.previousSibling,n=e;e;e=e.previousSibling)o=e.nodeType,(!t||3!=o||o!=i&&e.nodeValue.length)&&(a++,i=o);return a},split:function(t,i,n){function o(t){function i(e){var t=e.previousSibling&&"SPAN"==e.previousSibling.nodeName,i=e.nextSibling&&"SPAN"==e.nextSibling.nodeName;return t&&i}var n,a=t.childNodes,r=t.nodeType;if(1!=r||"bookmark"!=t.getAttribute("data-mce-type")){for(n=a.length-1;n>=0;n--)o(a[n]);if(9!=r){if(3==r&&t.nodeValue.length>0){var s=e.trim(t.nodeValue).length;if(!l.isBlock(t.parentNode)||s>0||0===s&&i(t))return}else if(1==r&&(a=t.childNodes,1==a.length&&a[0]&&1==a[0].nodeType&&"bookmark"==a[0].getAttribute("data-mce-type")&&t.parentNode.insertBefore(a[0],t),a.length||/^(br|hr|input|img)$/i.test(t.nodeName)))return;l.remove(t)}return t}}var a,r,s,l=this,c=l.createRng();return t&&i?(c.setStart(t.parentNode,l.nodeIndex(t)),c.setEnd(i.parentNode,l.nodeIndex(i)),a=c.extractContents(),c=l.createRng(),c.setStart(i.parentNode,l.nodeIndex(i)+1),c.setEnd(t.parentNode,l.nodeIndex(t)+1),r=c.extractContents(),s=t.parentNode,s.insertBefore(o(a),t),n?s.replaceChild(n,i):s.insertBefore(i,t),s.insertBefore(o(r),t),l.remove(t),n||i):void 0},bind:function(e,t,i,n){return this.events.add(e,t,i,n||this)},unbind:function(e,t,i){return this.events.remove(e,t,i)},fire:function(e,t,i){return this.events.fire(e,t,i)},getContentEditable:function(e){var t;return 1!=e.nodeType?null:(t=e.getAttribute("data-mce-contenteditable"),t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null)},_findSib:function(e,t,n){var o=this,a=t;if(e)for(i(a,"string")&&(a=function(e){return o.is(e,t)}),e=e[n];e;e=e[n])if(a(e))return e;return null},_isRes:function(e){return/^(top|left|bottom|right|width|height)/i.test(e)||/;\s*(top|left|bottom|right|width|height)/i.test(e)}}),e.DOM=new e.dom.DOMUtils(document,{process_html:0})}(tinymce),function(e){function t(e){function i(){return H.createDocumentFragment()}function n(e,t){x(L,e,t)}function o(e,t){x(j,e,t)}function a(e){n(e.parentNode,U(e))}function r(e){n(e.parentNode,U(e)+1)}function s(e){o(e.parentNode,U(e))}function l(e){o(e.parentNode,U(e)+1)}function c(e){e?(I[$]=I[z],I[q]=I[F]):(I[z]=I[$],I[F]=I[q]),I.collapsed=L}function u(e){a(e),l(e)}function d(e){n(e,0),o(e,1===e.nodeType?e.childNodes.length:e.nodeValue.length)}function h(e,t){var i=I[z],n=I[F],o=I[$],a=I[q],r=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset;return 0===e?w(i,n,r,s):1===e?w(o,a,r,s):2===e?w(o,a,l,c):3===e?w(i,n,l,c):void 0}function p(){C(R)}function f(){return C(B)}function m(){return C(O)}function g(t){var i,n,o=this[z],a=this[F];3!==o.nodeType&&4!==o.nodeType||!o.nodeValue?(o.childNodes.length>0&&(n=o.childNodes[a]),n?o.insertBefore(t,n):o.appendChild(t)):a?a>=o.nodeValue.length?e.insertAfter(t,o):(i=o.splitText(a),o.parentNode.insertBefore(t,i)):o.parentNode.insertBefore(t,o)}function v(e){var t=I.extractContents();I.insertNode(e),e.appendChild(t),I.selectNode(e)}function b(){return W(new t(e),{startContainer:I[z],startOffset:I[F],endContainer:I[$],endOffset:I[q],collapsed:I.collapsed,commonAncestorContainer:I.commonAncestorContainer})}function y(e,t){var i;if(3==e.nodeType)return e;if(0>t)return e;for(i=e.firstChild;i&&t>0;)--t,i=i.nextSibling;return i?i:e}function _(){return I[z]==I[$]&&I[F]==I[q]}function w(t,i,n,o){var a,r,s,l,c,u;if(t==n)return i==o?0:o>i?-1:1;for(a=n;a&&a.parentNode!=t;)a=a.parentNode;if(a){for(r=0,s=t.firstChild;s!=a&&i>r;)r++,s=s.nextSibling;return r>=i?-1:1}for(a=t;a&&a.parentNode!=n;)a=a.parentNode;if(a){for(r=0,s=n.firstChild;s!=a&&o>r;)r++,s=s.nextSibling;return o>r?-1:1}for(l=e.findCommonAncestor(t,n),c=t;c&&c.parentNode!=l;)c=c.parentNode;for(c||(c=l),u=n;u&&u.parentNode!=l;)u=u.parentNode;if(u||(u=l),c==u)return 0;for(s=l.firstChild;s;){if(s==c)return-1;if(s==u)return 1;s=s.nextSibling}}function x(t,i,n){var o,a;for(t?(I[z]=i,I[F]=n):(I[$]=i,I[q]=n),o=I[$];o.parentNode;)o=o.parentNode;for(a=I[z];a.parentNode;)a=a.parentNode;a==o?w(I[z],I[F],I[$],I[q])>0&&I.collapse(t):I.collapse(t),I.collapsed=_(),I.commonAncestorContainer=e.findCommonAncestor(I[z],I[$])}function C(e){var t,i,n,o,a,r,s,l=0,c=0;if(I[z]==I[$])return k(e);for(t=I[$],i=t.parentNode;i;t=i,i=i.parentNode){if(i==I[z])return T(t,e);++l}for(t=I[z],i=t.parentNode;i;t=i,i=i.parentNode){if(i==I[$])return D(t,e);++c}for(n=c-l,o=I[z];n>0;)o=o.parentNode,n--;for(a=I[$];0>n;)a=a.parentNode,n++;for(r=o.parentNode,s=a.parentNode;r!=s;r=r.parentNode,s=s.parentNode)o=r,a=s;return S(o,a,e)}function k(e){var t,n,o,a,r,s,l,c,u;if(e!=R&&(t=i()),I[F]==I[q])return t;if(3==I[z].nodeType){if(n=I[z].nodeValue,o=n.substring(I[F],I[q]),e!=O&&(a=I[z],c=I[F],u=I[q]-I[F],0===c&&u>=a.nodeValue.length-1?a.parentNode.removeChild(a):a.deleteData(c,u),I.collapse(L)),e==R)return;return o.length>0&&t.appendChild(H.createTextNode(o)),t}for(a=y(I[z],I[F]),r=I[q]-I[F];a&&r>0;)s=a.nextSibling,l=P(a,e),t&&t.appendChild(l),--r,a=s;return e!=O&&I.collapse(L),t}function T(e,t){var n,o,a,r,s,l;if(t!=R&&(n=i()),o=E(e,t),n&&n.appendChild(o),a=U(e),r=a-I[F],0>=r)return t!=O&&(I.setEndBefore(e),I.collapse(j)),n;for(o=e.previousSibling;r>0;)s=o.previousSibling,l=P(o,t),n&&n.insertBefore(l,n.firstChild),--r,o=s;return t!=O&&(I.setEndBefore(e),I.collapse(j)),n}function D(e,t){var n,o,a,r,s,l;for(t!=R&&(n=i()),a=N(e,t),n&&n.appendChild(a),o=U(e),++o,r=I[q]-o,a=e.nextSibling;a&&r>0;)s=a.nextSibling,l=P(a,t),n&&n.appendChild(l),--r,a=s;return t!=O&&(I.setStartAfter(e),I.collapse(L)),n}function S(e,t,n){var o,a,r,s,l,c,u,d;for(n!=R&&(a=i()),o=N(e,n),a&&a.appendChild(o),r=e.parentNode,s=U(e),l=U(t),++s,c=l-s,u=e.nextSibling;c>0;)d=u.nextSibling,o=P(u,n),a&&a.appendChild(o),u=d,--c;return o=E(t,n),a&&a.appendChild(o),n!=O&&(I.setStartAfter(e),I.collapse(L)),a}function E(e,t){var i,n,o,a,r,s=y(I[$],I[q]-1),l=s!=I[$];if(s==e)return A(s,l,j,t);for(i=s.parentNode,n=A(i,j,j,t);i;){for(;s;)o=s.previousSibling,a=A(s,l,j,t),t!=R&&n.insertBefore(a,n.firstChild),l=L,s=o;if(i==e)return n;s=i.previousSibling,i=i.parentNode,r=A(i,j,j,t),t!=R&&r.appendChild(n),n=r}}function N(e,t){var i,n,o,a,r,s=y(I[z],I[F]),l=s!=I[z];if(s==e)return A(s,l,L,t);for(i=s.parentNode,n=A(i,j,L,t);i;){for(;s;)o=s.nextSibling,a=A(s,l,L,t),t!=R&&n.appendChild(a),l=L,s=o;if(i==e)return n;s=i.nextSibling,i=i.parentNode,r=A(i,j,L,t),t!=R&&r.appendChild(n),n=r}}function A(t,i,n,o){var a,r,s,l,c;if(i)return P(t,o);if(3==t.nodeType){if(a=t.nodeValue,n?(l=I[F],r=a.substring(l),s=a.substring(0,l)):(l=I[q],r=a.substring(0,l),s=a.substring(l)),o!=O&&(t.nodeValue=s),o==R)return;return c=e.clone(t,j),c.nodeValue=r,c}if(o!=R)return e.clone(t,j)}function P(t,i){return i!=R?i==O?e.clone(t,L):t:(t.parentNode.removeChild(t),void 0)}function M(){return e.create("body",null,m()).outerText}var I=this,H=e.doc,B=0,O=1,R=2,L=!0,j=!1,F="startOffset",z="startContainer",$="endContainer",q="endOffset",W=tinymce.extend,U=e.nodeIndex;return W(I,{startContainer:H,startOffset:0,endContainer:H,endOffset:0,collapsed:L,commonAncestorContainer:H,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:n,setEnd:o,setStartBefore:a,setStartAfter:r,setEndBefore:s,setEndAfter:l,collapse:c,selectNode:u,selectNodeContents:d,compareBoundaryPoints:h,deleteContents:p,extractContents:f,cloneContents:m,insertNode:g,surroundContents:v,cloneRange:b,toStringIE:M}),I}e.Range=t,t.prototype.toString=function(){return this.toStringIE()}}(tinymce.dom),function(){function e(e){function t(t,i){var n,o,a,r,s,l,c,u,d=0,h=-1;if(n=t.duplicate(),n.collapse(i),u=n.parentElement(),u.ownerDocument===e.dom.doc){for(;"false"===u.contentEditable;)u=u.parentNode;if(!u.hasChildNodes())return{node:u,inside:1};for(r=u.children,o=r.length-1;o>=d;)if(c=Math.floor((d+o)/2),s=r[c],n.moveToElementText(s),h=n.compareEndPoints(i?"StartToStart":"EndToEnd",t),h>0)o=c-1;else{if(!(0>h))return{node:s};d=c+1}if(0>h)for(s?n.collapse(!1):(n.moveToElementText(u),n.collapse(!0),s=u,a=!0),l=0;0!==n.compareEndPoints(i?"StartToStart":"StartToEnd",t)&&0!==n.move("character",1)&&u==n.parentElement();)l++;else for(n.collapse(!0),l=0;0!==n.compareEndPoints(i?"StartToStart":"StartToEnd",t)&&0!==n.move("character",-1)&&u==n.parentElement();)l++;return{node:s,position:h,offset:l,inside:a}}}function i(){function i(e){var i,n,o,a,r,s=t(u,e),l=0;if(i=s.node,n=s.offset,s.inside&&!i.hasChildNodes())return d[e?"setStart":"setEnd"](i,0),void 0;if(n===a)return d[e?"setStartBefore":"setEndAfter"](i),void 0;if(s.position<0){if(o=s.inside?i.firstChild:i.nextSibling,!o)return d[e?"setStartAfter":"setEndAfter"](i),void 0;if(!n)return 3==o.nodeType?d[e?"setStart":"setEnd"](o,0):d[e?"setStartBefore":"setEndBefore"](o),void 0;for(;o;){if(r=o.nodeValue,l+=r.length,l>=n){i=o,l-=n,l=r.length-l;break}o=o.nextSibling}}else{if(o=i.previousSibling,!o)return d[e?"setStartBefore":"setEndBefore"](i);if(!n)return 3==i.nodeType?d[e?"setStart":"setEnd"](o,i.nodeValue.length):d[e?"setStartAfter":"setEndAfter"](o),void 0;for(;o;){if(l+=o.nodeValue.length,l>=n){i=o,l-=n;break}o=o.previousSibling}}d[e?"setStart":"setEnd"](i,l)}var a,r,s,l,c,u=e.getRng(),d=o.createRng();if(a=u.item?u.item(0):u.parentElement(),a.ownerDocument!=o.doc)return d;if(r=e.isCollapsed(),u.item)return d.setStart(a.parentNode,o.nodeIndex(a)),d.setEnd(d.startContainer,d.startOffset+1),d;try{i(!0),r||i()}catch(h){if(-2147024809!=h.number)throw h;c=n.getBookmark(2),s=u.duplicate(),s.collapse(!0),a=s.parentElement(),r||(s=u.duplicate(),s.collapse(!1),l=s.parentElement(),l.innerHTML=l.innerHTML),a.innerHTML=a.innerHTML,n.moveToBookmark(c),u=e.getRng(),i(!0),r||i()}return d}var n=this,o=e.dom,a=!1;this.getBookmark=function(i){function n(e){var t,i,n,a,r=[];for(t=e.parentNode,i=o.getRoot().parentNode;t!=i&&9!==t.nodeType;){for(n=t.children,a=n.length;a--;)if(e===n[a]){r.push(a);break}e=t,t=t.parentNode}return r}function a(e){var i;return i=t(r,e),i?{position:i.position,offset:i.offset,indexes:n(i.node),inside:i.inside}:void 0}var r=e.getRng(),s={};return 2===i&&(r.item?s.start={ctrl:!0,indexes:n(r.item(0))}:(s.start=a(!0),e.isCollapsed()||(s.end=a()))),s},this.moveToBookmark=function(e){function t(e){var t,i,n,a;for(t=o.getRoot(),i=e.length-1;i>=0;i--)a=t.children,n=e[i],n<=a.length-1&&(t=a[n]);return t}function i(i){var o,r,s,l=e[i?"start":"end"];l&&(o=l.position>0,r=a.createTextRange(),r.moveToElementText(t(l.indexes)),offset=l.offset,offset!==s?(r.collapse(l.inside||o),r.moveStart("character",o?-offset:offset)):r.collapse(i),n.setEndPoint(i?"StartToStart":"EndToStart",r),i&&n.collapse(!0))}var n,a=o.doc.body;e.start&&(e.start.ctrl?(n=a.createControlRange(),n.addElement(t(e.start.indexes)),n.select()):(n=a.createTextRange(),i(!0),i(),n.select()))},this.addRange=function(t){function i(e){var t,i,r,d,h;r=o.create("a"),t=e?s:c,i=e?l:u,d=n.duplicate(),(t==f||t==f.documentElement)&&(t=m,i=0),3==t.nodeType?(t.parentNode.insertBefore(r,t),d.moveToElementText(r),d.moveStart("character",i),o.remove(r),n.setEndPoint(e?"StartToStart":"EndToEnd",d)):(h=t.childNodes,h.length?(i>=h.length?o.insertAfter(r,h[h.length-1]):t.insertBefore(r,h[i]),d.moveToElementText(r)):t.canHaveHTML&&(t.innerHTML="<span></span>",r=t.firstChild,d.moveToElementText(r),d.collapse(a)),n.setEndPoint(e?"StartToStart":"EndToEnd",d),o.remove(r))}var n,r,s,l,c,u,d,h,p,f=e.dom.doc,m=f.body;if(s=t.startContainer,l=t.startOffset,c=t.endContainer,u=t.endOffset,n=m.createTextRange(),s==c&&1==s.nodeType){if(l==u&&!s.hasChildNodes()){if(s.canHaveHTML)return d=s.previousSibling,d&&!d.hasChildNodes()&&o.isBlock(d)?d.innerHTML="":d=null,s.innerHTML="<span></span><span></span>",n.moveToElementText(s.lastChild),n.select(),o.doc.selection.clear(),s.innerHTML="",d&&(d.innerHTML=""),void 0;l=o.nodeIndex(s),s=s.parentNode}if(l==u-1)try{if(p=s.childNodes[l],r=m.createControlRange(),r.addElement(p),r.select(),h=e.getRng(),h.item&&p===h.item(0))return}catch(g){}}i(!0),i(),n.select()},this.getRangeAt=i}tinymce.dom.TridentSelection=e}(),/*
|
73
|
+
* Sizzle CSS Selector Engine
|
74
|
+
* Copyright, The Dojo Foundation
|
75
|
+
* Released under the MIT, BSD, and GPL Licenses.
|
76
|
+
* More information: http://sizzlejs.com/
|
77
|
+
*/
|
78
|
+
function(){function e(e,t,i,o,a,r){for(var s=0,l=o.length;l>s;s++){var c=o[s];if(c){var u=!1;for(c=c[e];c;){if(c[n]===i){u=o[c.sizset];break}if(1!==c.nodeType||r||(c[n]=i,c.sizset=s),c.nodeName.toLowerCase()===t){u=c;break}c=c[e]}o[s]=u}}}function t(e,t,i,o,a,r){for(var s=0,l=o.length;l>s;s++){var c=o[s];if(c){var u=!1;for(c=c[e];c;){if(c[n]===i){u=o[c.sizset];break}if(1===c.nodeType)if(r||(c[n]=i,c.sizset=s),"string"!=typeof t){if(c===t){u=!0;break}}else if(d.filter(t,[c]).length>0){u=c;break}c=c[e]}o[s]=u}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n="sizcache",o=0,a=Object.prototype.toString,r=!1,s=!0,l=/\\/g,c=/\r\n/g,u=/\W/;[0,0].sort(function(){return s=!1,0});var d=function(e,t,n,o){n=n||[],t=t||document;var r=t;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,l,c,u,h,m,g,b,y=!0,_=d.isXML(t),x=[],C=e;do if(i.exec(""),s=i.exec(C),s&&(C=s[3],x.push(s[1]),s[2])){u=s[3];break}while(s);if(x.length>1&&f.exec(e))if(2===x.length&&p.relative[x[0]])l=w(x[0]+x[1],t,o);else for(l=p.relative[x[0]]?[t]:d(x.shift(),t);x.length;)e=x.shift(),p.relative[e]&&(e+=x.shift()),l=w(e,l,o);else if(!o&&x.length>1&&9===t.nodeType&&!_&&p.match.ID.test(x[0])&&!p.match.ID.test(x[x.length-1])&&(h=d.find(x.shift(),t,_),t=h.expr?d.filter(h.expr,h.set)[0]:h.set[0]),t)for(h=o?{expr:x.pop(),set:v(o)}:d.find(x.pop(),1!==x.length||"~"!==x[0]&&"+"!==x[0]||!t.parentNode?t:t.parentNode,_),l=h.expr?d.filter(h.expr,h.set):h.set,x.length>0?c=v(l):y=!1;x.length;)m=x.pop(),g=m,p.relative[m]?g=x.pop():m="",null==g&&(g=t),p.relative[m](c,g,_);else c=x=[];if(c||(c=l),c||d.error(m||e),"[object Array]"===a.call(c))if(y)if(t&&1===t.nodeType)for(b=0;null!=c[b];b++)c[b]&&(c[b]===!0||1===c[b].nodeType&&d.contains(t,c[b]))&&n.push(l[b]);else for(b=0;null!=c[b];b++)c[b]&&1===c[b].nodeType&&n.push(l[b]);else n.push.apply(n,c);else v(c,n);return u&&(d(u,r,n,o),d.uniqueSort(n)),n};d.uniqueSort=function(e){if(y&&(r=s,e.sort(y),r))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},d.matches=function(e,t){return d(e,null,null,t)},d.matchesSelector=function(e,t){return d(t,null,null,[e]).length>0},d.find=function(e,t,i){var n,o,a,r,s,c;if(!e)return[];for(o=0,a=p.order.length;a>o;o++)if(s=p.order[o],(r=p.leftMatch[s].exec(e))&&(c=r[1],r.splice(1,1),"\\"!==c.substr(c.length-1)&&(r[1]=(r[1]||"").replace(l,""),n=p.find[s](r,t,i),null!=n))){e=e.replace(p.match[s],"");break}return n||(n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:n,expr:e}},d.filter=function(e,t,i,n){for(var o,a,r,s,l,c,u,h,f,m=e,g=[],v=t,b=t&&t[0]&&d.isXML(t[0]);e&&t.length;){for(r in p.filter)if(null!=(o=p.leftMatch[r].exec(e))&&o[2]){if(c=p.filter[r],u=o[1],a=!1,o.splice(1,1),"\\"===u.substr(u.length-1))continue;if(v===g&&(g=[]),p.preFilter[r])if(o=p.preFilter[r](o,v,i,g,n,b)){if(o===!0)continue}else a=s=!0;if(o)for(h=0;null!=(l=v[h]);h++)l&&(s=c(l,o,h,v),f=n^s,i&&null!=s?f?a=!0:v[h]=!1:f&&(g.push(l),a=!0));if(void 0!==s){if(i||(v=g),e=e.replace(p.match[r],""),!a)return[];break}}if(e===m){if(null!=a)break;d.error(e)}m=e}return v},d.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var h=d.getText=function(e){var t,i,n=e.nodeType,o="";if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(c,"");for(e=e.firstChild;e;e=e.nextSibling)o+=h(e)}else if(3===n||4===n)return e.nodeValue}else for(t=0;i=e[t];t++)8!==i.nodeType&&(o+=h(i));return o},p=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var i="string"==typeof t,n=i&&!u.test(t),o=i&&!n;n&&(t=t.toLowerCase());for(var a,r=0,s=e.length;s>r;r++)if(a=e[r]){for(;(a=a.previousSibling)&&1!==a.nodeType;);e[r]=o||a&&a.nodeName.toLowerCase()===t?a||!1:a===t}o&&d.filter(t,e,!0)},">":function(e,t){var i,n="string"==typeof t,o=0,a=e.length;if(n&&!u.test(t)){for(t=t.toLowerCase();a>o;o++)if(i=e[o]){var r=i.parentNode;e[o]=r.nodeName.toLowerCase()===t?r:!1}}else{for(;a>o;o++)i=e[o],i&&(e[o]=n?i.parentNode:i.parentNode===t);n&&d.filter(t,e,!0)}},"":function(i,n,a){var r,s=o++,l=t;"string"!=typeof n||u.test(n)||(n=n.toLowerCase(),r=n,l=e),l("parentNode",n,s,i,r,a)},"~":function(i,n,a){var r,s=o++,l=t;"string"!=typeof n||u.test(n)||(n=n.toLowerCase(),r=n,l=e),l("previousSibling",n,s,i,r,a)}},find:{ID:function(e,t,i){if("undefined"!=typeof t.getElementById&&!i){var n=t.getElementById(e[1]);return n&&n.parentNode?[n]:[]}},NAME:function(e,t){if("undefined"!=typeof t.getElementsByName){for(var i=[],n=t.getElementsByName(e[1]),o=0,a=n.length;a>o;o++)n[o].getAttribute("name")===e[1]&&i.push(n[o]);return 0===i.length?null:i}},TAG:function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e[1]):void 0}},preFilter:{CLASS:function(e,t,i,n,o,a){if(e=" "+e[1].replace(l,"")+" ",a)return e;for(var r,s=0;null!=(r=t[s]);s++)r&&(o^(r.className&&(" "+r.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?i||n.push(r):i&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(l,"")},TAG:function(e){return e[1].replace(l,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||d.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===e[2]&&"2n"||"odd"===e[2]&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&d.error(e[0]);return e[0]=o++,e},ATTR:function(e,t,i,n,o,a){var r=e[1]=e[1].replace(l,"");return!a&&p.attrMap[r]&&(e[1]=p.attrMap[r]),e[4]=(e[4]||e[5]||"").replace(l,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,o,a){if("not"===e[1]){if(!((i.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var r=d.filter(e[3],t,n,!0^a);return n||o.push.apply(o,r),!1}e[3]=d(e[3],null,null,t)}else if(p.match.POS.test(e[0])||p.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return e.disabled===!1&&"hidden"!==e.type},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,i){return!!d(i[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),i=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===i&&(t===i||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,i,n){return t===n.length-1},even:function(e,t){return t%2===0},odd:function(e,t){return t%2===1},lt:function(e,t,i){return t<i[3]-0},gt:function(e,t,i){return t>i[3]-0},nth:function(e,t,i){return i[3]-0===t},eq:function(e,t,i){return i[3]-0===t}},filter:{PSEUDO:function(e,t,i,n){var o=t[1],a=p.filters[o];if(a)return a(e,i,t,n);if("contains"===o)return(e.textContent||e.innerText||h([e])||"").indexOf(t[3])>=0;if("not"===o){for(var r=t[3],s=0,l=r.length;l>s;s++)if(r[s]===e)return!1;return!0}d.error(o)},CHILD:function(e,t){var i,o,a,r,s,l,c=t[1],u=e;switch(c){case"only":case"first":for(;u=u.previousSibling;)if(1===u.nodeType)return!1;if("first"===c)return!0;u=e;case"last":for(;u=u.nextSibling;)if(1===u.nodeType)return!1;return!0;case"nth":if(i=t[2],o=t[3],1===i&&0===o)return!0;if(a=t[0],r=e.parentNode,r&&(r[n]!==a||!e.nodeIndex)){for(s=0,u=r.firstChild;u;u=u.nextSibling)1===u.nodeType&&(u.nodeIndex=++s);r[n]=a}return l=e.nodeIndex-o,0===i?0===l:l%i===0&&l/i>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var i=t[1],n=d.attr?d.attr(e,i):p.attrHandle[i]?p.attrHandle[i](e):null!=e[i]?e[i]:e.getAttribute(i),o=n+"",a=t[2],r=t[4];return null==n?"!="===a:!a&&d.attr?null!=n:"="===a?o===r:"*="===a?o.indexOf(r)>=0:"~="===a?(" "+o+" ").indexOf(r)>=0:r?"!="===a?o!==r:"^="===a?0===o.indexOf(r):"$="===a?o.substr(o.length-r.length)===r:"|="===a?o===r||o.substr(0,r.length+1)===r+"-":!1:o&&n!==!1},POS:function(e,t,i,n){var o=t[2],a=p.setFilters[o];return a?a(e,i,t,n):void 0}}},f=p.match.POS,m=function(e,t){return"\\"+(t-0+1)};for(var g in p.match)p.match[g]=new RegExp(p.match[g].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[g]=new RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[g].source.replace(/\\(\d+)/g,m));p.match.globalPOS=f;var v=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(b){v=function(e,t){var i=0,n=t||[];if("[object Array]"===a.call(e))Array.prototype.push.apply(n,e);else if("number"==typeof e.length)for(var o=e.length;o>i;i++)n.push(e[i]);else for(;e[i];i++)n.push(e[i]);return n}}var y,_;document.documentElement.compareDocumentPosition?y=function(e,t){return e===t?(r=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(y=function(e,t){if(e===t)return r=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var i,n,o=[],a=[],s=e.parentNode,l=t.parentNode,c=s;if(s===l)return _(e,t);if(!s)return-1;if(!l)return 1;for(;c;)o.unshift(c),c=c.parentNode;for(c=l;c;)a.unshift(c),c=c.parentNode;i=o.length,n=a.length;for(var u=0;i>u&&n>u;u++)if(o[u]!==a[u])return _(o[u],a[u]);return u===i?_(e,a[u],-1):_(o[u],t,1)},_=function(e,t,i){if(e===t)return i;for(var n=e.nextSibling;n;){if(n===t)return-1;n=n.nextSibling}return 1}),function(){var e=document.createElement("div"),t="script"+(new Date).getTime(),i=document.documentElement;e.innerHTML="<a name='"+t+"'/>",i.insertBefore(e,i.firstChild),document.getElementById(t)&&(p.find.ID=function(e,t,i){if("undefined"!=typeof t.getElementById&&!i){var n=t.getElementById(e[1]);return n?n.id===e[1]||"undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id").nodeValue===e[1]?[n]:void 0:[]}},p.filter.ID=function(e,t){var i="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&i&&i.nodeValue===t}),i.removeChild(e),i=e=null}(),function(){var e=document.createElement("div");e.appendChild(document.createComment("")),e.getElementsByTagName("*").length>0&&(p.find.TAG=function(e,t){var i=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var n=[],o=0;i[o];o++)1===i[o].nodeType&&n.push(i[o]);i=n}return i}),e.innerHTML="<a href='#'></a>",e.firstChild&&"undefined"!=typeof e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(p.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),document.querySelectorAll&&!function(){var e=d,t=document.createElement("div"),i="__sizzle__";if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){d=function(t,n,o,a){if(n=n||document,!a&&!d.isXML(n)){var r=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(r&&(1===n.nodeType||9===n.nodeType)){if(r[1])return v(n.getElementsByTagName(t),o);if(r[2]&&p.find.CLASS&&n.getElementsByClassName)return v(n.getElementsByClassName(r[2]),o)}if(9===n.nodeType){if("body"===t&&n.body)return v([n.body],o);if(r&&r[3]){var s=n.getElementById(r[3]);if(!s||!s.parentNode)return v([],o);if(s.id===r[3])return v([s],o)}try{return v(n.querySelectorAll(t),o)}catch(l){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var c=n,u=n.getAttribute("id"),h=u||i,f=n.parentNode,m=/^\s*[+~]/.test(t);u?h=h.replace(/'/g,"\\$&"):n.setAttribute("id",h),m&&f&&(n=n.parentNode);try{if(!m||f)return v(n.querySelectorAll("[id='"+h+"'] "+t),o)}catch(g){}finally{u||c.removeAttribute("id")}}}return e(t,n,o,a)};for(var n in e)d[n]=e[n];t=null}}(),function(){var e=document.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var i=!t.call(document.createElement("div"),"div"),n=!1;try{t.call(document.documentElement,"[test!='']:sizzle")}catch(o){n=!0}d.matchesSelector=function(e,o){if(o=o.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!d.isXML(e))try{if(n||!p.match.PSEUDO.test(o)&&!/!=/.test(o)){var a=t.call(e,o);if(a||!i||e.document&&11!==e.document.nodeType)return a}}catch(r){}return d(o,null,null,[e]).length>0}}}(),function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length&&(e.lastChild.className="e",1!==e.getElementsByClassName("e").length&&(p.order.splice(1,0,"CLASS"),p.find.CLASS=function(e,t,i){return"undefined"==typeof t.getElementsByClassName||i?void 0:t.getElementsByClassName(e[1])},e=null))}(),d.contains=document.documentElement.contains?function(e,t){return e!==t&&(e.contains?e.contains(t):!0)}:document.documentElement.compareDocumentPosition?function(e,t){return!!(16&e.compareDocumentPosition(t))}:function(){return!1},d.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return t?"HTML"!==t.nodeName:!1};var w=function(e,t,i){for(var n,o=[],a="",r=t.nodeType?[t]:t;n=p.match.PSEUDO.exec(e);)a+=n[0],e=e.replace(p.match.PSEUDO,"");e=p.relative[e]?e+"*":e;for(var s=0,l=r.length;l>s;s++)d(e,r[s],o,i);return d.filter(a,o)};window.tinymce.dom.Sizzle=d}(),function(e){e.dom.Element=function(t,i){var n,o,a=this;a.settings=i=i||{},a.id=t,a.dom=n=i.dom||e.DOM,e.isIE||(o=n.get(a.id)),e.each("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get".split(/,/),function(e){a[e]=function(){var i,o=[t];for(i=0;i<arguments.length;i++)o.push(arguments[i]);return o=n[e].apply(n,o),a.update(e),o}}),e.extend(a,{on:function(t,i,n){return e.dom.Event.add(a.id,t,i,n)},getXY:function(){return{x:parseInt(a.getStyle("left")),y:parseInt(a.getStyle("top"))}},getSize:function(){var e=n.get(a.id);return{w:parseInt(a.getStyle("width")||e.clientWidth),h:parseInt(a.getStyle("height")||e.clientHeight)}},moveTo:function(e,t){a.setStyles({left:e,top:t})},moveBy:function(e,t){var i=a.getXY();a.moveTo(i.x+e,i.y+t)},resizeTo:function(e,t){a.setStyles({width:e,height:t})},resizeBy:function(e,t){var i=a.getSize();a.resizeTo(i.w+e,i.h+t)},update:function(t){var o;if(e.isIE6&&i.blocker){if(t=t||"",0===t.indexOf("get")||0===t.indexOf("has")||0===t.indexOf("is"))return;if("remove"==t)return n.remove(a.blocker),void 0;a.blocker?o=n.get(a.blocker):(a.blocker=n.uniqueId(),o=n.add(i.container||n.getRoot(),"iframe",{id:a.blocker,style:"position:absolute;",frameBorder:0,src:'javascript:""'}),n.setStyle(o,"opacity",0)),n.setStyles(o,{left:a.getStyle("left",1),top:a.getStyle("top",1),width:a.getStyle("width",1),height:a.getStyle("height",1),display:a.getStyle("display",1),zIndex:parseInt(a.getStyle("zIndex",1)||0)-1})}}})}}(tinymce),function(e){var t=e.is,i=e.isIE,n=e.each,o=e.dom.TreeWalker;e.create("tinymce.dom.Selection",{Selection:function(t,i,o,a){var r=this;r.dom=t,r.win=i,r.serializer=o,r.editor=a,n(["onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent"],function(t){r[t]=new e.util.Dispatcher(r)}),r.win.getSelection||(r.tridentSel=new e.dom.TridentSelection(r)),e.isIE&&!e.isIE11&&t.boxModel&&this._fixIESelection(),e.addUnload(r.destroy,r)},setCursorLocation:function(e,t){var i=this,n=i.dom.createRng();n.setStart(e,t),n.setEnd(e,t),i.setRng(n),i.collapse(!1)},getContent:function(e){var i,n,o,a=this,r=a.getRng(),s=a.dom.create("body"),l=a.getSel();return e=e||{},i=n="",e.get=!0,e.format=e.format||"html",e.forced_root_block="",a.onBeforeGetContent.dispatch(a,e),"text"==e.format?a.isCollapsed()?"":r.text||(l.toString?l.toString():""):(r.cloneContents?(o=r.cloneContents(),o&&s.appendChild(o)):t(r.item)||t(r.htmlText)?(s.innerHTML="<br>"+(r.item?r.item(0).outerHTML:r.htmlText),s.removeChild(s.firstChild)):s.innerHTML=r.toString(),/^\s/.test(s.innerHTML)&&(i=" "),/\s+$/.test(s.innerHTML)&&(n=" "),e.getInner=!0,e.content=a.isCollapsed()?"":i+a.serializer.serialize(s,e)+n,a.onGetContent.dispatch(a,e),e.content)},setContent:function(e,t){var i,n,o,a=this,r=a.getRng(),s=a.win.document;if(t=t||{format:"html"},t.set=!0,e=t.content=e,t.no_events||a.onBeforeSetContent.dispatch(a,t),e=t.content,r.insertNode){e+='<span id="__caret">_</span>',r.startContainer==s&&r.endContainer==s?s.body.innerHTML=e:(r.deleteContents(),0===s.body.childNodes.length?s.body.innerHTML=e:r.createContextualFragment?r.insertNode(r.createContextualFragment(e)):(n=s.createDocumentFragment(),o=s.createElement("div"),n.appendChild(o),o.outerHTML=e,r.insertNode(n))),i=a.dom.get("__caret"),r=s.createRange(),r.setStartBefore(i),r.setEndBefore(i),a.setRng(r),a.dom.remove("__caret");try{a.setRng(r)}catch(l){}}else r.item&&(s.execCommand("Delete",!1,null),r=a.getRng()),/^\s+/.test(e)?(r.pasteHTML('<span id="__mce_tmp">_</span>'+e),a.dom.remove("__mce_tmp")):r.pasteHTML(e);t.no_events||a.onSetContent.dispatch(a,t)},getStart:function(){var e,t,i,n,o=this,a=o.getRng();if(a.duplicate||a.item){if(a.item)return a.item(0);for(i=a.duplicate(),i.collapse(1),e=i.parentElement(),e.ownerDocument!==o.dom.doc&&(e=o.dom.getRoot()),t=n=a.parentElement();n=n.parentNode;)if(n==e){e=t;break}return e}return e=a.startContainer,1==e.nodeType&&e.hasChildNodes()&&(e=e.childNodes[Math.min(e.childNodes.length-1,a.startOffset)]),e&&3==e.nodeType?e.parentNode:e},getEnd:function(){var e,t,i=this,n=i.getRng();return n.duplicate||n.item?n.item?n.item(0):(n=n.duplicate(),n.collapse(0),e=n.parentElement(),e.ownerDocument!==i.dom.doc&&(e=i.dom.getRoot()),e&&"BODY"==e.nodeName?e.lastChild||e:e):(e=n.endContainer,t=n.endOffset,1==e.nodeType&&e.hasChildNodes()&&(e=e.childNodes[t>0?t-1:t]),e&&3==e.nodeType?e.parentNode:e)},getBookmark:function(e,t){function i(e,t){var i=0;return n(f.select(e),function(e,n){e==t&&(i=n)}),i}function o(e){function t(t){var i,n,o,a=t?"start":"end";i=e[a+"Container"],n=e[a+"Offset"],1==i.nodeType&&"TR"==i.nodeName&&(o=i.childNodes,i=o[Math.min(t?n:n-1,o.length-1)],i&&(n=t?0:i.childNodes.length,e["set"+(t?"Start":"End")](i,n)))}return t(!0),t(),e}function a(){function e(e,i){var o,a,r=e[i?"startContainer":"endContainer"],s=e[i?"startOffset":"endOffset"],l=[],c=0;if(3==r.nodeType){if(t)for(o=r.previousSibling;o&&3==o.nodeType;o=o.previousSibling)s+=o.nodeValue.length;l.push(s)}else a=r.childNodes,s>=a.length&&a.length&&(c=1,s=Math.max(0,a.length-1)),l.push(p.dom.nodeIndex(a[s],t)+c);for(;r&&r!=n;r=r.parentNode)l.push(p.dom.nodeIndex(r,t));return l}var i=p.getRng(!0),n=f.getRoot(),o={};return o.start=e(i,!0),p.isCollapsed()||(o.end=e(i)),o}var r,s,l,c,u,d,h,p=this,f=p.dom,m="";if(2==e)return p.tridentSel?p.tridentSel.getBookmark(e):a();if(e)return r=p.getRng(),r.setStart&&(r={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset}),{rng:r};if(r=p.getRng(),l=f.uniqueId(),c=tinyMCE.activeEditor.selection.isCollapsed(),h="overflow:hidden;line-height:0px",r.duplicate||r.item){if(r.item)return d=r.item(0),u=d.nodeName,{name:u,index:i(u,d)};s=r.duplicate();try{r.collapse(),r.pasteHTML('<span data-mce-type="bookmark" id="'+l+'_start" style="'+h+'">'+m+"</span>"),c||(s.collapse(!1),r.moveToElementText(s.parentElement()),0===r.compareEndPoints("StartToEnd",s)&&s.move("character",-1),s.pasteHTML('<span data-mce-type="bookmark" id="'+l+'_end" style="'+h+'">'+m+"</span>"))}catch(g){return null}}else{if(d=p.getNode(),u=d.nodeName,"IMG"==u)return{name:u,index:i(u,d)};s=o(r.cloneRange()),c||(s.collapse(!1),s.insertNode(f.create("span",{"data-mce-type":"bookmark",id:l+"_end",style:h},m))),r=o(r),r.collapse(!0),r.insertNode(f.create("span",{"data-mce-type":"bookmark",id:l+"_start",style:h},m))}return p.moveToBookmark({id:l,keep:1}),{id:l}},moveToBookmark:function(t){function o(e){var i,n,o,a,r=t[e?"start":"end"];if(r){for(o=r[0],n=c,i=r.length-1;i>=1;i--){if(a=n.childNodes,r[i]>a.length-1)return;n=a[r[i]]}3===n.nodeType&&(o=Math.min(r[0],n.nodeValue.length)),1===n.nodeType&&(o=Math.min(r[0],n.childNodes.length)),e?s.setStart(n,o):s.setEnd(n,o)}return!0}function a(i){var o,a,r,s,l=m.get(t.id+"_"+i),c=t.keep;if(l&&(o=l.parentNode,"start"==i?(c?(o=l.firstChild,a=1):a=m.nodeIndex(l),u=d=o,h=p=a):(c?(o=l.firstChild,a=1):a=m.nodeIndex(l),d=o,p=a),!c)){for(s=l.previousSibling,r=l.nextSibling,n(e.grep(l.childNodes),function(e){3==e.nodeType&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});l=m.get(t.id+"_"+i);)m.remove(l,1);s&&r&&s.nodeType==r.nodeType&&3==s.nodeType&&!e.isOpera&&(a=s.nodeValue.length,s.appendData(r.nodeValue),m.remove(r),"start"==i?(u=d=s,h=p=a):(d=s,p=a))}}function r(e){return!m.isBlock(e)||e.innerHTML||i||(e.innerHTML='<br data-mce-bogus="1" />'),e}var s,l,c,u,d,h,p,f=this,m=f.dom;if(t)if(t.start){if(s=m.createRng(),c=m.getRoot(),f.tridentSel)return f.tridentSel.moveToBookmark(t);o(!0)&&o()&&f.setRng(s)}else if(t.id)a("start"),a("end"),u&&(s=m.createRng(),s.setStart(r(u),h),s.setEnd(r(d),p),f.setRng(s));else if(t.name)f.select(m.select(t.name)[t.index]);else if(t.rng){if(s=t.rng,s.startContainer){l=f.dom.createRng();try{l.setStart(s.startContainer,s.startOffset),l.setEnd(s.endContainer,s.endOffset)}catch(g){}s=l}f.setRng(s)}},select:function(t,i){function n(t,i){var n=new o(t,t);do{if(3==t.nodeType&&0!==e.trim(t.nodeValue).length)return i?l.setStart(t,0):l.setEnd(t,t.nodeValue.length),void 0;if("BR"==t.nodeName)return i?l.setStartBefore(t):l.setEndBefore(t),void 0}while(t=i?n.next():n.prev())}var a,r=this,s=r.dom,l=s.createRng();return t&&(a=s.nodeIndex(t),l.setStart(t.parentNode,a),l.setEnd(t.parentNode,a+1),i&&(n(t,1),n(t)),r.setRng(l)),t},isCollapsed:function(){var e=this,t=e.getRng(),i=e.getSel();return!t||t.item?!1:t.compareEndPoints?0===t.compareEndPoints("StartToEnd",t):!i||t.collapsed},collapse:function(e){var t,i=this,n=i.getRng();n.item&&(t=n.item(0),n=i.win.document.body.createTextRange(),n.moveToElementText(t)),n.collapse(!!e),i.setRng(n)},getSel:function(){var e=this.win;return e.getSelection?e.getSelection():e.document.selection},getRng:function(t){var i,n,o,a=this,r=a.win.document;if(t&&a.tridentSel)return a.tridentSel.getRangeAt(0);try{(i=a.getSel())&&(n=i.rangeCount>0?i.getRangeAt(0):i.createRange?i.createRange():r.createRange())}catch(s){}return e.isIE&&!e.isIE11&&n&&n.setStart&&r.selection.createRange().item&&(o=r.selection.createRange().item(0),n=r.createRange(),n.setStartBefore(o),n.setEndAfter(o)),n||(n=r.createRange?r.createRange():r.body.createTextRange()),n.setStart&&9===n.startContainer.nodeType&&n.collapsed&&(o=a.dom.getRoot(),n.setStart(o,0),n.setEnd(o,0)),a.selectedRange&&a.explicitRange&&(0===n.compareBoundaryPoints(n.START_TO_START,a.selectedRange)&&0===n.compareBoundaryPoints(n.END_TO_END,a.selectedRange)?n=a.explicitRange:(a.selectedRange=null,a.explicitRange=null)),n},setRng:function(e,t){var i,n=this;if(n.tridentSel){if(e.cloneRange)try{return n.tridentSel.addRange(e),void 0}catch(o){}try{e.select()}catch(o){}}else if(i=n.getSel()){n.explicitRange=e;try{i.removeAllRanges()}catch(o){}i.addRange(e),t===!1&&i.extend&&(i.collapse(e.endContainer,e.endOffset),i.extend(e.startContainer,e.startOffset)),n.selectedRange=i.rangeCount>0?i.getRangeAt(0):null}},setNode:function(e){var t=this;return t.setContent(t.dom.getOuterHTML(e)),e},getNode:function(){function e(e,t){for(var i=e;e&&3===e.nodeType&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||i}var t,i=this,n=i.getRng(),o=(i.getSel(),n.startContainer),a=n.endContainer;return n?n.setStart?(t=n.commonAncestorContainer,!n.collapsed&&(n.startContainer==n.endContainer&&n.endOffset-n.startOffset<2&&n.startContainer.hasChildNodes()&&(t=n.startContainer.childNodes[n.startOffset]),3===o.nodeType&&3===a.nodeType&&(o=o.length===n.startOffset?e(o.nextSibling,!0):o.parentNode,a=0===n.endOffset?e(a.previousSibling,!1):a.parentNode,o&&o===a))?o:t&&3==t.nodeType?t.parentNode:t):n.item?n.item(0):n.parentElement():i.dom.getRoot()},getSelectedBlocks:function(e,t){var i,n,a,r=this,s=r.dom,l=[];if(i=s.getParent(e||r.getStart(),s.isBlock),n=s.getParent(t||r.getEnd(),s.isBlock),i&&l.push(i),i&&n&&i!=n){a=i;for(var c=new o(i,s.getRoot());(a=c.next())&&a!=n;)s.isBlock(a)&&l.push(a)}return n&&i!=n&&l.push(n),l},isForward:function(){var e,t,i=this.dom,n=this.getSel();return n&&null!=n.anchorNode&&null!=n.focusNode?(e=i.createRng(),e.setStart(n.anchorNode,n.anchorOffset),e.collapse(!0),t=i.createRng(),t.setStart(n.focusNode,n.focusOffset),t.collapse(!0),e.compareBoundaryPoints(e.START_TO_START,t)<=0):!0},normalize:function(){function t(e){function t(e,t){for(var i=new o(e,f.getParent(e.parentNode,f.isBlock)||m);e=i[t?"prev":"next"]();)if("BR"===e.nodeName)return!0}function s(e,t){var i,r;for(t=t||l,i=new o(t,f.getParent(t.parentNode,f.isBlock)||m);d=i[e?"prev":"next"]();){if(3===d.nodeType&&d.nodeValue.length>0)return l=d,c=e?d.nodeValue.length:0,n=!0,void 0;if(f.isBlock(d)||h[d.nodeName.toLowerCase()])return;r=d}a&&r&&(l=r,n=!0,c=0)}var l,c,u,d,h,p,f=r.dom,m=f.getRoot();if(l=i[(e?"start":"end")+"Container"],c=i[(e?"start":"end")+"Offset"],h=f.schema.getNonEmptyElements(),9===l.nodeType&&(l=f.getRoot(),c=0),l===m){if(e&&(d=l.childNodes[c>0?c-1:0],d&&(p=d.nodeName.toLowerCase(),h[d.nodeName]||"TABLE"==d.nodeName)))return;if(l.hasChildNodes()&&(l=l.childNodes[Math.min(!e&&c>0?c-1:c,l.childNodes.length-1)],c=0,l.hasChildNodes()&&!/TABLE/.test(l.nodeName))){d=l,u=new o(l,m);do{if(3===d.nodeType&&d.nodeValue.length>0){c=e?0:d.nodeValue.length,l=d,n=!0;break}if(h[d.nodeName.toLowerCase()]){c=f.nodeIndex(d),l=d.parentNode,"IMG"!=d.nodeName||e||c++,n=!0;break}}while(d=e?u.next():u.prev())}}a&&(3===l.nodeType&&0===c&&s(!0),1===l.nodeType&&(d=l.childNodes[c],!d||"BR"!==d.nodeName||t(d)||t(d,!0)||s(!0,l.childNodes[c]))),e&&!a&&3===l.nodeType&&c===l.nodeValue.length&&s(!1),n&&i["set"+(e?"Start":"End")](l,c)}var i,n,a,r=this;e.isIE||(i=r.getRng(),a=i.collapsed,t(!0),a||t(),n&&(a&&i.collapse(!0),r.setRng(i,r.isForward())))},selectorChanged:function(e,t){var i,o=this;return o.selectorChangedData||(o.selectorChangedData={},i={},o.editor.onNodeChange.addToTop(function(e,t,a){var r=o.dom,s=r.getParents(a,null,r.getRoot()),l={};n(o.selectorChangedData,function(e,t){n(s,function(o){return r.is(o,t)?(i[t]||(n(e,function(e){e(!0,{node:o,selector:t,parents:s})}),i[t]=e),l[t]=e,!1):void 0})}),n(i,function(e,t){l[t]||(delete i[t],n(e,function(e){e(!1,{node:a,selector:t,parents:s})}))})})),o.selectorChangedData[e]||(o.selectorChangedData[e]=[]),o.selectorChangedData[e].push(t),o},scrollIntoView:function(e){var t,i,n=this,o=n.dom;i=o.getViewPort(n.editor.getWin()),t=o.getPos(e).y,(t<i.y||t+25>i.y+i.h)&&n.editor.getWin().scrollTo(0,t<i.y?t:t-i.h+25)},destroy:function(t){var i=this;i.win=null,t||e.removeUnload(i.destroy)},_fixIESelection:function(){function e(e,t){var i=l.createTextRange();try{i.moveToPoint(e,t)}catch(n){i=null}return i}function t(t){var n;t.button?(n=e(t.x,t.y),n&&(n.compareEndPoints("StartToStart",o)>0?n.setEndPoint("StartToStart",o):n.setEndPoint("EndToEnd",o),n.select())):i()}function i(){var e=s.selection.createRange();o&&!e.item&&0===e.compareEndPoints("StartToEnd",e)&&o.select(),r.unbind(s,"mouseup",i),r.unbind(s,"mousemove",t),o=n=0}var n,o,a,r=this.dom,s=r.doc,l=s.body;s.documentElement.unselectable=!0,r.bind(s,["mousedown","contextmenu"],function(l){if("HTML"===l.target.nodeName){if(n&&i(),a=s.documentElement,a.scrollHeight>a.clientHeight)return;n=1,o=e(l.x,l.y),o&&(r.bind(s,"mouseup",i),r.bind(s,"mousemove",t),r.win.focus(),o.select())}})}})}(tinymce),function(e){e.dom.Serializer=function(t,i,n){var o,a,r,s=e.isIE,l=e.each;return t.apply_source_formatting||(t.indent=!1),i=i||e.DOM,n=n||new e.html.Schema(t),t.entity_encoding=t.entity_encoding||"named",t.remove_trailing_brs="remove_trailing_brs"in t?t.remove_trailing_brs:!0,o=new e.util.Dispatcher(self),a=new e.util.Dispatcher(self),r=new e.html.DomParser(t,n),r.addAttributeFilter("src,href,style",function(e,n){for(var o,a,r,s=e.length,l="data-mce-"+n,c=t.url_converter,u=t.url_converter_scope;s--;)o=e[s],a=o.attributes.map[l],a!==r?(o.attr(n,a.length>0?a:null),o.attr(l,null)):(a=o.attributes.map[n],"style"===n?a=i.serializeStyle(i.parseStyle(a),o.name):c&&(a=c.call(u,a,n,o.name)),o.attr(n,a.length>0?a:null))}),r.addAttributeFilter("class",function(e){for(var t,i,n=e.length;n--;)t=e[n],i=t.attr("class").replace(/(?:^|\s)mce(Item\w+|Selected)(?!\S)/g,""),t.attr("class",i.length>0?i:null)}),r.addAttributeFilter("data-mce-type",function(e,t,i){for(var n,o=e.length;o--;)n=e[o],"bookmark"!==n.attributes.map["data-mce-type"]||i.cleanup||n.remove()}),r.addAttributeFilter("data-mce-expando",function(e,t){for(var i=e.length;i--;)e[i].attr(t,null)}),r.addNodeFilter("noscript",function(t){for(var i,n=t.length;n--;)i=t[n].firstChild,i&&(i.value=e.html.Entities.decode(i.value))}),r.addNodeFilter("script,style",function(e,t){function i(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")}for(var n,o,a=e.length;a--;)n=e[a],o=n.firstChild?n.firstChild.value:"","script"===t?(n.attr("type",(n.attr("type")||"text/javascript").replace(/^mce\-/,"")),o.length>0&&(n.firstChild.value="// <![CDATA[\n"+i(o)+"\n// ]]>")):o.length>0&&(n.firstChild.value="<!--\n"+i(o)+"\n-->")}),r.addNodeFilter("#comment",function(e){for(var t,i=e.length;i--;)t=e[i],0===t.value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))}),r.addNodeFilter("xml:namespace,input",function(e,t){for(var i,n=e.length;n--;)i=e[n],7===i.type?i.remove():1===i.type&&("input"!==t||"type"in i.attributes.map||i.attr("type","text"))}),t.fix_list_elements&&r.addNodeFilter("ul,ol",function(e){for(var t,i,n=e.length;n--;)t=e[n],i=t.parent,("ul"===i.name||"ol"===i.name)&&t.prev&&"li"===t.prev.name&&t.prev.append(t)}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style",function(e,t){for(var i=e.length;i--;)e[i].attr(t,null)}),{schema:n,addNodeFilter:r.addNodeFilter,addAttributeFilter:r.addAttributeFilter,onPreProcess:o,onPostProcess:a,serialize:function(c,u){var d,h,p,f,m;return s&&i.select("script,style,select,map").length>0?(m=c.innerHTML,c=c.cloneNode(!1),i.setHTML(c,m)):c=c.cloneNode(!0),d=c.ownerDocument.implementation,d.createHTMLDocument&&(h=d.createHTMLDocument(""),l("BODY"==c.nodeName?c.childNodes:[c],function(e){h.body.appendChild(h.importNode(e,!0))}),c="BODY"!=c.nodeName?h.body.firstChild:h.body,p=i.doc,i.doc=h),u=u||{},u.format=u.format||"html",u.no_events||(u.node=c,o.dispatch(self,u)),f=new e.html.Serializer(t,n),u.content=f.serialize(r.parse(e.trim(u.getInner?c.innerHTML:i.getOuterHTML(c)),u)),u.cleanup||(u.content=u.content.replace(/\uFEFF/g,"")),u.no_events||a.dispatch(self,u),p&&(i.doc=p),u.node=null,u.content},addRules:function(e){n.addValidElements(e)},setRules:function(e){n.setValidElements(e)
|
79
|
+
}}}}(tinymce),function(e){e.dom.ScriptLoader=function(){function t(t,i){function n(){c.remove(l),a&&(a.onreadystatechange=a.onload=a=null),i()}function o(){"undefined"!=typeof console&&console.log&&console.log("Failed to load: "+t)}var a,r,s,l,c=e.DOM;return l=c.uniqueId(),e.isIE6&&(r=new e.util.URI(t),s=location,r.host==s.hostname&&r.port==s.port&&r.protocol+":"==s.protocol&&"file"!=r.protocol.toLowerCase())?(e.util.XHR.send({url:e._addVer(r.getURI()),success:function(e){var t=c.create("script",{type:"text/javascript"});t.text=e,document.getElementsByTagName("head")[0].appendChild(t),c.remove(t),n()},error:o}),void 0):(a=document.createElement("script"),a.id=l,a.type="text/javascript",a.src=e._addVer(t),(!e.isIE||e.isIE11)&&(a.onload=n),a.onerror=o,e.isOpera||(a.onreadystatechange=function(){var e=a.readyState;("complete"==e||"loaded"==e)&&n()}),(document.getElementsByTagName("head")[0]||document.body).appendChild(a),void 0)}var i,n=0,o=1,a=2,r={},s=[],l={},c=[],u=0;this.isDone=function(e){return r[e]==a},this.markDone=function(e){r[e]=a},this.add=this.load=function(e,t,o){var a=r[e];a==i&&(s.push(e),r[e]=n),t&&(l[e]||(l[e]=[]),l[e].push({func:t,scope:o||this}))},this.loadQueue=function(e,t){this.loadScripts(s,e,t)},this.loadScripts=function(n,s,d){function h(t){e.each(l[t],function(e){e.func.call(e.scope)}),l[t]=i}var p;c.push({func:s,scope:d||this}),(p=function(){var i=e.grep(n);n.length=0,e.each(i,function(e){return r[e]==a?(h(e),void 0):(r[e]!=o&&(r[e]=o,u++,t(e,function(){r[e]=a,u--,h(e),p()})),void 0)}),u||(e.each(c,function(e){e.func.call(e.scope)}),c.length=0)})()}},e.ScriptLoader=new e.dom.ScriptLoader}(tinymce),function(e){e.dom.RangeUtils=function(t){this.walk=function(i,n){function o(e){var t;return t=e[0],3===t.nodeType&&t===m&&g>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===b&&e.length>0&&t===v&&3===t.nodeType&&e.splice(e.length-1,1),e}function a(e,t,i){for(var n=[];e&&e!=i;e=e[t])n.push(e);return n}function r(e,t){do{if(e.parentNode==t)return e;e=e.parentNode}while(e)}function s(e,t,i){var r=i?"nextSibling":"previousSibling";for(d=e,h=d.parentNode;d&&d!=t;d=h)h=d.parentNode,p=a(d==e?d:d[r],r),p.length&&(i||p.reverse(),n(o(p)))}var l,c,u,d,h,p,f,m=i.startContainer,g=i.startOffset,v=i.endContainer,b=i.endOffset;if(f=t.select("td.mceSelected,th.mceSelected"),f.length>0)return e.each(f,function(e){n([e])}),void 0;if(1==m.nodeType&&m.hasChildNodes()&&(m=m.childNodes[g]),1==v.nodeType&&v.hasChildNodes()&&(v=v.childNodes[Math.min(b-1,v.childNodes.length-1)]),m==v)return n(o([m]));for(l=t.findCommonAncestor(m,v),d=m;d;d=d.parentNode){if(d===v)return s(m,l,!0);if(d===l)break}for(d=v;d;d=d.parentNode){if(d===m)return s(v,l);if(d===l)break}c=r(m,l)||m,u=r(v,l)||v,s(m,c,!0),p=a(c==m?c:c.nextSibling,"nextSibling",u==v?u.nextSibling:u),p.length&&n(o(p)),s(v,u)},this.split=function(e){function t(e,t){return e.splitText(t)}var i=e.startContainer,n=e.startOffset,o=e.endContainer,a=e.endOffset;return i==o&&3==i.nodeType?n>0&&n<i.nodeValue.length&&(o=t(i,n),i=o.previousSibling,a>n?(a-=n,i=o=t(o,a).previousSibling,a=o.nodeValue.length,n=0):a=0):(3==i.nodeType&&n>0&&n<i.nodeValue.length&&(i=t(i,n),n=0),3==o.nodeType&&a>0&&a<o.nodeValue.length&&(o=t(o,a).previousSibling,a=o.nodeValue.length)),{startContainer:i,startOffset:n,endContainer:o,endOffset:a}}},e.dom.RangeUtils.compareRanges=function(e,t){if(e&&t){if(!e.item&&!e.duplicate)return e.startContainer==t.startContainer&&e.startOffset==t.startOffset;if(e.item&&t.item&&e.item(0)===t.item(0))return!0;if(e.isEqual&&t.isEqual&&t.isEqual(e))return!0}return!1}}(tinymce),function(e){var t=e.dom.Event,i=e.each;e.create("tinymce.ui.KeyboardNavigation",{KeyboardNavigation:function(n,o){var a,r,s,l,c,u=this,d=n.root,h=n.items,p=n.enableUpDown,f=n.enableLeftRight||!n.enableUpDown,m=n.excludeFromTabOrder;o=o||e.DOM,a=function(e){c=e.target.id},r=function(e){o.setAttrib(e.target.id,"tabindex","-1")},l=function(){var e=o.get(c);o.setAttrib(e,"tabindex","0"),e.focus()},u.focus=function(){o.get(c).focus()},u.destroy=function(){i(h,function(e){var t=o.get(e.id);o.unbind(t,"focus",a),o.unbind(t,"blur",r)});var e=o.get(d);o.unbind(e,"focus",l),o.unbind(e,"keydown",s),h=o=d=u.focus=a=r=s=l=null,u.destroy=function(){}},u.moveFocus=function(e,a){{var r,s=-1;u.controls}c&&(i(h,function(e,t){return e.id===c?(s=t,!1):void 0}),s+=e,0>s?s=h.length-1:s>=h.length&&(s=0),r=h[s],o.setAttrib(c,"tabindex","-1"),o.setAttrib(r.id,"tabindex","0"),o.get(r.id).focus(),n.actOnFocus&&n.onAction(r.id),a&&t.cancel(a))},s=function(e){var i=37,o=39,a=38,r=40,s=27,l=14,d=13,h=32;switch(e.keyCode){case i:f&&u.moveFocus(-1),t.cancel(e);break;case o:f&&u.moveFocus(1),t.cancel(e);break;case a:p&&u.moveFocus(-1),t.cancel(e);break;case r:p&&u.moveFocus(1),t.cancel(e);break;case s:n.onCancel&&(n.onCancel(),t.cancel(e));break;case l:case d:case h:n.onAction&&(n.onAction(c),t.cancel(e))}},i(h,function(e,t){var i,n;e.id||(e.id=o.uniqueId("_mce_item_")),n=o.get(e.id),m?(o.bind(n,"blur",r),i="-1"):i=0===t?"0":"-1",n.setAttribute("tabindex",i),o.bind(n,"focus",a)}),h[0]&&(c=h[0].id),o.setAttrib(d,"tabindex","-1");var g=o.get(d);o.bind(g,"focus",l),o.bind(g,"keydown",s)}})}(tinymce),function(e){var t=e.DOM,i=e.is;e.create("tinymce.ui.Control",{Control:function(t,i,n){this.id=t,this.settings=i=i||{},this.rendered=!1,this.onRender=new e.util.Dispatcher(this),this.classPrefix="",this.scope=i.scope||this,this.disabled=0,this.active=0,this.editor=n},setAriaProperty:function(e,i){var n=t.get(this.id+"_aria")||t.get(this.id);n&&t.setAttrib(n,"aria-"+e,!!i)},focus:function(){t.get(this.id).focus()},setDisabled:function(e){e!=this.disabled&&(this.setAriaProperty("disabled",e),this.setState("Disabled",e),this.setState("Enabled",!e),this.disabled=e)},isDisabled:function(){return this.disabled},setActive:function(e){e!=this.active&&(this.setState("Active",e),this.active=e,this.setAriaProperty("pressed",e))},isActive:function(){return this.active},setState:function(e,i){var n=t.get(this.id);e=this.classPrefix+e,i?t.addClass(n,e):t.removeClass(n,e)},isRendered:function(){return this.rendered},renderHTML:function(){},renderTo:function(e){t.setHTML(e,this.renderHTML())},postRender:function(){var e,t=this;i(t.disabled)&&(e=t.disabled,t.disabled=-1,t.setDisabled(e)),i(t.active)&&(e=t.active,t.active=-1,t.setActive(e))},remove:function(){t.remove(this.id),this.destroy()},destroy:function(){e.dom.Event.clear(this.id)}})}(tinymce),tinymce.create("tinymce.ui.Container:tinymce.ui.Control",{Container:function(e,t,i){this.parent(e,t,i),this.controls=[],this.lookup={}},add:function(e){return this.lookup[e.id]=e,this.controls.push(e),e},get:function(e){return this.lookup[e]}}),tinymce.create("tinymce.ui.Separator:tinymce.ui.Control",{Separator:function(e,t){this.parent(e,t),this.classPrefix="mceSeparator",this.setDisabled(!0)},renderHTML:function(){return tinymce.DOM.createHTML("span",{"class":this.classPrefix,role:"separator","aria-orientation":"vertical",tabindex:"-1"})}}),function(e){{var t=e.is;e.DOM,e.each,e.walk}e.create("tinymce.ui.MenuItem:tinymce.ui.Control",{MenuItem:function(e,t){this.parent(e,t),this.classPrefix="mceMenuItem"},setSelected:function(e){this.setState("Selected",e),this.setAriaProperty("checked",!!e),this.selected=e},isSelected:function(){return this.selected},postRender:function(){var e=this;e.parent(),t(e.selected)&&e.setSelected(e.selected)}})}(tinymce),function(e){var t=(e.is,e.DOM),i=(e.each,e.walk);e.create("tinymce.ui.Menu:tinymce.ui.MenuItem",{Menu:function(t,i){var n=this;n.parent(t,i),n.items={},n.collapsed=!1,n.menuCount=0,n.onAddItem=new e.util.Dispatcher(this)},expand:function(e){var t=this;e&&i(t,function(e){e.expand&&e.expand()},"items",t),t.collapsed=!1},collapse:function(e){var t=this;e&&i(t,function(e){e.collapse&&e.collapse()},"items",t),t.collapsed=!0},isCollapsed:function(){return this.collapsed},add:function(i){return i.settings||(i=new e.ui.MenuItem(i.id||t.uniqueId(),i)),this.onAddItem.dispatch(this,i),this.items[i.id]=i},addSeparator:function(){return this.add({separator:!0})},addMenu:function(e){return e.collapse||(e=this.createMenu(e)),this.menuCount++,this.add(e)},hasMenus:function(){return 0!==this.menuCount},remove:function(e){delete this.items[e.id]},removeAll:function(){var e=this;i(e,function(e){e.removeAll?e.removeAll():e.remove(),e.destroy()},"items",e),e.items={}},createMenu:function(i){var n=new e.ui.Menu(i.id||t.uniqueId(),i);return n.onAddItem.add(this.onAddItem.dispatch,this.onAddItem),n}})}(tinymce),function(e){var t=e.is,i=e.DOM,n=e.each,o=e.dom.Event,a=e.dom.Element;e.create("tinymce.ui.DropMenu:tinymce.ui.Menu",{DropMenu:function(n,o){o=o||{},o.container=o.container||i.doc.body,o.offset_x=o.offset_x||0,o.offset_y=o.offset_y||0,o.vp_offset_x=o.vp_offset_x||0,o.vp_offset_y=o.vp_offset_y||0,t(o.icons)&&!o.icons&&(o["class"]+=" mceNoIcons"),this.parent(n,o),this.onShowMenu=new e.util.Dispatcher(this),this.onHideMenu=new e.util.Dispatcher(this),this.classPrefix="mceMenu"},createMenu:function(t){var n,o=this,a=o.settings;return t.container=t.container||a.container,t.parent=o,t.constrain=t.constrain||a.constrain,t["class"]=t["class"]||a["class"],t.vp_offset_x=t.vp_offset_x||a.vp_offset_x,t.vp_offset_y=t.vp_offset_y||a.vp_offset_y,t.keyboard_focus=a.keyboard_focus,n=new e.ui.DropMenu(t.id||i.uniqueId(),t),n.onAddItem.add(o.onAddItem.dispatch,o.onAddItem),n},focus:function(){var e=this;e.keyboardNav&&e.keyboardNav.focus()},update:function(){var e,t,n=this,o=n.settings,a=i.get("menu_"+n.id+"_tbl"),r=i.get("menu_"+n.id+"_co");e=o.max_width?Math.min(a.offsetWidth,o.max_width):a.offsetWidth,t=o.max_height?Math.min(a.offsetHeight,o.max_height):a.offsetHeight,i.boxModel?n.element.setStyles({width:e,height:t}):n.element.setStyles({width:e+2,height:t+2}),o.max_width&&i.setStyle(r,"width",e),o.max_height&&(i.setStyle(r,"height",t),a.clientHeight<o.max_height&&i.setStyle(r,"overflow","hidden"))},showMenu:function(t,r,s){var l,c,u,d,h,p,f=this,m=f.settings,g=i.getViewPort(),v=2,b=f.classPrefix;f.collapse(1),f.isMenuVisible||(f.rendered?l=i.get("menu_"+f.id):(l=i.add(f.settings.container,f.renderNode()),n(f.items,function(e){e.postRender()}),f.element=new a("menu_"+f.id,{blocker:1,container:m.container})),e.isOpera||i.setStyles(l,{left:-65535,top:-65535}),i.show(l),f.update(),t+=m.offset_x||0,r+=m.offset_y||0,g.w-=4,g.h-=4,m.constrain&&(c=l.clientWidth-v,u=l.clientHeight-v,d=g.x+g.w,h=g.y+g.h,t+m.vp_offset_x+c>d&&(t=s?s-c:Math.max(0,d-m.vp_offset_x-c)),r+m.vp_offset_y+u>h&&(r=Math.max(0,h-m.vp_offset_y-u))),i.setStyles(l,{left:t,top:r}),f.element.update(),f.isMenuVisible=1,f.mouseClickFunc=o.add(l,"click",function(e){var t;if(e=e.target,e&&(e=i.getParent(e,"tr"))&&!i.hasClass(e,b+"ItemSub")){if(t=f.items[e.id],t.isDisabled())return;for(p=f;p;)p.hideMenu&&p.hideMenu(),p=p.settings.parent;return t.settings.onclick&&t.settings.onclick(e),!1}}),f.hasMenus()&&(f.mouseOverFunc=o.add(l,"mouseover",function(e){var t,n;if(e=e.target,e&&(e=i.getParent(e,"tr"))){if(t=f.items[e.id],f.lastMenu&&f.lastMenu.collapse(1),t.isDisabled())return;e&&i.hasClass(e,b+"ItemSub")&&(n=i.getRect(e),t.showMenu(n.x+n.w-v,n.y-v,n.x),f.lastMenu=t,i.addClass(i.get(t.id).firstChild,b+"ItemActive"))}})),o.add(l,"keydown",f._keyHandler,f),f.onShowMenu.dispatch(f),m.keyboard_focus&&f._setupKeyboardNav())},hideMenu:function(e){var t,n=this,a=i.get("menu_"+n.id);n.isMenuVisible&&(n.keyboardNav&&n.keyboardNav.destroy(),o.remove(a,"mouseover",n.mouseOverFunc),o.remove(a,"click",n.mouseClickFunc),o.remove(a,"keydown",n._keyHandler),i.hide(a),n.isMenuVisible=0,e||n.collapse(1),n.element&&n.element.hide(),(t=i.get(n.id))&&i.removeClass(t.firstChild,n.classPrefix+"ItemActive"),n.onHideMenu.dispatch(n))},add:function(e){var t,n=this;return e=n.parent(e),n.isRendered&&(t=i.get("menu_"+n.id))&&n._add(i.select("tbody",t)[0],e),e},collapse:function(e){this.parent(e),this.hideMenu(1)},remove:function(e){return i.remove(e.id),this.destroy(),this.parent(e)},destroy:function(){var e=this,t=i.get("menu_"+e.id);e.keyboardNav&&e.keyboardNav.destroy(),o.remove(t,"mouseover",e.mouseOverFunc),o.remove(i.select("a",t),"focus",e.mouseOverFunc),o.remove(t,"click",e.mouseClickFunc),o.remove(t,"keydown",e._keyHandler),e.element&&e.element.remove(),i.remove(t)},renderNode:function(){var e,t,o,r,s=this,l=s.settings;return r=i.create("div",{role:"listbox",id:"menu_"+s.id,"class":l["class"],style:"position:absolute;left:0;top:0;z-index:200000;outline:0"}),s.settings.parent&&i.setAttrib(r,"aria-parent","menu_"+s.settings.parent.id),o=i.add(r,"div",{role:"presentation",id:"menu_"+s.id+"_co","class":s.classPrefix+(l["class"]?" "+l["class"]:"")}),s.element=new a("menu_"+s.id,{blocker:1,container:l.container}),l.menu_line&&i.add(o,"span",{"class":s.classPrefix+"Line"}),e=i.add(o,"table",{role:"presentation",id:"menu_"+s.id+"_tbl",border:0,cellPadding:0,cellSpacing:0}),t=i.add(e,"tbody"),n(s.items,function(e){s._add(t,e)}),s.rendered=!0,r},_setupKeyboardNav:function(){var t,n,o=this;t=i.get("menu_"+o.id),n=i.select("a[role=option]","menu_"+o.id),n.splice(0,0,t),o.keyboardNav=new e.ui.KeyboardNavigation({root:"menu_"+o.id,items:n,onCancel:function(){o.hideMenu()},enableUpDown:!0}),t.focus()},_keyHandler:function(e){var t=this;switch(e.keyCode){case 37:t.settings.parent&&(t.hideMenu(),t.settings.parent.focus(),o.cancel(e));break;case 39:t.mouseOverFunc&&t.mouseOverFunc(e)}},_add:function(e,t){var n,o,a,r,s,l=t.settings,c=this.classPrefix;return l.separator?(a=i.add(e,"tr",{id:t.id,"class":c+"ItemSeparator"}),i.add(a,"td",{"class":c+"ItemSeparator"}),(n=a.previousSibling)&&i.addClass(n,"mceLast"),void 0):(n=a=i.add(e,"tr",{id:t.id,"class":c+"Item "+c+"ItemEnabled"}),n=r=i.add(n,l.titleItem?"th":"td"),n=o=i.add(n,"a",{id:t.id+"_aria",role:l.titleItem?"presentation":"option",href:"javascript:;",onclick:"return false;",onmousedown:"return false;"}),l.parent&&(i.setAttrib(o,"aria-haspopup","true"),i.setAttrib(o,"aria-owns","menu_"+t.id)),i.addClass(r,l["class"]),s=i.add(n,"span",{"class":"mceIcon"+(l.icon?" mce_"+l.icon:"")}),l.icon_src&&i.add(s,"img",{src:l.icon_src}),n=i.add(n,l.element||"span",{"class":"mceText",title:t.settings.title},t.settings.title),t.settings.style&&("function"==typeof t.settings.style&&(t.settings.style=t.settings.style()),i.setAttrib(n,"style",t.settings.style)),1==e.childNodes.length&&i.addClass(a,"mceFirst"),(n=a.previousSibling)&&i.hasClass(n,c+"ItemSeparator")&&i.addClass(a,"mceFirst"),t.collapse&&i.addClass(a,c+"ItemSub"),(n=a.previousSibling)&&i.removeClass(n,"mceLast"),i.addClass(a,"mceLast"),void 0)}})}(tinymce),function(e){var t=e.DOM;e.create("tinymce.ui.Button:tinymce.ui.Control",{Button:function(e,t,i){this.parent(e,t,i),this.classPrefix="mceButton"},renderHTML:function(){var e,i,n=this.classPrefix,o=this.settings;return i=t.encode(o.label||""),e='<a role="button" id="'+this.id+'" href="javascript:;" class="'+n+" "+n+"Enabled "+o["class"]+(i?" "+n+"Labeled":"")+'" onmousedown="return false;" onclick="return false;" aria-labelledby="'+this.id+'_voice" title="'+t.encode(o.title)+'">',e+=!o.image||this.editor&&this.editor.forcedHighContrastMode?'<span class="mceIcon '+o["class"]+'"></span>'+(i?'<span class="'+n+'Label">'+i+"</span>":""):'<span class="mceIcon '+o["class"]+'"><img class="mceIcon" src="'+o.image+'" alt="'+t.encode(o.title)+'" /></span>'+(i?'<span class="'+n+'Label">'+i+"</span>":""),e+='<span class="mceVoiceLabel mceIconOnly" style="display: none;" id="'+this.id+'_voice">'+o.title+"</span>",e+="</a>"},postRender:function(){var t,i=this,n=i.settings;e.isIE&&i.editor&&e.dom.Event.add(i.id,"mousedown",function(){var e=i.editor.selection.getNode().nodeName;t="IMG"===e?i.editor.selection.getBookmark():null}),e.dom.Event.add(i.id,"click",function(o){return i.isDisabled()?void 0:(e.isIE&&i.editor&&null!==t&&i.editor.selection.moveToBookmark(t),n.onclick.call(n.scope,o))}),e.dom.Event.add(i.id,"keydown",function(t){return i.isDisabled()||t.keyCode!=e.VK.SPACEBAR?void 0:(e.dom.Event.cancel(t),n.onclick.call(n.scope,t))})}})}(tinymce),function(e){var t,i=e.DOM,n=e.dom.Event,o=e.each,a=e.util.Dispatcher;e.create("tinymce.ui.ListBox:tinymce.ui.Control",{ListBox:function(t,i,n){var o=this;o.parent(t,i,n),o.items=[],o.onChange=new a(o),o.onPostRender=new a(o),o.onAdd=new a(o),o.onRenderMenu=new e.util.Dispatcher(this),o.classPrefix="mceListBox",o.marked={}},select:function(e){var i,n,a=this;return a.marked={},e==t?a.selectByIndex(-1):(n=e&&"function"==typeof e?e:function(t){return t==e},e!=a.selectedValue&&(o(a.items,function(e,t){return n(e.value)?(i=1,a.selectByIndex(t),!1):void 0}),i||a.selectByIndex(-1)),void 0)},selectByIndex:function(e){var t,n,o,a=this;a.marked={},e!=a.selectedIndex&&(t=i.get(a.id+"_text"),o=i.get(a.id+"_voiceDesc"),n=a.items[e],n?(a.selectedValue=n.value,a.selectedIndex=e,i.setHTML(t,i.encode(n.title)),i.setHTML(o,a.settings.title+" - "+n.title),i.removeClass(t,"mceTitle"),i.setAttrib(a.id,"aria-valuenow",n.title)):(i.setHTML(t,i.encode(a.settings.title)),i.setHTML(o,i.encode(a.settings.title)),i.addClass(t,"mceTitle"),a.selectedValue=a.selectedIndex=null,i.setAttrib(a.id,"aria-valuenow",a.settings.title)),t=0)},mark:function(e){this.marked[e]=!0},add:function(t,i,n){var o=this;n=n||{},n=e.extend(n,{title:t,value:i}),o.items.push(n),o.onAdd.dispatch(o,n)},getLength:function(){return this.items.length},renderHTML:function(){var e="",t=this,n=t.settings,o=t.classPrefix;return e='<span role="listbox" aria-haspopup="true" aria-labelledby="'+t.id+'_voiceDesc" aria-describedby="'+t.id+'_voiceDesc"><table role="presentation" tabindex="0" id="'+t.id+'" cellpadding="0" cellspacing="0" class="'+o+" "+o+"Enabled"+(n["class"]?" "+n["class"]:"")+'"><tbody><tr>',e+="<td>"+i.createHTML("span",{id:t.id+"_voiceDesc","class":"voiceLabel",style:"display:none;"},t.settings.title),e+=i.createHTML("a",{id:t.id+"_text",tabindex:-1,href:"javascript:;","class":"mceText",onclick:"return false;",onmousedown:"return false;"},i.encode(t.settings.title))+"</td>",e+="<td>"+i.createHTML("a",{id:t.id+"_open",tabindex:-1,href:"javascript:;","class":"mceOpen",onclick:"return false;",onmousedown:"return false;"},'<span><span style="display:none;" class="mceIconOnly" aria-hidden="true">▼</span></span>')+"</td>",e+="</tr></tbody></table></span>"},showMenu:function(){var t,a,r=this,s=i.get(this.id);if(!r.isDisabled()&&0!==r.items.length){if(r.menu&&r.menu.isMenuVisible)return r.hideMenu();r.isMenuRendered||(r.renderMenu(),r.isMenuRendered=!0),t=i.getPos(s),a=r.menu,a.settings.offset_x=t.x,a.settings.offset_y=t.y,a.settings.keyboard_focus=!e.isOpera,o(r.items,function(e){a.items[e.id]&&a.items[e.id].setSelected(0)}),o(r.items,function(e){a.items[e.id]&&r.marked[e.value]&&a.items[e.id].setSelected(1),e.value===r.selectedValue&&a.items[e.id].setSelected(1)}),a.showMenu(0,s.clientHeight),n.add(i.doc,"mousedown",r.hideMenu,r),i.addClass(r.id,r.classPrefix+"Selected")}},hideMenu:function(e){var t=this;if(t.menu&&t.menu.isMenuVisible){if(i.removeClass(t.id,t.classPrefix+"Selected"),e&&"mousedown"==e.type&&(e.target.id==t.id+"_text"||e.target.id==t.id+"_open"))return;e&&i.getParent(e.target,".mceMenu")||(i.removeClass(t.id,t.classPrefix+"Selected"),n.remove(i.doc,"mousedown",t.hideMenu,t),t.menu.hideMenu())}},renderMenu:function(){var e,n=this;e=n.settings.control_manager.createDropMenu(n.id+"_menu",{menu_line:1,"class":n.classPrefix+"Menu mceNoIcons",max_width:250,max_height:150}),e.onHideMenu.add(function(){n.hideMenu(),n.focus()}),e.add({title:n.settings.title,"class":"mceMenuItemTitle",onclick:function(){n.settings.onselect("")!==!1&&n.select("")}}),o(n.items,function(o){o.value===t?e.add({title:o.title,role:"option","class":"mceMenuItemTitle",onclick:function(){n.settings.onselect("")!==!1&&n.select("")}}):(o.id=i.uniqueId(),o.role="option",o.onclick=function(){n.settings.onselect(o.value)!==!1&&n.select(o.value)},e.add(o))}),n.onRenderMenu.dispatch(n,e),n.menu=e},postRender:function(){var t=this,o=t.classPrefix;n.add(t.id,"click",t.showMenu,t),n.add(t.id,"keydown",function(e){32==e.keyCode&&(t.showMenu(e),n.cancel(e))}),n.add(t.id,"focus",function(){t._focused||(t.keyDownHandler=n.add(t.id,"keydown",function(e){40==e.keyCode&&(t.showMenu(),n.cancel(e))}),t.keyPressHandler=n.add(t.id,"keypress",function(e){var i;13==e.keyCode&&(i=t.selectedValue,t.selectedValue=null,n.cancel(e),t.settings.onselect(i))})),t._focused=1}),n.add(t.id,"blur",function(){n.remove(t.id,"keydown",t.keyDownHandler),n.remove(t.id,"keypress",t.keyPressHandler),t._focused=0}),(e.isIE6||!i.boxModel)&&(n.add(t.id,"mouseover",function(){i.hasClass(t.id,o+"Disabled")||i.addClass(t.id,o+"Hover")}),n.add(t.id,"mouseout",function(){i.hasClass(t.id,o+"Disabled")||i.removeClass(t.id,o+"Hover")})),t.onPostRender.dispatch(t,i.get(t.id))},destroy:function(){this.parent(),n.clear(this.id+"_text"),n.clear(this.id+"_open")}})}(tinymce),function(e){{var t,i=e.DOM,n=e.dom.Event,o=e.each;e.util.Dispatcher}e.create("tinymce.ui.NativeListBox:tinymce.ui.ListBox",{NativeListBox:function(e,t){this.parent(e,t),this.classPrefix="mceNativeListBox"},setDisabled:function(e){i.get(this.id).disabled=e,this.setAriaProperty("disabled",e)},isDisabled:function(){return i.get(this.id).disabled},select:function(e){var i,n,a=this;return e==t?a.selectByIndex(-1):(n=e&&"function"==typeof e?e:function(t){return t==e},e!=a.selectedValue&&(o(a.items,function(e,t){return n(e.value)?(i=1,a.selectByIndex(t),!1):void 0}),i||a.selectByIndex(-1)),void 0)},selectByIndex:function(e){i.get(this.id).selectedIndex=e+1,this.selectedValue=this.items[e]?this.items[e].value:null},add:function(e,t,n){var o,a=this;n=n||{},n.value=t,a.isRendered()&&i.add(i.get(this.id),"option",n,e),o={title:e,value:t,attribs:n},a.items.push(o),a.onAdd.dispatch(a,o)},getLength:function(){return this.items.length},renderHTML:function(){var e,t=this;return e=i.createHTML("option",{value:""},"-- "+t.settings.title+" --"),o(t.items,function(t){e+=i.createHTML("option",{value:t.value},t.title)}),e=i.createHTML("select",{id:t.id,"class":"mceNativeListBox","aria-labelledby":t.id+"_aria"},e),e+=i.createHTML("span",{id:t.id+"_aria",style:"display: none"},t.settings.title)},postRender:function(){function e(e){var t=o.items[e.target.selectedIndex-1];t&&(t=t.value)&&(o.onChange.dispatch(o,t),o.settings.onselect&&o.settings.onselect(t))}var t,o=this,a=!0;o.rendered=!0,n.add(o.id,"change",e),n.add(o.id,"keydown",function(i){var r,s=38,l=40,c=13,u=32;return n.remove(o.id,"change",t),a=!1,r=n.add(o.id,"blur",function(){a||(a=!0,n.add(o.id,"change",e),n.remove(o.id,"blur",r))}),i.keyCode==c||i.keyCode==u?(e(i),n.cancel(i)):((i.keyCode==l||i.keyCode==s)&&i.stopImmediatePropagation(),void 0)}),o.onPostRender.dispatch(o,i.get(o.id))}})}(tinymce),function(e){{var t=e.DOM,i=e.dom.Event;e.each}e.create("tinymce.ui.MenuButton:tinymce.ui.Button",{MenuButton:function(i,n,o){this.parent(i,n,o),this.onRenderMenu=new e.util.Dispatcher(this),n.menu_container=n.menu_container||t.doc.body},showMenu:function(){var e,n,o,a=this,r=t.get(a.id);if(!a.isDisabled()){if(a.isMenuRendered||(a.renderMenu(),a.isMenuRendered=!0),a.isMenuVisible)return a.hideMenu();e=t.getPos(a.settings.menu_container),n=t.getPos(r),o=a.menu,o.settings.offset_x=n.x,o.settings.offset_y=n.y,o.settings.vp_offset_x=n.x,o.settings.vp_offset_y=n.y,o.settings.keyboard_focus=a._focused,o.showMenu(0,r.firstChild.clientHeight),i.add(t.doc,"mousedown",a.hideMenu,a),a.setState("Selected",1),a.isMenuVisible=1}},renderMenu:function(){var e,t=this;e=t.settings.control_manager.createDropMenu(t.id+"_menu",{menu_line:1,"class":this.classPrefix+"Menu",icons:t.settings.icons}),e.onHideMenu.add(function(){t.hideMenu(),t.focus()}),t.onRenderMenu.dispatch(t,e),t.menu=e},hideMenu:function(e){var n=this;e&&"mousedown"==e.type&&t.getParent(e.target,function(e){return e.id===n.id||e.id===n.id+"_open"})||(e&&t.getParent(e.target,".mceMenu")||(n.setState("Selected",0),i.remove(t.doc,"mousedown",n.hideMenu,n),n.menu&&n.menu.hideMenu()),n.isMenuVisible=0)},postRender:function(){var e=this,t=e.settings;i.add(e.id,"click",function(){e.isDisabled()||(t.onclick&&t.onclick(e.value),e.showMenu())})}})}(tinymce),function(e){{var t=e.DOM,i=e.dom.Event;e.each}e.create("tinymce.ui.SplitButton:tinymce.ui.MenuButton",{SplitButton:function(e,t,i){this.parent(e,t,i),this.classPrefix="mceSplitButton"},renderHTML:function(){var e,i,n=this,o=n.settings;return e="<tbody><tr>",i=o.image?t.createHTML("img ",{src:o.image,role:"presentation","class":"mceAction "+o["class"]}):t.createHTML("span",{"class":"mceAction "+o["class"]},""),i+=t.createHTML("span",{"class":"mceVoiceLabel mceIconOnly",id:n.id+"_voice",style:"display:none;"},o.title),e+="<td >"+t.createHTML("a",{role:"button",id:n.id+"_action",tabindex:"-1",href:"javascript:;","class":"mceAction "+o["class"],onclick:"return false;",onmousedown:"return false;",title:o.title},i)+"</td>",i=t.createHTML("span",{"class":"mceOpen "+o["class"]},'<span style="display:none;" class="mceIconOnly" aria-hidden="true">▼</span>'),e+="<td >"+t.createHTML("a",{role:"button",id:n.id+"_open",tabindex:"-1",href:"javascript:;","class":"mceOpen "+o["class"],onclick:"return false;",onmousedown:"return false;",title:o.title},i)+"</td>",e+="</tr></tbody>",e=t.createHTML("table",{role:"presentation","class":"mceSplitButton mceSplitButtonEnabled "+o["class"],cellpadding:"0",cellspacing:"0",title:o.title},e),t.createHTML("div",{id:n.id,role:"button",tabindex:"0","aria-labelledby":n.id+"_voice","aria-haspopup":"true"},e)},postRender:function(){var n,o=this,a=o.settings;a.onclick&&(n=function(e){o.isDisabled()||(a.onclick(o.value),i.cancel(e))},i.add(o.id+"_action","click",n),i.add(o.id,["click","keydown"],function(e){var t=40;32!==e.keyCode&&13!==e.keyCode&&14!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey?("click"===e.type||e.keyCode===t)&&(o.showMenu(),i.cancel(e)):(n(),i.cancel(e))})),i.add(o.id+"_open","click",function(e){o.showMenu(),i.cancel(e)}),i.add([o.id,o.id+"_open"],"focus",function(){o._focused=1}),i.add([o.id,o.id+"_open"],"blur",function(){o._focused=0}),(e.isIE6||!t.boxModel)&&(i.add(o.id,"mouseover",function(){t.hasClass(o.id,"mceSplitButtonDisabled")||t.addClass(o.id,"mceSplitButtonHover")}),i.add(o.id,"mouseout",function(){t.hasClass(o.id,"mceSplitButtonDisabled")||t.removeClass(o.id,"mceSplitButtonHover")}))},destroy:function(){this.parent(),i.clear(this.id+"_action"),i.clear(this.id+"_open"),i.clear(this.id)}})}(tinymce),function(e){var t=e.DOM,i=e.dom.Event,n=e.is,o=e.each;e.create("tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton",{ColorSplitButton:function(t,i,n){var o=this;o.parent(t,i,n),o.settings=i=e.extend({colors:"000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF",grid_width:8,default_color:"#888888"},o.settings),o.onShowMenu=new e.util.Dispatcher(o),o.onHideMenu=new e.util.Dispatcher(o),o.value=i.default_color},showMenu:function(){var n,o,a=this;if(!a.isDisabled()){if(a.isMenuRendered||(a.renderMenu(),a.isMenuRendered=!0),a.isMenuVisible)return a.hideMenu();n=t.get(a.id),t.show(a.id+"_menu"),t.addClass(n,"mceSplitButtonSelected"),o=t.getPos(n),t.setStyles(a.id+"_menu",{left:o.x,top:o.y+n.firstChild.clientHeight,zIndex:2e5}),n=0,i.add(t.doc,"mousedown",a.hideMenu,a),a.onShowMenu.dispatch(a),a._focused&&(a._keyHandler=i.add(a.id+"_menu","keydown",function(e){27==e.keyCode&&a.hideMenu()}),t.select("a",a.id+"_menu")[0].focus()),a.keyboardNav=new e.ui.KeyboardNavigation({root:a.id+"_menu",items:t.select("a",a.id+"_menu"),onCancel:function(){a.hideMenu(),a.focus()}}),a.keyboardNav.focus(),a.isMenuVisible=1}},hideMenu:function(e){var n=this;if(n.isMenuVisible){if(e&&"mousedown"==e.type&&t.getParent(e.target,function(e){return e.id===n.id+"_open"}))return;e&&t.getParent(e.target,".mceSplitButtonMenu")||(t.removeClass(n.id,"mceSplitButtonSelected"),i.remove(t.doc,"mousedown",n.hideMenu,n),i.remove(n.id+"_menu","keydown",n._keyHandler),t.hide(n.id+"_menu")),n.isMenuVisible=0,n.onHideMenu.dispatch(),n.keyboardNav.destroy()}},renderMenu:function(){var a,r,s,l,c,u,d=this,h=0,p=d.settings;return c=t.add(p.menu_container,"div",{role:"listbox",id:d.id+"_menu","class":p.menu_class+" "+p["class"],style:"position:absolute;left:0;top:-1000px;"}),a=t.add(c,"div",{"class":p["class"]+" mceSplitButtonMenu"}),t.add(a,"span",{"class":"mceMenuLine"}),r=t.add(a,"table",{role:"presentation","class":"mceColorSplitMenu"}),s=t.add(r,"tbody"),h=0,o(n(p.colors,"array")?p.colors:p.colors.split(","),function(i){i=i.replace(/^#/,""),h--||(l=t.add(s,"tr"),h=p.grid_width-1),r=t.add(l,"td");var n={href:"javascript:;",style:{backgroundColor:"#"+i},title:d.editor.getLang("colors."+i,i),"data-mce-color":"#"+i};e.isIE||(n.role="option"),r=t.add(r,"a",n),d.editor.forcedHighContrastMode&&(r=t.add(r,"canvas",{width:16,height:16,"aria-hidden":"true"}),r.getContext&&(u=r.getContext("2d"))?(u.fillStyle="#"+i,u.fillRect(0,0,16,16)):t.remove(r))}),p.more_colors_func&&(r=t.add(s,"tr"),r=t.add(r,"td",{colspan:p.grid_width,"class":"mceMoreColors"}),r=t.add(r,"a",{role:"option",id:d.id+"_more",href:"javascript:;",onclick:"return false;","class":"mceMoreColors"},p.more_colors_title),i.add(r,"click",function(e){return p.more_colors_func.call(p.more_colors_scope||this),i.cancel(e)})),t.addClass(a,"mceColorSplitMenu"),i.add(d.id+"_menu","mousedown",function(e){return i.cancel(e)}),i.add(d.id+"_menu","click",function(e){var i;return e=t.getParent(e.target,"a",s),e&&"a"==e.nodeName.toLowerCase()&&(i=e.getAttribute("data-mce-color"))&&d.setColor(i),!1}),c},setColor:function(e){this.displayColor(e),this.hideMenu(),this.settings.onselect(e)},displayColor:function(e){var i=this;t.setStyle(i.id+"_preview","backgroundColor",e),i.value=e},postRender:function(){var e=this,i=e.id;e.parent(),t.add(i+"_action","div",{id:i+"_preview","class":"mceColorPreview"}),t.setStyle(e.id+"_preview","backgroundColor",e.value)},destroy:function(){var e=this;e.parent(),i.clear(e.id+"_menu"),i.clear(e.id+"_more"),t.remove(e.id+"_menu"),e.keyboardNav&&e.keyboardNav.destroy()}})}(tinymce),function(e){var t=e.DOM,i=e.each,n=e.dom.Event;e.create("tinymce.ui.ToolbarGroup:tinymce.ui.Container",{renderHTML:function(){var i=this,n=[],o=i.controls,a=e.each,r=i.settings;return n.push('<div id="'+i.id+'" role="group" aria-labelledby="'+i.id+'_voice">'),n.push("<span role='application'>"),n.push('<span id="'+i.id+'_voice" class="mceVoiceLabel" style="display:none;">'+t.encode(r.name)+"</span>"),a(o,function(e){n.push(e.renderHTML())}),n.push("</span>"),n.push("</div>"),n.join("")},focus:function(){var e=this;t.get(e.id).focus()},postRender:function(){var n=this,o=[];i(n.controls,function(e){i(e.controls,function(e){e.id&&o.push(e)})}),n.keyNav=new e.ui.KeyboardNavigation({root:n.id,items:o,onCancel:function(){e.isWebKit&&t.get(n.editor.id+"_ifr").focus(),n.editor.focus()},excludeFromTabOrder:!n.settings.tab_focus_toolbar})},destroy:function(){var e=this;e.parent(),e.keyNav.destroy(),n.clear(e.id)}})}(tinymce),function(e){{var t=e.DOM;e.each}e.create("tinymce.ui.Toolbar:tinymce.ui.Container",{renderHTML:function(){var e,i,n,o,a,r,s=this,l="",c=s.settings;for(r=s.controls,n=0;n<r.length;n++)i=r[n],o=r[n-1],a=r[n+1],0===n&&(e="mceToolbarStart",i.Button?e+=" mceToolbarStartButton":i.SplitButton?e+=" mceToolbarStartSplitButton":i.ListBox&&(e+=" mceToolbarStartListBox"),l+=t.createHTML("td",{"class":e},t.createHTML("span",null,"<!-- IE -->"))),o&&i.ListBox&&(o.Button||o.SplitButton)&&(l+=t.createHTML("td",{"class":"mceToolbarEnd"},t.createHTML("span",null,"<!-- IE -->"))),l+=t.stdMode?'<td style="position: relative">'+i.renderHTML()+"</td>":"<td>"+i.renderHTML()+"</td>",a&&i.ListBox&&(a.Button||a.SplitButton)&&(l+=t.createHTML("td",{"class":"mceToolbarStart"},t.createHTML("span",null,"<!-- IE -->")));return e="mceToolbarEnd",i.Button?e+=" mceToolbarEndButton":i.SplitButton?e+=" mceToolbarEndSplitButton":i.ListBox&&(e+=" mceToolbarEndListBox"),l+=t.createHTML("td",{"class":e},t.createHTML("span",null,"<!-- IE -->")),t.createHTML("table",{id:s.id,"class":"mceToolbar"+(c["class"]?" "+c["class"]:""),cellpadding:"0",cellspacing:"0",align:s.settings.align||"",role:"presentation",tabindex:"-1"},"<tbody><tr>"+l+"</tr></tbody>")}})}(tinymce),function(e){{var t=e.util.Dispatcher;e.each}e.create("tinymce.AddOnManager",{AddOnManager:function(){var e=this;e.items=[],e.urls={},e.lookup={},e.onAdd=new t(e)},get:function(e){return this.lookup[e]?this.lookup[e].instance:void 0},dependencies:function(e){var t;return this.lookup[e]&&(t=this.lookup[e].dependencies),t||[]},requireLangPack:function(t){var i=e.settings;i&&i.language&&i.language_load!==!1&&e.ScriptLoader.add(this.urls[t]+"/langs/"+i.language+".js")
|
80
|
+
},add:function(e,t,i){return this.items.push(t),this.lookup[e]={instance:t,dependencies:i},this.onAdd.dispatch(this,e,t),t},createUrl:function(e,t){return"object"==typeof t?t:{prefix:e.prefix,resource:t,suffix:e.suffix}},addComponents:function(t,i){var n=this.urls[t];e.each(i,function(t){e.ScriptLoader.add(n+"/"+t)})},load:function(t,i,n,o){function a(){var a=r.dependencies(t);e.each(a,function(e){var t=r.createUrl(i,e);r.load(t.resource,t,void 0,void 0)}),n&&(o?n.call(o):n.call(e.ScriptLoader))}var r=this,s=i;r.urls[t]||("object"==typeof i&&(s=i.prefix+i.resource+i.suffix),0!==s.indexOf("/")&&-1==s.indexOf("://")&&(s=e.baseURL+"/"+s),r.urls[t]=s.substring(0,s.lastIndexOf("/")),r.lookup[t]?a():e.ScriptLoader.add(s,a,o))}}),e.PluginManager=new e.AddOnManager,e.ThemeManager=new e.AddOnManager}(tinymce),function(e){var t,i=e.each,n=e.extend,o=e.DOM,a=e.dom.Event,r=(e.ThemeManager,e.PluginManager,e.explode),s=e.util.Dispatcher,l=0;e.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(e.documentBaseURL)||(e.documentBaseURL+="/"),e.baseURL=new e.util.URI(e.documentBaseURL).toAbsolute(e.baseURL),e.baseURI=new e.util.URI(e.baseURL),e.onBeforeUnload=new s(e),a.add(window,"beforeunload",function(t){e.onBeforeUnload.dispatch(e,t)}),e.onAddEditor=new s(e),e.onRemoveEditor=new s(e),e.EditorManager=n(e,{editors:[],i18n:{},activeEditor:null,init:function(t){function n(e){var t=e.id;return t||(t=e.name,t=t&&!o.get(t)?e.name:o.uniqueId(),e.setAttribute("id",t)),t}function s(t,i,n){var o=t[i];if(o)return e.is(o,"string")&&(n=o.replace(/\.\w+$/,""),n=n?e.resolve(n):0,o=e.resolve(o)),o.apply(n||this,Array.prototype.slice.call(arguments,2))}function c(e,t){return t.constructor===RegExp?t.test(e.className):o.hasClass(e,t)}var u,d=this,h=(e.ScriptLoader,[]);d.settings=t,a.bind(window,"ready",function(){var a,d;switch(s(t,"onpageload"),t.mode){case"exact":a=t.elements||"",a.length>0&&i(r(a),function(n){o.get(n)?(u=new e.Editor(n,t),h.push(u),u.render(1)):i(document.forms,function(a){i(a.elements,function(i){i.name===n&&(n="mce_editor_"+l++,o.setAttrib(i,"id",n),u=new e.Editor(n,t),h.push(u),u.render(1))})})});break;case"textareas":case"specific_textareas":i(o.select("textarea"),function(i){t.editor_deselector&&c(i,t.editor_deselector)||(!t.editor_selector||c(i,t.editor_selector))&&(u=new e.Editor(n(i),t),h.push(u),u.render(1))});break;default:t.types?i(t.types,function(a){i(o.select(a.selector),function(i){var o=new e.Editor(n(i),e.extend({},t,a));h.push(o),o.render(1)})}):t.selector&&i(o.select(t.selector),function(i){var o=new e.Editor(n(i),t);h.push(o),o.render(1)})}t.oninit&&(a=d=0,i(h,function(e){d++,e.initialized?a++:e.onInit.add(function(){a++,a==d&&s(t,"oninit")}),a==d&&s(t,"oninit")}))})},get:function(e){return e===t?this.editors:this.editors.hasOwnProperty(e)?this.editors[e]:t},getInstanceById:function(e){return this.get(e)},add:function(e){var t=this,i=t.editors;return i[e.id]=e,i.push(e),t._setActive(e),t.onAddEditor.dispatch(t,e),e},remove:function(e){var t,i=this,n=i.editors;if(!n[e.id])return null;for(delete n[e.id],t=0;t<n.length;t++)if(n[t]==e){n.splice(t,1);break}return i.activeEditor==e&&i._setActive(n[0]),e.destroy(),i.onRemoveEditor.dispatch(i,e),e},execCommand:function(t,i,n){function o(){s.destroy(),a.detachEvent("onunload",o),a=a.tinyMCE=a.tinymce=null}var a,r=this,s=r.get(n);switch(t){case"mceFocus":return s.focus(),!0;case"mceAddEditor":case"mceAddControl":return r.get(n)||new e.Editor(n,r.settings).render(),!0;case"mceAddFrameControl":return a=n.window,a.tinyMCE=tinyMCE,a.tinymce=e,e.DOM.doc=a.document,e.DOM.win=a,s=new e.Editor(n.element_id,n),s.render(),e.isIE&&!e.isIE11&&a.attachEvent("onunload",o),n.page_window=null,!0;case"mceRemoveEditor":case"mceRemoveControl":return s&&s.remove(),!0;case"mceToggleEditor":return s?(s.isHidden()?s.show():s.hide(),!0):(r.execCommand("mceAddControl",0,n),!0)}return r.activeEditor?r.activeEditor.execCommand(t,i,n):!1},execInstanceCommand:function(e,t,i,n){var o=this.get(e);return o?o.execCommand(t,i,n):!1},triggerSave:function(){i(this.editors,function(e){e.save()})},addI18n:function(t,n){var o=this.i18n;e.is(t,"string")?i(n,function(e,i){o[t+"."+i]=e}):i(t,function(e,t){i(e,function(e,n){i(e,function(e,i){"common"===n?o[t+"."+i]=e:o[t+"."+n+"."+i]=e})})})},_setActive:function(e){this.selectedInstance=this.activeEditor=e}})}(tinymce),function(e){var t=e.DOM,i=e.dom.Event,n=e.extend,o=e.each,a=e.isGecko,r=e.isIE,s=(e.isWebKit,e.is),l=e.ThemeManager,c=e.PluginManager,u=e.explode;e.create("tinymce.Editor",{Editor:function(t,i){var o=this,a=!0;o.settings=i=n({id:t,language:"en",theme:"advanced",skin:"default",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:e.documentBaseURL,add_form_submit_trigger:a,submit_patch:a,add_unload_trigger:a,convert_urls:a,relative_urls:a,remove_script_host:a,table_inline_editing:!1,object_resizing:a,accessibility_focus:a,doctype:e.isIE6?'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">':"<!DOCTYPE>",visual:a,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",apply_source_formatting:a,directionality:"ltr",forced_root_block:"p",hidden_input:a,padd_empty_editor:a,render_ui:a,indentation:"30px",fix_table_elements:a,inline_styles:a,convert_fonts_to_spans:a,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",validate:a,entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o,ie7_compat:a},i),o.id=o.editorId=t,o.isNotDirty=!1,o.plugins={},o.documentBaseURI=new e.util.URI(i.document_base_url||e.documentBaseURL,{base_uri:tinyMCE.baseURI}),o.baseURI=e.baseURI,o.contentCSS=[],o.contentStyles=[],o.setupEvents(),o.execCommands={},o.queryStateCommands={},o.queryValueCommands={},o.execCallback("setup",o)},render:function(){function n(){r.language&&r.language_load!==!1&&d.add(e.baseURL+"/langs/"+r.language+".js"),r.theme&&"function"!=typeof r.theme&&"-"!=r.theme.charAt(0)&&!l.urls[r.theme]&&l.load(r.theme,"themes/"+r.theme+"/editor_template"+e.suffix+".js"),o(u(r.plugins),function(t){if(t&&!c.urls[t])if("-"==t.charAt(0)){t=t.substr(1,t.length);var i=c.dependencies(t);o(i,function(t){var i={prefix:"plugins/",resource:t,suffix:"/editor_plugin"+e.suffix+".js"};t=c.createUrl(i,t),c.load(t.resource,t)})}else{if("safari"==t)return;c.load(t,{prefix:"plugins/",resource:t,suffix:"/editor_plugin"+e.suffix+".js"})}}),d.loadQueue(function(){a.removed||a.init()})}var a=this,r=a.settings,s=a.id,d=e.ScriptLoader;return i.domLoaded?(tinyMCE.settings=r,a.getElement()&&(!e.isIDevice||e.isIOS5)&&(!/TEXTAREA|INPUT/i.test(a.getElement().nodeName)&&r.hidden_input&&t.getParent(s,"form")&&t.insertAfter(t.create("input",{type:"hidden",name:s}),s),r.content_editable||(a.orgVisibility=a.getElement().style.visibility,a.getElement().style.visibility="hidden"),e.WindowManager&&(a.windowManager=new e.WindowManager(a)),"xml"==r.encoding&&a.onGetContent.add(function(e,i){i.save&&(i.content=t.encode(i.content))}),r.add_form_submit_trigger&&a.onSubmit.addToTop(function(){a.initialized&&(a.save(),a.isNotDirty=1)}),r.add_unload_trigger&&(a._beforeUnload=tinyMCE.onBeforeUnload.add(function(){!a.initialized||a.destroyed||a.isHidden()||a.save({format:"raw",no_events:!0})})),e.addUnload(a.destroy,a),r.submit_patch&&a.onBeforeRenderUI.add(function(){var t=a.getElement().form;t&&(t._mceOldSubmit||(t.submit.nodeType||t.submit.length||(a.formElement=t,t._mceOldSubmit=t.submit,t.submit=function(){return e.triggerSave(),a.isNotDirty=1,a.formElement._mceOldSubmit(a.formElement)}),t=null))}),n()),void 0):(i.add(window,"ready",function(){a.render()}),void 0)},init:function(){function i(t){var n,a=c.get(t),r=c.urls[t]||e.documentBaseURL.replace(/\/$/,"");a&&-1===e.inArray(w,t)&&(o(c.dependencies(t),function(e){i(e)}),n=new a(b,r),b.plugins[t]=n,n.init&&(n.init(b,r),w.push(t)))}var n,a,s,d,h,p,f,m,g,v,b=this,y=b.settings,_=b.getElement(),w=[];if(e.add(b),y.aria_label=y.aria_label||t.getAttrib(_,"aria-label",b.getLang("aria.rich_text_area")),y.theme&&("function"!=typeof y.theme?(y.theme=y.theme.replace(/-/,""),h=l.get(y.theme),b.theme=new h,b.theme.init&&b.theme.init(b,l.urls[y.theme]||e.documentBaseURL.replace(/\/$/,""))):b.theme=y.theme),o(u(y.plugins.replace(/\-/g,"")),i),y.popup_css!==!1&&(y.popup_css=y.popup_css?b.documentBaseURI.toAbsolute(y.popup_css):b.baseURI.toAbsolute("themes/"+y.theme+"/skins/"+y.skin+"/dialog.css")),y.popup_css_add&&(y.popup_css+=","+b.documentBaseURI.toAbsolute(y.popup_css_add)),b.controlManager=new e.ControlManager(b),b.onBeforeRenderUI.dispatch(b,b.controlManager),y.render_ui&&b.theme&&(b.orgDisplay=_.style.display,"function"!=typeof y.theme?(a=y.width||_.style.width||_.offsetWidth,s=y.height||_.style.height||_.offsetHeight,d=y.min_height||100,g=/^[0-9\.]+(|px)$/i,g.test(""+a)&&(a=Math.max(parseInt(a,10)+(h.deltaWidth||0),100)),g.test(""+s)&&(s=Math.max(parseInt(s,10)+(h.deltaHeight||0),d)),h=b.theme.renderUI({targetNode:_,width:a,height:s,deltaWidth:y.delta_width,deltaHeight:y.delta_height}),t.setStyles(h.sizeContainer||h.editorContainer,{width:a,height:s}),s=(h.iframeHeight||s)+("number"==typeof s?h.deltaHeight||0:""),d>s&&(s=d)):(h=y.theme(b,_),h.editorContainer.nodeType&&(h.editorContainer=h.editorContainer.id=h.editorContainer.id||b.id+"_parent"),h.iframeContainer.nodeType&&(h.iframeContainer=h.iframeContainer.id=h.iframeContainer.id||b.id+"_iframecontainer"),s=h.iframeHeight||_.offsetHeight,r&&(b.onInit.add(function(e){e.dom.bind(e.getBody(),"beforedeactivate keydown keyup",function(){e.bookmark=e.selection.getBookmark(1)})}),b.onNodeChange.add(function(e){document.activeElement.id==e.id+"_ifr"&&(e.bookmark=e.selection.getBookmark(1))}))),b.editorContainer=h.editorContainer),y.content_css&&o(u(y.content_css),function(e){b.contentCSS.push(b.documentBaseURI.toAbsolute(e))}),y.content_style&&b.contentStyles.push(y.content_style),y.content_editable)return _=n=h=null,b.initContentBody();for(document.domain&&location.hostname!=document.domain&&(e.relaxedDomain=document.domain),b.iframeHTML=y.doctype+'<html><head xmlns="http://www.w3.org/1999/xhtml">',y.document_base_url!=e.documentBaseURL&&(b.iframeHTML+='<base href="'+b.documentBaseURI.getURI()+'" />'),e.isIE8&&(b.iframeHTML+=y.ie7_compat?'<meta http-equiv="X-UA-Compatible" content="IE=7" />':'<meta http-equiv="X-UA-Compatible" content="IE=edge" />'),b.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',v=0;v<b.contentCSS.length;v++)b.iframeHTML+='<link type="text/css" rel="stylesheet" href="'+b.contentCSS[v]+'" />';b.contentCSS=[],f=y.body_id||"tinymce",-1!=f.indexOf("=")&&(f=b.getParam("body_id","","hash"),f=f[b.id]||f),m=y.body_class||"",-1!=m.indexOf("=")&&(m=b.getParam("body_class","","hash"),m=m[b.id]||""),b.iframeHTML+='</head><body id="'+f+'" class="mceContentBody '+m+'" onload="window.parent.tinyMCE.get(\''+b.id+"').onLoad.dispatch();\"><br></body></html>",e.relaxedDomain&&(r||e.isOpera&&parseFloat(opera.version())<11)&&(p='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinyMCE.get("'+b.id+'");document.write(ed.iframeHTML);document.close();ed.initContentBody();})()'),n=t.add(h.iframeContainer,"iframe",{id:b.id+"_ifr",src:p||'javascript:""',frameBorder:"0",allowTransparency:"true",title:y.aria_label,style:{width:"100%",height:s,display:"block"}}),b.contentAreaContainer=h.iframeContainer,h.editorContainer&&(t.get(h.editorContainer).style.display=b.orgDisplay),_.style.visibility=b.orgVisibility,t.get(b.id).style.display="none",t.setAttrib(b.id,"aria-hidden",!0),e.relaxedDomain&&p||b.initContentBody(),_=n=h=null},initContentBody:function(){var i,n,a=this,s=a.settings,l=t.get(a.id),c=a.getDoc();r&&e.relaxedDomain||s.content_editable||(c.open(),c.write(a.iframeHTML),c.close(),e.relaxedDomain&&(c.domain=e.relaxedDomain)),s.content_editable&&(t.addClass(l,"mceContentBody"),a.contentDocument=c=s.content_document||document,a.contentWindow=s.content_window||window,a.bodyElement=l,s.content_document=s.content_window=null),i=a.getBody(),i.disabled=!0,s.readonly||(i.contentEditable=a.getParam("content_editable_state",!0)),i.disabled=!1,a.schema=new e.html.Schema(s),a.dom=new e.dom.DOMUtils(c,{keep_values:!0,url_converter:a.convertURL,url_converter_scope:a,hex_colors:s.force_hex_style_colors,class_filter:s.class_filter,update_styles:!0,root_element:s.content_editable?a.id:null,schema:a.schema}),a.parser=new e.html.DomParser(s,a.schema),a.parser.addAttributeFilter("src,href,style",function(e,t){for(var i,n,o,r=e.length,s=a.dom;r--;)i=e[r],n=i.attr(t),o="data-mce-"+t,i.attributes.map[o]||("style"===t?i.attr(o,s.serializeStyle(s.parseStyle(n),i.name)):i.attr(o,a.convertURL(n,t,i.name)))}),a.parser.addNodeFilter("script",function(e){for(var t,i=e.length;i--;)t=e[i],t.attr("type","mce-"+(t.attr("type")||"text/javascript"))}),a.parser.addNodeFilter("#cdata",function(e){for(var t,i=e.length;i--;)t=e[i],t.type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"}),a.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(t){for(var i,n=t.length,o=a.schema.getNonEmptyElements();n--;)i=t[n],i.isEmpty(o)&&(i.empty().append(new e.html.Node("br",1)).shortEnded=!0)}),a.serializer=new e.dom.Serializer(s,a.dom,a.schema),a.selection=new e.dom.Selection(a.dom,a.getWin(),a.serializer,a),a.formatter=new e.Formatter(a),a.undoManager=new e.UndoManager(a),a.forceBlocks=new e.ForceBlocks(a),a.enterKey=new e.EnterKey(a),a.editorCommands=new e.EditorCommands(a),a.onExecCommand.add(function(e,t){/^(FontName|FontSize)$/.test(t)||a.nodeChanged()}),a.serializer.onPreProcess.add(function(e,t){return a.onPreProcess.dispatch(a,t,e)}),a.serializer.onPostProcess.add(function(e,t){return a.onPostProcess.dispatch(a,t,e)}),a.onPreInit.dispatch(a),s.browser_spellcheck||s.gecko_spellcheck||(c.body.spellcheck=!1),s.readonly||a.bindNativeEvents(),a.controlManager.onPostRender.dispatch(a,a.controlManager),a.onPostRender.dispatch(a),a.quirks=e.util.Quirks(a),s.directionality&&(i.dir=s.directionality),s.nowrap&&(i.style.whiteSpace="nowrap"),s.protect&&a.onBeforeSetContent.add(function(e,t){o(s.protect,function(e){t.content=t.content.replace(e,function(e){return"<!--mce:protected "+escape(e)+"-->"})})}),a.onSetContent.add(function(){a.addVisual(a.getBody())}),s.padd_empty_editor&&a.onPostProcess.add(function(e,t){t.content=t.content.replace(/^(<p[^>]*>( | |\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/,"")}),a.load({initial:!0,format:"html"}),a.startContent=a.getContent({format:"raw"}),a.initialized=!0,a.onInit.dispatch(a),a.execCallback("setupcontent_callback",a.id,i,c),a.execCallback("init_instance_callback",a),a.focus(!0),a.nodeChanged({initial:!0}),a.contentStyles.length>0&&(n="",o(a.contentStyles,function(e){n+=e+"\r\n"}),a.dom.addStyle(n)),o(a.contentCSS,function(e){a.dom.loadCSS(e)}),s.auto_focus&&setTimeout(function(){var t=e.get(s.auto_focus);t.selection.select(t.getBody(),1),t.selection.collapse(1),t.getBody().focus(),t.getWin().focus()},100),l=c=i=null},focus:function(t){var i,n,o,a,r=this,s=r.selection,l=r.settings.content_editable,c=r.getDoc();t||(r.bookmark&&(s.moveToBookmark(r.bookmark),r.bookmark=null),n=s.getRng(),n.item&&(o=n.item(0)),r._refreshContentEditable(),l||r.getWin().focus(),(e.isGecko||l)&&(a=r.getBody(),a.setActive&&!e.isIE11?a.setActive():a.focus(),l&&s.normalize()),o&&o.ownerDocument==c&&(n=c.body.createControlRange(),n.addElement(o),n.select())),e.activeEditor!=r&&(null!=(i=e.activeEditor)&&i.onDeactivate.dispatch(i,r),r.onActivate.dispatch(r,i)),e._setActive(r)},execCallback:function(t){var i,n=this,o=n.settings[t];if(o)return n.callbackLookup&&(i=n.callbackLookup[t])&&(o=i.func,i=i.scope),s(o,"string")&&(i=o.replace(/\.\w+$/,""),i=i?e.resolve(i):0,o=e.resolve(o),n.callbackLookup=n.callbackLookup||{},n.callbackLookup[t]={func:o,scope:i}),o.apply(i||n,Array.prototype.slice.call(arguments,1))},translate:function(t){var i=this.settings.language||"en",n=e.i18n;return t?n[i+"."+t]||t.replace(/\{\#([^\}]+)\}/g,function(e,t){return n[i+"."+t]||"{#"+t+"}"}):""},getLang:function(t,i){return e.i18n[(this.settings.language||"en")+"."+t]||(s(i)?i:"{#"+t+"}")},getParam:function(t,i,n){var a,r=e.trim,l=s(this.settings[t])?this.settings[t]:i;return"hash"===n?(a={},s(l,"string")?o(l.indexOf("=")>0?l.split(/[;,](?![^=;,]*(?:[;,]|$))/):l.split(","),function(e){e=e.split("="),a[r(e[0])]=e.length>1?r(e[1]):r(e)}):a=l,a):l},nodeChanged:function(e){var t,i=this,n=i.selection;i.initialized&&(e=e||{},t=n.getStart()||i.getBody(),t=r&&t.ownerDocument!=i.getDoc()?i.getBody():t,e.parents=[],i.dom.getParent(t,function(t){return"BODY"==t.nodeName?!0:(e.parents.push(t),void 0)}),i.onNodeChange.dispatch(i,e?e.controlManager||i.controlManager:i.controlManager,t,n.isCollapsed(),e))},addButton:function(e,t){var i=this;i.buttons=i.buttons||{},i.buttons[e]=t},addCommand:function(e,t,i){this.execCommands[e]={func:t,scope:i||this}},addQueryStateHandler:function(e,t,i){this.queryStateCommands[e]={func:t,scope:i||this}},addQueryValueHandler:function(e,t,i){this.queryValueCommands[e]={func:t,scope:i||this}},addShortcut:function(e,t,i,n){var a,r=this;return r.settings.custom_shortcuts===!1?!1:(r.shortcuts=r.shortcuts||{},s(i,"string")&&(a=i,i=function(){r.execCommand(a,!1,null)}),s(i,"object")&&(a=i,i=function(){r.execCommand(a[0],a[1],a[2])}),o(u(e),function(e){var a={func:i,scope:n||this,desc:r.translate(t),alt:!1,ctrl:!1,shift:!1};o(u(e,"+"),function(e){switch(e){case"alt":case"ctrl":case"shift":a[e]=!0;break;default:a.charCode=e.charCodeAt(0),a.keyCode=e.toUpperCase().charCodeAt(0)}}),r.shortcuts[(a.ctrl?"ctrl":"")+","+(a.alt?"alt":"")+","+(a.shift?"shift":"")+","+a.keyCode]=a}),!0)},execCommand:function(e,t,i,a){var r,s,l=this,c=0;return/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(e)||a&&a.skip_focus||l.focus(),a=n({},a),l.onBeforeExecCommand.dispatch(l,e,t,i,a),a.terminate?!1:l.execCallback("execcommand_callback",l.id,l.selection.getNode(),e,t,i)?(l.onExecCommand.dispatch(l,e,t,i,a),!0):(r=l.execCommands[e])&&(s=r.func.call(r.scope,t,i),s!==!0)?(l.onExecCommand.dispatch(l,e,t,i,a),s):(o(l.plugins,function(n){return n.execCommand&&n.execCommand(e,t,i)?(l.onExecCommand.dispatch(l,e,t,i,a),c=1,!1):void 0}),c?!0:l.theme&&l.theme.execCommand&&l.theme.execCommand(e,t,i)?(l.onExecCommand.dispatch(l,e,t,i,a),!0):l.editorCommands.execCommand(e,t,i)?(l.onExecCommand.dispatch(l,e,t,i,a),!0):(l.getDoc().execCommand(e,t,i),l.onExecCommand.dispatch(l,e,t,i,a),void 0))},queryCommandState:function(e){var t,i,n=this;if(!n._isHidden()){if((t=n.queryStateCommands[e])&&(i=t.func.call(t.scope),i!==!0))return i;if(t=n.editorCommands.queryCommandState(e),-1!==t)return t;try{return this.getDoc().queryCommandState(e)}catch(o){}}},queryCommandValue:function(e){var t,i,n=this;if(!n._isHidden()){if((t=n.queryValueCommands[e])&&(i=t.func.call(t.scope),i!==!0))return i;if(t=n.editorCommands.queryCommandValue(e),s(t))return t;try{return this.getDoc().queryCommandValue(e)}catch(o){}}},show:function(){var e=this;t.show(e.getContainer()),t.hide(e.id),e.load()},hide:function(){var e=this,i=e.getDoc();r&&i&&i.execCommand("SelectAll"),e.save(),t.hide(e.getContainer()),t.setStyle(e.id,"display",e.orgDisplay)},isHidden:function(){return!t.isHidden(this.id)},setProgressState:function(e,t,i){return this.onSetProgressState.dispatch(this,e,t,i),e},load:function(e){var t,i=this,n=i.getElement();return n?(e=e||{},e.load=!0,t=i.setContent(s(n.value)?n.value:n.innerHTML,e),e.element=n,e.no_events||i.onLoadContent.dispatch(i,e),e.element=n=null,t):void 0},save:function(e){var i,n,a=this,r=a.getElement();if(r&&a.initialized)return e=e||{},e.save=!0,e.element=r,i=e.content=a.getContent(e),e.no_events||a.onSaveContent.dispatch(a,e),i=e.content,/TEXTAREA|INPUT/i.test(r.nodeName)?r.value=i:(r.innerHTML=i,(n=t.getParent(a.id,"form"))&&o(n.elements,function(e){return e.name==a.id?(e.value=i,!1):void 0})),e.element=r=null,i},setContent:function(t,i){var n,o=this,a=o.getBody();return i=i||{},i.format=i.format||"html",i.set=!0,i.content=t,i.no_events||o.onBeforeSetContent.dispatch(o,i),t=i.content,e.isIE||0!==t.length&&!/^\s+$/.test(t)?("raw"!==i.format&&(t=new e.html.Serializer({},o.schema).serialize(o.parser.parse(t))),i.content=e.trim(t),o.dom.setHTML(a,i.content),i.no_events||o.onSetContent.dispatch(o,i),o.settings.content_editable&&document.activeElement!==o.getBody()||o.selection.normalize(),i.content):(n=o.settings.forced_root_block,t=n?"<"+n+'><br data-mce-bogus="1"></'+n+">":'<br data-mce-bogus="1">',a.innerHTML=t,o.selection.select(a,!0),o.selection.collapse(!0),void 0)},getContent:function(t){var i,n=this,o=n.getBody();return t=t||{},t.format=t.format||"html",t.get=!0,t.getInner=!0,t.no_events||n.onBeforeGetContent.dispatch(n,t),i="raw"==t.format?o.innerHTML:"text"==t.format?o.innerText||o.textContent:n.serializer.serialize(o,t),t.content="text"!=t.format?e.trim(i):i,t.no_events||n.onGetContent.dispatch(n,t),t.content},isDirty:function(){var t=this;return e.trim(t.startContent)!=e.trim(t.getContent({format:"raw",no_events:1}))&&!t.isNotDirty},getContainer:function(){var e=this;return e.container||(e.container=t.get(e.editorContainer||e.id+"_parent")),e.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return t.get(this.settings.content_element||this.id)},getWin:function(){var e,i=this;return i.contentWindow||(e=t.get(i.id+"_ifr"),e&&(i.contentWindow=e.contentWindow)),i.contentWindow},getDoc:function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(e,t,i){var n=this,o=n.settings;return o.urlconverter_callback?n.execCallback("urlconverter_callback",e,i,!0,t):!o.convert_urls||i&&"LINK"==i.nodeName||0===e.indexOf("file:")?e:o.relative_urls?n.documentBaseURI.toRelative(e):e=n.documentBaseURI.toAbsolute(e,o.remove_script_host)},addVisual:function(e){var t,i=this,n=i.settings,a=i.dom;e=e||i.getBody(),s(i.hasVisual)||(i.hasVisual=n.visual),o(a.select("table,a",e),function(e){var o;switch(e.nodeName){case"TABLE":return t=n.visual_table_class||"mceItemTable",o=a.getAttrib(e,"border"),o&&"0"!=o||(i.hasVisual?a.addClass(e,t):a.removeClass(e,t)),void 0;case"A":return a.getAttrib(e,"href",!1)||(o=a.getAttrib(e,"name")||e.id,t="mceItemAnchor",o&&(i.hasVisual?a.addClass(e,t):a.removeClass(e,t))),void 0}}),i.onVisualAid.dispatch(i,e,i.hasVisual)},remove:function(){var n=this,o=n.getContainer(),a=n.getDoc();n.removed||(n.removed=1,r&&a&&a.execCommand("SelectAll"),n.save(),t.setStyle(n.id,"display",n.orgDisplay),n.settings.content_editable||(i.unbind(n.getWin()),i.unbind(n.getDoc())),i.unbind(n.getBody()),i.clear(o),n.execCallback("remove_instance_callback",n),n.onRemove.dispatch(n),n.onExecCommand.listeners=[],e.remove(n),t.remove(o))},destroy:function(t){var n=this;n.destroyed||(a&&(i.unbind(n.getDoc()),i.unbind(n.getWin()),i.unbind(n.getBody())),t||(e.removeUnload(n.destroy),tinyMCE.onBeforeUnload.remove(n._beforeUnload),n.theme&&n.theme.destroy&&n.theme.destroy(),n.controlManager.destroy(),n.selection.destroy(),n.dom.destroy()),n.formElement&&(n.formElement.submit=n.formElement._mceOldSubmit,n.formElement._mceOldSubmit=null),n.contentAreaContainer=n.formElement=n.container=n.settings.content_element=n.bodyElement=n.contentDocument=n.contentWindow=null,n.selection&&(n.selection=n.selection.win=n.selection.dom=n.selection.dom.doc=null),n.destroyed=1)},_refreshContentEditable:function(){var e,t,i=this;i._isHidden()&&(e=i.getBody(),t=e.parentNode,t.removeChild(e),t.appendChild(e),e.focus())},_isHidden:function(){var e;return a?(e=this.selection.getSel(),!e||!e.rangeCount||0===e.rangeCount):0}})}(tinymce),function(e){var t=e.each;e.Editor.prototype.setupEvents=function(){var i=this,n=i.settings;t(["onPreInit","onBeforeRenderUI","onPostRender","onLoad","onInit","onRemove","onActivate","onDeactivate","onClick","onEvent","onMouseUp","onMouseDown","onDblClick","onKeyDown","onKeyUp","onKeyPress","onContextMenu","onSubmit","onReset","onPaste","onPreProcess","onPostProcess","onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent","onLoadContent","onSaveContent","onNodeChange","onChange","onBeforeExecCommand","onExecCommand","onUndo","onRedo","onVisualAid","onSetProgressState","onSetAttrib"],function(t){i[t]=new e.util.Dispatcher(i)}),n.cleanup_callback&&(i.onBeforeSetContent.add(function(e,t){t.content=e.execCallback("cleanup_callback","insert_to_editor",t.content,t)}),i.onPreProcess.add(function(e,t){t.set&&e.execCallback("cleanup_callback","insert_to_editor_dom",t.node,t),t.get&&e.execCallback("cleanup_callback","get_from_editor_dom",t.node,t)}),i.onPostProcess.add(function(e,t){t.set&&(t.content=e.execCallback("cleanup_callback","insert_to_editor",t.content,t)),t.get&&(t.content=e.execCallback("cleanup_callback","get_from_editor",t.content,t))})),n.save_callback&&i.onGetContent.add(function(e,t){t.save&&(t.content=e.execCallback("save_callback",e.id,t.content,e.getBody()))}),n.handle_event_callback&&i.onEvent.add(function(e,t,n){i.execCallback("handle_event_callback",t,e,n)===!1&&(t.preventDefault(),t.stopPropagation())}),n.handle_node_change_callback&&i.onNodeChange.add(function(e,t,i){e.execCallback("handle_node_change_callback",e.id,i,-1,-1,!0,e.selection.isCollapsed())}),n.save_callback&&i.onSaveContent.add(function(e,t){var i=e.execCallback("save_callback",e.id,t.content,e.getBody());i&&(t.content=i)}),n.onchange_callback&&i.onChange.add(function(e,t){e.execCallback("onchange_callback",e,t)})},e.Editor.prototype.bindNativeEvents=function(){function i(e,t){e.type;s.removed||s.onEvent.dispatch(s,e,t)!==!1&&s[r[e.fakeType||e.type]].dispatch(s,e,t)}function n(){s.focus(!0)}function o(t,i){65==i.keyCode&&e.VK.metaKeyPressed(i)||s.selection.normalize(),s.nodeChanged()}function a(i,n){(i.altKey||i.ctrlKey||i.metaKey)&&t(s.shortcuts,function(t){var o=e.isMac?i.metaKey:i.ctrlKey;if(t.ctrl==o&&t.alt==i.altKey&&t.shift==i.shiftKey)return i.keyCode==t.keyCode||i.charCode&&i.charCode==t.charCode?(i.preventDefault(),n&&t.func.call(t.scope),!0):void 0})}var r,s=this,l=s.settings,c=s.dom;r={mouseup:"onMouseUp",mousedown:"onMouseDown",click:"onClick",keyup:"onKeyUp",keydown:"onKeyDown",keypress:"onKeyPress",submit:"onSubmit",reset:"onReset",contextmenu:"onContextMenu",dblclick:"onDblClick",paste:"onPaste"},t(r,function(t,n){var o=l.content_editable?s.getBody():s.getDoc();switch(n){case"contextmenu":c.bind(o,n,i);break;case"paste":c.bind(s.getBody(),n,i);break;case"submit":case"reset":c.bind(s.getElement().form||e.DOM.getParent(s.id,"form"),n,i);break;default:c.bind(o,n,i)}}),c.bind(l.content_editable?s.getBody():e.isGecko?s.getDoc():s.getWin(),"focus",function(){s.focus(!0)}),l.content_editable&&e.isOpera&&(c.bind(s.getBody(),"click",n),c.bind(s.getBody(),"keydown",n)),s.onMouseUp.add(o),s.onKeyUp.add(function(t,i){var n=i.keyCode;(n>=33&&36>=n||n>=37&&40>=n||13==n||45==n||46==n||8==n||e.isMac&&(91==n||93==n)||i.ctrlKey)&&o(t,i)}),s.onReset.add(function(){s.setContent(s.startContent,{format:"raw"})}),s.onKeyUp.add(function(e,t){a(t)}),s.onKeyPress.add(function(e,t){a(t)}),s.onKeyDown.add(function(e,t){a(t,!0)}),e.isOpera&&s.onClick.add(function(e,t){t.preventDefault()})}}(tinymce),function(e){var t,i=e.each,n=!0,o=!1;e.EditorCommands=function(a){function r(e,t,i){var a;return e=e.toLowerCase(),(a=b.exec[e])?(a(e,t,i),n):o}function s(e){var t;return e=e.toLowerCase(),(t=b.state[e])?t(e):-1}function l(e){var t;return e=e.toLowerCase(),(t=b.value[e])?t(e):o}function c(e,t){t=t||"exec",i(e,function(e,n){i(n.toLowerCase().split(","),function(i){b[t][i]=e})})}function u(e,i,n){return i===t&&(i=o),n===t&&(n=null),a.getDoc().execCommand(e,i,n)}function d(e){return _.match(e)}function h(e,i){_.toggle(e,i?{value:i}:t)}function p(e){m=v.getBookmark(e)}function f(){v.moveToBookmark(m)}var m,g=a.dom,v=a.selection,b={state:{},exec:{},value:{}},y=a.settings,_=a.formatter;e.extend(this,{execCommand:r,queryCommandState:s,queryCommandValue:l,addCommands:c}),c({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){a.undoManager.add()},"Cut,Copy,Paste":function(t){var i,o=a.getDoc();try{u(t)}catch(r){i=n}(i||!o.queryCommandSupported(t))&&(e.isGecko?a.windowManager.confirm(a.getLang("clipboard_msg"),function(e){e&&open("http://www.mozilla.org/editor/midasdemo/securityprefs.html","_blank")}):a.windowManager.alert(a.getLang("clipboard_no_support")))},unlink:function(e){v.isCollapsed()&&v.select(v.getNode()),u(e),v.collapse(o)},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(e){var t=e.substring(7);i("left,center,right,full".split(","),function(e){t!=e&&_.remove("align"+e)}),h("align"+t),r("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(e){var t,i;u(e),t=g.getParent(v.getNode(),"ol,ul"),t&&(i=t.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(i.nodeName)&&(p(),g.split(i,t),f()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){h(e)},"ForeColor,HiliteColor,FontName":function(e,t,i){h(e,i)},FontSize:function(t,i,n){var o,a;n>=1&&7>=n&&(a=e.explode(y.font_size_style_values),o=e.explode(y.font_size_classes),n=o?o[n-1]||n:a[n-1]||n),h(t,n)},RemoveFormat:function(e){_.remove(e)},mceBlockQuote:function(){h("blockquote")},FormatBlock:function(e,t,i){return h(i||"p")},mceCleanup:function(){var e=v.getBookmark();a.setContent(a.getContent({cleanup:n}),{cleanup:n}),v.moveToBookmark(e)},mceRemoveNode:function(e,t,i){var o=i||v.getNode();o!=a.getBody()&&(p(),a.dom.remove(o,n),f())},mceSelectNodeDepth:function(e,t,i){var n=0;g.getParent(v.getNode(),function(e){return 1==e.nodeType&&n++==i?(v.select(e),o):void 0},a.getBody())},mceSelectNode:function(e,t,i){v.select(i)},mceInsertContent:function(t,i,n){var o,r,s,l,c,u,d,h,p,f,m,b,y,_;if(o=a.parser,r=new e.html.Serializer({},a.schema),y='<span id="mce_marker" data-mce-type="bookmark"></span>',u={content:n,format:"html"},v.onBeforeSetContent.dispatch(v,u),n=u.content,-1==n.indexOf("{$caret}")&&(n+="{$caret}"),n=n.replace(/\{\$caret\}/,y),v.isCollapsed()||a.getDoc().execCommand("Delete",!1,null),s=v.getNode(),u={context:s.nodeName.toLowerCase()},c=o.parse(n,u),m=c.lastChild,"mce_marker"==m.attr("id"))for(d=m,m=m.prev;m;m=m.walk(!0))if(3==m.type||!g.isBlock(m.name)){m.parent.insert(d,m,"br"===m.name);break}if(u.invalid){for(v.setContent(y),s=v.getNode(),l=a.getBody(),9==s.nodeType?s=m=l:m=s;m!==l;)s=m,m=m.parentNode;n=s==l?l.innerHTML:g.getOuterHTML(s),n=r.serialize(o.parse(n.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return r.serialize(c)}))),s==l?g.setHTML(l,n):g.setOuterHTML(s,n)}else n=r.serialize(c),m=s.firstChild,b=s.lastChild,!m||m===b&&"BR"===m.nodeName?g.setHTML(s,n):v.setContent(n);d=g.get("mce_marker"),h=g.getRect(d),p=g.getViewPort(a.getWin()),(h.y+h.h>p.y+p.h||h.y<p.y||h.x>p.x+p.w||h.x<p.x)&&(_=e.isIE?a.getDoc().documentElement:a.getBody(),_.scrollLeft=h.x,_.scrollTop=h.y-p.h+25),f=g.createRng(),m=d.previousSibling,m&&3==m.nodeType?f.setStart(m,m.nodeValue.length):(f.setStartBefore(d),f.setEndBefore(d)),g.remove(d),v.setRng(f),v.onSetContent.dispatch(v,u),a.addVisual()},mceInsertRawHTML:function(e,t,i){v.setContent("tiny_mce_marker"),a.setContent(a.getContent().replace(/tiny_mce_marker/g,function(){return i}))},mceToggleFormat:function(e,t,i){h(i)},mceSetContent:function(e,t,i){a.setContent(i)},"Indent,Outdent":function(e){var t,n,o;t=y.indentation,n=/[a-z%]+$/i.exec(t),t=parseInt(t),s("InsertUnorderedList")||s("InsertOrderedList")?u(e):(y.forced_root_block||g.getParent(v.getNode(),g.isBlock)||_.apply("div"),i(v.getSelectedBlocks(),function(i){"outdent"==e?(o=Math.max(0,parseInt(i.style.paddingLeft||0)-t),g.setStyle(i,"paddingLeft",o?o+n:"")):g.setStyle(i,"paddingLeft",parseInt(i.style.paddingLeft||0)+t+n)}))},mceRepaint:function(){if(e.isGecko)try{p(n),v.getSel()&&v.getSel().selectAllChildren(a.getBody()),v.collapse(n),f()}catch(t){}},mceToggleFormat:function(e,t,i){_.toggle(i)},InsertHorizontalRule:function(){a.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){a.hasVisual=!a.hasVisual,a.addVisual()},mceReplaceContent:function(e,t,i){a.execCommand("mceInsertContent",!1,i.replace(/\{\$selection\}/g,v.getContent({format:"text"})))},mceInsertLink:function(e,t,i){var n;"string"==typeof i&&(i={href:i}),n=g.getParent(v.getNode(),"a"),i.href=i.href.replace(" ","%20"),n&&i.href||_.remove("link"),i.href&&_.apply("link",i,n)
|
81
|
+
},selectAll:function(){var e=g.getRoot(),t=g.createRng();v.getRng().setStart?(t.setStart(e,0),t.setEnd(e,e.childNodes.length),v.setRng(t)):u("SelectAll")}}),c({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(t){var i="align"+t.substring(7),o=v.isCollapsed()?[g.getParent(v.getNode(),g.isBlock)]:v.getSelectedBlocks(),a=e.map(o,function(e){return!!_.matchNode(e,i)});return-1!==e.inArray(a,n)},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return d(e)},mceBlockQuote:function(){return d("blockquote")},Outdent:function(){var e;if(y.inline_styles){if((e=g.getParent(v.getStart(),g.isBlock))&&parseInt(e.style.paddingLeft)>0)return n;if((e=g.getParent(v.getEnd(),g.isBlock))&&parseInt(e.style.paddingLeft)>0)return n}return s("InsertUnorderedList")||s("InsertOrderedList")||!y.inline_styles&&!!g.getParent(v.getNode(),"BLOCKQUOTE")},"InsertUnorderedList,InsertOrderedList":function(e){var t=g.getParent(v.getNode(),"ul,ol");return t&&("insertunorderedlist"===e&&"UL"===t.tagName||"insertorderedlist"===e&&"OL"===t.tagName)}},"state"),c({"FontSize,FontName":function(e){var t,i=0;return(t=g.getParent(v.getNode(),"span"))&&(i="fontsize"==e?t.style.fontSize:t.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()),i}},"value"),c({Undo:function(){a.undoManager.undo()},Redo:function(){a.undoManager.redo()}})}}(tinymce),function(e){var t=e.util.Dispatcher;e.UndoManager=function(i){function n(){return e.trim(i.getContent({format:"raw",no_events:1}).replace(/<span[^>]+data-mce-bogus[^>]+>[\u200B\uFEFF]+<\/span>/g,""))}function o(){a.typing=!1,a.add()}var a,r,s,l,c,u=0,d=[];return onBeforeAdd=new t(a),s=new t(a),l=new t(a),c=new t(a),s.add(function(e,t){return e.hasUndo()?i.onChange.dispatch(i,t,e):void 0}),l.add(function(e,t){return i.onUndo.dispatch(i,t,e)}),c.add(function(e,t){return i.onRedo.dispatch(i,t,e)}),i.onInit.add(function(){a.add()}),i.onBeforeExecCommand.add(function(e,t,i,n,o){"Undo"==t||"Redo"==t||"mceRepaint"==t||o&&o.skip_undo||a.beforeChange()}),i.onExecCommand.add(function(e,t,i,n,o){"Undo"==t||"Redo"==t||"mceRepaint"==t||o&&o.skip_undo||a.add()}),i.onSaveContent.add(o),i.dom.bind(i.dom.getRoot(),"dragend",o),i.dom.bind(i.getBody(),"focusout",function(){!i.removed&&a.typing&&o()}),i.onKeyUp.add(function(e,t){var i=t.keyCode;(i>=33&&36>=i||i>=37&&40>=i||45==i||13==i||t.ctrlKey)&&o()}),i.onKeyDown.add(function(e,t){var i=t.keyCode;return i>=33&&36>=i||i>=37&&40>=i||45==i?(a.typing&&o(),void 0):((16>i||i>20)&&224!=i&&91!=i&&!a.typing&&(a.beforeChange(),a.typing=!0,a.add()),void 0)}),i.onMouseDown.add(function(){a.typing&&o()}),i.addShortcut("ctrl+z","undo_desc","Undo"),i.addShortcut("ctrl+y","redo_desc","Redo"),a={data:d,typing:!1,onBeforeAdd:onBeforeAdd,onAdd:s,onUndo:l,onRedo:c,beforeChange:function(){r=i.selection.getBookmark(2,!0)},add:function(e){var t,o,s=i.settings;if(e=e||{},e.content=n(),a.onBeforeAdd.dispatch(a,e),o=d[u],o&&o.content==e.content)return null;if(d[u]&&(d[u].beforeBookmark=r),s.custom_undo_redo_levels&&d.length>s.custom_undo_redo_levels){for(t=0;t<d.length-1;t++)d[t]=d[t+1];d.length--,u=d.length}return e.bookmark=i.selection.getBookmark(2,!0),u<d.length-1&&(d.length=u+1),d.push(e),u=d.length-1,a.onAdd.dispatch(a,e),i.isNotDirty=0,e},undo:function(){var e;return a.typing&&(a.add(),a.typing=!1),u>0&&(e=d[--u],i.setContent(e.content,{format:"raw"}),i.selection.moveToBookmark(e.beforeBookmark),a.onUndo.dispatch(a,e)),e},redo:function(){var e;return u<d.length-1&&(e=d[++u],i.setContent(e.content,{format:"raw"}),i.selection.moveToBookmark(e.bookmark),a.onRedo.dispatch(a,e)),e},clear:function(){d=[],u=0,a.typing=!1},hasUndo:function(){return u>0||this.typing},hasRedo:function(){return u<d.length-1&&!this.typing}}}}(tinymce),tinymce.ForceBlocks=function(e){function t(){var t,r,s,l,c,u,d,h,p,f=o.getStart(),m=e.getBody(),g=-16777215;if(f&&1===f.nodeType&&i.forced_root_block){for(;f&&f!=m;){if(a[f.nodeName])return;f=f.parentNode}for(t=o.getRng(),t.setStart?(r=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset):(t.item&&(f=t.item(0),t=e.getDoc().body.createTextRange(),t.moveToElementText(f)),p=t.parentElement().ownerDocument===e.getDoc(),tmpRng=t.duplicate(),tmpRng.collapse(!0),s=-1*tmpRng.move("character",g),tmpRng.collapsed||(tmpRng=t.duplicate(),tmpRng.collapse(!1),c=-1*tmpRng.move("character",g)-s)),f=m.firstChild;f;)if(3===f.nodeType||1==f.nodeType&&!a[f.nodeName]){if(3===f.nodeType&&0==f.nodeValue.length){d=f,f=f.nextSibling,n.remove(d);continue}u||(u=n.create(i.forced_root_block),f.parentNode.insertBefore(u,f),h=!0),d=f,f=f.nextSibling,u.appendChild(d)}else u=null,f=f.nextSibling;if(h){if(t.setStart)t.setStart(r,s),t.setEnd(l,c),o.setRng(t);else if(p)try{t=e.getDoc().body.createTextRange(),t.moveToElementText(m),t.collapse(!0),t.moveStart("character",s),c>0&&t.moveEnd("character",c),t.select()}catch(v){}e.nodeChanged()}}}var i=e.settings,n=e.dom,o=e.selection,a=e.schema.getBlockElements();i.forced_root_block&&(e.onKeyUp.add(t),e.onNodeChange.add(t))},function(e){var t=(e.DOM,e.dom.Event),i=e.each,n=e.extend;e.create("tinymce.ControlManager",{ControlManager:function(t,n){var o=this;n=n||{},o.editor=t,o.controls={},o.onAdd=new e.util.Dispatcher(o),o.onPostRender=new e.util.Dispatcher(o),o.prefix=n.prefix||t.id+"_",o._cls={},o.onPostRender.add(function(){i(o.controls,function(e){e.postRender()})})},get:function(e){return this.controls[this.prefix+e]||this.controls[e]},setActive:function(e,t){var i=null;return(i=this.get(e))&&i.setActive(t),i},setDisabled:function(e,t){var i=null;return(i=this.get(e))&&i.setDisabled(t),i},add:function(e){var t=this;return e&&(t.controls[e.id]=e,t.onAdd.dispatch(e,t)),e},createControl:function(e){var t,n,o,a,r=this,s=r.editor;for(r.controlFactories||(r.controlFactories=[],i(s.plugins,function(e){e.createControl&&r.controlFactories.push(e)})),a=r.controlFactories,n=0,o=a.length;o>n;n++)if(t=a[n].createControl(e,r))return r.add(t);return"|"===e||"separator"===e?r.createSeparator():s.buttons&&(t=s.buttons[e])?r.createButton(e,t):r.add(t)},createDropMenu:function(t,i,o){var a,r,s,l,c=this,u=c.editor;return i=n({"class":"mceDropDown",constrain:u.settings.constrain_menus},i),i["class"]=i["class"]+" "+u.getParam("skin")+"Skin",(s=u.getParam("skin_variant"))&&(i["class"]+=" "+u.getParam("skin")+"Skin"+s.substring(0,1).toUpperCase()+s.substring(1)),i["class"]+="rtl"==u.settings.directionality?" mceRtl":"",t=c.prefix+t,l=o||c._cls.dropmenu||e.ui.DropMenu,a=c.controls[t]=new l(t,i),a.onAddItem.add(function(e,t){var i=t.settings;i.title=u.getLang(i.title,i.title),i.onclick||(i.onclick=function(){i.cmd&&u.execCommand(i.cmd,i.ui||!1,i.value)})}),u.onRemove.add(function(){a.destroy()}),e.isIE&&(a.onShowMenu.add(function(){u.focus(),r=u.selection.getBookmark(1)}),a.onHideMenu.add(function(){r&&(u.selection.moveToBookmark(r),r=0)})),c.add(a)},createListBox:function(i,o,a){function r(t){return t.settings.use_accessible_selects&&!e.isGecko}var s,l,c=this,u=c.editor;return c.get(i)?null:(o.title=u.translate(o.title),o.scope=o.scope||u,o.onselect||(o.onselect=function(e){u.execCommand(o.cmd,o.ui||!1,e||o.value)}),o=n({title:o.title,"class":"mce_"+i,scope:o.scope,control_manager:c},o),i=c.prefix+i,u.settings.use_native_selects||r(u)?s=new e.ui.NativeListBox(i,o):(l=a||c._cls.listbox||e.ui.ListBox,s=new l(i,o,u)),c.controls[i]=s,e.isWebKit&&s.onPostRender.add(function(e,i){t.add(i,"mousedown",function(){u.bookmark=u.selection.getBookmark(1)}),t.add(i,"focus",function(){u.selection.moveToBookmark(u.bookmark),u.bookmark=null})}),s.hideMenu&&u.onMouseDown.add(s.hideMenu,s),c.add(s))},createButton:function(t,i,o){var a,r,s=this,l=s.editor;return s.get(t)?null:(i.title=l.translate(i.title),i.label=l.translate(i.label),i.scope=i.scope||l,i.onclick||i.menu_button||(i.onclick=function(){l.execCommand(i.cmd,i.ui||!1,i.value)}),i=n({title:i.title,"class":"mce_"+t,unavailable_prefix:l.getLang("unavailable",""),scope:i.scope,control_manager:s},i),t=s.prefix+t,i.menu_button?(r=o||s._cls.menubutton||e.ui.MenuButton,a=new r(t,i,l),l.onMouseDown.add(a.hideMenu,a)):(r=s._cls.button||e.ui.Button,a=new r(t,i,l)),s.add(a))},createMenuButton:function(e,t,i){return t=t||{},t.menu_button=1,this.createButton(e,t,i)},createSplitButton:function(t,i,o){var a,r,s=this,l=s.editor;return s.get(t)?null:(i.title=l.translate(i.title),i.scope=i.scope||l,i.onclick||(i.onclick=function(e){l.execCommand(i.cmd,i.ui||!1,e||i.value)}),i.onselect||(i.onselect=function(e){l.execCommand(i.cmd,i.ui||!1,e||i.value)}),i=n({title:i.title,"class":"mce_"+t,scope:i.scope,control_manager:s},i),t=s.prefix+t,r=o||s._cls.splitbutton||e.ui.SplitButton,a=s.add(new r(t,i,l)),l.onMouseDown.add(a.hideMenu,a),a)},createColorSplitButton:function(t,i,o){var a,r,s,l=this,c=l.editor;return l.get(t)?null:(i.title=c.translate(i.title),i.scope=i.scope||c,i.onclick||(i.onclick=function(t){e.isIE&&(s=c.selection.getBookmark(1)),c.execCommand(i.cmd,i.ui||!1,t||i.value)}),i.onselect||(i.onselect=function(e){c.execCommand(i.cmd,i.ui||!1,e||i.value)}),i=n({title:i.title,"class":"mce_"+t,menu_class:c.getParam("skin")+"Skin",scope:i.scope,more_colors_title:c.getLang("more_colors")},i),t=l.prefix+t,r=o||l._cls.colorsplitbutton||e.ui.ColorSplitButton,a=new r(t,i,c),c.onMouseDown.add(a.hideMenu,a),c.onRemove.add(function(){a.destroy()}),e.isIE&&(a.onShowMenu.add(function(){c.focus(),s=c.selection.getBookmark(1)}),a.onHideMenu.add(function(){s&&(c.selection.moveToBookmark(s),s=0)})),l.add(a))},createToolbar:function(t,i,n){var o,a,r=this;return t=r.prefix+t,a=n||r._cls.toolbar||e.ui.Toolbar,o=new a(t,i,r.editor),r.get(t)?null:r.add(o)},createToolbarGroup:function(t,i,n){var o,a,r=this;return t=r.prefix+t,a=n||this._cls.toolbarGroup||e.ui.ToolbarGroup,o=new a(t,i,r.editor),r.get(t)?null:r.add(o)},createSeparator:function(t){var i=t||this._cls.separator||e.ui.Separator;return new i},setControlType:function(e,t){return this._cls[e.toLowerCase()]=t},destroy:function(){i(this.controls,function(e){e.destroy()}),this.controls=null}})}(tinymce),function(e){var t=e.util.Dispatcher,i=e.each,n=e.isIE,o=e.isOpera;e.create("tinymce.WindowManager",{WindowManager:function(e){var i=this;i.editor=e,i.onOpen=new t(i),i.onClose=new t(i),i.params={},i.features={}},open:function(t,a){var r,s,l,c,u=this,d="",h="modal"==u.editor.settings.dialog_type,p=e.DOM.getViewPort();t=t||{},a=a||{},s=o?p.w:screen.width,l=o?p.h:screen.height,t.name=t.name||"mc_"+(new Date).getTime(),t.width=parseInt(t.width||320),t.height=parseInt(t.height||240),t.resizable=!0,t.left=t.left||parseInt(s/2)-t.width/2,t.top=t.top||parseInt(l/2)-t.height/2,a.inline=!1,a.mce_width=t.width,a.mce_height=t.height,a.mce_auto_focus=t.auto_focus,h&&n&&(t.center=!0,t.help=!1,t.dialogWidth=t.width+"px",t.dialogHeight=t.height+"px",t.scroll=t.scrollbars||!1),i(t,function(t,i){e.is(t,"boolean")&&(t=t?"yes":"no"),/^(name|url)$/.test(i)||(d+=n&&h?(d?";":"")+i+":"+t:(d?",":"")+i+"="+t)}),u.features=t,u.params=a,u.onOpen.dispatch(u,t,a),c=t.url||t.file,c=e._addVer(c);try{n&&h?(r=1,window.showModalDialog(c,window,d)):r=window.open(c,t.name,d)}catch(f){}r||alert(u.editor.getLang("popup_blocked"))},close:function(e){e.close(),this.onClose.dispatch(this)},createInstance:function(t,i,n,o,a,r){var s=e.resolve(t);return new s(i,n,o,a,r)},confirm:function(e,t,i,n){n=n||window,t.call(i||this,n.confirm(this._decode(this.editor.getLang(e,e))))},alert:function(e,t,i,n){var o=this;n=n||window,n.alert(o._decode(o.editor.getLang(e,e))),t&&t.call(i||o)},resizeBy:function(e,t,i){i.resizeBy(e,t)},_decode:function(t){return e.DOM.decode(t).replace(/\\n/g,"\n")}})}(tinymce),function(e){e.Formatter=function(t){function i(e){return e.nodeType&&(e=e.nodeName),!!t.schema.getTextBlockElements()[e.toLowerCase()]}function n(e,t){return O.getParents(e,t,O.getRoot())}function o(e){return 1===e.nodeType&&"_mce_caret"===e.id}function a(){l({alignleft:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"},defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{"float":"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"},defaultBlock:"div"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"},defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{"float":"right"}}],alignfull:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"justify"},defaultBlock:"div"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},wrap_links:!1},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},wrap_links:!1},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(e,t,i){B(i,function(t,i){O.setAttrib(e,i,t)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]}),B("p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp".split(/\s/),function(e){l(e,{block:e,remove:"all"})}),l(t.settings.formats)}function r(){t.addShortcut("ctrl+b","bold_desc","Bold"),t.addShortcut("ctrl+i","italic_desc","Italic"),t.addShortcut("ctrl+u","underline_desc","Underline");for(var e=1;6>=e;e++)t.addShortcut("ctrl+"+e,"",["FormatBlock",!1,"h"+e]);t.addShortcut("ctrl+7","",["FormatBlock",!1,"p"]),t.addShortcut("ctrl+8","",["FormatBlock",!1,"div"]),t.addShortcut("ctrl+9","",["FormatBlock",!1,"address"])}function s(e){return e?H[e]:H}function l(e,t){e&&("string"!=typeof e?B(e,function(e,t){l(t,e)}):(t=t.length?t:[t],B(t,function(e){e.deep===I&&(e.deep=!e.selector),e.split===I&&(e.split=!e.selector||e.inline),e.remove===I&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),H[e]=t))}function c(n,a,r){function l(e,t){t=t||y,e&&(t.onformat&&t.onformat(e,t,a,r),B(t.styles,function(t,i){O.setStyle(e,i,_(t,a))}),B(t.attributes,function(t,i){O.setAttrib(e,i,_(t,a))}),B(t.classes,function(t){t=_(t,a),O.hasClass(e,t)||O.addClass(e,t)}))}function u(){function e(e,t){var i=new L(t);for(r=i.current();r;r=i.prev())if(r.childNodes.length>1||r==e||"BR"==r.tagName)return r}var i=t.selection.getRng(),n=i.startContainer,o=i.endContainer;if(n!=o&&0===i.endOffset){var a=e(n,o),s=3==a.nodeType?a.length:a.childNodes.length;i.setEnd(a,s)}return i}function d(t,i,n,o,a){var r,s,l=[],c=-1,u=-1,d=-1;return B(t.childNodes,function(e,t){return"UL"===e.nodeName||"OL"===e.nodeName?(c=t,r=e,!1):void 0}),B(t.childNodes,function(e,t){"SPAN"===e.nodeName&&"bookmark"==O.getAttrib(e,"data-mce-type")&&(e.id==i.id+"_start"?u=t:e.id==i.id+"_end"&&(d=t))}),0>=c||c>u&&d>c?(B(e.grep(t.childNodes),a),0):(s=O.clone(n,V),B(e.grep(t.childNodes),function(e,t){(c>u&&c>t||u>c&&t>c)&&(l.push(e),e.parentNode.removeChild(e))}),c>u?t.insertBefore(s,r):u>c&&t.insertBefore(s,r.nextSibling),o.push(s),B(l,function(e){s.appendChild(e)}),s)}function p(t,r,s){var c,u,p=[],f=!0;c=y.inline||y.block,u=O.create(c),l(u),j.walk(t,function(t){function m(t){var _,w,C,k,T;return T=f,_=t.nodeName.toLowerCase(),w=t.parentNode.nodeName.toLowerCase(),1===t.nodeType&&Y(t)&&(T=f,f="true"===Y(t),k=!0),b(_,"br")?(v=0,y.block&&O.remove(t),void 0):y.wrapper&&h(t,n,a)?(v=0,void 0):f&&!k&&y.block&&!y.wrapper&&i(_)?(t=O.rename(t,c),l(t),p.push(t),v=0,void 0):y.selector&&(B(g,function(e){"collapsed"in e&&e.collapsed!==x||O.is(t,e.selector)&&!o(t)&&(l(t,e),C=!0)}),!y.inline||C)?(v=0,void 0):(!f||k||!F(c,_)||!F(w,c)||!s&&3===t.nodeType&&1===t.nodeValue.length&&65279===t.nodeValue.charCodeAt(0)||o(t)||y.inline&&z(t)?"li"==_&&r?v=d(t,r,u,p,m):(v=0,B(e.grep(t.childNodes),m),k&&(f=T),v=0):(v||(v=O.clone(u,V),t.parentNode.insertBefore(v,t),p.push(v)),v.appendChild(t)),void 0)}var v;B(t,m)}),y.wrap_links===!1&&B(p,function(t){function i(t){var n,o,a;if("A"===t.nodeName){for(o=O.clone(u,V),p.push(o),a=e.grep(t.childNodes),n=0;n<a.length;n++)o.appendChild(a[n]);t.appendChild(o)}B(e.grep(t.childNodes),i)}i(t)}),B(p,function(e){function t(e){var t=0;return B(e.childNodes,function(e){w(e)||S(e)||t++}),t}function i(e){var t,i;return B(e.childNodes,function(e){return 1!=e.nodeType||S(e)||o(e)?void 0:(t=e,V)}),t&&v(t,y)&&(i=O.clone(t,V),l(i),O.replace(i,e,K),O.remove(t,1)),i||e}var r;if(r=t(e),(p.length>1||!z(e))&&0===r)return O.remove(e,1),void 0;if(y.inline||y.wrapper){if(y.exact||1!==r||(e=i(e)),B(g,function(t){B(O.select(t.inline,e),function(e){var i;if(t.wrap_links===!1){i=e.parentNode;do if("A"===i.nodeName)return;while(i=i.parentNode)}k(t,a,e,t.exact?e:null)})}),h(e.parentNode,n,a))return O.remove(e,1),e=0,K;y.merge_with_parents&&O.getParent(e.parentNode,function(t){return h(t,n,a)?(O.remove(e,1),e=0,K):void 0}),e&&y.merge_siblings!==!1&&(e=E(D(e),e),e=E(e,D(e,K)))}})}var f,m,g=s(n),y=g[0],x=R.isCollapsed();if(y)if(r)r.nodeType?(m=O.createRng(),m.setStartBefore(r),m.setEndAfter(r),p(C(m,g),null,!0)):p(r,null,!0);else if(x&&y.inline&&!O.select("td.mceSelected,th.mceSelected").length)A("apply",n,a);else{var T=t.selection.getNode();$||!g[0].defaultBlock||O.getParent(T,O.isBlock)||c(g[0].defaultBlock),t.selection.setRng(u()),f=R.getBookmark(),p(C(R.getRng(K),g),f),y.styles&&(y.styles.color||y.styles.textDecoration)&&(e.walk(T,G,"childNodes"),G(T)),R.moveToBookmark(f),P(R.getRng(K)),t.nodeChanged()}}function u(i,o,a){function r(t){var i,n,a,s,l;if(3!==t.nodeType){if(1===t.nodeType&&Y(t)&&(s=y,y="true"===Y(t),l=!0),i=e.grep(t.childNodes),y&&!l)for(n=0,a=v.length;a>n&&!k(v[n],o,t,t);n++);if(b.deep&&i.length){for(n=0,a=i.length;a>n;n++)r(i[n]);l&&(y=s)}}}function l(e){var t;return B(n(e.parentNode).reverse(),function(e){var n;t||"_start"==e.id||"_end"==e.id||(n=h(e,i,o),n&&n.split!==!1&&(t=e))}),t}function c(e,t,i,n){var a,r,s,l,c,u;if(e){for(u=e.parentNode,a=t.parentNode;a&&a!=u;a=a.parentNode){for(r=O.clone(a,V),c=0;c<v.length;c++)if(k(v[c],o,r,r)){r=0;break}r&&(s&&r.appendChild(s),l||(l=r),s=r)}!n||b.mixed&&z(e)||(t=O.split(e,t)),s&&(i.parentNode.insertBefore(s,i),l.appendChild(i))}return t}function u(e){return c(l(e),e,e,!0)}function d(e){var t=O.get(e?"_start":"_end"),i=t[e?"firstChild":"lastChild"];return S(i)&&(i=i[e?"firstChild":"lastChild"]),O.remove(t,!0),i}function f(e){var i,n;e=C(e,v,K),b.split&&(i=N(e,K),n=N(e),i!=n?(/^(TR|TD)$/.test(i.nodeName)&&i.firstChild&&(i=("TD"==i.nodeName?i.firstChild:i.firstChild.firstChild)||i),i=x(i,"span",{id:"_start","data-mce-type":"bookmark"}),n=x(n,"span",{id:"_end","data-mce-type":"bookmark"}),u(i),u(n),i=d(K),n=d()):i=n=u(i),e.startContainer=i.parentNode,e.startOffset=q(i),e.endContainer=n.parentNode,e.endOffset=q(n)+1),j.walk(e,function(e){B(e,function(e){r(e),1===e.nodeType&&"underline"===t.dom.getStyle(e,"text-decoration")&&e.parentNode&&"underline"===X(e.parentNode)&&k({deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,e)})})}var m,g,v=s(i),b=v[0],y=!0;return a?(a.nodeType?(g=O.createRng(),g.setStartBefore(a),g.setEndAfter(a),f(g)):f(a),void 0):(R.isCollapsed()&&b.inline&&!O.select("td.mceSelected,th.mceSelected").length?A("remove",i,o):(m=R.getBookmark(),f(R.getRng(K)),R.moveToBookmark(m),b.inline&&p(i,o,R.getStart())&&P(R.getRng(!0)),t.nodeChanged()),void 0)}function d(e,t,i){var n=s(e);!p(e,t,i)||"toggle"in n[0]&&!n[0].toggle?c(e,t,i):u(e,t,i)}function h(e,t,i,n){function o(e,t,o){var a,r,s,l=t[o];if(t.onmatch)return t.onmatch(e,t,o);if(l)if(l.length===I){for(a in l)if(l.hasOwnProperty(a)){if(r="attributes"===o?O.getAttrib(e,a):y(e,a),n&&!r&&!t.exact)return;if((!n||t.exact)&&!b(r,_(l[a],i)))return}}else for(s=0;s<l.length;s++)if("attributes"===o?O.getAttrib(e,l[s]):y(e,l[s]))return t;return t}var a,r,l,c=s(t);if(c&&e)for(r=0;r<c.length;r++)if(a=c[r],v(e,a)&&o(e,a,"attributes")&&o(e,a,"styles")){if(l=a.classes)for(r=0;r<l.length;r++)if(!O.hasClass(e,l[r]))return;return a}}function p(e,t,i){function n(i){return i=O.getParent(i,function(i){return!!h(i,e,t,!0)}),h(i,e,t)}var o;return i?n(i):(i=R.getNode(),n(i)?K:(o=R.getStart(),o!=i&&n(o)?K:V))}function f(e,t){var i,n=[],o={};return i=R.getStart(),O.getParent(i,function(i){var a,r;for(a=0;a<e.length;a++)r=e[a],!o[r]&&h(i,r,t)&&(o[r]=!0,n.push(r))},O.getRoot()),n}function m(e){var t,i,o,a,r,l=s(e);if(l)for(t=R.getStart(),i=n(t),a=l.length-1;a>=0;a--){if(r=l[a].selector,!r)return K;for(o=i.length-1;o>=0;o--)if(O.is(i[o],r))return K}return V}function g(e,i,o){var a;return M||(M={},a={},t.onNodeChange.addToTop(function(e,t,i){var o=n(i),r={};B(M,function(e,t){B(o,function(i){return h(i,t,{},e.similar)?(a[t]||(B(e,function(e){e(!0,{node:i,format:t,parents:o})}),a[t]=e),r[t]=e,!1):void 0})}),B(a,function(e,t){r[t]||(delete a[t],B(e,function(e){e(!1,{node:i,format:t,parents:o})}))})})),B(e.split(","),function(e){M[e]||(M[e]=[],M[e].similar=o),M[e].push(i)}),this}function v(e,t){return b(e,t.inline)?K:b(e,t.block)?K:t.selector?O.is(e,t.selector):void 0}function b(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()==t.toLowerCase()}function y(e,t){var i=O.getStyle(e,t);return("color"==t||"backgroundColor"==t)&&(i=O.toHex(i)),"fontWeight"==t&&700==i&&(i="bold"),""+i}function _(e,t){return"string"!=typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,function(e,i){return t[i]||e})),e}function w(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)}function x(e,t,i){var n=O.create(t,i);return e.parentNode.insertBefore(n,e),n.appendChild(e),n}function C(e,o,a){function r(e){function t(e){return"BR"==e.nodeName&&e.getAttribute("data-mce-bogus")&&!e.nextSibling}var i,n,a,r,s;if(i=n=e?m:v,r=e?"previousSibling":"nextSibling",s=O.getRoot(),3==i.nodeType&&!w(i)&&(e?g>0:y<i.nodeValue.length))return i;for(;;){if(!o[0].block_expand&&z(n))return n;for(a=n[r];a;a=a[r])if(!S(a)&&!w(a)&&!t(a))return n;if(n.parentNode==s){i=n;break}n=n.parentNode}return i}function s(e,t){for(t===I&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)e=e.childNodes[t],e&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}}function l(e){for(var t=e;t;){if(1===t.nodeType&&Y(t))return"false"===Y(t)?t:e;t=t.parentNode}return e}function c(e,i,n){function o(e,t){var i,o,r=e.nodeValue;return"undefined"==typeof t&&(t=n?r.length:0),n?(i=r.lastIndexOf(" ",t),o=r.lastIndexOf(" ",t),i=i>o?i:o,-1===i||a||i++):(i=r.indexOf(" ",t),o=r.indexOf(" ",t),i=-1!==i&&(-1===o||o>i)?i:o),i}var r,s,l,c;if(3===e.nodeType){if(l=o(e,i),-1!==l)return{container:e,offset:l};c=e}for(r=new L(e,O.getParent(e,z)||t.getBody());s=r[n?"prev":"next"]();)if(3===s.nodeType){if(c=s,l=o(s),-1!==l)return{container:s,offset:l}}else if(z(s))break;return c?(i=n?0:c.length,{container:c,offset:i}):void 0}function u(t,i){var a,r,s,l;for(3==t.nodeType&&0===t.nodeValue.length&&t[i]&&(t=t[i]),a=n(t),r=0;r<a.length;r++)for(s=0;s<o.length;s++)if(l=o[s],!("collapsed"in l&&l.collapsed!==e.collapsed)&&O.is(a[r],l.selector))return a[r];return t}function d(e,t){var a;if(o[0].wrapper||(a=O.getParent(e,o[0].block)),a||(a=O.getParent(3==e.nodeType?e.parentNode:e,i)),a&&o[0].wrapper&&(a=n(a,"ul,ol").reverse()[0]||a),!a)for(a=e;a[t]&&!z(a[t])&&(a=a[t],!b(a,"br")););return a||e}var h,p,f,m=e.startContainer,g=e.startOffset,v=e.endContainer,y=e.endOffset;if(1==m.nodeType&&m.hasChildNodes()&&(h=m.childNodes.length-1,m=m.childNodes[g>h?h:g],3==m.nodeType&&(g=0)),1==v.nodeType&&v.hasChildNodes()&&(h=v.childNodes.length-1,v=v.childNodes[y>h?h:y-1],3==v.nodeType&&(y=v.nodeValue.length)),m=l(m),v=l(v),(S(m.parentNode)||S(m))&&(m=S(m)?m:m.parentNode,m=m.nextSibling||m,3==m.nodeType&&(g=0)),(S(v.parentNode)||S(v))&&(v=S(v)?v:v.parentNode,v=v.previousSibling||v,3==v.nodeType&&(y=v.length)),o[0].inline&&(e.collapsed&&(f=c(m,g,!0),f&&(m=f.container,g=f.offset),f=c(v,y),f&&(v=f.container,y=f.offset)),p=s(v,y),p.node)){for(;p.node&&0===p.offset&&p.node.previousSibling;)p=s(p.node.previousSibling);p.node&&p.offset>0&&3===p.node.nodeType&&" "===p.node.nodeValue.charAt(p.offset-1)&&p.offset>1&&(v=p.node,v.splitText(p.offset-1))}return(o[0].inline||o[0].block_expand)&&(o[0].inline&&3==m.nodeType&&0!==g||(m=r(!0)),o[0].inline&&3==v.nodeType&&y!==v.nodeValue.length||(v=r())),o[0].selector&&o[0].expand!==V&&!o[0].inline&&(m=u(m,"previousSibling"),v=u(v,"nextSibling")),(o[0].block||o[0].selector)&&(m=d(m,"previousSibling"),v=d(v,"nextSibling"),o[0].block&&(z(m)||(m=r(!0)),z(v)||(v=r()))),1==m.nodeType&&(g=q(m),m=m.parentNode),1==v.nodeType&&(y=q(v)+1,v=v.parentNode),{startContainer:m,startOffset:g,endContainer:v,endOffset:y}}function k(e,t,i,n){var o,a,r;if(!v(i,e))return V;if("all"!=e.remove)for(B(e.styles,function(e,o){e=_(e,t),"number"==typeof o&&(o=e,n=0),(!n||b(y(n,o),e))&&O.setStyle(i,o,""),r=1}),r&&""==O.getAttrib(i,"style")&&(i.removeAttribute("style"),i.removeAttribute("data-mce-style")),B(e.attributes,function(e,o){var a;if(e=_(e,t),"number"==typeof o&&(o=e,n=0),!n||b(O.getAttrib(n,o),e)){if("class"==o&&(e=O.getAttrib(i,o),e&&(a="",B(e.split(/\s+/),function(e){/mce\w+/.test(e)&&(a+=(a?" ":"")+e)}),a)))return O.setAttrib(i,o,a),void 0;"class"==o&&i.removeAttribute("className"),U.test(o)&&i.removeAttribute("data-mce-"+o),i.removeAttribute(o)}}),B(e.classes,function(e){e=_(e,t),(!n||O.hasClass(n,e))&&O.removeClass(i,e)}),a=O.getAttribs(i),o=0;o<a.length;o++)if(0!==a[o].nodeName.indexOf("_"))return V;return"none"!=e.remove?(T(i,e),K):void 0}function T(t,i){function n(e,t,i){return e=D(e,t,i),!e||"BR"==e.nodeName||z(e)}var o,a=t.parentNode;i.block&&($?a==O.getRoot()&&(i.list_block&&b(t,i.list_block)||B(e.grep(t.childNodes),function(e){F($,e.nodeName.toLowerCase())?o?o.appendChild(e):o=x(e,$):o=0})):z(t)&&!z(a)&&(n(t,V)||n(t.firstChild,K,1)||t.insertBefore(O.create("br"),t.firstChild),n(t,K)||n(t.lastChild,V,1)||t.appendChild(O.create("br")))),i.selector&&i.inline&&!b(i.inline,t)||O.remove(t,1)}function D(e,t,i){if(e)for(t=t?"nextSibling":"previousSibling",e=i?e:e[t];e;e=e[t])if(1==e.nodeType||!w(e))return e}function S(e){return e&&1==e.nodeType&&"bookmark"==e.getAttribute("data-mce-type")}function E(t,i){function n(e,t){function i(e){var t={};return B(O.getAttribs(e),function(i){var n=i.nodeName.toLowerCase();0!==n.indexOf("_")&&"style"!==n&&(t[n]=O.getAttrib(e,n))}),t}function n(e,t){var i,n;for(n in e)if(e.hasOwnProperty(n)){if(i=t[n],i===I)return V;if(e[n]!=i)return V;delete t[n]}for(n in t)if(t.hasOwnProperty(n))return V;return K}return e.nodeName!=t.nodeName?V:n(i(e),i(t))?n(O.parseStyle(O.getAttrib(e,"style")),O.parseStyle(O.getAttrib(t,"style")))?K:V:V}function o(e,t){for(a=e;a;a=a[t]){if(3==a.nodeType&&0!==a.nodeValue.length)return e;if(1==a.nodeType&&!S(a))return a}return e}var a,r;if(t&&i&&(t=o(t,"previousSibling"),i=o(i,"nextSibling"),n(t,i))){for(a=t.nextSibling;a&&a!=i;)r=a,a=a.nextSibling,t.appendChild(r);return O.remove(i),B(e.grep(i.childNodes),function(e){t.appendChild(e)}),t}return i}function N(e,i){var n,o,a;return n=e[i?"startContainer":"endContainer"],o=e[i?"startOffset":"endOffset"],1==n.nodeType&&(a=n.childNodes.length-1,!i&&o&&o--,n=n.childNodes[o>a?a:o]),3===n.nodeType&&i&&o>=n.nodeValue.length&&(n=new L(n,t.getBody()).next()||n),3!==n.nodeType||i||0!==o||(n=new L(n,t.getBody()).prev()||n),n}function A(n,o,a){function r(e){var i=O.create("span",{id:b,"data-mce-bogus":!0,style:y?"color:red":""});return e&&i.appendChild(t.getDoc().createTextNode(W)),i}function l(e,t){for(;e;){if(3===e.nodeType&&e.nodeValue!==W||e.childNodes.length>1)return!1;t&&1===e.nodeType&&t.push(e),e=e.firstChild}return!0}function d(e){for(;e;){if(e.id===b)return e;e=e.parentNode}}function p(e){var t;if(e)for(t=new L(e,e),e=t.current();e;e=t.next())if(3===e.nodeType)return e}function f(e,t){var i,n;if(e)n=R.getRng(!0),l(e)?(t!==!1&&(n.setStartBefore(e),n.setEndBefore(e)),O.remove(e)):(i=p(e),i.nodeValue.charAt(0)===W&&(i=i.deleteData(0,1)),O.remove(e,1)),R.setRng(n);else if(e=d(R.getStart()),!e)for(;e=O.get(b);)f(e,!1)}function m(){var e,t,i,n,l,u,h;e=R.getRng(!0),n=e.startOffset,u=e.startContainer,h=u.nodeValue,t=d(R.getStart()),t&&(i=p(t)),h&&n>0&&n<h.length&&/\w/.test(h.charAt(n))&&/\w/.test(h.charAt(n-1))?(l=R.getBookmark(),e.collapse(!0),e=C(e,s(o)),e=j.split(e),c(o,a,e),R.moveToBookmark(l)):(t&&i.nodeValue===W?c(o,a,t):(t=r(!0),i=t.firstChild,e.insertNode(t),n=1,c(o,a,t)),R.setCursorLocation(i,n))}function g(){var e,t,n,l,c,d,p,f,m=R.getRng(!0),g=[];for(e=m.startContainer,t=m.startOffset,c=e,3==e.nodeType&&((t!=e.nodeValue.length||e.nodeValue===W)&&(l=!0),c=c.parentNode);c;){if(h(c,o,a)){d=c;break}c.nextSibling&&(l=!0),g.push(c),c=c.parentNode}if(d)if(l)n=R.getBookmark(),m.collapse(!0),m=C(m,s(o),!0),m=j.split(m),u(o,a,m),R.moveToBookmark(n);else{for(f=r(),c=f,p=g.length-1;p>=0;p--)c.appendChild(O.clone(g[p],!1)),c=c.firstChild;c.appendChild(O.doc.createTextNode(W)),c=c.firstChild;var v=O.getParent(d,i);v&&O.isEmpty(v)?d.parentNode.replaceChild(f,d):O.insertAfter(f,d),R.setCursorLocation(c,1),O.isEmpty(d)&&O.remove(d)}}function v(){var t;t=d(R.getStart()),t&&!O.isEmpty(t)&&e.walk(t,function(e){1!=e.nodeType||e.id===b||O.isEmpty(e)||O.setAttrib(e,"data-mce-bogus",null)},"childNodes")}var b="_mce_caret",y=t.settings.caret_debug;self._hasCaretEvents||(t.onBeforeGetContent.addToTop(function(){var e,t=[];if(l(d(R.getStart()),t))for(e=t.length;e--;)O.setAttrib(t[e],"data-mce-bogus","1")}),e.each("onMouseUp onKeyUp".split(" "),function(e){t[e].addToTop(function(){f(),v()})}),t.onKeyDown.addToTop(function(e,t){var i=t.keyCode;(8==i||37==i||39==i)&&f(d(R.getStart())),v()}),R.onSetContent.add(v),self._hasCaretEvents=!0),"apply"==n?m():g()}function P(e){var t,i,n,o,a,r=e.startContainer,s=e.startOffset;if(3==r.nodeType&&s>=r.nodeValue.length&&(s=q(r),r=r.parentNode,t=!0),1==r.nodeType)for(o=r.childNodes,r=o[Math.min(s,o.length-1)],i=new L(r,O.getParent(r,O.isBlock)),(s>o.length-1||t)&&i.next(),n=i.current();n;n=i.next())if(3==n.nodeType&&!w(n))return a=O.create("a",null,W),n.parentNode.insertBefore(a,n),e.setStart(n,0),R.setRng(e),O.remove(a),void 0}var M,I,H={},B=e.each,O=t.dom,R=t.selection,L=e.dom.TreeWalker,j=new e.dom.RangeUtils(O),F=t.schema.isValidChild,z=(e.isArray,O.isBlock),$=t.settings.forced_root_block,q=O.nodeIndex,W="",U=/^(src|href|style)$/,V=!1,K=!0,Y=O.getContentEditable,X=function(e){var i;return t.dom.getParent(e,function(e){return i=t.dom.getStyle(e,"text-decoration"),i&&"none"!==i}),i},G=function(e){var i;1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType&&(i=X(e.parentNode),t.dom.getStyle(e,"color")&&i?t.dom.setStyle(e,"text-decoration",i):t.dom.getStyle(e,"textdecoration")===i&&t.dom.setStyle(e,"text-decoration",null))};e.extend(this,{get:s,register:l,apply:c,remove:u,toggle:d,match:p,matchAll:f,matchNode:h,canApply:m,formatChanged:g}),a(),r()}}(tinymce),tinymce.onAddEditor.add(function(e,t){function i(t,i){e.each(i,function(e,i){e&&r.setStyle(t,i,e)}),r.rename(t,"span")}function n(i,n){r=i.dom,s.convert_fonts_to_spans&&e.each(r.select("font,u,strike",n.node),function(e){o[e.nodeName.toLowerCase()](t.dom,e)})}var o,a,r,s=t.settings;s.inline_styles&&(a=e.explode(s.font_size_legacy_values),o={font:function(e,t){i(t,{backgroundColor:t.style.backgroundColor,color:t.color,fontFamily:t.face,fontSize:a[parseInt(t.size,10)-1]})},u:function(e,t){i(t,{textDecoration:"underline"})},strike:function(e,t){i(t,{textDecoration:"line-through"})}},t.onPreProcess.add(n),t.onSetContent.add(n),t.onInit.add(function(){t.selection.onSetContent.add(n)}))}),function(e){var t=e.dom.TreeWalker;e.EnterKey=function(i){function n(n){function c(e){return e&&o.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&!/^(fixed|absolute)/i.test(e.style.position)&&"true"!==o.getContentEditable(e)}function u(t){var i;e.isIE&&!e.isIE11&&o.isBlock(t)&&(i=a.getRng(),t.appendChild(o.create("span",null," ")),a.select(t),t.lastChild.outerHTML="",a.setRng(i))}function d(e){for(var t,i=e,n=[];i=i.firstChild;){if(o.isBlock(i))return;1!=i.nodeType||l[i.nodeName.toLowerCase()]||n.push(i)
|
82
|
+
}for(t=n.length;t--;)i=n[t],!i.hasChildNodes()||i.firstChild==i.lastChild&&""===i.firstChild.nodeValue?o.remove(i):"A"==i.nodeName&&" "===(i.innerText||i.textContent)&&o.remove(i)}function h(e){var n,r,s,c,u,d,h=e;if(s=o.createRng(),e.hasChildNodes()){for(n=new t(e,e);r=n.current();){if(3==r.nodeType){s.setStart(r,0),s.setEnd(r,0);break}if(l[r.nodeName.toLowerCase()]){s.setStartBefore(r),s.setEndBefore(r);break}h=r,r=n.next()}r||(s.setStart(h,0),s.setEnd(h,0))}else"BR"==e.nodeName?e.nextSibling&&o.isBlock(e.nextSibling)?((!S||9>S)&&(d=o.create("br"),e.parentNode.insertBefore(d,e)),s.setStartBefore(e),s.setEndBefore(e)):(s.setStartAfter(e),s.setEndAfter(e)):(s.setStart(e,0),s.setEnd(e,0));a.setRng(s),o.remove(d),u=o.getViewPort(i.getWin()),c=o.getPos(e).y,(c<u.y||c+25>u.y+u.h)&&i.getWin().scrollTo(0,c<u.y?c:c-u.h+25)}function p(t){var i,n,a,s=k;if(i=t||"TABLE"==M?o.create(t||H):D.cloneNode(!1),a=i,r.keep_styles!==!1)do if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(s.nodeName)){if("_mce_caret"==s.id)continue;n=s.cloneNode(!1),o.setAttrib(n,"id",""),i.hasChildNodes()?(n.appendChild(i.firstChild),i.appendChild(n)):(a=n,i.appendChild(n))}while(s=s.parentNode);return(!e.isIE||e.isIE11)&&(a.innerHTML='<br data-mce-bogus="1">'),i}function f(e){var i,n,o;if(3==k.nodeType&&(e?T>0:T<k.nodeValue.length))return!1;if(k.parentNode==D&&B&&!e)return!0;if(e&&1==k.nodeType&&k==D.firstChild)return!0;if("TABLE"===k.nodeName||k.previousSibling&&"TABLE"==k.previousSibling.nodeName)return B&&!e||!B&&e;for(i=new t(k,D),3==k.nodeType&&(e&&0==T?i.prev():e||T!=k.nodeValue.length||i.next());n=i.current();){if(1===n.nodeType){if(!n.getAttribute("data-mce-bogus")&&(o=n.nodeName.toLowerCase(),l[o]&&"br"!==o))return!1}else if(3===n.nodeType&&!/^[ \t\r\n]*$/.test(n.nodeValue))return!1;e?i.prev():i.next()}return!0}function m(e,t){var i,n,a,r,s,l=H||"P";if(n=o.getParent(e,o.isBlock),!n||!c(n)){if(n=n||C,!n.hasChildNodes())return i=o.create(l),n.appendChild(i),O.setStart(i,0),O.setEnd(i,0),i;for(r=e;r.parentNode!=n;)r=r.parentNode;for(;r&&!o.isBlock(r);)a=r,r=r.previousSibling;if(a){for(i=o.create(l),a.parentNode.insertBefore(i,a),r=a;r&&!o.isBlock(r);)s=r.nextSibling,i.appendChild(r),r=s;O.setStart(e,t),O.setEnd(e,t)}}return e}function g(){function e(e){for(var t=P[e?"firstChild":"lastChild"];t&&1!=t.nodeType;)t=t[e?"nextSibling":"previousSibling"];return t===D}N=H?p(H):o.create("BR"),e(!0)&&e()?o.replace(N,P):e(!0)?P.parentNode.insertBefore(N,P):e()?(o.insertAfter(N,P),u(N)):(x=O.cloneRange(),x.setStartAfter(D),x.setEndAfter(P),A=x.extractContents(),o.insertAfter(A,P),o.insertAfter(N,P)),o.remove(D),h(N),s.add()}function v(){for(var e,i=new t(k,D);e=i.next();)if(l[e.nodeName.toLowerCase()]||e.length>0)return!0}function b(){var t,i,n;k&&3==k.nodeType&&T>=k.nodeValue.length&&(e.isIE&&!e.isIE11||v()||(t=o.create("br"),O.insertNode(t),O.setStartAfter(t),O.setEndAfter(t),i=!0)),t=o.create("br"),O.insertNode(t),e.isIE&&!e.isIE11&&"PRE"==M&&(!S||8>S)&&t.parentNode.insertBefore(o.doc.createTextNode("\r"),t),n=o.create("span",{}," "),t.parentNode.insertBefore(n,t),a.scrollIntoView(n),o.remove(n),i?(O.setStartBefore(t),O.setEndBefore(t)):(O.setStartAfter(t),O.setEndAfter(t)),a.setRng(O),s.add()}function y(e){do 3===e.nodeType&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;while(e)}function _(e){var t,i,n=o.getRoot();for(t=e;t!==n&&"false"!==o.getContentEditable(t);)"true"===o.getContentEditable(t)&&(i=t),t=t.parentNode;return t!==n?i:n}function w(t){var i;(!e.isIE||e.isIE11)&&(t.normalize(),i=t.lastChild,(!i||/^(left|right)$/gi.test(o.getStyle(i,"float",!0)))&&o.add(t,"br"))}var x,C,k,T,D,S,E,N,A,P,M,I,H,B,O=a.getRng(!0);if(!O.collapsed)return i.execCommand("Delete"),void 0;if(!n.isDefaultPrevented()&&(k=O.startContainer,T=O.startOffset,H=(r.force_p_newlines?"p":"")||r.forced_root_block,H=H?H.toUpperCase():"",S=o.doc.documentMode,E=n.shiftKey,1==k.nodeType&&k.hasChildNodes()&&(B=T>k.childNodes.length-1,k=k.childNodes[Math.min(T,k.childNodes.length-1)]||k,T=B&&3==k.nodeType?k.nodeValue.length:0),C=_(k))){if(s.beforeChange(),!o.isBlock(C)&&C!=o.getRoot())return(!H||E)&&b(),void 0;if((H&&!E||!H&&E)&&(k=m(k,T)),D=o.getParent(k,o.isBlock),P=D?o.getParent(D.parentNode,o.isBlock):null,M=D?D.nodeName.toUpperCase():"",I=P?P.nodeName.toUpperCase():"","LI"!=I||n.ctrlKey||(D=P,M=I),"LI"==M){if(!H&&E)return b(),void 0;if(o.isEmpty(D))return/^(UL|OL|LI)$/.test(P.parentNode.nodeName)?!1:(g(),void 0)}if("PRE"==M&&r.br_in_pre!==!1){if(!E)return b(),void 0}else if(!H&&!E&&"LI"!=M||H&&E)return b(),void 0;H=H||"P",f()?(N=/^(H[1-6]|PRE)$/.test(M)&&"HGROUP"!=I?p(H):p(),r.end_container_on_empty_block&&c(P)&&o.isEmpty(D)?N=o.split(P,D):o.insertAfter(N,D),h(N)):f(!0)?(N=D.parentNode.insertBefore(p(),D),u(N)):(x=O.cloneRange(),x.setEndAfter(D),A=x.extractContents(),y(A),N=A.firstChild,o.insertAfter(A,D),d(N),w(D),h(N)),o.setAttrib(N,"id",""),s.add()}}var o=i.dom,a=i.selection,r=i.settings,s=i.undoManager,l=i.schema.getNonEmptyElements();i.onKeyDown.add(function(e,t){13==t.keyCode&&n(t)!==!1&&t.preventDefault()})}}(tinymce),function(){var e,t,i,n,o,a,r;window.wagn||(window.wagn={}),$.extend(wagn,{editorContentFunctionMap:{".tinymce-textarea":function(){return tinyMCE.get(this[0].id).getContent()},".pointer-select":function(){return o(this.val())},".pointer-multiselect":function(){return o(this.val())},".pointer-radio-list":function(){return o(this.find("input:checked").val())},".pointer-list-ul":function(){return o(this.find("input").map(function(){return $(this).val()}))},".pointer-checkbox-list":function(){return o(this.find("input:checked").map(function(){return $(this).val()}))},".perm-editor":function(){return n(this)},".wikirate-topic-tree":function(){return o(this.find(".jstree-clicked").map(function(){return $.trim($(this).text())}))}},editorInitFunctionMap:{".date-editor":function(){return this.datepicker({dateFormat:"yy-mm-dd"})},textarea:function(){return $(this).autosize()},".tinymce-textarea":function(){return wagn.initTinyMCE(this[0].id)},".pointer-list-editor":function(){return this.sortable(),wagn.initPointerList(this.find("input"))},".file-upload":function(){return this.fileupload({add:wagn.chooseFile})},".etherpad-textarea":function(){return $(this).closest("form").find(".edit-submit-button").attr("class","etherpad-submit-button")},".wikirate-topic-tree":function(){return $(this).jstree({plugins:["themes","html_data","ui","crrm"],ui:{select_multiple_modifier:"on",initially_select:$(this).closest(".editor").find(".initial-content").text().split("|"),selected_parent_close:!1},themes:{icons:!1}})}},initPointerList:function(e){var t;return t=e.closest("ul").attr("options-card"),e.autocomplete({source:wagn.prepUrl(wagn.rootPath+"/"+t+".json?view=name_complete")})},setTinyMCEConfig:function(e){var t;return t=function(){try{return $.parseJSON(e)}catch(t){return{}}},wagn.tinyMCEConfig=t()},initTinyMCE:function(e){var t,i,n;return t={plugins:"autoresize",autoresize_max_height:500},n=null!=wagn.tinyMCEConfig?wagn.tinyMCEConfig:{},i={mode:"exact",elements:e,content_css:wagn.cssPath,entity_encoding:"raw"},$.extend(t,n,i),tinyMCE.init(t)},chooseFile:function(e,t){var i,n,o,a;return o=t.files[0],$(this).closest("form").data("file-data",t),(a=$(this).slot().find(".name-editor input"))&&a[0]&&""===a.val()&&a.val(o.name.replace(/\..*$/,"").replace(/_/g," ")),n=$(this).closest(".card-editor"),n.find(".choose-file").hide(),n.find(".chosen-filename").text(o.name),n.find(".chosen-file").show(),i=this.name.replace(/attach\]$/,"content]"),n.append('<input type="hidden" value="CHOSEN" class="upload-card-content" name="'+i+'">')},openMenu:function(e,t){var i,n;return n=$(e),i=n.data("menu"),null==i&&(i=wagn.generateMenu(n.slot(),n.data("menu-vars")),n.data("menu",i),i.menu({position:{my:"right top",at:"left-2 top-3"},icons:{submenu:"ui-icon-carat-1-w"}})),t&&i.addClass("card-menu-tappable"),i.show(),i.position({my:"right top",at:"right+2 top+2",of:e})},closeMenu:function(e){return $(e).hide(),$(e).menu("collapseAll",null,!0)},generateMenu:function(e,t){var i,n,o;return o=$.extend(!0,{},wagn.menu_template),i=wagn.generateMenuItems(o,t),n=$('<ul class="card-menu">'+i.join("\n")+"</ul>"),e.append(n),n},generateMenuItems:function(e,t){var i;return i=[],$.each(e,function(e,n){var o,a,r,s;return n["if"]&&!t[n["if"]]?!0:(n.text&&(n.text=n.text.replace(/\%\{([^}]*)\}/,function(e,i){return t[i]}),n.text=$("<div/>").text(n.text).html()),o=n.link?t[n.link]:n.plain?"<a>"+n.plain+"</a>":n.page?(r=t[n.page]||n.page,s=n.text||r,'<a href="'+wagn.rootPath+"/"+wagn.linkname(r)+'">'+s+" ↵</a>"):wagn.generateStandardMenuItem(n,t),o?(n.list&&(a=wagn.generateListTemplate(n.list,t))&&a.length>0&&(n.sub=a),n.sub&&(o+="<ul>"+wagn.generateMenuItems(n.sub,t).join("\n")+"</ul>"),i.push("<li>"+o+"</li>")):void 0)}),i},linkname:function(e){return e.replace(/[^\w\*\+]/g," ").replace(/\s+/g,"_")},generateListTemplate:function(e,t){var i,n;return i=[],(n=t[e.name])&&$.each(n,function(t,n){var o;return o=$.extend({},e.template),$.map(o,function(e,t){return o[t]=n[o[t]]||o[t]}),i.push(o)}),e.append&&(i=i.concat(e.append)),i},generateStandardMenuItem:function(e,t){var i,n,o,a;return i=wagn.linkname(t.self),n=e.path_opts||{},e.related&&(e.view="related",n.related="object"==typeof e.related?$.extend({},e.related,{name:t[e.related.name]}):(e.text||(e.text=e.related),{name:"+*"+e.related})),e.view?("home"!==e.view&&(n.view=e.view),o=wagn.rootPath+"/"+i,$.isEmptyObject(n)||(o+="?"+$.param(n)),a=e.text||e.view,'<a href="'+o+'" data-remote="true" class="slotter">'+a+"</a>"):void 0}}),$(window).ready(function(){var i;return $("body").on("click",".cancel-upload",function(){var e,t;return t=$(this).closest(".card-editor"),t.find(".chosen-file").hide(),t.find(".choose-file").show(),$(this).closest("form").data("file-data",null),e=t.find(".upload-card-content").remove()}),$(".navbox").autocomplete({html:"html",source:e,select:t}),$("body").on("mouseenter",".card-menu-link",function(){return wagn.openMenu(this,!1)}),$("body").on("mouseleave",".card-menu",function(){return wagn.closeMenu(this)}),$(document).on("tap",".card-header",function(e){var t;return t=$(this).find(".card-menu-link"),!t[0]||t.data("menu")||e.pageX-$(this).offset().left<$(this).width()/2?void 0:(wagn.openMenu(t,!0),e.preventDefault())}),$(document).on("tap","body",function(e){return $(e.target).closest(".card-header")[0]||$(e.target).closest(".card-menu-link")[0]?void 0:$(".card-menu").hide()}),$(document).on("tap",".ui-menu-icon",function(e){return $(this).closest("li").trigger("mouseenter"),e.preventDefault()}),$("body").on("click",".pointer-item-add",function(e){var t,i,n;return i=$(this).closest(".content-editor").find(".pointer-li:last"),n=i.clone(),t=n.find("input"),t.val(""),i.after(n),wagn.initPointerList(t),e.preventDefault()}),$("body").on("click",".pointer-item-delete",function(){var e;return e=$(this).closest("li"),e.closest("ul").find(".pointer-li").length>1?e.remove():e.find("input").val(""),event.preventDefault()}),$("body").on("click",".perm-vals input",function(){return $(this).slot().find("#inherit").attr("checked",!1)}),$("body").on("click",".perm-editor #inherit",function(){var e;return e=$(this).slot(),e.find(".perm-group input:checked").attr("checked",!1),e.find(".perm-indiv input").val("")}),$("body").on("click",".rule-submit-button",function(){var e;return e=$(this).closest("form"),e.find(".set-editor input:checked").val()?!0:(e.find(".set-editor").addClass("attention"),$(this).notify("To what Set of cards does this Rule apply?"),!1)}),$("body").on("click",".etherpad-submit-button",function(){var e,t;return wagn.padform=$(this).closest("form"),e=$(wagn.padform).find("iframe")[0].src,-1!==(t=e.indexOf("?"))&&(e=e.slice(0,t)),$.get(e+"/export/html",function(e){return $(wagn.padform).find(".etherpad-textarea")[0].value=e,$(wagn.padform)[0].submit()}),!1}),$("body").on("click",".shade-view h1",function(){var e;return e=$(this).slot().find(".shade-content").is(":hidden"),r($(this).closest(".pointer-list").find(".shade-content:visible").parent()),e?r($(this).slot()):void 0}),(i=$(".shade-view h1")[0])&&$(i).trigger("click"),$("body").on("mouseenter","#wikirate-nav > a",function(){var e,t;return t=$(this).find("ul"),t[0]?t.css("display","inline-block"):(e=$(this),$.ajax(e.attr("href"),{data:{view:"navdrop",layout:"none",index:$("#wikirate-nav > a").index(e)},success:function(t){return wagn.d=t,e.prepend($(t).menu())}}))}),$("body").on("mouseleave","#wikirate-nav ul",function(){return $(this).hide()}),$("body").on("change",".go-to-selected select",function(){var e;return e=$(this).val(),""!==e?window.location=wagn.rootPath+escape(e):void 0})}),$(document).bind("mobileinit",function(){return $.mobile.autoInitializePage=!1,$.mobile.ajaxEnabled=!1}),r=function(e){return e.find(".shade-content").slideToggle(1e3),e.find(".ui-icon").toggleClass("ui-icon-triangle-1-e ui-icon-triangle-1-s")},n=function(e){var t,i;return e.find("#inherit").attr("checked")?"_left":(t=e.find(".perm-group input:checked").map(function(){return $(this).val()}),i=e.find(".perm-indiv input").map(function(){return $(this).val()}),o($.makeArray(t).concat($.makeArray(i))))},o=function(e){var t;return t=$.map($.makeArray(e),function(e){return e?"[["+e+"]]":void 0}),$.makeArray(t).join("\n")},a=0,e=function(e,t){var n,o;return n=this.element.closest("form"),o=n.serialize()+"&view=complete",this.xhr=$.ajax({url:wagn.prepUrl(wagn.rootPath+"/:search.json"),data:o,dataType:"json",wagReq:++a,success:function(n){return this.wagReq===a?t(i(e.term,n)):void 0},error:function(){return this.wagReq===a?t([]):void 0}})},i=function(e,t){var i;return i=[],$.each(["search","add","new"],function(n,o){var a,r;return(r=t[o])?(a={value:e,prefix:o,icon:"plus",label:'<strong class="highlight">'+e+"</strong>"},"search"===o?(a.icon=o,a.term=e):"add"===o?a.href="/card/new?card[name]="+encodeURIComponent(r):"new"===o&&(a.type="add",a.href="/new/"+r[1]),i.push(a)):void 0}),$.each(t["goto"],function(e,t){return i.push({icon:"arrowreturnthick-1-e",prefix:"go to",value:t[0],label:t[1],href:"/"+t[2]})}),$.each(i,function(e,t){return t.label='<span class="navbox-item-label"><a class="ui-icon ui-icon-'+t.icon+'"></a>'+t.prefix+':</span> <span class="navbox-item-value">'+t.label+"</span>"}),i},t=function(e,t){return t.item.term?$(this).closest("form").submit():window.location=wagn.rootPath+t.item.href,$(this).attr("disabled","disabled")}}.call(this),function(){var e,t,i;$.extend(wagn,{initializeEditors:function(e,t){return null==t&&(t=wagn.editorInitFunctionMap),$.each(t,function(t,i){return $.each(e.find(t),function(){return i.call($(this))})})},prepUrl:function(e,t){var i,n,o;return o={},i=$("#main").children(".card-slot").data("cardName"),null!=i&&(o.main=i),t&&(t.isMain()&&(o.is_main=!0),n=t.data("slot"),null!=n&&wagn.slotParams(n,o,"slot")),e+((e.match(/\?/)?"&":"?")+$.param(o))},slotParams:function(e,i,n){return $.each(e,function(e,o){var a;return a=n+"["+t(e)+"]","items"===e?wagn.slotParams(o,i,a):i[a]=o})},pingName:function(e,t){return $.getJSON(wagn.rootPath+"/",{format:"json",view:"status","card[name]":e},t)}}),jQuery.fn.extend({slot:function(){return this.closest(".card-slot")},setSlotContent:function(e){var t,i,n;return t=this.slot(),n=$(e),n[0]?(i=t.attr("data-slot"))&&null!=i&&n.attr("data-slot",i):n=e,t.replaceWith(n),n},notify:function(e){var t,i,n;return n=this.slot(),i=n.find(".card-notice"),i[0]||(i=$('<div class="card-notice"></div>'),t=n.find(".card-form"),t[0]?$(t[0]).append(i):n.append(i)),i.html(e),i.show("blind")},report:function(e){var t;return t=this.slot().find(".card-report"),t[0]?(t.hide(),t.html(e),t.show("drop",750),setTimeout(function(){return t.hide("drop",750)},3e3)):!1},isMain:function(){return this.slot().parent("#main")[0]},loadCaptcha:function(){return Recaptcha.create(wagn.recaptchaKey,this[0])},autosave:function(){var e,t,i,n;if(n=this.slot(),!this.attr("no-autosave")){if(t=this.closest("fieldset"),t[0]){if(!(e=t.data("cardId")))return;i=": "+t.data("cardName")}else e=n.data("cardId"),i="";return $.ajax(wagn.rootPath+"/card/save_draft/~"+e,{data:{"card[content]":this.val()},type:"POST",success:function(){return n.report("draft saved"+i)}})}},setContentFieldsFromMap:function(e){var t;return null==e&&(e=wagn.editorContentFunctionMap),t=$(this),$.each(e,function(e,i){return t.setContentFields(e,i)})},setContentFields:function(e,t){return $.each(this.find(e),function(){return $(this).setContentField(t)})},setContentField:function(e){var t,i,n;return t=this.closest(".card-editor").find(".card-content"),i=t.val(),n=e.call(this),t.val(n),i!==n?t.change():void 0}}),setInterval(function(){return $(".card-form").setContentFieldsFromMap()},2e4),$(window).ready(function(){return $.ajaxSetup({cache:!1}),setTimeout(function(){return wagn.initializeEditors($("body"))},10),$("body").on("ajax:success",".slotter",function(e,t){var i,n;return t.redirect?window.location=t.redirect:(n=$(this).attr("notify-success"),i=$(this).setSlotContent(t),i.jquery&&(wagn.initializeEditors(i),null!=n)?i.notify(n):void 0)}),$("body").on("ajax:error",".slotter",function(e,t){var i,n;return i=t.responseText,403===t.status?$(this).setSlotContent(i):($(this).notify(i),n=$(this).slot(),409===t.status?n.find(".current_revision_id").val(n.find(".new-current-revision-id").text()):449===t.status?n.find(".recaptcha-box").loadCaptcha():void 0)}),$("body").on("click","button.slotter",function(){return $.rails.allowAction($(this))?$.rails.handleRemote($(this)):!1}),$("body").on("ajax:beforeSend",".slotter",function(t,i,n){var o,a,r,s,l;if(!n.skip_before_send&&(n.url.match(/home_view/)||(n.url=wagn.prepUrl(n.url,$(this).slot())),$(this).is("form"))){if(wagn.recaptchaKey&&"on"===$(this).attr("recaptcha")&&!$(this).find(".recaptcha-box")[0])return e(this),!1;if(a=$(this).data("file-data"))return s=$(this).find(".file-upload"),s[1]?($(this).notify("Wagn does not yet support multiple files in a single form."),!1):(l=s.data("fileupload"),l._isXHRUpload(l.options)||($(this).find("[name=success]").val("_self"),n.url+="&simulate_xhr=true",r=function(e){return e.find("body").html()},n.dataFilter=r),o=$.extend(n,l._getAJAXSettings(a),{url:n.url}),o.skip_before_send=!0,$.ajax(o),!1)}}),$("body").on("submit",".card-form",function(){return $(this).setContentFieldsFromMap(),$(this).find(".card-content").attr("no-autosave","true"),!0}),$("body").on("click",".submitter",function(){return $(this).closest("form").submit()}),$("body").on("click",".renamer-updater",function(){return $(this).closest("form").find(".update_referencers").val("true")}),$("body").on("submit",".card-name-form",function(){var e;return e=$(this).find(".confirm-rename"),e.is(":hidden")?($(this).find("#referers").val()>0&&$(this).find(".renamer-updater").show(),e.show("blind"),!1):void 0}),$("body").on("click","button.redirecter",function(){return window.location=$(this).attr("href")}),wagn.noDoubleClick||$("body").on("dblclick",".card-slot",function(){var e;return e=$(this),e.find(".card-editor")[0]?!1:e.closest(".card-header")[0]?!1:e.data("cardId")?(e.addClass("slotter"),e.attr("href",wagn.rootPath+"/card/edit/~"+e.data("cardId")),$.rails.handleRemote(e),!1):!1}),$("body").on("dblclick",".nodblclick",function(){return!1}),$("body").on("submit","form.slotter",function(){var e,t;return(t=$(this).attr("main-success"))&&$(this).isMain()&&(e=$(this).find("[name=success]"),e&&!e.val().match(/^REDIRECT/))?e.val("REDIRECT"===t?t+": "+e.val():t):void 0}),$(".card-slot").on("click",".standard-delete",function(){var e;if("true"!==$(this).attr("success-ready"))return e=$(this).isMain()?"REDIRECT: *previous":"TEXT:"+$(this).slot().data("cardName")+" removed",$(this).attr("href",$(this).attr("href")+"?success="+encodeURIComponent(e)),$(this).attr("success-ready","true")}),$("body").on("change",".live-type-field",function(){return $(this).data("params",$(this).closest("form").serialize()),$(this).data("url",$(this).attr("href"))}),$("body").on("change",".edit-type-field",function(){return $(this).closest("form").submit()}),$("body").on("change",".autosave .card-content",function(){var e;return e=$(this),setTimeout(function(){return e.autosave()},500)}),$("body").on("mouseenter","[hover_content]",function(){return $(this).attr("hover_restore",$(this).html()),$(this).html($(this).attr("hover_content"))}),$("body").on("mouseleave","[hover_content]",function(){return $(this).html($(this).attr("hover_restore"))}),$("body").on("keyup",".name-editor input",function(){var e,t;return e=$(this),t=e.val(),wagn.pingName(t,function(i){var n,o,a,r,s,l,c;return e.val()!==t?null:(c=i.status,c?(n=e.parent(),o=e.closest("fieldset").find("legend"),r=o.find(".name-messages"),r[0]||(r=$('<span class="name-messages"></span>'),o.append(r)),n.removeClass("real-name virtual-name known-name"),l=e.slot().data("cardId"),"unknown"===c||l&&parseInt(l)===i.id?r.html(""):(n.addClass(c+"-name known-name"),a=s="virtual"===c?"in virtual":"already in",r.html('"<a href="'+wagn.rootPath+"/"+i.url_key+'">'+t+'</a>" '+s+" use"))):void 0)})}),$("body").on("click",".render-error-link",function(e){var t;return t=$(this).closest(".render-error").find(".render-error-message"),t.show(),e.preventDefault()})}),e=function(e){var t,i;return i="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js",t=$('<div class="recaptcha-box"></div>'),$(e).children().last().after(t),$.getScript(i,function(){return t.loadCaptcha()})},t=function(e){return e.replace(/([a-z])([A-Z])/g,function(e){return e[0]+"_"+e[1].toLowerCase()})},i=function(e){return"undefined"!=typeof console&&null!==console?console.log(e):void 0}}.call(this),wagn.menu_template=[{text:"edit",view:"edit","if":"edit",sub:[{text:"content",view:"edit"},{text:"name",view:"edit_name"},{text:"type: %{type}",view:"edit_type"},{text:"structure",related:{name:"structure",view:"edit"},"if":"structure"},{link:"delete","if":"delete"}]},{text:"view",view:"home",sub:[{text:"refresh",view:"home"},{text:"page",page:"self"},{text:"type: %{type}",page:"type"},{text:"history",view:"history","if":"edit"},{text:"structure",related:{name:"structure"},"if":"structure"}]},{text:"discuss",related:{name:"+discussion"},"if":"discuss"},{text:"advanced",view:"options",sub:[{text:"rules",view:"options",list:{name:"related_sets",template:{view:"options",text:"text",path_opts:"path_opts"}}},{plain:"related",list:{name:"piecenames",template:{page:"item"},append:[{related:"children","if":"creator"},{related:"mates"}]}},{related:"referred to by","if":"creator",sub:[{text:"all",related:"referred to by"},{text:"links",related:"linked to by"},{text:"inclusions",related:"included by"}]},{related:"refers to","if":"creator",sub:[{text:"all",related:"refers to"},{text:"links",related:"links to"},{text:"inclusions",related:"includes"}]},{related:"editors","if":"creator",sub:[{text:"all editors",related:"editors"},{text:"creator: %{creator}",page:"creator"},{text:"last editor: %{updater}",page:"updater"}]}]},{link:"watch","if":"watch"},{view:"account","if":"account",sub:[{view:"account",text:"details"},{related:"roles"},{related:"created"},{related:"edited"}]}],/*
|
83
|
+
* jQuery Mobile Framework Git Build: SHA1: 07a30fb0138f34a880ca7c9c9427319d1f976eda <> Date: Mon Jul 16 01:56:11 2012 +0200
|
84
|
+
* http://jquerymobile.com
|
85
|
+
*
|
86
|
+
* Copyright 2012 jQuery Foundation and other contributors
|
87
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
88
|
+
* http://jquery.org/license
|
89
|
+
*
|
90
|
+
*/
|
91
|
+
function(e,t,i){"function"==typeof define&&define.amd?define(["jquery"],function(n){return i(n,e,t),n.mobile}):i(e.jQuery,e,t)}(this,document,function(e,t,i,n){!function(e,t){var n={};e.mobile=e.extend({},{version:"1.2.0-pre",ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:250,touchOverflowEnabled:!1,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"e",autoInitializePage:!0,pushStateEnabled:!0,ignoreContentEnabled:!1,orientationChangeEnabled:!0,buttonMarkup:{hoverDelay:200},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(n){"number"!==e.type(n)&&(n=e.mobile.defaultHomeScroll),e.event.special.scrollstart.enabled=!1,setTimeout(function(){t.scrollTo(0,n),e(i).trigger("silentscroll",{x:0,y:n})},20),setTimeout(function(){e.event.special.scrollstart.enabled=!0},150)},nsNormalizeDict:n,nsNormalize:function(t){return t?n[t]||(n[t]=e.camelCase(e.mobile.ns+t)):void 0},getInheritedTheme:function(e,t){for(var i,n,o=e[0],a="",r=/ui-(bar|body|overlay)-([a-z])\b/;o&&(i=o.className||"",!(i&&(n=r.exec(i))&&(a=n[2])));)o=o.parentNode;return a||t||"a"},closestPageData:function(e){return e.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")},enhanceable:function(e){return this.haveParents(e,"enhance")},hijackable:function(e){return this.haveParents(e,"ajax")},haveParents:function(t,i){if(!e.mobile.ignoreContentEnabled)return t;for(var n,o,a,r=t.length,s=e(),l=0;r>l;l++){for(o=t.eq(l),a=!1,n=t[l];n;){var c=n.getAttribute?n.getAttribute("data-"+e.mobile.ns+i):"";if("false"===c){a=!0;break}n=n.parentNode}a||(s=s.add(o))}return s},getScreenHeight:function(){return t.innerHeight||e(t).height()}},e.mobile),e.fn.jqmData=function(t,i){var n;return"undefined"!=typeof t&&(t&&(t=e.mobile.nsNormalize(t)),n=this.data.apply(this,arguments.length<2?[t]:[t,i])),n},e.jqmData=function(t,i,n){var o;return"undefined"!=typeof i&&(o=e.data(t,i?e.mobile.nsNormalize(i):i,n)),o},e.fn.jqmRemoveData=function(t){return this.removeData(e.mobile.nsNormalize(t))},e.jqmRemoveData=function(t,i){return e.removeData(t,e.mobile.nsNormalize(i))},e.fn.removeWithDependents=function(){e.removeWithDependents(this)},e.removeWithDependents=function(t){var i=e(t);(i.jqmData("dependents")||e()).remove(),i.remove()},e.fn.addDependents=function(t){e.addDependents(e(this),t)},e.addDependents=function(t,i){var n=e(t).jqmData("dependents")||e();e(t).jqmData("dependents",e.merge(n,i))},e.fn.getEncodedText=function(){return e("<div/>").text(e(this).text()).html()},e.fn.jqmEnhanceable=function(){return e.mobile.enhanceable(this)},e.fn.jqmHijackable=function(){return e.mobile.hijackable(this)};var o=e.find,a=/:jqmData\(([^)]*)\)/g;e.find=function(t,i,n,r){return t=t.replace(a,"[data-"+(e.mobile.ns||"")+"$1]"),o.call(this,t,i,n,r)},e.extend(e.find,o),e.find.matches=function(t,i){return e.find(t,null,null,i)},e.find.matchesSelector=function(t,i){return e.find(i,null,null,[t]).length>0}}(e,this),/*!
|
92
|
+
* jQuery UI Widget @VERSION
|
93
|
+
*
|
94
|
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
95
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
96
|
+
* http://jquery.org/license
|
97
|
+
*
|
98
|
+
* http://docs.jquery.com/UI/Widget
|
99
|
+
*/
|
100
|
+
function(t,i){var n=Array.prototype.slice,o=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(a){}o(e)},t.widget=function(e,i,n){var o,a,r,s,l=e.split(".")[0];e=e.split(".")[1],o=l+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][o]=function(e){return!!t.data(e,o)},t[l]=t[l]||{},a=t[l][e],r=t[l][e]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new r(e,t)},t.extend(r,a,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),s=new i,s.options=t.widget.extend({},s.options),t.each(n,function(e,o){t.isFunction(o)&&(n[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},n=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,a=this._superApply;return this._super=t,this._superApply=n,e=o.apply(this,arguments),this._super=i,this._superApply=a,e}}())}),r.prototype=t.widget.extend(s,{widgetEventPrefix:e},n,{constructor:r,namespace:l,widgetName:e,widgetBaseClass:o,widgetFullName:o}),a?(t.each(a._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete a._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r)},t.widget.extend=function(e){for(var o,a,r=n.call(arguments,1),s=0,l=r.length;l>s;s++)for(o in r[s])a=r[s][o],r[s].hasOwnProperty(o)&&a!==i&&(e[o]=t.isPlainObject(a)?t.widget.extend({},e[o],a):a);return e},t.widget.bridge=function(e,o){var a=o.prototype.widgetFullName;t.fn[e]=function(r){var s="string"==typeof r,l=n.call(arguments,1),c=this;return r=!s&&l.length?t.widget.extend.apply(null,[r].concat(l)):r,s?this.each(function(){var n=t.data(this,a);if(!n)return t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'");if(!t.isFunction(n[r])||"_"===r.charAt(0))return t.error("no such method '"+r+"' for "+e+" widget instance");var o=n[r].apply(n,l);return o!==n&&o!==i?(c=o&&o.jquery?c.pushStack(o.get()):o,!1):void 0}):this.each(function(){var e=t.data(this,a);e?e.option(r||{})._init():new o(r,this)}),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetName,this),t.data(i,this.widgetFullName,this),this._bind({remove:"destroy"}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind("."+this.widgetName).removeData(this.widgetName).removeData(this.widgetFullName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind("."+this.widgetName),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var o,a,r,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},o=e.split("."),e=o.shift(),o.length){for(a=s[e]=t.widget.extend({},this.options[e]),r=0;r<o.length-1;r++)a[o[r]]=a[o[r]]||{},a=a[o[r]];if(e=o.pop(),n===i)return a[e]===i?null:a[e];a[e]=n}else{if(n===i)return this.options[e]===i?null:this.options[e];s[e]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_bind:function(i,n){n?(i=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element);var o=this;t.each(n,function(n,a){function r(){return o.options.disabled===!0||t(this).hasClass("ui-state-disabled")?void 0:("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||e.guid++);var s=n.match(/^(\w+)\s*(.*)$/),l=s[1]+"."+o.widgetName,c=s[2];c?o.widget().delegate(c,l,r):i.bind(l,r)})},_delay:function(e,t){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._bind(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._bind(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var o,a,r=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(o in a)o in i||(i[o]=a[o]);return this.element.trigger(i,n),!(t.isFunction(r)&&r.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,o,a){"string"==typeof o&&(o={effect:o});var r,s=o?o===!0||"number"==typeof o?i:o.effect||i:e;o=o||{},"number"==typeof o&&(o={duration:o}),r=!t.isEmptyObject(o),o.complete=a,o.delay&&n.delay(o.delay),r&&t.effects&&(t.effects.effect[s]||t.uiBackCompat!==!1&&t.effects[s])?n[e](o):s!==e&&n[s]?n[s](o.duration,o.easing,a):n.queue(function(i){t(this)[e](),a&&a.call(n[0]),i()})}}),t.uiBackCompat!==!1&&(t.Widget.prototype._getCreateOptions=function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]})}(e),function(e,t){e.widget("mobile.widget",{_createWidget:function(){e.Widget.prototype._createWidget.apply(this,arguments),this._trigger("init")},_getCreateOptions:function(){var i=this.element,n={};return e.each(this.options,function(e){var o=i.jqmData(e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}));o!==t&&(n[e]=o)}),n},enhanceWithin:function(t,i){this.enhance(e(this.options.initSelector,e(t)),i)},enhance:function(t,i){var n,o,a=e(t);a=e.mobile.enhanceable(a),i&&a.length&&(n=e.mobile.closestPageData(a),o=n&&n.keepNativeSelector()||"",a=a.not(o)),a[this.widgetName]()},raise:function(e){throw"Widget ["+this.widgetName+"]: "+e}})}(e),function(e,t){e.extend(e.mobile,{loadingMessageTextVisible:n,loadingMessageTheme:n,loadingMessage:n,showPageLoadingMsg:function(t,i,n){e.mobile.loading("show",t,i,n)},hidePageLoadingMsg:function(){e.mobile.loading("hide")},loading:function(){this.loaderWidget.loader.apply(this.loaderWidget,arguments)}});var i="ui-loader",o=e("html"),a=e(t);e.widget("mobile.loader",{options:{theme:"a",textVisible:!1,html:"",text:"loading"},defaultHtml:"<div class='"+i+"'><span class='ui-icon ui-icon-loading'></span><h1></h1></div>",fakeFixLoader:function(){var t=e("."+e.mobile.activeBtnClass).first();this.element.css({top:e.support.scrollTop&&a.scrollTop()+a.height()/2||t.length&&t.offset().top||100})},checkLoaderPosition:function(){var t=this.element.offset(),i=a.scrollTop(),n=e.mobile.getScreenHeight();(t.top<i||t.top-i>n)&&(this.element.addClass("ui-loader-fakefix"),this.fakeFixLoader(),a.unbind("scroll",this.checkLoaderPosition).bind("scroll",this.fakeFixLoader))},resetHtml:function(){this.element.html(e(this.defaultHtml).html())},show:function(t,r,s){var l,c,u;this.resetHtml(),"object"===e.type(t)?(u=e.extend({},this.options,t),t=u.theme||e.mobile.loadingMessageTheme):(u=this.options,t=t||e.mobile.loadingMessageTheme||u.theme),c=r||e.mobile.loadingMessage||u.text,o.addClass("ui-loading"),(e.mobile.loadingMessage!==!1||u.html)&&(l=e.mobile.loadingMessageTextVisible!==n?e.mobile.loadingMessageTextVisible:u.textVisible,this.element.attr("class",i+" ui-corner-all ui-body-"+t+" ui-loader-"+(l||r||t.text?"verbose":"default")+(u.textonly||s?" ui-loader-textonly":"")),u.html?this.element.html(u.html):this.element.find("h1").text(c),this.element.appendTo(e.mobile.pageContainer),this.checkLoaderPosition(),a.bind("scroll",e.proxy(this.checkLoaderPosition,this)))},hide:function(){o.removeClass("ui-loading"),e.mobile.loadingMessage&&this.element.removeClass("ui-loader-fakefix"),e(t).unbind("scroll",e.proxy(this.fakeFixLoader,this)),e(t).unbind("scroll",e.proxy(this.checkLoaderPosition,this))}}),a.bind("pagecontainercreate",function(){e.mobile.loaderWidget=e.mobile.loaderWidget||e(e.mobile.loader.prototype.defaultHtml).loader()})}(e,this),function(e,t,i,n){function o(e){for(;e&&"undefined"!=typeof e.originalEvent;)e=e.originalEvent;return e}function a(t,i){var a,r,s,l,c,u,d,h,p,f=t.type;if(t=e.Event(t),t.type=i,a=t.originalEvent,r=e.event.props,f.search(/^(mouse|click)/)>-1&&(r=N),a)for(d=r.length,l;d;)l=r[--d],t[l]=a[l];if(f.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),-1!==f.search(/^touch/)&&(s=o(a),f=s.touches,c=s.changedTouches,u=f&&f.length?f[0]:c&&c.length?c[0]:n))for(h=0,p=S.length;p>h;h++)l=S[h],t[l]=u[l];return t}function r(t){for(var i,n,o={};t;){i=e.data(t,k);for(n in i)i[n]&&(o[n]=o.hasVirtualBinding=!0);t=t.parentNode}return o}function s(t,i){for(var n;t;){if(n=e.data(t,k),n&&(!i||n[i]))return t;t=t.parentNode}return null}function l(){R=!1}function c(){R=!0}function u(){z=0,B.length=0,O=!1,c()}function d(){l()}function h(){p(),P=setTimeout(function(){P=0,u()},e.vmouse.resetTimerDuration)}function p(){P&&(clearTimeout(P),P=0)}function f(t,i,n){var o;return(n&&n[t]||!n&&s(i.target,t))&&(o=a(i,t),e(i.target).trigger(o)),o}function m(t){var i=e.data(t.target,T);if(!(O||z&&z===i)){var n=f("v"+t.type,t);n&&(n.isDefaultPrevented()&&t.preventDefault(),n.isPropagationStopped()&&t.stopPropagation(),n.isImmediatePropagationStopped()&&t.stopImmediatePropagation())}}function g(t){var i,n,a=o(t).touches;if(a&&1===a.length&&(i=t.target,n=r(i),n.hasVirtualBinding)){z=F++,e.data(i,T,z),p(),d(),H=!1;var s=o(t).touches[0];M=s.pageX,I=s.pageY,f("vmouseover",t,n),f("vmousedown",t,n)}}function v(e){R||(H||f("vmousecancel",e,r(e.target)),H=!0,h())}function b(t){if(!R){var i=o(t).touches[0],n=H,a=e.vmouse.moveDistanceThreshold,s=r(t.target);H=H||Math.abs(i.pageX-M)>a||Math.abs(i.pageY-I)>a,H&&!n&&f("vmousecancel",t,s),f("vmousemove",t,s),h()}}function y(e){if(!R){c();var t,i=r(e.target);if(f("vmouseup",e,i),!H){var n=f("vclick",e,i);n&&n.isDefaultPrevented()&&(t=o(e).changedTouches[0],B.push({touchID:z,x:t.clientX,y:t.clientY}),O=!0)}f("vmouseout",e,i),H=!1,h()}}function _(t){var i,n=e.data(t,k);if(n)for(i in n)if(n[i])return!0;return!1}function w(){}function x(t){var i=t.substr(1);return{setup:function(){_(this)||e.data(this,k,{});var n=e.data(this,k);n[t]=!0,A[t]=(A[t]||0)+1,1===A[t]&&j.bind(i,m),e(this).bind(i,w),L&&(A.touchstart=(A.touchstart||0)+1,1===A.touchstart&&j.bind("touchstart",g).bind("touchend",y).bind("touchmove",b).bind("scroll",v))},teardown:function(){--A[t],A[t]||j.unbind(i,m),L&&(--A.touchstart,A.touchstart||j.unbind("touchstart",g).unbind("touchmove",b).unbind("touchend",y).unbind("scroll",v));var n=e(this),o=e.data(this,k);o&&(o[t]=!1),n.unbind(i,w),_(this)||n.removeData(k)}}}var C,k="virtualMouseBindings",T="virtualTouchID",D="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),S="clientX clientY pageX pageY screenX screenY".split(" "),E=e.event.mouseHooks?e.event.mouseHooks.props:[],N=e.event.props.concat(E),A={},P=0,M=0,I=0,H=!1,B=[],O=!1,R=!1,L="addEventListener"in i,j=e(i),F=1,z=0;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var $=0;$<D.length;$++)e.event.special[D[$]]=x(D[$]);L&&i.addEventListener("click",function(t){var i,n,o,a,r,s,l=B.length,c=t.target;if(l)for(i=t.clientX,n=t.clientY,C=e.vmouse.clickDistanceThreshold,o=c;o;){for(a=0;l>a;a++)if(r=B[a],s=0,o===c&&Math.abs(r.x-i)<C&&Math.abs(r.y-n)<C||e.data(o,T)===r.touchID)return t.preventDefault(),t.stopPropagation(),void 0;o=o.parentNode}},!0)}(e,t,i),function(e,t,n){function o(t,i,n){var o=n.type;n.type=i,e.event.handle.call(t,n),n.type=o}e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,i){e.fn[i]=function(e){return e?this.bind(i,e):this.trigger(i)},e.attrFn[i]=!0});var a="ontouchend"in i,r="touchmove scroll",s=a?"touchstart":"mousedown",l=a?"touchend":"mouseup",c=a?"touchmove":"mousemove";e.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){i=t,o(a,i?"scrollstart":"scrollstop",e)}var i,n,a=this,s=e(a);s.bind(r,function(o){e.event.special.scrollstart.enabled&&(i||t(o,!0),clearTimeout(n),n=setTimeout(function(){t(o,!1)},50))})}},e.event.special.tap={tapholdThreshold:750,setup:function(){var t=this,n=e(t);n.bind("vmousedown",function(a){function r(){clearTimeout(c)}function s(){r(),n.unbind("vclick",l).unbind("vmouseup",r),e(i).unbind("vmousecancel",s)}function l(e){s(),u===e.target&&o(t,"tap",e)}if(a.which&&1!==a.which)return!1;{var c,u=a.target;a.originalEvent}n.bind("vmouseup",r).bind("vclick",l),e(i).bind("vmousecancel",s),c=setTimeout(function(){o(t,"taphold",e.Event("taphold",{target:u}))},e.event.special.tap.tapholdThreshold)})}},e.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var t=this,i=e(t);i.bind(s,function(t){function o(t){if(s){var i=t.originalEvent.touches?t.originalEvent.touches[0]:t;a={time:(new Date).getTime(),coords:[i.pageX,i.pageY]},Math.abs(s.coords[0]-a.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()}}var a,r=t.originalEvent.touches?t.originalEvent.touches[0]:t,s={time:(new Date).getTime(),coords:[r.pageX,r.pageY],origin:e(t.target)};i.bind(c,o).one(l,function(){i.unbind(c,o),s&&a&&a.time-s.time<e.event.special.swipe.durationThreshold&&Math.abs(s.coords[0]-a.coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(s.coords[1]-a.coords[1])<e.event.special.swipe.verticalDistanceThreshold&&s.origin.trigger("swipe").trigger(s.coords[0]>a.coords[0]?"swipeleft":"swiperight"),s=a=n})})}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(t,i){e.event.special[t]={setup:function(){e(this).bind(i,e.noop)}}})}(e,this),function(e){e.extend(e.support,{orientation:"orientation"in t&&"onorientationchange"in t})}(e),function(e){e.event.special.throttledresize={setup:function(){e(this).bind("resize",a)},teardown:function(){e(this).unbind("resize",a)}};var t,i,n,o=250,a=function(){i=(new Date).getTime(),n=i-r,n>=o?(r=i,e(this).trigger("throttledresize")):(t&&clearTimeout(t),t=setTimeout(a,o-n))},r=0}(e),function(e,t){function n(){var e=o();e!==a&&(a=e,l.trigger(c))}var o,a,r,s,l=e(t),c="orientationchange",u={0:!0,180:!0};if(e.support.orientation){var d=t.innerWidth||e(t).width(),h=t.innerHeight||e(t).height(),p=50;r=d>h&&d-h>p,s=u[t.orientation],(r&&s||!r&&!s)&&(u={"-90":!0,90:!0})}e.event.special.orientationchange=e.extend({},e.event.special.orientationchange,{setup:function(){return e.support.orientation&&!e.event.special.orientationchange.disabled?!1:(a=o(),l.bind("throttledresize",n),void 0)},teardown:function(){return e.support.orientation&&!e.event.special.orientationchange.disabled?!1:(l.unbind("throttledresize",n),void 0)},add:function(e){var t=e.handler;e.handler=function(e){return e.orientation=o(),t.apply(this,arguments)}}}),e.event.special.orientationchange.orientation=o=function(){var n=!0,o=i.documentElement;return n=e.support.orientation?u[t.orientation]:o&&o.clientWidth/o.clientHeight<1.1,n?"portrait":"landscape"},e.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)},e.attrFn[c]=!0}(e,this),function(e){var n=(e(t),e("html"));e.mobile.media=function(){var t={},o=e("<div id='jquery-mediatest'></div>"),a=e("<body>").append(o);return function(e){if(!(e in t)){var r=i.createElement("style"),s="@media "+e+" { #jquery-mediatest { position:absolute; } }";r.type="text/css",r.styleSheet?r.styleSheet.cssText=s:r.appendChild(i.createTextNode(s)),n.prepend(a).prepend(r),t[e]="absolute"===o.css("position"),a.add(r).remove()}return t[e]}}()}(e),function(e,n){function o(e){var t=e.charAt(0).toUpperCase()+e.substr(1),i=(e+" "+d.join(t+" ")+t).split(" ");for(var o in i)if(u[i[o]]!==n)return!0}function a(e,t,n){for(var o,a=i.createElement("div"),r=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},s=function(e){return"-"+e.charAt(0).toLowerCase()+e.substr(1)+"-"},l=function(i){var n=s(i)+e+": "+t+";",l=r(i),c=l+r(e);a.setAttribute("style",n),a.style[c]&&(o=!0)},c=n?[n]:d,u=0;u<c.length;u++)l(c[u]);return!!o}function r(){var t="transform-3d";return a("perspective","10px","moz")||e.mobile.media("(-"+d.join("-"+t+"),(-")+"-"+t+"),("+t+")")}function s(){var t,i,n=location.protocol+"//"+location.host+location.pathname+"ui-dir/",o=e("head base"),a=null,r="";return o.length?r=o.attr("href"):o=a=e("<base>",{href:n}).appendTo("head"),t=e("<a href='testurl' />").prependTo(c),i=t[0].href,o[0].href=r||location.pathname,a&&a.remove(),0===i.indexOf(n)}function l(){var e,n=i.createElement("x"),o=i.documentElement,a=t.getComputedStyle;return"pointerEvents"in n.style?(n.style.pointerEvents="auto",n.style.pointerEvents="x",o.appendChild(n),e=a&&"auto"===a(n,"").pointerEvents,o.removeChild(n),!!e):!1}var c=e("<body>").prependTo("html"),u=c[0].style,d=["Webkit","Moz","O"],h="palmGetResource"in t,p=t.opera,f=t.operamini&&"[object OperaMini]"==={}.toString.call(t.operamini),m=t.blackberry;e.extend(e.mobile,{browser:{}}),e.mobile.browser.ie=function(){var e=3,t=i.createElement("div"),n=t.all||[];do t.innerHTML="<!--[if gt IE "+ ++e+"]><br><![endif]-->";while(n[0]);return e>4?e:!e}(),e.extend(e.support,{cssTransitions:"WebKitTransitionEvent"in t||a("transition","height 100ms linear")&&!p,pushState:"pushState"in history&&"replaceState"in history,mediaquery:e.mobile.media("only all"),cssPseudoElement:!!o("content"),touchOverflow:!!o("overflowScrolling"),cssTransform3d:r(),boxShadow:!!o("boxShadow")&&!m,scrollTop:("pageXOffset"in t||"scrollTop"in i.documentElement||"scrollTop"in c[0])&&!h&&!f,dynamicBaseTag:s(),cssPointerEvents:l()}),c.remove();var g=function(){var e=t.navigator.userAgent;return e.indexOf("Nokia")>-1&&(e.indexOf("Symbian/3")>-1||e.indexOf("Series60/5")>-1)&&e.indexOf("AppleWebKit")>-1&&e.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();e.mobile.gradeA=function(){return e.support.mediaquery||e.mobile.browser.ie&&e.mobile.browser.ie>=7},e.mobile.ajaxBlacklist=t.blackberry&&!t.WebKitPoint||f||g,g&&e(function(){e("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")}),e.support.boxShadow||e("html").addClass("ui-mobile-nosupport-boxshadow")}(e),function(e){e.widget("mobile.page",e.mobile.widget,{options:{theme:"c",domCache:!1,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){var e=this;return e._trigger("beforecreate")===!1?!1:(e.element.attr("tabindex","0").addClass("ui-page ui-body-"+e.options.theme).bind("pagebeforehide",function(){e.removeContainerBackground()}).bind("pagebeforeshow",function(){e.setContainerBackground()}),void 0)},removeContainerBackground:function(){e.mobile.pageContainer.removeClass("ui-overlay-"+e.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(t){this.options.theme&&e.mobile.pageContainer.addClass("ui-overlay-"+(t||this.options.theme))},keepNativeSelector:function(){var t=this.options,i=t.keepNative&&e.trim(t.keepNative);return i&&t.keepNative!==t.keepNativeDefault?[t.keepNative,t.keepNativeDefault].join(", "):t.keepNativeDefault}})}(e),// Copyright (c) 2010 "Cowboy" Ben Alman,
|
101
|
+
function(e,t,n){function o(e){return e=e||location.href,"#"+e.replace(/^[^#]*#?(.*)$/,"$1")}var a,r="hashchange",s=i,l=e.event.special,c=s.documentMode,u="on"+r in t&&(c===n||c>7);e.fn[r]=function(e){return e?this.bind(r,e):this.trigger(r)},e.fn[r].delay=50,l[r]=e.extend(l[r],{setup:function(){return u?!1:(e(a.start),void 0)},teardown:function(){return u?!1:(e(a.stop),void 0)}}),a=function(){function i(){var n=o(),s=p(c);n!==c?(h(c=n,s),e(t).trigger(r)):s!==c&&(location.href=location.href.replace(/#.*/,"")+s),a=setTimeout(i,e.fn[r].delay)}var a,l={},c=o(),d=function(e){return e},h=d,p=d;return l.start=function(){a||i()},l.stop=function(){a&&clearTimeout(a),a=n},e.browser.msie&&!u&&function(){var t,n;l.start=function(){t||(n=e.fn[r].src,n=n&&n+o(),t=e('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){n||h(o()),i()}).attr("src",n||"javascript:0").insertAfter("body")[0].contentWindow,s.onpropertychange=function(){try{"title"===event.propertyName&&(t.document.title=s.title)}catch(e){}})},l.stop=d,p=function(){return o(t.location.href)},h=function(i,n){var o=t.document,a=e.fn[r].domain;i!==n&&(o.title=s.title,o.open(),a&&o.write('<script>document.domain="'+a+'"</script>'),o.close(),t.location.hash=i)}}(),l}()}(e,this),function(e,t,i){var n=function(n){return n===i&&(n=!0),function(i,o,a,r){var s=new e.Deferred,l=o?" reverse":"",c=e.mobile.urlHistory.getActive(),u=c.lastScroll||e.mobile.defaultHomeScroll,d=e.mobile.getScreenHeight(),h=e.mobile.maxTransitionWidth!==!1&&e(t).width()>e.mobile.maxTransitionWidth,p=!e.support.cssTransitions||h||!i||"none"===i||Math.max(e(t).scrollTop(),u)>e.mobile.getMaxScrollForTransition(),f=" ui-page-pre-in",m=function(){e.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-"+i)},g=function(){e.event.special.scrollstart.enabled=!1,t.scrollTo(0,u),setTimeout(function(){e.event.special.scrollstart.enabled=!0},150)},v=function(){r.removeClass(e.mobile.activePageClass+" out in reverse "+i).height("")},b=function(){n?r.animationComplete(y):y(),r.height(d+e(t).scrollTop()).addClass(i+" out"+l)},y=function(){r&&n&&v(),_()},_=function(){a.css("z-index",-10),a.addClass(e.mobile.activePageClass+f),e.mobile.focusPage(a),a.height(d+u),g(),a.css("z-index",""),p||a.animationComplete(w),a.removeClass(f).addClass(i+" in"+l),p&&w()},w=function(){n||r&&v(),a.removeClass("out in reverse "+i).height(""),m(),e(t).scrollTop()!==u&&g(),s.resolve(i,o,a,r,!0)};return m(),r&&!p?b():y(),s.promise()}},o=n(),a=n(!1),r=function(){return 3*e.mobile.getScreenHeight()};e.mobile.defaultTransitionHandler=o,e.mobile.transitionHandlers={"default":e.mobile.defaultTransitionHandler,sequential:o,simultaneous:a},e.mobile.transitionFallbacks={},e.mobile._maybeDegradeTransition=function(t){return t&&!e.support.cssTransform3d&&e.mobile.transitionFallbacks[t]&&(t=e.mobile.transitionFallbacks[t]),t},e.mobile.getMaxScrollForTransition=e.mobile.getMaxScrollForTransition||r}(e,this),function(e,n){function o(t){!f||f.closest("."+e.mobile.activePageClass).length&&!t||f.removeClass(e.mobile.activeBtnClass),f=null}function a(){v=!1,g.length>0&&e.mobile.changePage.apply(null,g.pop())}function r(t,i,n,o){i&&i.data("page")._trigger("beforehide",null,{nextPage:t}),t.data("page")._trigger("beforeshow",null,{prevPage:i||e("")}),e.mobile.hidePageLoadingMsg(),n=e.mobile._maybeDegradeTransition(n);var a=e.mobile.transitionHandlers[n||"default"]||e.mobile.defaultTransitionHandler,r=a(n,o,t,i);return r.done(function(){i&&i.data("page")._trigger("hide",null,{nextPage:t}),t.data("page")._trigger("show",null,{prevPage:i||e("")})}),r}function s(){var t=e("."+e.mobile.activePageClass),i=parseFloat(t.css("padding-top")),n=parseFloat(t.css("padding-bottom")),o=parseFloat(t.css("border-top-width")),a=parseFloat(t.css("border-bottom-width"));t.css("min-height",C()-i-n-o-a)}function l(t,i){i&&t.attr("data-"+e.mobile.ns+"role",i),t.page()}function c(e){for(;e&&("string"!=typeof e.nodeName||"a"!==e.nodeName.toLowerCase());)e=e.parentNode;return e}function u(t){var i=e(t).closest(".ui-page").jqmData("url"),n=w.hrefNoHash;return i&&p.isPath(i)||(i=n),p.makeUrlAbsolute(i,n)}var d=e(t),h=(e("html"),e("head")),p={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(t){if("object"===e.type(t))return t;var i=p.urlParseRE.exec(t||"")||[];return{href:i[0]||"",hrefNoHash:i[1]||"",hrefNoSearch:i[2]||"",domain:i[3]||"",protocol:i[4]||"",doubleSlash:i[5]||"",authority:i[6]||"",username:i[8]||"",password:i[9]||"",host:i[10]||"",hostname:i[11]||"",port:i[12]||"",pathname:i[13]||"",directory:i[14]||"",filename:i[15]||"",search:i[16]||"",hash:i[17]||""}},makePathAbsolute:function(e,t){if(e&&"/"===e.charAt(0))return e;e=e||"",t=t?t.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";for(var i=t?t.split("/"):[],n=e.split("/"),o=0;o<n.length;o++){var a=n[o];switch(a){case".":break;case"..":i.length&&i.pop();break;default:i.push(a)}}return"/"+i.join("/")},isSameDomain:function(e,t){return p.parseUrl(e).domain===p.parseUrl(t).domain},isRelativeUrl:function(e){return""===p.parseUrl(e).protocol},isAbsoluteUrl:function(e){return""!==p.parseUrl(e).protocol},makeUrlAbsolute:function(e,t){if(!p.isRelativeUrl(e))return e;t===n&&(t=w);var i=p.parseUrl(e),o=p.parseUrl(t),a=i.protocol||o.protocol,r=i.protocol?i.doubleSlash:i.doubleSlash||o.doubleSlash,s=i.authority||o.authority,l=""!==i.pathname,c=p.makePathAbsolute(i.pathname||o.filename,o.pathname),u=i.search||!l&&o.search||"",d=i.hash;return a+r+s+c+u+d},addSearchParams:function(t,i){var n=p.parseUrl(t),o="object"==typeof i?e.param(i):i,a=n.search||"?";return n.hrefNoSearch+a+("?"!==a.charAt(a.length-1)?"&":"")+o+(n.hash||"")},convertUrlToDataUrl:function(e){var i=p.parseUrl(e);return p.isEmbeddedPage(i)?i.hash.split(b)[0].replace(/^#/,""):p.isSameDomain(i,w)?i.hrefNoHash.replace(w.domain,"").split(b)[0]:t.decodeURIComponent(e)},get:function(e){return e===n&&(e=location.hash),p.stripHash(e).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(t){var i="&"+e.mobile.subPageUrlKey;return t&&t.split(i)[0].split(b)[0]},set:function(e){location.hash=e},isPath:function(e){return/\//.test(e)},clean:function(e){return e.replace(w.domain,"")},stripHash:function(e){return e.replace(/^#/,"")},cleanHash:function(e){return p.stripHash(e.replace(/\?.*$/,"").replace(b,""))},isHashValid:function(e){return/^#[^#]+$/.test(e)},isExternal:function(e){var t=p.parseUrl(e);return t.protocol&&t.domain!==_.domain?!0:!1},hasProtocol:function(e){return/^(:?\w+:)/.test(e)},isFirstPageUrl:function(t){var i=p.parseUrl(p.makeUrlAbsolute(t,w)),o=i.hrefNoHash===_.hrefNoHash||x&&i.hrefNoHash===w.hrefNoHash,a=e.mobile.firstPage,r=a&&a[0]?a[0].id:n;return o&&(!i.hash||"#"===i.hash||r&&i.hash.replace(/^#/,"")===r)},isEmbeddedPage:function(e){var t=p.parseUrl(e);return""!==t.protocol?t.hash&&(t.hrefNoHash===_.hrefNoHash||x&&t.hrefNoHash===w.hrefNoHash):/^#/.test(t.href)},isPermittedCrossDomainRequest:function(t,i){return e.mobile.allowCrossDomainPages&&"file:"===t.protocol&&-1!==i.search(/^https?:/)}},f=null,m={stack:[],activeIndex:0,getActive:function(){return m.stack[m.activeIndex]},getPrev:function(){return m.stack[m.activeIndex-1]},getNext:function(){return m.stack[m.activeIndex+1]},addNew:function(e,t,i,n,o){m.getNext()&&m.clearForward(),m.stack.push({url:e,transition:t,title:i,pageUrl:n,role:o}),m.activeIndex=m.stack.length-1},clearForward:function(){m.stack=m.stack.slice(0,m.activeIndex+1)},directHashChange:function(t){{var i,o,a;this.getActive()}e.each(m.stack,function(e,n){decodeURIComponent(t.currentUrl)===decodeURIComponent(n.url)&&(i=e<m.activeIndex,o=!i,a=e)}),this.activeIndex=a!==n?a:this.activeIndex,i?(t.either||t.isBack)(!0):o&&(t.either||t.isForward)(!1)},ignoreNextHashChange:!1},g=[],v=!1,b="&ui-state=dialog",y=h.children("base"),_=p.parseUrl(location.href),w=y.length?p.parseUrl(p.makeUrlAbsolute(y.attr("href"),_.href)):_,x=_.hrefNoHash!==w.hrefNoHash,C=e.mobile.getScreenHeight,k=e.support.dynamicBaseTag?{element:y.length?y:e("<base>",{href:w.hrefNoHash}).prependTo(h),set:function(e){k.element.attr("href",p.makeUrlAbsolute(e,w))},reset:function(){k.element.attr("href",w.hrefNoHash)}}:n;e.mobile.focusPage=function(e){var t=e.find("[autofocus]"),i=e.find(".ui-title:eq(0)");return t.length?(t.focus(),void 0):(i.length?i.focus():e.focus(),void 0)};var T,D,S=!0;T=function(){if(S){var t=e.mobile.urlHistory.getActive();if(t){var i=d.scrollTop();t.lastScroll=i<e.mobile.minScrollBack?e.mobile.defaultHomeScroll:i}}},D=function(){setTimeout(T,100)},d.bind(e.support.pushState?"popstate":"hashchange",function(){S=!1}),d.one(e.support.pushState?"popstate":"hashchange",function(){S=!0}),d.one("pagecontainercreate",function(){e.mobile.pageContainer.bind("pagechange",function(){S=!0,d.unbind("scrollstop",D),d.bind("scrollstop",D)})}),d.bind("scrollstop",D),e.mobile._maybeDegradeTransition=e.mobile._maybeDegradeTransition||function(e){return e},e.fn.animationComplete=function(t){return e.support.cssTransitions?e(this).one("webkitAnimationEnd animationend",t):(setTimeout(t,0),e(this))},e.mobile.path=p,e.mobile.base=k,e.mobile.urlHistory=m,e.mobile.dialogHashKey=b,e.mobile.allowCrossDomainPages=!1,e.mobile.getDocumentUrl=function(t){return t?e.extend({},_):_.href},e.mobile.getDocumentBase=function(t){return t?e.extend({},w):w.href},e.mobile._bindPageRemove=function(){var t=e(this);!t.data("page").options.domCache&&t.is(":jqmData(external-page='true')")&&t.bind("pagehide.remove",function(){var t=e(this),i=new e.Event("pageremove");t.trigger(i),i.isDefaultPrevented()||t.removeWithDependents()})},e.mobile.loadPage=function(t,i){var o=e.Deferred(),a=e.extend({},e.mobile.loadPage.defaults,i),r=null,s=null,c=function(){var t=e.mobile.activePage&&u(e.mobile.activePage);return t||w.hrefNoHash},d=p.makeUrlAbsolute(t,c());a.data&&"get"===a.type&&(d=p.addSearchParams(d,a.data),a.data=n),a.data&&"post"===a.type&&(a.reloadPage=!0);var h=p.getFilePath(d),f=p.convertUrlToDataUrl(d);if(a.pageContainer=a.pageContainer||e.mobile.pageContainer,r=a.pageContainer.children(":jqmData(url='"+f+"')"),0===r.length&&f&&!p.isPath(f)&&(r=a.pageContainer.children("#"+f).attr("data-"+e.mobile.ns+"url",f).jqmData("url",f)),0===r.length)if(e.mobile.firstPage&&p.isFirstPageUrl(h))e.mobile.firstPage.parent().length&&(r=e(e.mobile.firstPage));else if(p.isEmbeddedPage(h))return o.reject(d,i),o.promise();if(k&&k.reset(),r.length){if(!a.reloadPage)return l(r,a.role),o.resolve(d,i,r),o.promise();s=r}var m=a.pageContainer,g=new e.Event("pagebeforeload"),v={url:t,absUrl:d,dataUrl:f,deferred:o,options:a};if(m.trigger(g,v),g.isDefaultPrevented())return o.promise();if(a.showLoadMsg)var b=setTimeout(function(){e.mobile.showPageLoadingMsg()},a.loadMsgDelay),y=function(){clearTimeout(b),e.mobile.hidePageLoadingMsg()};return e.mobile.allowCrossDomainPages||p.isSameDomain(_,d)?e.ajax({url:h,type:a.type,data:a.data,dataType:"html",success:function(n,c,u){var m=e("<div></div>"),g=n.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,b=new RegExp("(<[^>]+\\bdata-"+e.mobile.ns+"role=[\"']?page[\"']?[^>]*>)"),_=new RegExp("\\bdata-"+e.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");if(b.test(n)&&RegExp.$1&&_.test(RegExp.$1)&&RegExp.$1&&(t=h=p.getFilePath(e("<div>"+RegExp.$1+"</div>").text())),k&&k.set(h),m.get(0).innerHTML=n,r=m.find(":jqmData(role='page'), :jqmData(role='dialog')").first(),r.length||(r=e("<div data-"+e.mobile.ns+"role='page'>"+n.split(/<\/?body[^>]*>/gim)[1]+"</div>")),g&&!r.jqmData("title")&&(~g.indexOf("&")&&(g=e("<div>"+g+"</div>").text()),r.jqmData("title",g)),!e.support.dynamicBaseTag){var w=p.get(h);r.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var t=e(this).is("[href]")?"href":e(this).is("[src]")?"src":"action",i=e(this).attr(t);i=i.replace(location.protocol+"//"+location.host+location.pathname,""),/^(\w+:|#|\/)/.test(i)||e(this).attr(t,w+i)})}r.attr("data-"+e.mobile.ns+"url",p.convertUrlToDataUrl(h)).attr("data-"+e.mobile.ns+"external-page",!0).appendTo(a.pageContainer),r.one("pagecreate",e.mobile._bindPageRemove),l(r,a.role),d.indexOf("&"+e.mobile.subPageUrlKey)>-1&&(r=a.pageContainer.children(":jqmData(url='"+f+"')")),a.showLoadMsg&&y(),v.xhr=u,v.textStatus=c,v.page=r,a.pageContainer.trigger("pageload",v),o.resolve(d,i,r,s)},error:function(t,n,r){k&&k.set(p.get()),v.xhr=t,v.textStatus=n,v.errorThrown=r;var s=new e.Event("pageloadfailed");a.pageContainer.trigger(s,v),s.isDefaultPrevented()||(a.showLoadMsg&&(y(),e.mobile.showPageLoadingMsg(e.mobile.pageLoadErrorMessageTheme,e.mobile.pageLoadErrorMessage,!0),setTimeout(e.mobile.hidePageLoadingMsg,1500)),o.reject(d,i))}}):o.reject(d,i),o.promise()},e.mobile.loadPage.defaults={type:"get",data:n,reloadPage:!1,role:n,showLoadMsg:!1,pageContainer:n,loadMsgDelay:50},e.mobile.changePage=function(t,s){if(v)return g.unshift(arguments),void 0;var c=e.extend({},e.mobile.changePage.defaults,s);c.pageContainer=c.pageContainer||e.mobile.pageContainer,c.fromPage=c.fromPage||e.mobile.activePage;var u=c.pageContainer,d=new e.Event("pagebeforechange"),h={toPage:t,options:c};if(u.trigger(d,h),!d.isDefaultPrevented()){if(t=h.toPage,v=!0,"string"==typeof t)return e.mobile.loadPage(t,c).done(function(t,i,n,o){v=!1,i.duplicateCachedPage=o,e.mobile.changePage(n,i)}).fail(function(){v=!1,o(!0),a(),c.pageContainer.trigger("pagechangefailed",h)}),void 0;t[0]!==e.mobile.firstPage[0]||c.dataUrl||(c.dataUrl=_.hrefNoHash);var f=c.fromPage,y=c.dataUrl&&p.convertUrlToDataUrl(c.dataUrl)||t.jqmData("url"),w=y,x=(p.getFilePath(y),m.getActive()),C=0===m.activeIndex,k=0,T=i.title,D="dialog"===c.role||"dialog"===t.jqmData("role");if(f&&f[0]===t[0]&&!c.allowSamePageTransition)return v=!1,u.trigger("pagechange",h),c.fromHashChange&&m.directHashChange({currentUrl:y,isBack:function(){},isForward:function(){}}),void 0;l(t,c.role),c.fromHashChange&&m.directHashChange({currentUrl:y,isBack:function(){k=-1},isForward:function(){k=1}});try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()?e(i.activeElement).blur():e("input:focus, textarea:focus, select:focus").blur()}catch(S){}var E=!1;D&&x&&(x.url.indexOf(b)>-1&&!e.mobile.activePage.is(".ui-dialog")&&(c.changeHash=!1,E=!0),y=(x.url||"")+b,0===m.activeIndex&&y===m.initialDst&&(y+=b)),c.changeHash!==!1&&y&&(m.ignoreNextHashChange=!0,p.set(y));var N=x?t.jqmData("title")||t.children(":jqmData(role='header')").find(".ui-title").getEncodedText():T;N&&T===i.title&&(T=N),t.jqmData("title")||t.jqmData("title",T),c.transition=c.transition||(k&&!C?x.transition:n)||(D?e.mobile.defaultDialogTransition:e.mobile.defaultPageTransition),k||E||m.addNew(y,c.transition,T,w,c.role),i.title=m.getActive().title,e.mobile.activePage=t,c.reverse=c.reverse||0>k,r(t,f,c.transition,c.reverse).done(function(i,n,r,s,l){o(),c.duplicateCachedPage&&c.duplicateCachedPage.remove(),l||e.mobile.focusPage(t),a(),u.trigger("pagechange",h)})}},e.mobile.changePage.defaults={transition:n,reverse:!1,changeHash:!0,fromHashChange:!1,role:n,duplicateCachedPage:n,pageContainer:n,showLoadMsg:!0,dataUrl:n,fromPage:n,allowSamePageTransition:!1},e.mobile.navreadyDeferred=e.Deferred(),e.mobile.navreadyDeferred.done(function(){e(i).delegate("form","submit",function(t){var i=e(this);if(e.mobile.ajaxEnabled&&!i.is(":jqmData(ajax='false')")&&i.jqmHijackable().length){var n=i.attr("method"),o=i.attr("target"),a=i.attr("action");a||(a=u(i),a===w.hrefNoHash&&(a=_.hrefNoSearch)),a=p.makeUrlAbsolute(a,u(i)),p.isExternal(a)&&!p.isPermittedCrossDomainRequest(_,a)||o||(e.mobile.changePage(a,{type:n&&n.length&&n.toLowerCase()||"get",data:i.serialize(),transition:i.jqmData("transition"),reverse:"reverse"===i.jqmData("direction"),reloadPage:!0}),t.preventDefault())}}),e(i).bind("vclick",function(t){if(!(t.which>1)&&e.mobile.linkBindingEnabled){var i=c(t.target);e(i).jqmHijackable().length&&i&&"#"!==p.parseUrl(i.getAttribute("href")||"#").hash&&(o(!0),f=e(i).closest(".ui-btn").not(".ui-disabled"),f.addClass(e.mobile.activeBtnClass))}}),e(i).bind("click",function(i){if(e.mobile.linkBindingEnabled){var a,r=c(i.target),s=e(r);if(r&&!(i.which>1)&&s.jqmHijackable().length){if(a=function(){t.setTimeout(function(){o(!0)},200)},s.is(":jqmData(rel='back')"))return t.history.back(),!1;var l=u(s),d=p.makeUrlAbsolute(s.attr("href")||"#",l);if(!e.mobile.ajaxEnabled&&!p.isEmbeddedPage(d))return a(),void 0;if(-1!==d.search("#")){if(d=d.replace(/[^#]*#/,""),!d)return i.preventDefault(),void 0;d=p.isPath(d)?p.makeUrlAbsolute(d,l):p.makeUrlAbsolute("#"+d,_.hrefNoHash)}var h=s.is("[rel='external']")||s.is(":jqmData(ajax='false')")||s.is("[target]"),f=h||p.isExternal(d)&&!p.isPermittedCrossDomainRequest(_,d);if(f)return a(),void 0;var m=s.jqmData("transition"),g="reverse"===s.jqmData("direction")||s.jqmData("back"),v=s.attr("data-"+e.mobile.ns+"rel")||n;e.mobile.changePage(d,{transition:m,reverse:g,role:v,link:s}),i.preventDefault()}}}),e(i).delegate(".ui-page","pageshow.prefetch",function(){var t=[];e(this).find("a:jqmData(prefetch)").each(function(){var i=e(this),n=i.attr("href");n&&-1===e.inArray(n,t)&&(t.push(n),e.mobile.loadPage(n,{role:i.attr("data-"+e.mobile.ns+"rel")}))})}),e.mobile._handleHashChange=function(i){var o=p.stripHash(i),a=0===e.mobile.urlHistory.stack.length?"none":n,r=new e.Event("navigate"),s={transition:a,changeHash:!1,fromHashChange:!0};if(0===m.stack.length&&(m.initialDst=o),e.mobile.pageContainer.trigger(r),!r.isDefaultPrevented()){if(!e.mobile.hashListeningEnabled||m.ignoreNextHashChange)return m.ignoreNextHashChange=!1,void 0;if(m.stack.length>1&&o.indexOf(b)>-1&&m.initialDst!==o){if(!e.mobile.activePage.is(".ui-dialog"))return m.directHashChange({currentUrl:o,isBack:function(){t.history.back()},isForward:function(){t.history.forward()}}),void 0;m.directHashChange({currentUrl:o,either:function(t){var i=e.mobile.urlHistory.getActive();o=i.pageUrl,e.extend(s,{role:i.role,transition:i.transition,reverse:t})}})}o?(o="string"!=typeof o||p.isPath(o)?o:p.makeUrlAbsolute("#"+o,w),e.mobile.changePage(o,s)):e.mobile.changePage(e.mobile.firstPage,s)}},d.bind("hashchange",function(){e.mobile._handleHashChange(location.hash)}),e(i).bind("pageshow",s),e(t).bind("throttledresize",s)})}(e),function(e,t){var o={},a=o,r=e(t),s=e.mobile.path.parseUrl(location.href),l=e.Deferred(),c=e.Deferred();e(i).ready(e.proxy(c,"resolve")),e(i).one("mobileinit",e.proxy(l,"resolve")),e.extend(o,{initialFilePath:function(){return s.pathname+s.search}(),hashChangeTimeout:200,hashChangeEnableTimer:n,initialHref:s.hrefNoHash,state:function(){return{hash:location.hash||"#"+a.initialFilePath,title:i.title,initialHref:a.initialHref}},resetUIKeys:function(t){var i=e.mobile.dialogHashKey,n="&"+e.mobile.subPageUrlKey,o=t.indexOf(i);return o>-1?t=t.slice(0,o)+"#"+t.slice(o):t.indexOf(n)>-1&&(t=t.split(n).join("#"+n)),t},nextHashChangePrevented:function(t){e.mobile.urlHistory.ignoreNextHashChange=t,a.onHashChangeDisabled=t},onHashChange:function(){if(!a.onHashChangeDisabled){var t,n,o=location.hash,r=e.mobile.path.isPath(o),s=r?location.href:e.mobile.getDocumentUrl();o=r?o.replace("#",""):o,n=a.state(),t=e.mobile.path.makeUrlAbsolute(o,s),r&&(t=a.resetUIKeys(t)),history.replaceState(n,i.title,t)}},onPopState:function(t){var i=t.originalEvent.state;i&&(clearTimeout(a.hashChangeEnableTimer),a.nextHashChangePrevented(!1),e.mobile._handleHashChange(i.hash),a.nextHashChangePrevented(!0),a.hashChangeEnableTimer=setTimeout(function(){a.nextHashChangePrevented(!1)},a.hashChangeTimeout))},init:function(){r.bind("hashchange",a.onHashChange),r.bind("popstate",a.onPopState),""===location.hash&&history.replaceState(a.state(),i.title,location.href)}}),e.when(c,l,e.mobile.navreadyDeferred).done(function(){e.mobile.pushStateEnabled&&e.support.pushState&&o.init()})}(e,this),function(e){e.mobile.transitionFallbacks.flip="fade"}(e,this),function(e){e.mobile.transitionFallbacks.flow="fade"}(e,this),function(e){e.mobile.transitionFallbacks.pop="fade"}(e,this),function(e){e.mobile.transitionHandlers.slide=e.mobile.transitionHandlers.simultaneous,e.mobile.transitionFallbacks.slide="fade"}(e,this),function(e){e.mobile.transitionFallbacks.slidedown="fade"}(e,this),function(e){e.mobile.transitionFallbacks.slidefade="fade"}(e,this),function(e){e.mobile.transitionFallbacks.slideup="fade"}(e,this),function(e){e.mobile.transitionFallbacks.turn="fade"}(e,this),function(e){e.mobile.page.prototype.options.degradeInputs={color:!1,date:!1,datetime:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:"number",search:"text",tel:!1,time:!1,url:!1,week:!1},e(i).bind("pagecreate create",function(t){var i,n=e.mobile.closestPageData(e(t.target));n&&(i=n.options,e(t.target).find("input").not(n.keepNativeSelector()).each(function(){var t=e(this),n=this.getAttribute("type"),o=i.degradeInputs[n]||"text";if(i.degradeInputs[n]){var a=e("<div>").html(t.clone()).html(),r=a.indexOf(" type=")>-1,s=r?/\s+type=["']?\w+['"]?/:/\/?>/,l=' type="'+o+'" data-'+e.mobile.ns+'type="'+n+'"'+(r?"":">");t.replaceWith(a.replace(s,l))}}))})}(e),function(e,t){e.widget("mobile.dialog",e.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var t=this,i=this.element,n=e("<a href='#' data-"+e.mobile.ns+"icon='delete' data-"+e.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>"),o=e("<div/>",{role:"dialog","class":"ui-dialog-contain ui-corner-all ui-overlay-shadow"});i.addClass("ui-dialog ui-overlay-"+this.options.overlayTheme),i.wrapInner(o).children().find(":jqmData(role='header')").prepend(n).end().children(":first-child").addClass("ui-corner-top").end().children(":last-child").addClass("ui-corner-bottom"),n.bind("click",function(){t.close()}),i.bind("vclick submit",function(t){var i,n=e(t.target).closest("vclick"===t.type?"a":"form");n.length&&!n.jqmData("transition")&&(i=e.mobile.urlHistory.getActive()||{},n.attr("data-"+e.mobile.ns+"transition",i.transition||e.mobile.defaultDialogTransition).attr("data-"+e.mobile.ns+"direction","reverse"))}).bind("pagehide",function(){t._isClosed=!1,e(this).find("."+e.mobile.activeBtnClass).not(".ui-slider-bg").removeClass(e.mobile.activeBtnClass)}).bind("pagebeforeshow",function(){t.options.overlayTheme&&t.element.page("removeContainerBackground").page("setContainerBackground",t.options.overlayTheme)})},close:function(){var i;this._isClosed||(this._isClosed=!0,e.mobile.hashListeningEnabled?t.history.back():(i=e.mobile.urlHistory.getPrev().url,e.mobile.path.isPath(i)||(i=e.mobile.path.makeUrlAbsolute("#"+i)),e.mobile.changePage(i,{changeHash:!1,fromHashChange:!0})))}}),e(i).delegate(e.mobile.dialog.prototype.options.initSelector,"pagecreate",function(){e.mobile.dialog.prototype.enhance(this)})}(e,this),function(e){e.mobile.page.prototype.options.backBtnText="Back",e.mobile.page.prototype.options.addBackBtn=!1,e.mobile.page.prototype.options.backBtnTheme=null,e.mobile.page.prototype.options.headerTheme="a",e.mobile.page.prototype.options.footerTheme="a",e.mobile.page.prototype.options.contentTheme=null,e(i).bind("pagecreate",function(t){var i=e(t.target),n=i.data("page").options,o=i.jqmData("role"),a=n.theme;e(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",i).jqmEnhanceable().each(function(){var t,r,s,l,c=e(this),u=c.jqmData("role"),d=c.jqmData("theme"),h=d||n.contentTheme||"dialog"===o&&a;if(c.addClass("ui-"+u),"header"===u||"footer"===u){var p=d||("header"===u?n.headerTheme:n.footerTheme)||a;c.addClass("ui-bar-"+p).attr("role","header"===u?"banner":"contentinfo"),"header"===u&&(t=c.children("a, button"),r=t.hasClass("ui-btn-left"),s=t.hasClass("ui-btn-right"),r=r||t.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length,s=s||t.eq(1).addClass("ui-btn-right").length),n.addBackBtn&&"header"===u&&e(".ui-page").length>1&&i.jqmData("url")!==e.mobile.path.stripHash(location.hash)&&!r&&(l=e("<a href='javascript:void(0);' class='ui-btn-left' data-"+e.mobile.ns+"rel='back' data-"+e.mobile.ns+"icon='arrow-l'>"+n.backBtnText+"</a>").attr("data-"+e.mobile.ns+"theme",n.backBtnTheme||p).prependTo(c)),c.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({role:"heading","aria-level":"1"})}else"content"===u&&(h&&c.addClass("ui-body-"+h),c.attr("role","main"))})})}(e),function(e){e.fn.fieldcontain=function(){return this.addClass("ui-field-contain ui-body ui-br").contents().filter(function(){return 3===this.nodeType&&!/\S/.test(this.nodeValue)}).remove()},e(i).bind("pagecreate create",function(t){e(":jqmData(role='fieldcontain')",t.target).jqmEnhanceable().fieldcontain()})}(e),function(e){e.fn.grid=function(t){return this.each(function(){var i,n=e(this),o=e.extend({grid:null},t),a=n.children(),r={solo:1,a:2,b:3,c:4,d:5},s=o.grid;if(!s)if(a.length<=5)for(var l in r)r[l]===a.length&&(s=l);else s="a",n.addClass("ui-grid-duo");i=r[s],n.addClass("ui-grid-"+s),a.filter(":nth-child("+i+"n+1)").addClass("ui-block-a"),i>1&&a.filter(":nth-child("+i+"n+2)").addClass("ui-block-b"),i>2&&a.filter(":nth-child(3n+3)").addClass("ui-block-c"),i>3&&a.filter(":nth-child(4n+4)").addClass("ui-block-d"),i>4&&a.filter(":nth-child(5n+5)").addClass("ui-block-e")})}}(e),function(e){e(i).bind("pagecreate create",function(t){e(":jqmData(role='nojs')",t.target).addClass("ui-nojs")})}(e),function(e,t){function n(e){for(var t;e&&(t="string"==typeof e.className&&e.className+" ",!(t&&t.indexOf("ui-btn ")>-1&&t.indexOf("ui-disabled ")<0));)e=e.parentNode;return e}e.fn.buttonMarkup=function(n){var a=this,r=function(t,i){m.setAttribute("data-"+e.mobile.ns+t,i),f.jqmData(t,i)};n=n&&"object"===e.type(n)?n:{};for(var s=0;s<a.length;s++){var l,c,u,d,h,p,f=a.eq(s),m=f[0],g=e.extend({},e.fn.buttonMarkup.defaults,{icon:n.icon!==t?n.icon:f.jqmData("icon"),iconpos:n.iconpos!==t?n.iconpos:f.jqmData("iconpos"),theme:n.theme!==t?n.theme:f.jqmData("theme")||e.mobile.getInheritedTheme(f,"c"),inline:n.inline!==t?n.inline:f.jqmData("inline"),shadow:n.shadow!==t?n.shadow:f.jqmData("shadow"),corners:n.corners!==t?n.corners:f.jqmData("corners"),iconshadow:n.iconshadow!==t?n.iconshadow:f.jqmData("iconshadow"),mini:n.mini!==t?n.mini:f.jqmData("mini")},n),v="ui-btn-inner",b="ui-btn-text";for(e.each(g,r),"popup"===f.jqmData("rel")&&f.attr("href")&&(m.setAttribute("aria-haspopup",!0),m.setAttribute("aria-owns",m.getAttribute("href"))),p=e.data("INPUT"===m.tagName||"BUTTON"===m.tagName?m.parentNode:m,"buttonElements"),p?(m=p.outer,f=e(m),u=p.inner,d=p.text,e(p.icon).remove(),p.icon=null):(u=i.createElement(g.wrapperEls),d=i.createElement(g.wrapperEls)),h=g.icon?i.createElement("span"):null,o&&!p&&o(),g.theme||(g.theme=e.mobile.getInheritedTheme(f,"c")),l="ui-btn ui-btn-up-"+g.theme,l+=g.shadow?" ui-shadow":"",l+=g.corners?" ui-btn-corner-all":"",g.mini!==t&&(l+=g.mini===!0?" ui-mini":" ui-fullsize"),g.inline!==t&&(l+=g.inline===!0?" ui-btn-inline":" ui-btn-block"),g.icon&&(g.icon="ui-icon-"+g.icon,g.iconpos=g.iconpos||"left",c="ui-icon "+g.icon,g.iconshadow&&(c+=" ui-icon-shadow")),g.iconpos&&(l+=" ui-btn-icon-"+g.iconpos,"notext"!==g.iconpos||f.attr("title")||f.attr("title",f.getEncodedText())),v+=g.corners?" ui-btn-corner-all":"",g.iconpos&&"notext"===g.iconpos&&!f.attr("title")&&f.attr("title",f.getEncodedText()),p&&f.removeClass(p.bcls||""),f.removeClass("ui-link").addClass(l),u.className=v,d.className=b,p||u.appendChild(d),h&&(h.className=c,p&&p.icon||(h.appendChild(i.createTextNode(" ")),u.appendChild(h)));m.firstChild&&!p;)d.appendChild(m.firstChild);p||m.appendChild(u),p={bcls:l,outer:m,inner:u,text:d,icon:h},e.data(m,"buttonElements",p),e.data(u,"buttonElements",p),e.data(d,"buttonElements",p),h&&e.data(h,"buttonElements",p)}return this},e.fn.buttonMarkup.defaults={corners:!0,shadow:!0,iconshadow:!0,wrapperEls:"span"};var o=function(){var t,a,r=e.mobile.buttonMarkup.hoverDelay;e(i).bind({"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart":function(i){var o,s=e(n(i.target)),l=i.originalEvent&&/^touch/.test(i.originalEvent.type),c=i.type;s.length&&(o=s.attr("data-"+e.mobile.ns+"theme"),"vmousedown"===c?l?t=setTimeout(function(){s.removeClass("ui-btn-up-"+o).addClass("ui-btn-down-"+o)},r):s.removeClass("ui-btn-up-"+o).addClass("ui-btn-down-"+o):"vmousecancel"===c||"vmouseup"===c?s.removeClass("ui-btn-down-"+o).addClass("ui-btn-up-"+o):"vmouseover"===c||"focus"===c?l?a=setTimeout(function(){s.removeClass("ui-btn-up-"+o).addClass("ui-btn-hover-"+o)},r):s.removeClass("ui-btn-up-"+o).addClass("ui-btn-hover-"+o):("vmouseout"===c||"blur"===c||"scrollstart"===c)&&(s.removeClass("ui-btn-hover-"+o+" ui-btn-down-"+o).addClass("ui-btn-up-"+o),t&&clearTimeout(t),a&&clearTimeout(a)))},"focusin focus":function(t){e(n(t.target)).addClass(e.mobile.focusClass)},"focusout blur":function(t){e(n(t.target)).removeClass(e.mobile.focusClass)}}),o=null};e(i).bind("pagecreate create",function(t){e(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",t.target).jqmEnhanceable().not("button, input, .ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})}(e),function(e){e.widget("mobile.collapsible",e.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:!0,heading:"h1,h2,h3,h4,h5,h6,legend",theme:null,contentTheme:null,mini:!1,initSelector:":jqmData(role='collapsible')"},_create:function(){var t=this.element,i=this.options,n=t.addClass("ui-collapsible"),o=t.children(i.heading).first(),a=t.jqmData("collapsed-icon")||i.collapsedIcon,r=t.jqmData("expanded-icon")||i.expandedIcon,s=n.wrapInner("<div class='ui-collapsible-content'></div>").children(".ui-collapsible-content"),l=t.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set");o.is("legend")&&(o=e("<div role='heading'>"+o.html()+"</div>").insertBefore(o),o.next().remove()),l.length&&(i.theme||(i.theme=l.jqmData("theme")||e.mobile.getInheritedTheme(l,"c")),i.contentTheme||(i.contentTheme=l.jqmData("content-theme")),i.collapsedIcon||(i.collapsedIcon=l.jqmData("collapsed-icon")),i.expandedIcon||(i.expandedIcon=l.jqmData("expanded-icon")),i.iconPos||(i.iconPos=l.jqmData("iconpos")),i.mini||(i.mini=l.jqmData("mini"))),s.addClass(i.contentTheme?"ui-body-"+i.contentTheme:""),a=t.jqmData("collapsed-icon")||i.collapsedIcon||"plus",r=t.jqmData("expanded-icon")||i.expandedIcon||"minus",o.insertBefore(s).addClass("ui-collapsible-heading").append("<span class='ui-collapsible-heading-status'></span>").wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().buttonMarkup({shadow:!1,corners:!1,iconpos:t.jqmData("iconpos")||i.iconPos||"left",icon:a,mini:i.mini,theme:i.theme}).add(".ui-btn-inner",t).addClass("ui-corner-top ui-corner-bottom"),n.bind("expand collapse",function(t){if(!t.isDefaultPrevented()){var c=e(this),u="collapse"===t.type,d=i.contentTheme;t.preventDefault(),o.toggleClass("ui-collapsible-heading-collapsed",u).find(".ui-collapsible-heading-status").text(u?i.expandCueText:i.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-"+r,!u).toggleClass("ui-icon-"+a,u).end().find("a").first().removeClass(e.mobile.activeBtnClass),c.toggleClass("ui-collapsible-collapsed",u),s.toggleClass("ui-collapsible-content-collapsed",u).attr("aria-hidden",u),!d||l.length&&!n.jqmData("collapsible-last")||(o.find("a").first().add(o.find(".ui-btn-inner")).toggleClass("ui-corner-bottom",u),s.toggleClass("ui-corner-bottom",!u)),s.trigger("updatelayout")}}).trigger(i.collapsed?"collapse":"expand"),o.bind("tap",function(){o.find("a").first().addClass(e.mobile.activeBtnClass)}).bind("click",function(e){var t=o.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";n.trigger(t),e.preventDefault(),e.stopPropagation()})}}),e(i).bind("pagecreate create",function(t){e.mobile.collapsible.prototype.enhanceWithin(t.target)})}(e),function(e,t){e.widget("mobile.collapsibleset",e.mobile.widget,{options:{initSelector:":jqmData(role='collapsible-set')"},_create:function(){var i=this.element.addClass("ui-collapsible-set"),n=this.options;n.theme||(n.theme=e.mobile.getInheritedTheme(i,"c")),n.contentTheme||(n.contentTheme=i.jqmData("content-theme")),n.corners||(n.corners=i.jqmData("corners")===t?!0:!1),i.jqmData("collapsiblebound")||i.jqmData("collapsiblebound",!0).bind("expand collapse",function(t){var i="collapse"===t.type,n=e(t.target).closest(".ui-collapsible"),o=n.data("collapsible");n.jqmData("collapsible-last")&&(n.find(o.options.heading).first().find("a").first().toggleClass("ui-corner-bottom",i).find(".ui-btn-inner").toggleClass("ui-corner-bottom",i),n.find(".ui-collapsible-content").toggleClass("ui-corner-bottom",!i))}).bind("expand",function(t){var i=e(t.target).closest(".ui-collapsible");i.parent().is(":jqmData(role='collapsible-set')")&&i.siblings(".ui-collapsible").trigger("collapse")
|
102
|
+
})},_init:function(){var e=this.element,t=e.children(":jqmData(role='collapsible')"),i=t.filter(":jqmData(collapsed='false')");this.refresh(),i.trigger("expand")},refresh:function(){var t=this.element,i=this.options,n=t.children(":jqmData(role='collapsible')");e.mobile.collapsible.prototype.enhance(n.not(".ui-collapsible")),n.each(function(){e(this).jqmRemoveData("collapsible-last").find(e.mobile.collapsible.prototype.options.heading).find("a").first().removeClass("ui-corner-top ui-corner-bottom").find(".ui-btn-inner").removeClass("ui-corner-top ui-corner-bottom")}),n.first().find("a").first().addClass(i.corners?"ui-corner-top":"").find(".ui-btn-inner").addClass("ui-corner-top"),n.last().jqmData("collapsible-last",!0).find("a").first().addClass(i.corners?"ui-corner-bottom":"").find(".ui-btn-inner").addClass("ui-corner-bottom")}}),e(i).bind("pagecreate create",function(t){e.mobile.collapsibleset.prototype.enhanceWithin(t.target)})}(e),function(e,t){e.widget("mobile.navbar",e.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},_create:function(){var i=this.element,n=i.find("a"),o=n.filter(":jqmData(icon)").length?this.options.iconpos:t;i.addClass("ui-navbar ui-mini").attr("role","navigation").find("ul").jqmEnhanceable().grid({grid:this.options.grid}),n.buttonMarkup({corners:!1,shadow:!1,inline:!0,iconpos:o}),i.delegate("a","vclick",function(t){e(t.target).hasClass("ui-disabled")||(n.removeClass(e.mobile.activeBtnClass),e(this).addClass(e.mobile.activeBtnClass))}),i.closest(".ui-page").bind("pagebeforeshow",function(){n.filter(".ui-state-persist").addClass(e.mobile.activeBtnClass)})}}),e(i).bind("pagecreate create",function(t){e.mobile.navbar.prototype.enhanceWithin(t.target)})}(e),function(e){var t={};e.widget("mobile.listview",e.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:!1,initSelector:":jqmData(role='listview')"},_create:function(){var e=this,t="";t+=e.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"",e.element.addClass(function(e,i){return i+" ui-listview "+t}),e.refresh(!0)},_removeCorners:function(e,t){var i="ui-corner-top ui-corner-tr ui-corner-tl",n="ui-corner-bottom ui-corner-br ui-corner-bl";e=e.add(e.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")),"top"===t?e.removeClass(i):"bottom"===t?e.removeClass(n):e.removeClass(i+" "+n)},_refreshCorners:function(e){var t,i,n,o;t=this.element.children("li"),i=e||0===t.filter(":visible").length?t.not(".ui-screen-hidden"):t.filter(":visible"),t.filter(".ui-li-last").removeClass("ui-li-last"),this.options.inset?(this._removeCorners(t),n=i.first().addClass("ui-corner-top"),n.add(n.find(".ui-btn-inner").not(".ui-li-link-alt span:first-child")).addClass("ui-corner-top").end().find(".ui-li-link-alt, .ui-li-link-alt span:first-child").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl"),o=i.last().addClass("ui-corner-bottom ui-li-last"),o.add(o.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl")):i.last().addClass("ui-li-last"),e||this.element.trigger("updatelayout")},_findFirstElementByTagName:function(e,t,i,n){var o={};for(o[i]=o[n]=!0;e;){if(o[e.nodeName])return e;e=e[t]}return null},_getChildrenByTagName:function(t,i,n){var o=[],a={};for(a[i]=a[n]=!0,t=t.firstChild;t;)a[t.nodeName]&&o.push(t),t=t.nextSibling;return e(o)},_addThumbClasses:function(t){var i,n,o=t.length;for(i=0;o>i;i++)n=e(this._findFirstElementByTagName(t[i].firstChild,"nextSibling","img","IMG")),n.length&&(n.addClass("ui-li-thumb"),e(this._findFirstElementByTagName(n[0].parentNode,"parentNode","li","LI")).addClass(n.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb"))},refresh:function(t){this.parentPage=this.element.closest(".ui-page"),this._createSubPages();var n,o,a,r,s,l,c,u,d,h,p,f,m=this.options,g=this.element,v=(g.jqmData("icon")||m.icon,g.jqmData("dividertheme")||m.dividerTheme),b=g.jqmData("splittheme"),y=g.jqmData("spliticon"),_=this._getChildrenByTagName(g[0],"li","LI"),w=!!e.nodeName(g[0],"ol"),x=!e.support.cssPseudoElement,C=g.attr("start"),k={};w&&x&&g.find(".ui-li-dec").remove(),w&&(C||0===C?x?c=parseFloat(C):(u=parseFloat(C)-1,g.css("counter-reset","listnumbering "+u)):x&&(c=1)),m.theme||(m.theme=e.mobile.getInheritedTheme(this.element,"c"));for(var T=0,D=_.length;D>T;T++){if(n=_.eq(T),o="ui-li",t||!n.hasClass("ui-li")){a=n.jqmData("theme")||m.theme,r=this._getChildrenByTagName(n[0],"a","A");var S="list-divider"===n.jqmData("role");r.length&&!S?(p=n.jqmData("icon"),n.buttonMarkup({wrapperEls:"div",shadow:!1,corners:!1,iconpos:"right",icon:r.length>1||p===!1?!1:p||"arrow-r",theme:a}),p!==!1&&1===r.length&&n.addClass("ui-li-has-arrow"),r.first().removeClass("ui-link").addClass("ui-link-inherit"),r.length>1&&(o+=" ui-li-has-alt",s=r.last(),l=b||s.jqmData("theme")||m.splitTheme,f=s.jqmData("icon"),s.appendTo(n).attr("title",s.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:!1,corners:!1,theme:a,icon:!1,iconpos:"notext"}).find(".ui-btn-inner").append(e(i.createElement("span")).buttonMarkup({shadow:!0,corners:!0,theme:l,iconpos:"notext",icon:f||p||y||m.splitIcon})))):S?(o+=" ui-li-divider ui-bar-"+v,n.attr("role","heading"),w&&(C||0===C?x?c=parseFloat(C):(d=parseFloat(C)-1,n.css("counter-reset","listnumbering "+d)):x&&(c=1))):o+=" ui-li-static ui-btn-up-"+a}w&&x&&o.indexOf("ui-li-divider")<0&&(h=o.indexOf("ui-li-static")>0?n:n.find(".ui-link-inherit"),h.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+c++ +". </span>")),k[o]||(k[o]=[]),k[o].push(n[0])}for(o in k)e(k[o]).addClass(o).children(".ui-btn-inner").addClass(o);g.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var t=e(this);t.prependTo(t.parent())}).end().find(".ui-li-count").each(function(){e(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+(g.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all"),this._addThumbClasses(_),this._addThumbClasses(g.find(".ui-link-inherit")),this._refreshCorners(t),this._trigger("afterrefresh")},_idStringEscape:function(e){return e.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var i,n=this.element,o=n.closest(".ui-page"),a=o.jqmData("url"),r=a||o[0][e.expando],s=n.attr("id"),l=this.options,c="data-"+e.mobile.ns,u=this,d=o.find(":jqmData(role='footer')").jqmData("id");if("undefined"==typeof t[r]&&(t[r]=-1),s=s||++t[r],e(n.find("li>ul, li>ol").toArray().reverse()).each(function(t){var o,r,u=e(this),h=u.attr("id")||s+"-"+t,p=u.parent(),f=e(u.prevAll().toArray().reverse()),m=f.length?f:e("<span>"+e.trim(p.contents()[0].nodeValue)+"</span>"),g=m.first().getEncodedText(),v=(a||"")+"&"+e.mobile.subPageUrlKey+"="+h,b=u.jqmData("theme")||l.theme,y=u.jqmData("counttheme")||n.jqmData("counttheme")||l.countTheme;i=!0,o=u.detach().wrap("<div "+c+"role='page' "+c+"url='"+v+"' "+c+"theme='"+b+"' "+c+"count-theme='"+y+"'><div "+c+"role='content'></div></div>").parent().before("<div "+c+"role='header' "+c+"theme='"+l.headerTheme+"'><div class='ui-title'>"+g+"</div></div>").after(d?e("<div "+c+"role='footer' "+c+"id='"+d+"'>"):"").parent().appendTo(e.mobile.pageContainer),o.page(),r=p.find("a:first"),r.length||(r=e("<a/>").html(m||g).prependTo(p.empty())),r.attr("href","#"+v)}).listview(),i&&o.is(":jqmData(external-page='true')")&&o.data("page").options.domCache===!1){var h=function(t,i){var n,r=i.nextPage,s=new e.Event("pageremove");i.nextPage&&(n=r.jqmData("url"),0!==n.indexOf(a+"&"+e.mobile.subPageUrlKey)&&(u.childPages().remove(),o.trigger(s),s.isDefaultPrevented()||o.removeWithDependents()))};o.unbind("pagehide.remove").bind("pagehide.remove",h)}},childPages:function(){var t=this.parentPage.jqmData("url");return e(":jqmData(url^='"+t+"&"+e.mobile.subPageUrlKey+"')")}}),e(i).bind("pagecreate create",function(t){e.mobile.listview.prototype.enhanceWithin(t.target)})}(e),function(e){e.mobile.listview.prototype.options.autodividers=!1,e.mobile.listview.prototype.options.autodividersSelector=function(e){var t=e.find("a").text()||e.text()||null;return t?t=t.slice(0,1).toUpperCase():null},e(i).delegate("ul,ol","listviewcreate",function(){var t=e(this),n=t.data("listview");if(n.options.autodividers){var o=function(){t.find("li:jqmData(role='list-divider')").remove();for(var o,a,r=t.find("li"),s=null,l=0;l<r.length;l++){if(o=r[l],a=n.options.autodividersSelector(e(o)),a&&s!==a){var c=i.createElement("li");c.appendChild(i.createTextNode(a)),c.setAttribute("data-"+e.mobile.ns+"role","list-divider"),o.parentNode.insertBefore(c,o)}s=a}},a=function(){t.unbind("listviewafterrefresh",a),o(),n.refresh(),t.bind("listviewafterrefresh",a)};a()}})}(e),function(e,t){e.widget("mobile.checkboxradio",e.mobile.widget,{options:{theme:null,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var n=this,o=this.element,a=function(e,t){return e.jqmData(t)||e.closest("form,fieldset").jqmData(t)},r=e(o).closest("label"),s=r.length?r:e(o).closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')").find("label").filter("[for='"+o[0].id+"']"),l=o[0].type,c=a(o,"mini"),u=l+"-on",d=l+"-off",h=o.parents(":jqmData(type='horizontal')").length?t:d,p=a(o,"iconpos"),f=h?"":" "+e.mobile.activeBtnClass,m="ui-"+u+f,g="ui-"+d,v="ui-icon-"+u,b="ui-icon-"+d;if("checkbox"===l||"radio"===l){e.extend(this,{label:s,inputtype:l,checkedClass:m,uncheckedClass:g,checkedicon:v,uncheckedicon:b}),this.options.theme||(this.options.theme=e.mobile.getInheritedTheme(this.element,"c")),s.buttonMarkup({theme:this.options.theme,icon:h,shadow:!1,mini:c,iconpos:p});var y=i.createElement("div");y.className="ui-"+l,o.add(s).wrapAll(y),s.bind({vmouseover:function(t){e(this).parent().is(".ui-disabled")&&t.stopPropagation()},vclick:function(e){return o.is(":disabled")?(e.preventDefault(),void 0):(n._cacheVals(),o.prop("checked","radio"===l&&!0||!o.prop("checked")),o.triggerHandler("click"),n._getInputSet().not(o).prop("checked",!1),n._updateAll(),!1)}}),o.bind({vmousedown:function(){n._cacheVals()},vclick:function(){var t=e(this);t.is(":checked")?(t.prop("checked",!0),n._getInputSet().not(t).prop("checked",!1)):t.prop("checked",!1),n._updateAll()},focus:function(){s.addClass(e.mobile.focusClass)},blur:function(){s.removeClass(e.mobile.focusClass)}}),this.refresh()}},_cacheVals:function(){this._getInputSet().each(function(){e(this).jqmData("cacheVal",this.checked)})},_getInputSet:function(){return"checkbox"===this.inputtype?this.element:this.element.closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')").find("input[name='"+this.element[0].name+"'][type='"+this.inputtype+"']")},_updateAll:function(){var t=this;this._getInputSet().each(function(){var i=e(this);(this.checked||"checkbox"===t.inputtype)&&i.trigger("change")}).checkboxradio("refresh")},refresh:function(){var e=this.element[0],t=this.label,i=t.find(".ui-icon");e.checked?(t.addClass(this.checkedClass).removeClass(this.uncheckedClass),i.addClass(this.checkedicon).removeClass(this.uncheckedicon)):(t.removeClass(this.checkedClass).addClass(this.uncheckedClass),i.removeClass(this.checkedicon).addClass(this.uncheckedicon)),e.disabled?this.disable():this.enable()},disable:function(){this.element.prop("disabled",!0).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",!1).parent().removeClass("ui-disabled")}}),e(i).bind("pagecreate create",function(t){e.mobile.checkboxradio.prototype.enhanceWithin(t.target,!0)})}(e),function(e,t){e.widget("mobile.button",e.mobile.widget,{options:{theme:null,icon:null,iconpos:null,corners:!0,shadow:!0,iconshadow:!0,initSelector:"button, [type='button'], [type='submit'], [type='reset']"},_create:function(){var n,o,a,r,s=this.element,l=this.options,c=l.inline||s.jqmData("inline"),u=l.mini||s.jqmData("mini"),d="";return"A"===s[0].tagName?(s.hasClass("ui-btn")||s.buttonMarkup(),void 0):(this.options.theme||(this.options.theme=e.mobile.getInheritedTheme(this.element,"c")),~s[0].className.indexOf("ui-btn-left")&&(d="ui-btn-left"),~s[0].className.indexOf("ui-btn-right")&&(d="ui-btn-right"),("submit"===s.attr("type")||"reset"===s.attr("type"))&&(d?d+=" ui-submit":d="ui-submit"),e("label[for='"+s.attr("id")+"']").addClass("ui-submit"),this.button=e("<div></div>")[s.html()?"html":"text"](s.html()||s.val()).insertBefore(s).buttonMarkup({theme:l.theme,icon:l.icon,iconpos:l.iconpos,inline:c,corners:l.corners,shadow:l.shadow,iconshadow:l.iconshadow,mini:u}).addClass(d).append(s.addClass("ui-btn-hidden")),n=this.button,o=s.attr("type"),a=s.attr("name"),"button"!==o&&"reset"!==o&&a&&s.bind("vclick",function(){r===t&&(r=e("<input>",{type:"hidden",name:s.attr("name"),value:s.attr("value")}).insertBefore(s),e(i).one("submit",function(){r.remove(),r=t}))}),s.bind({focus:function(){n.addClass(e.mobile.focusClass)},blur:function(){n.removeClass(e.mobile.focusClass)}}),this.refresh(),void 0)},enable:function(){return this.element.attr("disabled",!1),this.button.removeClass("ui-disabled").attr("aria-disabled",!1),this._setOption("disabled",!1)},disable:function(){return this.element.attr("disabled",!0),this.button.addClass("ui-disabled").attr("aria-disabled",!0),this._setOption("disabled",!0)},refresh:function(){var t=this.element;t.prop("disabled")?this.disable():this.enable(),e(this.button.data("buttonElements").text)[t.html()?"html":"text"](t.html()||t.val())}}),e(i).bind("pagecreate create",function(t){e.mobile.button.prototype.enhanceWithin(t.target,!0)})}(e),function(e){e.fn.controlgroup=function(t){function i(e,t){e.removeClass("ui-btn-corner-all ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-controlgroup-last ui-shadow").eq(0).addClass(t[0]).end().last().addClass(t[1]).addClass("ui-controlgroup-last")}return this.each(function(){{var n=e(this),o=e.extend({direction:n.jqmData("type")||"vertical",shadow:!1,excludeInvisible:!0,mini:n.jqmData("mini")},t),a=n.children("legend"),r="horizontal"===o.direction?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"];n.find("input").first().attr("type")}n.wrapInner("<div class='ui-controlgroup-controls'></div>"),a.length&&(e("<div role='heading' class='ui-controlgroup-label'>"+a.html()+"</div>").insertBefore(n.children(0)),a.remove()),n.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+o.direction),i(n.find(".ui-btn"+(o.excludeInvisible?":visible":"")).not(".ui-slider-handle"),r),i(n.find(".ui-btn-inner"),r),o.shadow&&n.addClass("ui-shadow"),o.mini&&n.addClass("ui-mini")})}}(e),function(e){e(i).bind("pagecreate create",function(t){e(t.target).find("a").jqmEnhanceable().not(".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link")})}(e),function(e,n){function o(e,t,i,n){var o=n;return o=t>e?i+(e-t)/2:Math.min(Math.max(i,n-t/2),i+e-t)}e.widget("mobile.popup",e.mobile.widget,{options:{theme:null,overlayTheme:null,shadow:!0,corners:!0,transition:"none",positionTo:"origin",initSelector:":jqmData(role='popup')"},_create:function(){var i={screen:e("<div class='ui-screen-hidden ui-popup-screen fade'></div>"),placeholder:e("<div style='display: none;'><!-- placeholder --></div>"),container:e("<div class='ui-popup-container ui-selectmenu-hidden'></div>")},o=function(e){e.preventDefault(),e.stopImmediatePropagation(),s.close()},a=this.element.closest(".ui-page"),r=this.element.attr("id"),s=this;0===a.length&&(a=e("body")),a.append(i.screen),i.container.insertAfter(i.screen),i.placeholder.insertAfter(this.element),r&&i.placeholder.html("<!-- placeholder for "+r+" -->"),i.container.append(this.element),this.element.addClass("ui-popup"),e.extend(this,{_page:a,_ui:i,_fallbackTransition:"",_currentTransition:!1,_prereqs:null,_isOpen:!1,_globalHandlers:[{src:e(t),handler:{resize:function(){s._isOpen&&s._resizeScreen()},keyup:function(t){s._isOpen&&t.keyCode===e.mobile.keyCode.ESCAPE&&o(t)}}}]}),e.each(this.options,function(e,t){s.options[e]=n,s._setOption(e,t,!0)}),i.screen.bind("vclick",function(e){o(e)}),e.each(this._globalHandlers,function(e,t){t.src.bind(t.handler)})},_resizeScreen:function(){this._ui.screen.height(Math.max(e(t).height(),e(i).height()))},_applyTheme:function(e,t){for(var i,n=(e.attr("class")||"").split(" "),o=null,a=String(t);n.length>0;){if(o=n.pop(),i=o.match(/^ui-body-([a-z])$/),i&&i.length>1){o=i[1];break}o=null}t!==o&&(e.removeClass("ui-body-"+o),null!==t&&"none"!==t&&e.addClass("ui-body-"+a))},_setTheme:function(e){this._applyTheme(this._ui.container,e)},_setOverlayTheme:function(t){this._applyTheme(this._ui.screen,t),e.mobile.browser.ie&&this._ui.screen.toggleClass("ui-popup-screen-background-hack","transparent"===this._ui.screen.css("background-color")&&"none"===this._ui.screen.css("background-image")&&this._ui.screen.css("background")===n)},_setShadow:function(e){this._ui.container.toggleClass("ui-overlay-shadow",e)},_setCorners:function(e){this._ui.container.toggleClass("ui-corner-all",e)},_applyTransition:function(t){this._ui.container.removeClass(this._fallbackTransition),t&&"none"!==t&&(this._fallbackTransition=e.mobile._maybeDegradeTransition(t),this._ui.container.addClass(this._fallbackTransition))},_setTransition:function(e){this._currentTransition||this._applyTransition(e)},_setOption:function(t,i){var o="_set"+t.replace(/^[a-z]/,function(e){return e.toUpperCase()});this[o]!==n&&this[o](i),"initSelector"!==t&&(e.mobile.widget.prototype._setOption.apply(this,arguments),this.element.attr("data-"+(e.mobile.ns||"")+t.replace(/([A-Z])/,"-$1").toLowerCase(),i))},_placementCoords:function(n){var a,r,s={l:15,t:30,r:15,b:30},l={l:s.l,t:e(t).scrollTop()+s.t,cx:e(t).width()-s.l-s.r,cy:e(t).height()-s.t-s.b};return this._ui.container.css("max-width",l.cx),a={cx:this._ui.container.outerWidth(!0),cy:this._ui.container.outerHeight(!0)},r={x:o(l.cx,a.cx,l.l,n.x),y:o(l.cy,a.cy,l.t,n.y)},r.y=Math.max(0,r.y),r.y-=Math.min(r.y,Math.max(0,r.y+a.cy-e(i).height())),r},_immediate:function(){this._prereqs&&e.each(this._prereqs,function(e,t){t.resolve()})},_createPrereqs:function(t,i,n){var o,a=this;o={screen:e.Deferred(function(e){e.then(function(){o===a._prereqs&&t()})}),container:e.Deferred(function(e){e.then(function(){o===a._prereqs&&i()})})},e.when(o.screen,o.container).done(function(){o===a._prereqs&&(a._prereqs=null,n())}),a._prereqs=o},_animate:function(e){var t=this;t.options.overlayTheme&&e.additionalCondition?t._ui.screen.removeClass(e.classToRemove).addClass(e.screenClassToAdd).animationComplete(function(){e.prereqs.screen.resolve()}):e.prereqs.screen.resolve(),e.transition&&"none"!==e.transition?(e.applyTransition&&t._applyTransition(e.transition),t._ui.container.addClass(e.containerClassToAdd).removeClass(e.classToRemove).animationComplete(function(){e.prereqs.container.resolve()})):e.prereqs.container.resolve()},_desiredCoords:function(i){var n,o=null,a=e(t);if(this.options.positionTo&&"origin"!==this.options.positionTo)if("window"===this.options.positionTo)i={x:a.width()/2+a.scrollLeft(),y:a.height()/2+a.scrollTop()};else{try{o=e(this.options.positionTo)}catch(r){o=null}o&&(o.filter(":visible"),0===o.length&&(o=null))}return o&&(n=o.offset(),i={x:n.left+o.outerWidth()/2,y:n.top+o.outerHeight()/2}),"number"!==e.type(i.x)&&(i.x=a.width()/2+a.scrollLeft()),"number"!==e.type(i.y)&&(i.y=a.height()/2+a.scrollTop()),i},_open:function(t,i,n){var o,a=this;this.element.trigger("popupbeforeopen"),o=a._placementCoords(a._desiredCoords({x:t,y:i})),a._createPrereqs(e.noop,function(){a._applyTransition("none"),a._ui.container.removeClass("in"),a._resizeScreen()},function(){a._isOpen=!0,a._ui.container.attr("tabindex","0").focus(),a.element.trigger("popupafteropen")}),n?(a._currentTransition=n,a._applyTransition(n)):n=a.options.transition,a.options.theme||a._setTheme(a._page.jqmData("theme")||e.mobile.getInheritedTheme(a._page,"c")),a._resizeScreen(),a._ui.screen.removeClass("ui-screen-hidden"),a._ui.container.removeClass("ui-selectmenu-hidden").offset({left:o.x,top:o.y}),a._animate({additionalCondition:!0,transition:n,classToRemove:"",screenClassToAdd:"in",containerClassToAdd:"in",applyTransition:!1,prereqs:a._prereqs})},_close:function(){var e=this,t=e._currentTransition?e._currentTransition:e.options.transition;this._isOpen=!1,e._createPrereqs(function(){e._ui.screen.removeClass("out").addClass("ui-screen-hidden")},function(){e._ui.container.removeClass("reverse out").addClass("ui-selectmenu-hidden").removeAttr("style")},function(){e._ui.container.removeAttr("tabindex"),e.element.trigger("popupafterclose")}),e._animate({additionalCondition:e._ui.screen.hasClass("in"),transition:t,classToRemove:"in",screenClassToAdd:"out",containerClassToAdd:"reverse out",applyTransition:!0,prereqs:e._prereqs})},_destroy:function(){this.element.insertAfter(this._ui.placeholder).removeClass("ui-popup"),this._ui.screen.remove(),this._ui.container.remove(),this._ui.placeholder.remove(),e.each(this._globalHandlers,function(t,i){e.each(i.handler,function(e,t){i.src.unbind(e,t)})})},open:function(){e.mobile.popup.popupManager.push(this,arguments)},close:function(){e.mobile.popup.popupManager.pop(this)}}),e.mobile.popup.popupManager={_currentlyOpenPopup:null,_popupIsOpening:!1,_popupIsClosing:!1,_abort:!1,_navHook:function(i){function n(){e(t).one("navigate.popup",function(){a._onHashChange()}),i()}var o,a=this;if(a._myUrl=e.mobile.activePage.jqmData("url"),e.mobile.pageContainer.one("pagebeforechange.popup",function(t,i){var n,o;n="string"==typeof i.toPage?i.toPage:i.toPage.jqmData("url"),n=e.mobile.path.parseUrl(n),o=n.pathname+n.search+n.hash,a._myUrl!==o&&a._onHashChange(!0)}),e.mobile.hashListeningEnabled){var r,s=e.mobile.urlHistory.getActive(),l=e.mobile.activePage.is(".ui-dialog"),c=s.url.indexOf(e.mobile.dialogHashKey)>-1&&!l;r=0===e.mobile.urlHistory.activeIndex?e.mobile.defaultDialogTransition:s.transition,c?n():(e(t).one("navigate.popupBinder",function(){n()}),o=s.url+e.mobile.dialogHashKey,0===e.mobile.urlHistory.activeIndex&&o===e.mobile.urlHistory.initialDst&&(o+=e.mobile.dialogHashKey),e.mobile.urlHistory.ignoreNextHashChange=l,e.mobile.path.set(o),e.mobile.urlHistory.addNew(o,r,s.title,s.pageUrl,s.role))}else i()},_navUnhook:function(i){i&&e(t).unbind("navigate.popupBinder navigate.popup"),e.mobile.hashListeningEnabled&&!i?t.history.back():this._onHashChange(),e.mobile.activePage.unbind("pagebeforechange.popup")},push:function(e,t){var i=this;i._currentlyOpenPopup||(i._currentlyOpenPopup=e,i._navHook(function(){i._popupIsOpening=!0,i._currentlyOpenPopup.element.one("popupafteropen",function(){i._popupIsOpening=!1}),i._currentlyOpenPopup._open.apply(i._currentlyOpenPopup,t),!i._popupIsOpening&&i._abort&&i._currentlyOpenPopup._immediate()}))},pop:function(t){var i=this;t!==i._currentlyOpenPopup||i._popupIsClosing||(i._popupIsClosing=!0,i._popupIsOpening?i._currentlyOpenPopup.element.one("popupafteropen",e.proxy(i,"_navUnhook")):i._navUnhook())},_onHashChange:function(t){var i=this;i._abort=t,i._currentlyOpenPopup&&(t&&i._popupIsOpening&&i._currentlyOpenPopup._immediate(),i._popupIsClosing=!0,i._currentlyOpenPopup.element.one("popupafterclose",function(){i._popupIsClosing=!1,i._currentlyOpenPopup=null,e(i).trigger("done")}),i._currentlyOpenPopup._close(),t&&i._currentlyOpenPopup&&i._currentlyOpenPopup._immediate())}},e.mobile.popup.handleLink=function(t){var i,n=t.closest(":jqmData(role='page')"),o=0===n.length?e("body"):n,a=e(t.attr("href"),o[0]);a.data("popup")&&(i=t.offset(),a.popup("open",i.left+t.outerWidth()/2,i.top+t.outerHeight()/2,t.jqmData("transition")),0===t.parents(".ui-popup-container").length&&e(e.mobile.popup.popupManager).one("done",function(){t.focus()})),setTimeout(function(){t.removeClass(e.mobile.activeBtnClass)},300)},e(i).bind("pagebeforechange",function(t,i){"popup"===i.options.role&&(e.mobile.popup.handleLink(i.options.link),t.preventDefault())}),e(i).bind("pagecreate create",function(t){e.mobile.popup.prototype.enhanceWithin(t.target,!0)})}(e),function(e){var t=e("meta[name=viewport]"),i=t.attr("content"),n=i+",maximum-scale=1, user-scalable=no",o=i+",maximum-scale=10, user-scalable=yes",a=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(i);e.mobile.zoom=e.extend({},{enabled:!a,locked:!1,disable:function(i){a||e.mobile.zoom.locked||(t.attr("content",n),e.mobile.zoom.enabled=!1,e.mobile.zoom.locked=i||!1)},enable:function(i){a||e.mobile.zoom.locked&&i!==!0||(t.attr("content",o),e.mobile.zoom.enabled=!0,e.mobile.zoom.locked=!1)},restore:function(){a||(t.attr("content",i),e.mobile.zoom.enabled=!0)}})}(e),function(e){e.widget("mobile.textinput",e.mobile.widget,{options:{theme:null,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",clearSearchButtonText:"clear text",disabled:!1},_create:function(){function n(){setTimeout(function(){a.toggleClass("ui-input-clear-hidden",!r.val())},0)}var o,a,r=this.element,s=this.options,l=s.theme||e.mobile.getInheritedTheme(this.element,"c"),c=" ui-body-"+l,u=r.jqmData("mini")===!0,d=u?" ui-mini":"";if(e("label[for='"+r.attr("id")+"']").addClass("ui-input-text"),o=r.addClass("ui-input-text ui-body-"+l),"undefined"==typeof r[0].autocorrect||e.support.touchOverflow||(r[0].setAttribute("autocorrect","off"),r[0].setAttribute("autocomplete","off")),r.is("[type='search'],:jqmData(type='search')")?(o=r.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+c+d+"'></div>").parent(),a=e("<a href='#' class='ui-input-clear' title='"+s.clearSearchButtonText+"'>"+s.clearSearchButtonText+"</a>").bind("click",function(e){r.val("").focus().trigger("change"),a.addClass("ui-input-clear-hidden"),e.preventDefault()}).appendTo(o).buttonMarkup({icon:"delete",iconpos:"notext",corners:!0,shadow:!0,mini:u}),n(),r.bind("paste cut keyup focus change blur",n)):r.addClass("ui-corner-all ui-shadow-inset"+c+d),r.focus(function(){o.addClass(e.mobile.focusClass)}).blur(function(){o.removeClass(e.mobile.focusClass)}).bind("focus",function(){s.preventFocusZoom&&e.mobile.zoom.disable(!0)}).bind("blur",function(){s.preventFocusZoom&&e.mobile.zoom.enable(!0)}),r.is("textarea")){var h,p=15,f=100,m=function(){var e=r[0].scrollHeight,t=r[0].clientHeight;e>t&&r.height(e+p)};r.keyup(function(){clearTimeout(h),h=setTimeout(m,f)}),e(i).one("pagechange",m),e.trim(r.val())&&e(t).load(m)}r.attr("disabled")&&this.disable()},disable:function(){var e;return e=this.element.attr("disabled",!0).is("[type='search'], :jqmData(type='search')")?this.element.parent():this.element,e.addClass("ui-disabled"),this._setOption("disabled",!0)},enable:function(){var e;return e=this.element.attr("disabled",!1).is("[type='search'], :jqmData(type='search')")?this.element.parent():this.element,e.removeClass("ui-disabled"),this._setOption("disabled",!1)}}),e(i).bind("pagecreate create",function(t){e.mobile.textinput.prototype.enhanceWithin(t.target,!0)})}(e),function(e){e.mobile.listview.prototype.options.filter=!1,e.mobile.listview.prototype.options.filterPlaceholder="Filter items...",e.mobile.listview.prototype.options.filterTheme="c",e.mobile.listview.prototype.options.filterCallback=function(e,t){return-1===e.toString().toLowerCase().indexOf(t)},e(i).delegate(":jqmData(role='listview')","listviewcreate",function(){var t=e(this),i=t.data("listview");if(i.options.filter){{var n=e("<form>",{"class":"ui-listview-filter ui-bar-"+i.options.filterTheme,role:"search"});e("<input>",{placeholder:i.options.filterPlaceholder}).attr("data-"+e.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var n,o=e(this),a=this.value.toLowerCase(),r=null,s=o.jqmData("lastval")+"",l=!1,c="";if(o.jqmData("lastval",a),r=a.length<s.length||0!==a.indexOf(s)?t.children():t.children(":not(.ui-screen-hidden)"),a){for(var u=r.length-1;u>=0;u--)n=e(r[u]),c=n.jqmData("filtertext")||n.text(),n.is("li:jqmData(role=list-divider)")?(n.toggleClass("ui-filter-hidequeue",!l),l=!1):i.options.filterCallback(c,a,n)?n.toggleClass("ui-filter-hidequeue",!0):l=!0;r.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",!1),r.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",!0).toggleClass("ui-filter-hidequeue",!1)}else r.toggleClass("ui-screen-hidden",!1);i._refreshCorners()}).appendTo(n).textinput()}i.options.inset&&n.addClass("ui-listview-filter-inset"),n.bind("submit",function(){return!1}).insertBefore(t)}})}(e),function(e,n){e.widget("mobile.slider",e.mobile.widget,{options:{theme:null,trackTheme:null,disabled:!1,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",mini:!1},_create:function(){var o,a=this,r=this.element,s=e.mobile.getInheritedTheme(r,"c"),l=this.options.theme||s,c=this.options.trackTheme||s,u=r[0].nodeName.toLowerCase(),d="select"===u?"ui-slider-switch":"",h=r.attr("id"),p=e("[for='"+h+"']"),f=p.attr("id")||h+"-label",m=p.attr("id",f),g=function(){return"input"===u?parseFloat(r.val()):r[0].selectedIndex},v="input"===u?parseFloat(r.attr("min")):0,b="input"===u?parseFloat(r.attr("max")):r.find("option").length-1,y=t.parseFloat(r.attr("step")||1),_=this.options.inline||r.jqmData("inline")===!0?" ui-slider-inline":"",w=this.options.mini||r.jqmData("mini")?" ui-slider-mini":"",x=i.createElement("a"),C=e(x),k=i.createElement("div"),T=e(k),D=r.jqmData("highlight")&&"select"!==u?function(){var t=i.createElement("div");return t.className="ui-slider-bg "+e.mobile.activeBtnClass+" ui-btn-corner-all",e(t).prependTo(T)}():!1;if(x.setAttribute("href","#"),k.setAttribute("role","application"),k.className=["ui-slider ",d," ui-btn-down-",c," ui-btn-corner-all",_,w].join(""),x.className="ui-slider-handle",k.appendChild(x),C.buttonMarkup({corners:!0,theme:l,shadow:!0}).attr({role:"slider","aria-valuemin":v,"aria-valuemax":b,"aria-valuenow":g(),"aria-valuetext":g(),title:g(),"aria-labelledby":f}),e.extend(this,{slider:T,handle:C,valuebg:D,dragging:!1,beforeStart:null,userModified:!1,mouseMoved:!1}),"select"===u){var S=i.createElement("div");S.className="ui-slider-inneroffset";for(var E=0,N=k.childNodes.length;N>E;E++)S.appendChild(k.childNodes[E]);k.appendChild(S),C.addClass("ui-slider-handle-snapping"),o=r.find("option");for(var A=0,P=o.length;P>A;A++){var M=A?"a":"b",I=A?" "+e.mobile.activeBtnClass:" ui-btn-down-"+c,H=(i.createElement("div"),i.createElement("span"));H.className=["ui-slider-label ui-slider-label-",M,I," ui-btn-corner-all"].join(""),H.setAttribute("role","img"),H.appendChild(i.createTextNode(o[A].innerHTML)),e(H).prependTo(T)}a._labels=e(".ui-slider-label",T)}m.addClass("ui-slider"),r.addClass("input"===u?"ui-slider-input":"ui-slider-switch").change(function(){a.mouseMoved||a.refresh(g(),!0)}).keyup(function(){a.refresh(g(),!0,!0)}).blur(function(){a.refresh(g(),!0)}),e(i).bind("vmousemove",function(e){return a.dragging?(a.mouseMoved=!0,"select"===u&&C.removeClass("ui-slider-handle-snapping"),a.refresh(e),a.userModified=a.beforeStart!==r[0].selectedIndex,!1):void 0}),T.bind("vmousedown",function(e){return a.dragging=!0,a.userModified=!1,a.mouseMoved=!1,"select"===u&&(a.beforeStart=r[0].selectedIndex),a.refresh(e),!1}).bind("vclick",!1),T.add(i).bind("vmouseup",function(){return a.dragging?(a.dragging=!1,"select"===u&&(C.addClass("ui-slider-handle-snapping"),a.mouseMoved?a.userModified?a.refresh(0===a.beforeStart?1:0):a.refresh(a.beforeStart):a.refresh(0===a.beforeStart?1:0)),a.mouseMoved=!1,!1):void 0}),T.insertAfter(r),"select"===u&&this.handle.bind({focus:function(){T.addClass(e.mobile.focusClass)},blur:function(){T.removeClass(e.mobile.focusClass)}}),this.handle.bind({vmousedown:function(){e(this).focus()},vclick:!1,keydown:function(t){var i=g();if(!a.options.disabled){switch(t.keyCode){case e.mobile.keyCode.HOME:case e.mobile.keyCode.END:case e.mobile.keyCode.PAGE_UP:case e.mobile.keyCode.PAGE_DOWN:case e.mobile.keyCode.UP:case e.mobile.keyCode.RIGHT:case e.mobile.keyCode.DOWN:case e.mobile.keyCode.LEFT:t.preventDefault(),a._keySliding||(a._keySliding=!0,e(this).addClass("ui-state-active"))}switch(t.keyCode){case e.mobile.keyCode.HOME:a.refresh(v);break;case e.mobile.keyCode.END:a.refresh(b);break;case e.mobile.keyCode.PAGE_UP:case e.mobile.keyCode.UP:case e.mobile.keyCode.RIGHT:a.refresh(i+y);break;case e.mobile.keyCode.PAGE_DOWN:case e.mobile.keyCode.DOWN:case e.mobile.keyCode.LEFT:a.refresh(i-y)
|
103
|
+
}}},keyup:function(){a._keySliding&&(a._keySliding=!1,e(this).removeClass("ui-state-active"))}}),this.refresh(n,n,!0)},refresh:function(t,i,n){(this.options.disabled||this.element.attr("disabled"))&&this.disable();var o,a=this.element,r=a[0].nodeName.toLowerCase(),s="input"===r?parseFloat(a.attr("min")):0,l="input"===r?parseFloat(a.attr("max")):a.find("option").length-1,c="input"===r&&parseFloat(a.attr("step"))>0?parseFloat(a.attr("step")):1;if("object"==typeof t){var u=t,d=8;if(!this.dragging||u.pageX<this.slider.offset().left-d||u.pageX>this.slider.offset().left+this.slider.width()+d)return;o=Math.round((u.pageX-this.slider.offset().left)/this.slider.width()*100)}else null==t&&(t="input"===r?parseFloat(a.val()||0):a[0].selectedIndex),o=(parseFloat(t)-s)/(l-s)*100;if(!isNaN(o)){0>o&&(o=0),o>100&&(o=100);var h=o/100*(l-s)+s,p=(h-s)%c,f=h-p;if(2*Math.abs(p)>=c&&(f+=p>0?c:-c),h=parseFloat(f.toFixed(5)),s>h&&(h=s),h>l&&(h=l),this.handle.css("left",o+"%"),this.handle.attr({"aria-valuenow":"input"===r?h:a.find("option").eq(h).attr("value"),"aria-valuetext":"input"===r?h:a.find("option").eq(h).getEncodedText(),title:"input"===r?h:a.find("option").eq(h).getEncodedText()}),this.valuebg&&this.valuebg.css("width",o+"%"),this._labels){var m=this.handle.width()/this.slider.width()*100,g=o&&m+(100-m)*o/100,v=100===o?0:Math.min(m+100-g,100);this._labels.each(function(){var t=e(this).is(".ui-slider-label-a");e(this).width((t?g:v)+"%")})}if(!n){var b=!1;"input"===r?(b=a.val()!==h,a.val(h)):(b=a[0].selectedIndex!==h,a[0].selectedIndex=h),!i&&b&&a.trigger("change")}}},enable:function(){return this.element.attr("disabled",!1),this.slider.removeClass("ui-disabled").attr("aria-disabled",!1),this._setOption("disabled",!1)},disable:function(){return this.element.attr("disabled",!0),this.slider.addClass("ui-disabled").attr("aria-disabled",!0),this._setOption("disabled",!0)}}),e(i).bind("pagecreate create",function(t){e.mobile.slider.prototype.enhanceWithin(t.target,!0)})}(e),function(e){e.widget("mobile.selectmenu",e.mobile.widget,{options:{theme:null,disabled:!1,icon:"arrow-d",iconpos:"right",inline:!1,corners:!0,shadow:!0,iconshadow:!0,overlayTheme:"a",hidePlaceholderMenuItems:!0,closeText:"Close",nativeMenu:!0,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"select:not( :jqmData(role='slider') )",mini:!1},_button:function(){return e("<div/>")},_setDisabled:function(e){return this.element.attr("disabled",e),this.button.attr("aria-disabled",e),this._setOption("disabled",e)},_focusButton:function(){var e=this;setTimeout(function(){e.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){var t="";~this.element[0].className.indexOf("ui-btn-left")&&(t=" ui-btn-left"),~this.element[0].className.indexOf("ui-btn-right")&&(t=" ui-btn-right"),this.select=this.element.wrap("<div class='ui-select"+t+"'>"),this.selectID=this.select.attr("id"),this.label=e("label[for='"+this.selectID+"']").addClass("ui-select"),this.isMultiple=this.select[0].multiple,this.options.theme||(this.options.theme=e.mobile.getInheritedTheme(this.select,"c"))},_create:function(){this._preExtension(),this._trigger("beforeCreate"),this.button=this._button();var i=this,n=this.options,o=n.inline||this.select.jqmData("inline"),a=n.mini||this.select.jqmData("mini"),r=n.icon?n.iconpos||this.select.jqmData("iconpos"):!1,s=(-1===this.select[0].selectedIndex?0:this.select[0].selectedIndex,this.button.insertBefore(this.select).buttonMarkup({theme:n.theme,icon:n.icon,iconpos:r,inline:o,corners:n.corners,shadow:n.shadow,iconshadow:n.iconshadow,mini:a}));this.setButtonText(),n.nativeMenu&&t.opera&&t.opera.version&&s.addClass("ui-select-nativeonly"),this.isMultiple&&(this.buttonCount=e("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(s.addClass("ui-li-has-count"))),(n.disabled||this.element.attr("disabled"))&&this.disable(),this.select.change(function(){i.refresh()}),this.build()},build:function(){var t=this;this.select.appendTo(t.button).bind("vmousedown",function(){t.button.addClass(e.mobile.activeBtnClass)}).bind("focus",function(){t.button.addClass(e.mobile.focusClass)}).bind("blur",function(){t.button.removeClass(e.mobile.focusClass)}).bind("focus vmouseover",function(){t.button.trigger("vmouseover")}).bind("vmousemove",function(){t.button.removeClass(e.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){t.button.trigger("vmouseout").removeClass(e.mobile.activeBtnClass)}).bind("change blur",function(){t.button.removeClass("ui-btn-down-"+t.options.theme)}),t.button.bind("vmousedown",function(){t.options.preventFocusZoom&&e.mobile.zoom.disable(!0)}).bind("mouseup",function(){t.options.preventFocusZoom&&e.mobile.zoom.enable(!0)})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var e=this;return this.selected().map(function(){return e._selectOptions().index(this)}).get()},setButtonText:function(){var t=this,n=this.selected(),o=this.placeholder,a=e(i.createElement("span"));this.button.find(".ui-btn-text").html(function(){return o=n.length?n.map(function(){return e(this).text()}).get().join(", "):t.placeholder,a.text(o).addClass(t.select.attr("class")).addClass(n.attr("class"))})},setButtonCount:function(){var e=this.selected();this.isMultiple&&this.buttonCount[e.length>1?"show":"hide"]().text(e.length)},refresh:function(){this.setButtonText(),this.setButtonCount()},open:e.noop,close:e.noop,disable:function(){this._setDisabled(!0),this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(!1),this.button.removeClass("ui-disabled")}}),e(i).bind("pagecreate create",function(t){e.mobile.selectmenu.prototype.enhanceWithin(t.target,!0)})}(e),function(e){var n=function(n){var o,a,r,s=(n.select,n.selectID),l=n.label,c=n.select.closest(".ui-page"),u=n._selectOptions(),d=n.isMultiple=n.select[0].multiple,h=s+"-button",p=s+"-menu",f=e("<div data-"+e.mobile.ns+"role='dialog' data-"+e.mobile.ns+"theme='"+n.options.theme+"' data-"+e.mobile.ns+"overlay-theme='"+n.options.overlayTheme+"'><div data-"+e.mobile.ns+"role='header'><div class='ui-title'>"+l.getEncodedText()+"</div></div><div data-"+e.mobile.ns+"role='content'></div></div>"),m=e("<div>",{"class":"ui-selectmenu"}).insertAfter(n.select).popup({theme:"a"}),g=e("<ul>",{"class":"ui-selectmenu-list",id:p,role:"listbox","aria-labelledby":h}).attr("data-"+e.mobile.ns+"theme",n.options.theme).appendTo(m),v=e("<div>",{"class":"ui-header ui-bar-"+n.options.theme}).prependTo(m),b=e("<h1>",{"class":"ui-title"}).appendTo(v);n.isMultiple&&(r=e("<a>",{text:n.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+e.mobile.ns+"iconpos","notext").attr("data-"+e.mobile.ns+"icon","delete").appendTo(v).buttonMarkup()),e.extend(n,{select:n.select,selectID:s,buttonId:h,menuId:p,thisPage:c,menuPage:f,label:l,selectOptions:u,isMultiple:d,theme:n.options.theme,listbox:m,list:g,header:v,headerTitle:b,headerClose:r,menuPageContent:o,menuPageClose:a,placeholder:"",build:function(){var t=this;t.refresh(),t.select.attr("tabindex","-1").focus(function(){e(this).blur(),t.button.focus()}),t.button.bind("vclick keydown",function(i){("vclick"===i.type||i.keyCode&&(i.keyCode===e.mobile.keyCode.ENTER||i.keyCode===e.mobile.keyCode.SPACE))&&(t.open(),i.preventDefault())}),t.list.attr("role","listbox").bind("focusin",function(t){e(t.target).attr("tabindex","0").trigger("vmouseover")}).bind("focusout",function(t){e(t.target).attr("tabindex","-1").trigger("vmouseout")}).delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(i){var o=t.select[0].selectedIndex,a=t.list.find("li:not(.ui-li-divider)").index(this),r=t._selectOptions().eq(a)[0];r.selected=t.isMultiple?!r.selected:!0,t.isMultiple&&e(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",r.selected).toggleClass("ui-icon-checkbox-off",!r.selected),(t.isMultiple||o!==a)&&t.select.trigger("change"),t.isMultiple?t.list.find("li:not(.ui-li-divider)").eq(a).addClass("ui-btn-down-"+n.options.theme).find("a").first().focus():t.close(),i.preventDefault()}).keydown(function(t){var i,o,a=e(t.target),r=a.closest("li");switch(t.keyCode){case 38:return i=r.prev().not(".ui-selectmenu-placeholder"),i.is(".ui-li-divider")&&(i=i.prev()),i.length&&(a.blur().attr("tabindex","-1"),i.addClass("ui-btn-down-"+n.options.theme).find("a").first().focus()),!1;case 40:return o=r.next(),o.is(".ui-li-divider")&&(o=o.next()),o.length&&(a.blur().attr("tabindex","-1"),o.addClass("ui-btn-down-"+n.options.theme).find("a").first().focus()),!1;case 13:case 32:return a.trigger("click"),!1}}),t.menuPage.bind("pagehide",function(){t.list.appendTo(t.listbox),t._focusButton(),e.mobile._bindPageRemove.call(t.thisPage)}),t.listbox.bind("popupafterclose",function(){t.close()}),t.isMultiple&&t.headerClose.click(function(){return"overlay"===t.menuType?(t.close(),!1):void 0}),t.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var e=this.list.find("li"),t=this._selectOptions();return t.text()!==e.text()},selected:function(){return this._selectOptions().filter(":selected:not( :jqmData(placeholder='true') )")},refresh:function(t){{var i,n=this;this.element,this.isMultiple}(t||this._isRebuildRequired())&&n._buildList(),i=this.selectedIndices(),n.setButtonText(),n.setButtonCount(),n.list.find("li:not(.ui-li-divider)").removeClass(e.mobile.activeBtnClass).attr("aria-selected",!1).each(function(t){if(e.inArray(t,i)>-1){var o=e(this);o.attr("aria-selected",!0),n.isMultiple?o.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on"):o.is(".ui-selectmenu-placeholder")?o.next().addClass(e.mobile.activeBtnClass):o.addClass(e.mobile.activeBtnClass)}})},close:function(){if(!this.options.disabled&&this.isOpen){var e=this;"page"===e.menuType?t.history.back():(e.listbox.popup("close"),e.list.appendTo(e.listbox),e._focusButton()),e.isOpen=!1}},open:function(){function i(){var t=o.list.find("."+e.mobile.activeBtnClass+" a");0===t.length&&(t=o.list.find("li.ui-btn:not( :jqmData(placeholder='true') ) a")),t.first().focus().closest("li").addClass("ui-btn-down-"+n.options.theme)}if(!this.options.disabled){{var o=this,a=e(t),r=o.list.parent(),s=r.outerHeight(),l=(r.outerWidth(),e("."+e.mobile.activePageClass),a.scrollTop()),c=o.button.offset().top,u=a.height();a.width()}o.button.addClass(e.mobile.activeBtnClass),setTimeout(function(){o.button.removeClass(e.mobile.activeBtnClass)},300),s>u-80||!e.support.scrollTop?(o.menuPage.appendTo(e.mobile.pageContainer).page(),o.menuPageContent=f.find(".ui-content"),o.menuPageClose=f.find(".ui-header a"),o.thisPage.unbind("pagehide.remove"),0===l&&c>u&&o.thisPage.one("pagehide",function(){e(this).jqmData("lastScroll",c)}),o.menuPage.one("pageshow",function(){i(),o.isOpen=!0}),o.menuType="page",o.menuPageContent.append(o.list),o.menuPage.find("div .ui-title").text(o.label.text()),e.mobile.changePage(o.menuPage,{transition:e.mobile.defaultDialogTransition})):(o.menuType="overlay",o.listbox.one("popupafteropen",i).popup("open",o.button.offset().left+o.button.outerWidth()/2,o.button.offset().top+o.button.outerHeight()/2),o.isOpen=!0)}},_buildList:function(){var t=this,n=this.options,o=this.placeholder,a=!0,r=t.isMultiple?"checkbox-off":"false";t.list.empty().filter(".ui-listview").listview("destroy");for(var s,l=t.select.find("option"),c=l.length,u=this.select[0],d="data-"+e.mobile.ns,h=d+"option-index",p=d+"icon",f=d+"role",m=d+"placeholder",g=i.createDocumentFragment(),v=!1,b=0;c>b;b++,v=!1){var y=l[b],_=e(y),w=y.parentNode,x=_.text(),C=i.createElement("a"),k=[];if(C.setAttribute("href","#"),C.appendChild(i.createTextNode(x)),w!==u&&"optgroup"===w.nodeName.toLowerCase()){var T=w.getAttribute("label");if(T!==s){var D=i.createElement("li");D.setAttribute(f,"list-divider"),D.setAttribute("role","option"),D.setAttribute("tabindex","-1"),D.appendChild(i.createTextNode(T)),g.appendChild(D),s=T}}!a||y.getAttribute("value")&&0!==x.length&&!_.jqmData("placeholder")||(a=!1,v=!0,y.setAttribute(m,!0),n.hidePlaceholderMenuItems&&k.push("ui-selectmenu-placeholder"),o||(o=t.placeholder=x));var S=i.createElement("li");y.disabled&&(k.push("ui-disabled"),S.setAttribute("aria-disabled",!0)),S.setAttribute(h,b),S.setAttribute(p,r),v&&S.setAttribute(m,!0),S.className=k.join(" "),S.setAttribute("role","option"),C.setAttribute("tabindex","-1"),S.appendChild(C),g.appendChild(S)}t.list[0].appendChild(g),this.isMultiple||o.length?this.headerTitle.text(this.placeholder):this.header.hide(),t.list.listview()},_button:function(){return e("<a>",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})}})};e(i).bind("selectmenubeforecreate",function(t){var i=e(t.target).data("selectmenu");i.options.nativeMenu||0!==i.element.parents(":jqmData(role='popup')").length||n(i)})}(e),function(e){e.widget("mobile.fixedtoolbar",e.mobile.widget,{options:{visibleOnPageShow:!0,disablePageZoom:!0,transition:"slide",fullscreen:!1,tapToggle:!0,tapToggleBlacklist:"a, button, input, select, textarea, .ui-header-fixed, .ui-footer-fixed",hideDuringFocus:"input, textarea, select",updatePagePadding:!0,trackPersistentToolbars:!0,supportBlacklist:function(){var e=t,i=navigator.userAgent,n=navigator.platform,o=i.match(/AppleWebKit\/([0-9]+)/),a=!!o&&o[1],r=i.match(/Fennec\/([0-9]+)/),s=!!r&&r[1],l=i.match(/Opera Mobi\/([0-9]+)/),c=!!l&&l[1];return(n.indexOf("iPhone")>-1||n.indexOf("iPad")>-1||n.indexOf("iPod")>-1)&&a&&534>a||e.operamini&&"[object OperaMini]"==={}.toString.call(e.operamini)||l&&7458>c||i.indexOf("Android")>-1&&a&&533>a||s&&6>s||"palmGetResource"in t&&a&&534>a||i.indexOf("MeeGo")>-1&&i.indexOf("NokiaBrowser/8.5.0")>-1?!0:!1},initSelector:":jqmData(position='fixed')"},_create:function(){var e=this,t=e.options,i=e.element,n=i.is(":jqmData(role='header')")?"header":"footer",o=i.closest(".ui-page");return t.supportBlacklist()?(e.destroy(),void 0):(i.addClass("ui-"+n+"-fixed"),t.fullscreen?(i.addClass("ui-"+n+"-fullscreen"),o.addClass("ui-page-"+n+"-fullscreen")):o.addClass("ui-page-"+n+"-fixed"),e._addTransitionClass(),e._bindPageEvents(),e._bindToggleHandlers(),void 0)},_addTransitionClass:function(){var e=this.options.transition;e&&"none"!==e&&("slide"===e&&(e=this.element.is(".ui-header")?"slidedown":"slideup"),this.element.addClass(e))},_bindPageEvents:function(){var i=this,n=i.options,o=i.element;o.closest(".ui-page").bind("pagebeforeshow",function(){n.disablePageZoom&&e.mobile.zoom.disable(!0),n.visibleOnPageShow||i.hide(!0)}).bind("webkitAnimationStart animationstart updatelayout",function(){var e=this;n.updatePagePadding&&i.updatePagePadding(e)}).bind("pageshow",function(){var o=this;i.updatePagePadding(o),n.updatePagePadding&&e(t).bind("throttledresize."+i.widgetName,function(){i.updatePagePadding(o)})}).bind("pagebeforehide",function(o,a){if(n.disablePageZoom&&e.mobile.zoom.enable(!0),n.updatePagePadding&&e(t).unbind("throttledresize."+i.widgetName),n.trackPersistentToolbars){var r=e(".ui-footer-fixed:jqmData(id)",this),s=e(".ui-header-fixed:jqmData(id)",this),l=r.length&&a.nextPage&&e(".ui-footer-fixed:jqmData(id='"+r.jqmData("id")+"')",a.nextPage),c=s.length&&a.nextPage&&e(".ui-header-fixed:jqmData(id='"+s.jqmData("id")+"')",a.nextPage);l=l||e(),(l.length||c.length)&&(l.add(c).appendTo(e.mobile.pageContainer),a.nextPage.one("pageshow",function(){l.add(c).appendTo(this)}))}})},_visible:!0,updatePagePadding:function(t){var i=this.element,n=i.is(".ui-header");this.options.fullscreen||(t=t||i.closest(".ui-page"),e(t).css("padding-"+(n?"top":"bottom"),i.outerHeight()))},_useTransition:function(i){var n=e(t),o=this.element,a=n.scrollTop(),r=o.height(),s=o.closest(".ui-page").height(),l=e.mobile.getScreenHeight(),c=o.is(":jqmData(role='header')")?"header":"footer";return!i&&(this.options.transition&&"none"!==this.options.transition&&("header"===c&&!this.options.fullscreen&&a>r||"footer"===c&&!this.options.fullscreen&&s-r>a+l)||this.options.fullscreen)},show:function(e){var t="ui-fixed-hidden",i=this.element;this._useTransition(e)?i.removeClass("out "+t).addClass("in"):i.removeClass(t),this._visible=!0},hide:function(e){var t="ui-fixed-hidden",i=this.element,n="out"+("slide"===this.options.transition?" reverse":"");this._useTransition(e)?i.addClass(n).removeClass("in").animationComplete(function(){i.addClass(t).removeClass(n)}):i.addClass(t).removeClass(n),this._visible=!1},toggle:function(){this[this._visible?"hide":"show"]()},_bindToggleHandlers:function(){var t=this,i=t.options,n=t.element;n.closest(".ui-page").bind("vclick",function(n){i.tapToggle&&!e(n.target).closest(i.tapToggleBlacklist).length&&t.toggle()}).bind("focusin focusout",function(n){screen.width<500&&e(n.target).is(i.hideDuringFocus)&&!e(n.target).closest(".ui-header-fixed, .ui-footer-fixed").length&&t["focusin"===n.type&&t._visible?"hide":"show"]()})},destroy:function(){this.element.removeClass("ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden"),this.element.closest(".ui-page").removeClass("ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen")}}),e(i).bind("pagecreate create",function(t){e(t.target).jqmData("fullscreen")&&e(e.mobile.fixedtoolbar.prototype.options.initSelector,t.target).not(":jqmData(fullscreen)").jqmData("fullscreen",!0),e.mobile.fixedtoolbar.prototype.enhanceWithin(t.target)})}(e),function(e,t){function i(e){n=e.originalEvent,s=n.accelerationIncludingGravity,o=Math.abs(s.x),a=Math.abs(s.y),r=Math.abs(s.z),!t.orientation&&(o>7||(r>6&&8>a||8>r&&a>6)&&o>5)?l.enabled&&l.disable():l.enabled||l.enable()}if(/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1){var n,o,a,r,s,l=e.mobile.zoom;e(t).bind("orientationchange.iosorientationfix",l.enable).bind("devicemotion.iosorientationfix",i)}}(e,this),function(e,t){function n(){o.removeClass("ui-mobile-rendering")}var o=e("html"),a=(e("head"),e(t));e(t.document).trigger("mobileinit"),e.mobile.gradeA()&&(e.mobile.ajaxBlacklist&&(e.mobile.ajaxEnabled=!1),o.addClass("ui-mobile ui-mobile-rendering"),setTimeout(n,5e3),e.extend(e.mobile,{initializePage:function(){var t=e(":jqmData(role='page'), :jqmData(role='dialog')");t.length||(t=e("body").wrapInner("<div data-"+e.mobile.ns+"role='page'></div>").children(0)),t.each(function(){var t=e(this);t.jqmData("url")||t.attr("data-"+e.mobile.ns+"url",t.attr("id")||location.pathname+location.search)}),e.mobile.firstPage=t.first(),e.mobile.pageContainer=t.first().parent().addClass("ui-mobile-viewport"),a.trigger("pagecontainercreate"),e.mobile.showPageLoadingMsg(),n(),e.mobile.hashListeningEnabled&&e.mobile.path.isHashValid(location.hash)&&(e(location.hash+':jqmData(role="page")').length||e.mobile.path.isPath(location.hash))?a.trigger("hashchange",[!0]):e.mobile.changePage(e.mobile.firstPage,{transition:"none",reverse:!0,changeHash:!1,fromHashChange:!0})}}),e.mobile.navreadyDeferred.resolve(),e(function(){t.scrollTo(0,1),e.mobile.defaultHomeScroll=e.support.scrollTop&&1!==e(t).scrollTop()?1:0,e.fn.controlgroup&&e(i).bind("pagecreate create",function(t){e(":jqmData(role='controlgroup')",t.target).jqmEnhanceable().controlgroup({excludeInvisible:!1})}),e.mobile.autoInitializePage&&e.mobile.initializePage(),a.load(e.mobile.silentScroll),e.support.cssPointerEvents||e(i).delegate(".ui-disabled","vclick",function(e){e.preventDefault(),e.stopImmediatePropagation()})}))}(e,this)});
|
Binary file
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery JavaScript Library v1.8.3
|
3
|
+
* http://jquery.com/
|
4
|
+
*
|
5
|
+
* Includes Sizzle.js
|
6
|
+
* http://sizzlejs.com/
|
7
|
+
*
|
8
|
+
* Copyright 2012 jQuery Foundation and other contributors
|
9
|
+
* Released under the MIT license
|
10
|
+
* http://jquery.org/license
|
11
|
+
*
|
12
|
+
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
|
13
|
+
*/
|
14
|
+
!function(e,t){function i(e){var t=ft[e]={};return Z.each(e.split(tt),function(e,i){t[i]=!0}),t}function n(e,i,n){if(n===t&&1===e.nodeType){var o="data-"+i.replace(gt,"-$1").toLowerCase();if(n=e.getAttribute(o),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:mt.test(n)?Z.parseJSON(n):n}catch(a){}Z.data(e,i,n)}else n=t}return n}function o(e){var t;for(t in e)if(("data"!==t||!Z.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function a(){return!1}function r(){return!0}function s(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function l(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function c(e,t,i){if(t=t||0,Z.isFunction(t))return Z.grep(e,function(e,n){var o=!!t.call(e,n,e);return o===i});if(t.nodeType)return Z.grep(e,function(e){return e===t===i});if("string"==typeof t){var n=Z.grep(e,function(e){return 1===e.nodeType});if(Ot.test(t))return Z.filter(t,n,!i);t=Z.filter(t,n)}return Z.grep(e,function(e){return Z.inArray(e,t)>=0===i})}function u(e){var t=jt.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function h(e,t){if(1===t.nodeType&&Z.hasData(e)){var i,n,o,a=Z._data(e),r=Z._data(t,a),s=a.events;if(s){delete r.handle,r.events={};for(i in s)for(n=0,o=s[i].length;o>n;n++)Z.event.add(t,i,s[i][n])}r.data&&(r.data=Z.extend({},r.data))}}function p(e,t){var i;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),i=t.nodeName.toLowerCase(),"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),Z.support.html5Clone&&e.innerHTML&&!Z.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&Xt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.selected=e.defaultSelected:"input"===i||"textarea"===i?t.defaultValue=e.defaultValue:"script"===i&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(Z.expando))}function f(e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll("*"):[]}function m(e){Xt.test(e.type)&&(e.defaultChecked=e.checked)}function g(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,o=vi.length;o--;)if(t=vi[o]+i,t in e)return t;return n}function v(e,t){return e=t||e,"none"===Z.css(e,"display")||!Z.contains(e.ownerDocument,e)}function b(e,t){for(var i,n,o=[],a=0,r=e.length;r>a;a++)i=e[a],i.style&&(o[a]=Z._data(i,"olddisplay"),t?(o[a]||"none"!==i.style.display||(i.style.display=""),""===i.style.display&&v(i)&&(o[a]=Z._data(i,"olddisplay",x(i.nodeName)))):(n=ii(i,"display"),o[a]||"none"===n||Z._data(i,"olddisplay",n)));for(a=0;r>a;a++)i=e[a],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function y(e,t,i){var n=ui.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function _(e,t,i,n){for(var o=i===(n?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===i&&(a+=Z.css(e,i+gi[o],!0)),n?("content"===i&&(a-=parseFloat(ii(e,"padding"+gi[o]))||0),"margin"!==i&&(a-=parseFloat(ii(e,"border"+gi[o]+"Width"))||0)):(a+=parseFloat(ii(e,"padding"+gi[o]))||0,"padding"!==i&&(a+=parseFloat(ii(e,"border"+gi[o]+"Width"))||0));return a}function w(e,t,i){var n="width"===t?e.offsetWidth:e.offsetHeight,o=!0,a=Z.support.boxSizing&&"border-box"===Z.css(e,"boxSizing");if(0>=n||null==n){if(n=ii(e,t),(0>n||null==n)&&(n=e.style[t]),di.test(n))return n;o=a&&(Z.support.boxSizingReliable||n===e.style[t]),n=parseFloat(n)||0}return n+_(e,t,i||(a?"border":"content"),o)+"px"}function x(e){if(pi[e])return pi[e];var t=Z("<"+e+">").appendTo(z.body),i=t.css("display");return t.remove(),("none"===i||""===i)&&(ni=z.body.appendChild(ni||Z.extend(z.createElement("iframe"),{frameBorder:0,width:0,height:0})),oi&&ni.createElement||(oi=(ni.contentWindow||ni.contentDocument).document,oi.write("<!doctype html><html><body>"),oi.close()),t=oi.body.appendChild(oi.createElement(e)),i=ii(t,"display"),z.body.removeChild(ni)),pi[e]=i,i}function C(e,t,i,n){var o;if(Z.isArray(t))Z.each(t,function(t,o){i||_i.test(e)?n(e,o):C(e+"["+("object"==typeof o?t:"")+"]",o,i,n)});else if(i||"object"!==Z.type(t))n(e,t);else for(o in t)C(e+"["+o+"]",t[o],i,n)}function k(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,o,a,r=t.toLowerCase().split(tt),s=0,l=r.length;if(Z.isFunction(i))for(;l>s;s++)n=r[s],a=/^\+/.test(n),a&&(n=n.substr(1)||"*"),o=e[n]=e[n]||[],o[a?"unshift":"push"](i)}}function T(e,i,n,o,a,r){a=a||i.dataTypes[0],r=r||{},r[a]=!0;for(var s,l=e[a],c=0,u=l?l.length:0,d=e===Oi;u>c&&(d||!s);c++)s=l[c](i,n,o),"string"==typeof s&&(!d||r[s]?s=t:(i.dataTypes.unshift(s),s=T(e,i,n,o,s,r)));return!d&&s||r["*"]||(s=T(e,i,n,o,"*",r)),s}function D(e,i){var n,o,a=Z.ajaxSettings.flatOptions||{};for(n in i)i[n]!==t&&((a[n]?e:o||(o={}))[n]=i[n]);o&&Z.extend(!0,e,o)}function S(e,i,n){var o,a,r,s,l=e.contents,c=e.dataTypes,u=e.responseFields;for(a in u)a in n&&(i[u[a]]=n[a]);for(;"*"===c[0];)c.shift(),o===t&&(o=e.mimeType||i.getResponseHeader("content-type"));if(o)for(a in l)if(l[a]&&l[a].test(o)){c.unshift(a);break}if(c[0]in n)r=c[0];else{for(a in n){if(!c[0]||e.converters[a+" "+c[0]]){r=a;break}s||(s=a)}r=r||s}return r?(r!==c[0]&&c.unshift(r),n[r]):void 0}function E(e,t){var i,n,o,a,r=e.dataTypes.slice(),s=r[0],l={},c=0;if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),r[1])for(i in e.converters)l[i.toLowerCase()]=e.converters[i];for(;o=r[++c];)if("*"!==o){if("*"!==s&&s!==o){if(i=l[s+" "+o]||l["* "+o],!i)for(n in l)if(a=n.split(" "),a[1]===o&&(i=l[s+" "+a[0]]||l["* "+a[0]])){i===!0?i=l[n]:l[n]!==!0&&(o=a[0],r.splice(c--,0,o));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(u){return{state:"parsererror",error:i?u:"No conversion from "+s+" to "+o}}}s=o}return{state:"success",data:t}}function N(){try{return new e.XMLHttpRequest}catch(t){}}function A(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function P(){return setTimeout(function(){Ki=t},0),Ki=Z.now()}function M(e,t){Z.each(t,function(t,i){for(var n=(Ji[t]||[]).concat(Ji["*"]),o=0,a=n.length;a>o;o++)if(n[o].call(e,t,i))return})}function I(e,t,i){var n,o=0,a=Zi.length,r=Z.Deferred().always(function(){delete s.elem}),s=function(){for(var t=Ki||P(),i=Math.max(0,l.startTime+l.duration-t),n=i/l.duration||0,o=1-n,a=0,s=l.tweens.length;s>a;a++)l.tweens[a].run(o);return r.notifyWith(e,[l,o,i]),1>o&&s?i:(r.resolveWith(e,[l]),!1)},l=r.promise({elem:e,props:Z.extend({},t),opts:Z.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:Ki||P(),duration:i.duration,tweens:[],createTween:function(t,i){var n=Z.Tween(e,l.opts,t,i,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){for(var i=0,n=t?l.tweens.length:0;n>i;i++)l.tweens[i].run(1);return t?r.resolveWith(e,[l,t]):r.rejectWith(e,[l,t]),this}}),c=l.props;for(H(c,l.opts.specialEasing);a>o;o++)if(n=Zi[o].call(l,e,c,l.opts))return n;return M(l,c),Z.isFunction(l.opts.start)&&l.opts.start.call(e,l),Z.fx.timer(Z.extend(s,{anim:l,queue:l.opts.queue,elem:e})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function H(e,t){var i,n,o,a,r;for(i in e)if(n=Z.camelCase(i),o=t[n],a=e[i],Z.isArray(a)&&(o=a[1],a=e[i]=a[0]),i!==n&&(e[n]=a,delete e[i]),r=Z.cssHooks[n],r&&"expand"in r){a=r.expand(a),delete e[n];for(i in a)i in e||(e[i]=a[i],t[i]=o)}else t[n]=o}function B(e,t,i){var n,o,a,r,s,l,c,u,d,h=this,p=e.style,f={},m=[],g=e.nodeType&&v(e);i.queue||(u=Z._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,d=u.empty.fire,u.empty.fire=function(){u.unqueued||d()}),u.unqueued++,h.always(function(){h.always(function(){u.unqueued--,Z.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===Z.css(e,"display")&&"none"===Z.css(e,"float")&&(Z.support.inlineBlockNeedsLayout&&"inline"!==x(e.nodeName)?p.zoom=1:p.display="inline-block")),i.overflow&&(p.overflow="hidden",Z.support.shrinkWrapBlocks||h.done(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(n in t)if(a=t[n],Xi.exec(a)){if(delete t[n],l=l||"toggle"===a,a===(g?"hide":"show"))continue;m.push(n)}if(r=m.length){s=Z._data(e,"fxshow")||Z._data(e,"fxshow",{}),"hidden"in s&&(g=s.hidden),l&&(s.hidden=!g),g?Z(e).show():h.done(function(){Z(e).hide()}),h.done(function(){var t;Z.removeData(e,"fxshow",!0);for(t in f)Z.style(e,t,f[t])});for(n=0;r>n;n++)o=m[n],c=h.createTween(o,g?s[o]:0),f[o]=s[o]||Z.style(e,o),o in s||(s[o]=c.start,g&&(c.end=c.start,c.start="width"===o||"height"===o?1:0))}}function O(e,t,i,n,o){return new O.prototype.init(e,t,i,n,o)}function R(e,t){var i,n={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)i=gi[o],n["margin"+i]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function L(e){return Z.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var j,F,z=e.document,$=e.location,q=e.navigator,W=e.jQuery,U=e.$,V=Array.prototype.push,K=Array.prototype.slice,Y=Array.prototype.indexOf,X=Object.prototype.toString,G=Object.prototype.hasOwnProperty,Q=String.prototype.trim,Z=function(e,t){return new Z.fn.init(e,t,j)},J=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,et=/\S/,tt=/\s+/,it=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,nt=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,ot=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,at=/^[\],:{}\s]*$/,rt=/(?:^|:|,)(?:\s*\[)+/g,st=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,lt=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,ct=/^-ms-/,ut=/-([\da-z])/gi,dt=function(e,t){return(t+"").toUpperCase()},ht=function(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",ht,!1),Z.ready()):"complete"===z.readyState&&(z.detachEvent("onreadystatechange",ht),Z.ready())},pt={};Z.fn=Z.prototype={constructor:Z,init:function(e,i,n){var o,a,r;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:nt.exec(e),!o||!o[1]&&i)return!i||i.jquery?(i||n).find(e):this.constructor(i).find(e);if(o[1])return i=i instanceof Z?i[0]:i,r=i&&i.nodeType?i.ownerDocument||i:z,e=Z.parseHTML(o[1],r,!0),ot.test(o[1])&&Z.isPlainObject(i)&&this.attr.call(e,i,!0),Z.merge(this,e);if(a=z.getElementById(o[2]),a&&a.parentNode){if(a.id!==o[2])return n.find(e);this.length=1,this[0]=a}return this.context=z,this.selector=e,this}return Z.isFunction(e)?n.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return K.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e,t,i){var n=Z.merge(this.constructor(),e);return n.prevObject=this,n.context=this.context,"find"===t?n.selector=this.selector+(this.selector?" ":"")+i:t&&(n.selector=this.selector+"."+t+"("+i+")"),n},each:function(e,t){return Z.each(this,e,t)},ready:function(e){return Z.ready.promise().done(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(K.apply(this,arguments),"slice",K.call(arguments).join(","))},map:function(e){return this.pushStack(Z.map(this,function(t,i){return e.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:[].sort,splice:[].splice},Z.fn.init.prototype=Z.fn,Z.extend=Z.fn.extend=function(){var e,i,n,o,a,r,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),"object"==typeof s||Z.isFunction(s)||(s={}),c===l&&(s=this,--l);c>l;l++)if(null!=(e=arguments[l]))for(i in e)n=s[i],o=e[i],s!==o&&(u&&o&&(Z.isPlainObject(o)||(a=Z.isArray(o)))?(a?(a=!1,r=n&&Z.isArray(n)?n:[]):r=n&&Z.isPlainObject(n)?n:{},s[i]=Z.extend(u,r,o)):o!==t&&(s[i]=o));return s},Z.extend({noConflict:function(t){return e.$===Z&&(e.$=U),t&&e.jQuery===Z&&(e.jQuery=W),Z},isReady:!1,readyWait:1,holdReady:function(e){e?Z.readyWait++:Z.ready(!0)},ready:function(e){if(e===!0?!--Z.readyWait:!Z.isReady){if(!z.body)return setTimeout(Z.ready,1);Z.isReady=!0,e!==!0&&--Z.readyWait>0||(F.resolveWith(z,[Z]),Z.fn.trigger&&Z(z).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray||function(e){return"array"===Z.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):pt[X.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==Z.type(e)||e.nodeType||Z.isWindow(e))return!1;try{if(e.constructor&&!G.call(e,"constructor")&&!G.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}var n;for(n in e);return n===t||G.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,i){var n;return e&&"string"==typeof e?("boolean"==typeof t&&(i=t,t=0),t=t||z,(n=ot.exec(e))?[t.createElement(n[1])]:(n=Z.buildFragment([e],t,i?null:[]),Z.merge([],(n.cacheable?Z.clone(n.fragment):n.fragment).childNodes))):null},parseJSON:function(t){return t&&"string"==typeof t?(t=Z.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):at.test(t.replace(st,"@").replace(lt,"]").replace(rt,""))?new Function("return "+t)():(Z.error("Invalid JSON: "+t),void 0)):null},parseXML:function(i){var n,o;if(!i||"string"!=typeof i)return null;try{e.DOMParser?(o=new DOMParser,n=o.parseFromString(i,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(i))}catch(a){n=t}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||Z.error("Invalid XML: "+i),n},noop:function(){},globalEval:function(t){t&&et.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ct,"ms-").replace(ut,dt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,i,n){var o,a=0,r=e.length,s=r===t||Z.isFunction(e);if(n)if(s){for(o in e)if(i.apply(e[o],n)===!1)break}else for(;r>a&&i.apply(e[a++],n)!==!1;);else if(s){for(o in e)if(i.call(e[o],o,e[o])===!1)break}else for(;r>a&&i.call(e[a],a,e[a++])!==!1;);return e},trim:Q&&!Q.call(" ")?function(e){return null==e?"":Q.call(e)}:function(e){return null==e?"":(e+"").replace(it,"")},makeArray:function(e,t){var i,n=t||[];return null!=e&&(i=Z.type(e),null==e.length||"string"===i||"function"===i||"regexp"===i||Z.isWindow(e)?V.call(n,e):Z.merge(n,e)),n},inArray:function(e,t,i){var n;if(t){if(Y)return Y.call(t,e,i);for(n=t.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,i){var n=i.length,o=e.length,a=0;if("number"==typeof n)for(;n>a;a++)e[o++]=i[a];else for(;i[a]!==t;)e[o++]=i[a++];return e.length=o,e},grep:function(e,t,i){var n,o=[],a=0,r=e.length;for(i=!!i;r>a;a++)n=!!t(e[a],a),i!==n&&o.push(e[a]);return o},map:function(e,i,n){var o,a,r=[],s=0,l=e.length,c=e instanceof Z||l!==t&&"number"==typeof l&&(l>0&&e[0]&&e[l-1]||0===l||Z.isArray(e));if(c)for(;l>s;s++)o=i(e[s],s,n),null!=o&&(r[r.length]=o);else for(a in e)o=i(e[a],a,n),null!=o&&(r[r.length]=o);return r.concat.apply([],r)},guid:1,proxy:function(e,i){var n,o,a;return"string"==typeof i&&(n=e[i],i=e,e=n),Z.isFunction(e)?(o=K.call(arguments,2),a=function(){return e.apply(i,o.concat(K.call(arguments)))},a.guid=e.guid=e.guid||Z.guid++,a):t},access:function(e,i,n,o,a,r,s){var l,c=null==n,u=0,d=e.length;if(n&&"object"==typeof n){for(u in n)Z.access(e,i,u,n[u],1,r,o);a=1}else if(o!==t){if(l=s===t&&Z.isFunction(o),c&&(l?(l=i,i=function(e,t,i){return l.call(Z(e),i)}):(i.call(e,o),i=null)),i)for(;d>u;u++)i(e[u],n,l?o.call(e[u],u,i(e[u],n)):o,s);a=1}return a?e:c?i.call(e):d?i(e[0],n):r},now:function(){return(new Date).getTime()}}),Z.ready.promise=function(t){if(!F)if(F=Z.Deferred(),"complete"===z.readyState)setTimeout(Z.ready,1);else if(z.addEventListener)z.addEventListener("DOMContentLoaded",ht,!1),e.addEventListener("load",Z.ready,!1);else{z.attachEvent("onreadystatechange",ht),e.attachEvent("onload",Z.ready);var i=!1;try{i=null==e.frameElement&&z.documentElement}catch(n){}i&&i.doScroll&&!function o(){if(!Z.isReady){try{i.doScroll("left")}catch(e){return setTimeout(o,50)}Z.ready()}}()}return F.promise(t)},Z.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){pt["[object "+t+"]"]=t.toLowerCase()}),j=Z(z);var ft={};Z.Callbacks=function(e){e="string"==typeof e?ft[e]||i(e):Z.extend({},e);var n,o,a,r,s,l,c=[],u=!e.once&&[],d=function(t){for(n=e.memory&&t,o=!0,l=r||0,r=0,s=c.length,a=!0;c&&s>l;l++)if(c[l].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}a=!1,c&&(u?u.length&&d(u.shift()):n?c=[]:h.disable())},h={add:function(){if(c){var t=c.length;!function i(t){Z.each(t,function(t,n){var o=Z.type(n);"function"===o?e.unique&&h.has(n)||c.push(n):n&&n.length&&"string"!==o&&i(n)})}(arguments),a?s=c.length:n&&(r=t,d(n))}return this},remove:function(){return c&&Z.each(arguments,function(e,t){for(var i;(i=Z.inArray(t,c,i))>-1;)c.splice(i,1),a&&(s>=i&&s--,l>=i&&l--)}),this},has:function(e){return Z.inArray(e,c)>-1},empty:function(){return c=[],this},disable:function(){return c=u=n=t,this},disabled:function(){return!c},lock:function(){return u=t,n||h.disable(),this},locked:function(){return!u},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!c||o&&!u||(a?u.push(t):d(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!o}};return h},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred(function(i){Z.each(t,function(t,n){var a=n[0],r=e[t];o[n[1]](Z.isFunction(r)?function(){var e=r.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[a+"With"](this===o?i:this,[e])}:i[a])}),e=null}).promise()},promise:function(e){return null!=e?Z.extend(e,n):n}},o={};return n.pipe=n.then,Z.each(t,function(e,a){var r=a[2],s=a[3];n[a[1]]=r.add,s&&r.add(function(){i=s},t[1^e][2].disable,t[2][2].lock),o[a[0]]=r.fire,o[a[0]+"With"]=r.fireWith}),n.promise(o),e&&e.call(o,o),o},when:function(e){var t,i,n,o=0,a=K.call(arguments),r=a.length,s=1!==r||e&&Z.isFunction(e.promise)?r:0,l=1===s?e:Z.Deferred(),c=function(e,i,n){return function(o){i[e]=this,n[e]=arguments.length>1?K.call(arguments):o,n===t?l.notifyWith(i,n):--s||l.resolveWith(i,n)}};if(r>1)for(t=new Array(r),i=new Array(r),n=new Array(r);r>o;o++)a[o]&&Z.isFunction(a[o].promise)?a[o].promise().done(c(o,n,a)).fail(l.reject).progress(c(o,i,t)):--s;return s||l.resolveWith(n,a),l.promise()}}),Z.support=function(){var t,i,n,o,a,r,s,l,c,u,d,h=z.createElement("div");if(h.setAttribute("className","t"),h.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=h.getElementsByTagName("*"),n=h.getElementsByTagName("a")[0],!i||!n||!i.length)return{};o=z.createElement("select"),a=o.appendChild(z.createElement("option")),r=h.getElementsByTagName("input")[0],n.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:3===h.firstChild.nodeType,tbody:!h.getElementsByTagName("tbody").length,htmlSerialize:!!h.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.5/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:"on"===r.value,optSelected:a.selected,getSetAttribute:"t"!==h.className,enctype:!!z.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===z.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},r.checked=!0,t.noCloneChecked=r.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!a.disabled;try{delete h.test}catch(p){t.deleteExpando=!1}if(!h.addEventListener&&h.attachEvent&&h.fireEvent&&(h.attachEvent("onclick",d=function(){t.noCloneEvent=!1}),h.cloneNode(!0).fireEvent("onclick"),h.detachEvent("onclick",d)),r=z.createElement("input"),r.value="t",r.setAttribute("type","radio"),t.radioValue="t"===r.value,r.setAttribute("checked","checked"),r.setAttribute("name","t"),h.appendChild(r),s=z.createDocumentFragment(),s.appendChild(h.lastChild),t.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=r.checked,s.removeChild(r),s.appendChild(h),h.attachEvent)for(c in{submit:!0,change:!0,focusin:!0})l="on"+c,u=l in h,u||(h.setAttribute(l,"return;"),u="function"==typeof h[l]),t[c+"Bubbles"]=u;return Z(function(){var i,n,o,a,r="padding:0;margin:0;border:0;display:block;overflow:hidden;",s=z.getElementsByTagName("body")[0];s&&(i=z.createElement("div"),i.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",s.insertBefore(i,s.firstChild),n=z.createElement("div"),i.appendChild(n),n.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=n.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",u=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=u&&0===o[0].offsetHeight,n.innerHTML="",n.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===n.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==s.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(n,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(n,null)||{width:"4px"}).width,a=z.createElement("div"),a.style.cssText=n.style.cssText=r,a.style.marginRight=a.style.width="0",n.style.width="1px",n.appendChild(a),t.reliableMarginRight=!parseFloat((e.getComputedStyle(a,null)||{}).marginRight)),"undefined"!=typeof n.style.zoom&&(n.innerHTML="",n.style.cssText=r+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===n.offsetWidth,n.style.display="block",n.style.overflow="visible",n.innerHTML="<div></div>",n.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==n.offsetWidth,i.style.zoom=1),s.removeChild(i),i=n=o=a=null)}),s.removeChild(h),i=n=o=a=r=s=h=null,t}();var mt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,gt=/([A-Z])/g;Z.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(Z.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?Z.cache[e[Z.expando]]:e[Z.expando],!!e&&!o(e)},data:function(e,i,n,o){if(Z.acceptData(e)){var a,r,s=Z.expando,l="string"==typeof i,c=e.nodeType,u=c?Z.cache:e,d=c?e[s]:e[s]&&s;if(d&&u[d]&&(o||u[d].data)||!l||n!==t)return d||(c?e[s]=d=Z.deletedIds.pop()||Z.guid++:d=s),u[d]||(u[d]={},c||(u[d].toJSON=Z.noop)),("object"==typeof i||"function"==typeof i)&&(o?u[d]=Z.extend(u[d],i):u[d].data=Z.extend(u[d].data,i)),a=u[d],o||(a.data||(a.data={}),a=a.data),n!==t&&(a[Z.camelCase(i)]=n),l?(r=a[i],null==r&&(r=a[Z.camelCase(i)])):r=a,r}},removeData:function(e,t,i){if(Z.acceptData(e)){var n,a,r,s=e.nodeType,l=s?Z.cache:e,c=s?e[Z.expando]:Z.expando;if(l[c]){if(t&&(n=i?l[c]:l[c].data)){Z.isArray(t)||(t in n?t=[t]:(t=Z.camelCase(t),t=t in n?[t]:t.split(" ")));for(a=0,r=t.length;r>a;a++)delete n[t[a]];if(!(i?o:Z.isEmptyObject)(n))return}(i||(delete l[c].data,o(l[c])))&&(s?Z.cleanData([e],!0):Z.support.deleteExpando||l!=l.window?delete l[c]:l[c]=null)}}},_data:function(e,t,i){return Z.data(e,t,i,!0)},acceptData:function(e){var t=e.nodeName&&Z.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),Z.fn.extend({data:function(e,i){var o,a,r,s,l,c=this[0],u=0,d=null;if(e===t){if(this.length&&(d=Z.data(c),1===c.nodeType&&!Z._data(c,"parsedAttrs"))){for(r=c.attributes,l=r.length;l>u;u++)s=r[u].name,s.indexOf("data-")||(s=Z.camelCase(s.substring(5)),n(c,s,d[s]));Z._data(c,"parsedAttrs",!0)}return d}return"object"==typeof e?this.each(function(){Z.data(this,e)}):(o=e.split(".",2),o[1]=o[1]?"."+o[1]:"",a=o[1]+"!",Z.access(this,function(i){return i===t?(d=this.triggerHandler("getData"+a,[o[0]]),d===t&&c&&(d=Z.data(c,e),d=n(c,e,d)),d===t&&o[1]?this.data(o[0]):d):(o[1]=i,this.each(function(){var t=Z(this);t.triggerHandler("setData"+a,o),Z.data(this,e,i),t.triggerHandler("changeData"+a,o)}),void 0)},null,i,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){Z.removeData(this,e)})}}),Z.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=Z._data(e,t),i&&(!n||Z.isArray(i)?n=Z._data(e,t,Z.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=Z.queue(e,t),n=i.length,o=i.shift(),a=Z._queueHooks(e,t),r=function(){Z.dequeue(e,t)};"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===t&&i.unshift("inprogress"),delete a.stop,o.call(e,r,a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Z._data(e,i)||Z._data(e,i,{empty:Z.Callbacks("once memory").add(function(){Z.removeData(e,t+"queue",!0),Z.removeData(e,i,!0)})})}}),Z.fn.extend({queue:function(e,i){var n=2;return"string"!=typeof e&&(i=e,e="fx",n--),arguments.length<n?Z.queue(this[0],e):i===t?this:this.each(function(){var t=Z.queue(this,e,i);Z._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&Z.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Z.dequeue(this,e)})},delay:function(e,t){return e=Z.fx?Z.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,i){var n=setTimeout(t,e);i.stop=function(){clearTimeout(n)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,i){var n,o=1,a=Z.Deferred(),r=this,s=this.length,l=function(){--o||a.resolveWith(r,[r])};for("string"!=typeof e&&(i=e,e=t),e=e||"fx";s--;)n=Z._data(r[s],e+"queueHooks"),n&&n.empty&&(o++,n.empty.add(l));return l(),a.promise(i)}});var vt,bt,yt,_t=/[\t\r\n]/g,wt=/\r/g,xt=/^(?:button|input)$/i,Ct=/^(?:button|input|object|select|textarea)$/i,kt=/^a(?:rea|)$/i,Tt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Dt=Z.support.getSetAttribute;Z.fn.extend({attr:function(e,t){return Z.access(this,Z.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Z.removeAttr(this,e)})},prop:function(e,t){return Z.access(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return e=Z.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(i){}})},addClass:function(e){var t,i,n,o,a,r,s;if(Z.isFunction(e))return this.each(function(t){Z(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(tt),i=0,n=this.length;n>i;i++)if(o=this[i],1===o.nodeType)if(o.className||1!==t.length){for(a=" "+o.className+" ",r=0,s=t.length;s>r;r++)a.indexOf(" "+t[r]+" ")<0&&(a+=t[r]+" ");o.className=Z.trim(a)}else o.className=e;return this},removeClass:function(e){var i,n,o,a,r,s,l;if(Z.isFunction(e))return this.each(function(t){Z(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||e===t)for(i=(e||"").split(tt),s=0,l=this.length;l>s;s++)if(o=this[s],1===o.nodeType&&o.className){for(n=(" "+o.className+" ").replace(_t," "),a=0,r=i.length;r>a;a++)for(;n.indexOf(" "+i[a]+" ")>=0;)n=n.replace(" "+i[a]+" "," ");o.className=e?Z.trim(n):""}return this},toggleClass:function(e,t){var i=typeof e,n="boolean"==typeof t;return Z.isFunction(e)?this.each(function(i){Z(this).toggleClass(e.call(this,i,this.className,t),t)}):this.each(function(){if("string"===i)for(var o,a=0,r=Z(this),s=t,l=e.split(tt);o=l[a++];)s=n?s:!r.hasClass(o),r[s?"addClass":"removeClass"](o);else("undefined"===i||"boolean"===i)&&(this.className&&Z._data(this,"__className__",this.className),this.className=this.className||e===!1?"":Z._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(_t," ").indexOf(t)>=0)return!0;return!1},val:function(e){var i,n,o,a=this[0];{if(arguments.length)return o=Z.isFunction(e),this.each(function(n){var a,r=Z(this);1===this.nodeType&&(a=o?e.call(this,n,r.val()):e,null==a?a="":"number"==typeof a?a+="":Z.isArray(a)&&(a=Z.map(a,function(e){return null==e?"":e+""})),i=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],i&&"set"in i&&i.set(this,a,"value")!==t||(this.value=a))});if(a)return i=Z.valHooks[a.type]||Z.valHooks[a.nodeName.toLowerCase()],i&&"get"in i&&(n=i.get(a,"value"))!==t?n:(n=a.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),Z.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,i,n=e.options,o=e.selectedIndex,a="select-one"===e.type||0>o,r=a?null:[],s=a?o+1:n.length,l=0>o?s:a?o:0;s>l;l++)if(i=n[l],!(!i.selected&&l!==o||(Z.support.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&Z.nodeName(i.parentNode,"optgroup"))){if(t=Z(i).val(),a)return t;r.push(t)}return r},set:function(e,t){var i=Z.makeArray(t);return Z(e).find("option").each(function(){this.selected=Z.inArray(Z(this).val(),i)>=0}),i.length||(e.selectedIndex=-1),i}}},attrFn:{},attr:function(e,i,n,o){var a,r,s,l=e.nodeType;if(e&&3!==l&&8!==l&&2!==l)return o&&Z.isFunction(Z.fn[i])?Z(e)[i](n):"undefined"==typeof e.getAttribute?Z.prop(e,i,n):(s=1!==l||!Z.isXMLDoc(e),s&&(i=i.toLowerCase(),r=Z.attrHooks[i]||(Tt.test(i)?bt:vt)),n!==t?null===n?(Z.removeAttr(e,i),void 0):r&&"set"in r&&s&&(a=r.set(e,n,i))!==t?a:(e.setAttribute(i,n+""),n):r&&"get"in r&&s&&null!==(a=r.get(e,i))?a:(a=e.getAttribute(i),null===a?t:a))},removeAttr:function(e,t){var i,n,o,a,r=0;if(t&&1===e.nodeType)for(n=t.split(tt);r<n.length;r++)o=n[r],o&&(i=Z.propFix[o]||o,a=Tt.test(o),a||Z.attr(e,o,""),e.removeAttribute(Dt?o:i),a&&i in e&&(e[i]=!1))},attrHooks:{type:{set:function(e,t){if(xt.test(e.nodeName)&&e.parentNode)Z.error("type property can't be changed");else if(!Z.support.radioValue&&"radio"===t&&Z.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}},value:{get:function(e,t){return vt&&Z.nodeName(e,"button")?vt.get(e,t):t in e?e.value:null},set:function(e,t,i){return vt&&Z.nodeName(e,"button")?vt.set(e,t,i):(e.value=t,void 0)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,i,n){var o,a,r,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return r=1!==s||!Z.isXMLDoc(e),r&&(i=Z.propFix[i]||i,a=Z.propHooks[i]),n!==t?a&&"set"in a&&(o=a.set(e,n,i))!==t?o:e[i]=n:a&&"get"in a&&null!==(o=a.get(e,i))?o:e[i]},propHooks:{tabIndex:{get:function(e){var i=e.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):Ct.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:t}}}}),bt={get:function(e,i){var n,o=Z.prop(e,i);return o===!0||"boolean"!=typeof o&&(n=e.getAttributeNode(i))&&n.nodeValue!==!1?i.toLowerCase():t},set:function(e,t,i){var n;return t===!1?Z.removeAttr(e,i):(n=Z.propFix[i]||i,n in e&&(e[n]=!0),e.setAttribute(i,i.toLowerCase())),i}},Dt||(yt={name:!0,id:!0,coords:!0},vt=Z.valHooks.button={get:function(e,i){var n;return n=e.getAttributeNode(i),n&&(yt[i]?""!==n.value:n.specified)?n.value:t},set:function(e,t,i){var n=e.getAttributeNode(i);return n||(n=z.createAttribute(i),e.setAttributeNode(n)),n.value=t+""}},Z.each(["width","height"],function(e,t){Z.attrHooks[t]=Z.extend(Z.attrHooks[t],{set:function(e,i){return""===i?(e.setAttribute(t,"auto"),i):void 0}})}),Z.attrHooks.contenteditable={get:vt.get,set:function(e,t,i){""===t&&(t="false"),vt.set(e,t,i)}}),Z.support.hrefNormalized||Z.each(["href","src","width","height"],function(e,i){Z.attrHooks[i]=Z.extend(Z.attrHooks[i],{get:function(e){var n=e.getAttribute(i,2);return null===n?t:n}})}),Z.support.style||(Z.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),Z.support.optSelected||(Z.propHooks.selected=Z.extend(Z.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),Z.support.enctype||(Z.propFix.enctype="encoding"),Z.support.checkOn||Z.each(["radio","checkbox"],function(){Z.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value
|
15
|
+
}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]=Z.extend(Z.valHooks[this],{set:function(e,t){return Z.isArray(t)?e.checked=Z.inArray(Z(e).val(),t)>=0:void 0}})});var St=/^(?:textarea|input|select)$/i,Et=/^([^\.]*|)(?:\.(.+)|)$/,Nt=/(?:^|\s)hover(\.\S+|)\b/,At=/^key/,Pt=/^(?:mouse|contextmenu)|click/,Mt=/^(?:focusinfocus|focusoutblur)$/,It=function(e){return Z.event.special.hover?e:e.replace(Nt,"mouseenter$1 mouseleave$1")};Z.event={add:function(e,i,n,o,a){var r,s,l,c,u,d,h,p,f,m,g;if(3!==e.nodeType&&8!==e.nodeType&&i&&n&&(r=Z._data(e))){for(n.handler&&(f=n,n=f.handler,a=f.selector),n.guid||(n.guid=Z.guid++),l=r.events,l||(r.events=l={}),s=r.handle,s||(r.handle=s=function(e){return"undefined"==typeof Z||e&&Z.event.triggered===e.type?t:Z.event.dispatch.apply(s.elem,arguments)},s.elem=e),i=Z.trim(It(i)).split(" "),c=0;c<i.length;c++)u=Et.exec(i[c])||[],d=u[1],h=(u[2]||"").split(".").sort(),g=Z.event.special[d]||{},d=(a?g.delegateType:g.bindType)||d,g=Z.event.special[d]||{},p=Z.extend({type:d,origType:u[1],data:o,handler:n,guid:n.guid,selector:a,needsContext:a&&Z.expr.match.needsContext.test(a),namespace:h.join(".")},f),m=l[d],m||(m=l[d]=[],m.delegateCount=0,g.setup&&g.setup.call(e,o,h,s)!==!1||(e.addEventListener?e.addEventListener(d,s,!1):e.attachEvent&&e.attachEvent("on"+d,s))),g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),a?m.splice(m.delegateCount++,0,p):m.push(p),Z.event.global[d]=!0;e=null}},global:{},remove:function(e,t,i,n,o){var a,r,s,l,c,u,d,h,p,f,m,g=Z.hasData(e)&&Z._data(e);if(g&&(h=g.events)){for(t=Z.trim(It(t||"")).split(" "),a=0;a<t.length;a++)if(r=Et.exec(t[a])||[],s=l=r[1],c=r[2],s){for(p=Z.event.special[s]||{},s=(n?p.delegateType:p.bindType)||s,f=h[s]||[],u=f.length,c=c?new RegExp("(^|\\.)"+c.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d=0;d<f.length;d++)m=f[d],!o&&l!==m.origType||i&&i.guid!==m.guid||c&&!c.test(m.namespace)||n&&n!==m.selector&&("**"!==n||!m.selector)||(f.splice(d--,1),m.selector&&f.delegateCount--,p.remove&&p.remove.call(e,m));0===f.length&&u!==f.length&&(p.teardown&&p.teardown.call(e,c,g.handle)!==!1||Z.removeEvent(e,s,g.handle),delete h[s])}else for(s in h)Z.event.remove(e,s+t[a],i,n,!0);Z.isEmptyObject(h)&&(delete g.handle,Z.removeData(e,"events",!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(i,n,o,a){if(!o||3!==o.nodeType&&8!==o.nodeType){var r,s,l,c,u,d,h,p,f,m,g=i.type||i,v=[];if(!Mt.test(g+Z.event.triggered)&&(g.indexOf("!")>=0&&(g=g.slice(0,-1),s=!0),g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),o&&!Z.event.customEvent[g]||Z.event.global[g]))if(i="object"==typeof i?i[Z.expando]?i:new Z.Event(g,i):new Z.Event(g),i.type=g,i.isTrigger=!0,i.exclusive=s,i.namespace=v.join("."),i.namespace_re=i.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d=g.indexOf(":")<0?"on"+g:"",o){if(i.result=t,i.target||(i.target=o),n=null!=n?Z.makeArray(n):[],n.unshift(i),h=Z.event.special[g]||{},!h.trigger||h.trigger.apply(o,n)!==!1){if(f=[[o,h.bindType||g]],!a&&!h.noBubble&&!Z.isWindow(o)){for(m=h.delegateType||g,c=Mt.test(m+g)?o:o.parentNode,u=o;c;c=c.parentNode)f.push([c,m]),u=c;u===(o.ownerDocument||z)&&f.push([u.defaultView||u.parentWindow||e,m])}for(l=0;l<f.length&&!i.isPropagationStopped();l++)c=f[l][0],i.type=f[l][1],p=(Z._data(c,"events")||{})[i.type]&&Z._data(c,"handle"),p&&p.apply(c,n),p=d&&c[d],p&&Z.acceptData(c)&&p.apply&&p.apply(c,n)===!1&&i.preventDefault();return i.type=g,a||i.isDefaultPrevented()||h._default&&h._default.apply(o.ownerDocument,n)!==!1||"click"===g&&Z.nodeName(o,"a")||!Z.acceptData(o)||d&&o[g]&&("focus"!==g&&"blur"!==g||0!==i.target.offsetWidth)&&!Z.isWindow(o)&&(u=o[d],u&&(o[d]=null),Z.event.triggered=g,o[g](),Z.event.triggered=t,u&&(o[d]=u)),i.result}}else{r=Z.cache;for(l in r)r[l].events&&r[l].events[g]&&Z.event.trigger(i,n,r[l].handle.elem,!0)}}},dispatch:function(i){i=Z.event.fix(i||e.event);var n,o,a,r,s,l,c,u,d,h=(Z._data(this,"events")||{})[i.type]||[],p=h.delegateCount,f=K.call(arguments),m=!i.exclusive&&!i.namespace,g=Z.event.special[i.type]||{},v=[];if(f[0]=i,i.delegateTarget=this,!g.preDispatch||g.preDispatch.call(this,i)!==!1){if(p&&(!i.button||"click"!==i.type))for(a=i.target;a!=this;a=a.parentNode||this)if(a.disabled!==!0||"click"!==i.type){for(s={},c=[],n=0;p>n;n++)u=h[n],d=u.selector,s[d]===t&&(s[d]=u.needsContext?Z(d,this).index(a)>=0:Z.find(d,this,null,[a]).length),s[d]&&c.push(u);c.length&&v.push({elem:a,matches:c})}for(h.length>p&&v.push({elem:this,matches:h.slice(p)}),n=0;n<v.length&&!i.isPropagationStopped();n++)for(l=v[n],i.currentTarget=l.elem,o=0;o<l.matches.length&&!i.isImmediatePropagationStopped();o++)u=l.matches[o],(m||!i.namespace&&!u.namespace||i.namespace_re&&i.namespace_re.test(u.namespace))&&(i.data=u.data,i.handleObj=u,r=((Z.event.special[u.origType]||{}).handle||u.handler).apply(l.elem,f),r!==t&&(i.result=r,r===!1&&(i.preventDefault(),i.stopPropagation())));return g.postDispatch&&g.postDispatch.call(this,i),i.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,i){var n,o,a,r=i.button,s=i.fromElement;return null==e.pageX&&null!=i.clientX&&(n=e.target.ownerDocument||z,o=n.documentElement,a=n.body,e.pageX=i.clientX+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),e.pageY=i.clientY+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?i.toElement:s),e.which||r===t||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[Z.expando])return e;var t,i,n=e,o=Z.event.fixHooks[e.type]||{},a=o.props?this.props.concat(o.props):this.props;for(e=Z.Event(n),t=a.length;t;)i=a[--t],e[i]=n[i];return e.target||(e.target=n.srcElement||z),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,n):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,i){Z.isWindow(this)&&(this.onbeforeunload=i)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,i,n){var o=Z.extend(new Z.Event,i,{type:e,isSimulated:!0,originalEvent:{}});n?Z.event.trigger(o,null,t):Z.event.dispatch.call(t,o),o.isDefaultPrevented()&&i.preventDefault()}},Z.event.handle=Z.event.dispatch,Z.removeEvent=z.removeEventListener?function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)}:function(e,t,i){var n="on"+t;e.detachEvent&&("undefined"==typeof e[n]&&(e[n]=null),e.detachEvent(n,i))},Z.Event=function(e,t){return this instanceof Z.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?r:a):this.type=e,t&&Z.extend(this,t),this.timeStamp=e&&e.timeStamp||Z.now(),this[Z.expando]=!0,void 0):new Z.Event(e,t)},Z.Event.prototype={preventDefault:function(){this.isDefaultPrevented=r;var e=this.originalEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=r;var e=this.originalEvent;e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r,this.stopPropagation()},isDefaultPrevented:a,isPropagationStopped:a,isImmediatePropagationStopped:a},Z.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){Z.event.special[e]={delegateType:t,bindType:t,handle:function(e){{var i,n=this,o=e.relatedTarget,a=e.handleObj;a.selector}return(!o||o!==n&&!Z.contains(n,o))&&(e.type=a.origType,i=a.handler.apply(this,arguments),e.type=t),i}}}),Z.support.submitBubbles||(Z.event.special.submit={setup:function(){return Z.nodeName(this,"form")?!1:(Z.event.add(this,"click._submit keypress._submit",function(e){var i=e.target,n=Z.nodeName(i,"input")||Z.nodeName(i,"button")?i.form:t;n&&!Z._data(n,"_submit_attached")&&(Z.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),Z._data(n,"_submit_attached",!0))}),void 0)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&Z.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return Z.nodeName(this,"form")?!1:(Z.event.remove(this,"._submit"),void 0)}}),Z.support.changeBubbles||(Z.event.special.change={setup:function(){return St.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(Z.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),Z.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),Z.event.simulate("change",this,e,!0)})),!1):(Z.event.add(this,"beforeactivate._change",function(e){var t=e.target;St.test(t.nodeName)&&!Z._data(t,"_change_attached")&&(Z.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||Z.event.simulate("change",this.parentNode,e,!0)}),Z._data(t,"_change_attached",!0))}),void 0)},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return Z.event.remove(this,"._change"),!St.test(this.nodeName)}}),Z.support.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(e,t){var i=0,n=function(e){Z.event.simulate(t,e.target,Z.event.fix(e),!0)};Z.event.special[t]={setup:function(){0===i++&&z.addEventListener(e,n,!0)},teardown:function(){0===--i&&z.removeEventListener(e,n,!0)}}}),Z.fn.extend({on:function(e,i,n,o,r){var s,l;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=t);for(l in e)this.on(l,i,n,e[l],r);return this}if(null==n&&null==o?(o=i,n=i=t):null==o&&("string"==typeof i?(o=n,n=t):(o=n,n=i,i=t)),o===!1)o=a;else if(!o)return this;return 1===r&&(s=o,o=function(e){return Z().off(e),s.apply(this,arguments)},o.guid=s.guid||(s.guid=Z.guid++)),this.each(function(){Z.event.add(this,e,o,n,i)})},one:function(e,t,i,n){return this.on(e,t,i,n,1)},off:function(e,i,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,Z(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,i,e[r]);return this}return(i===!1||"function"==typeof i)&&(n=i,i=t),n===!1&&(n=a),this.each(function(){Z.event.remove(this,e,n,i)})},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,i){return Z(this.context).on(e,this.selector,t,i),this},die:function(e,t){return Z(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},trigger:function(e,t){return this.each(function(){Z.event.trigger(e,t,this)})},triggerHandler:function(e,t){return this[0]?Z.event.trigger(e,t,this[0],!0):void 0},toggle:function(e){var t=arguments,i=e.guid||Z.guid++,n=0,o=function(i){var o=(Z._data(this,"lastToggle"+e.guid)||0)%n;return Z._data(this,"lastToggle"+e.guid,o+1),i.preventDefault(),t[o].apply(this,arguments)||!1};for(o.guid=i;n<t.length;)t[n++].guid=i;return this.click(o)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),Z.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){Z.fn[t]=function(e,i){return null==i&&(i=e,e=null),arguments.length>0?this.on(t,null,e,i):this.trigger(t)},At.test(t)&&(Z.event.fixHooks[t]=Z.event.keyHooks),Pt.test(t)&&(Z.event.fixHooks[t]=Z.event.mouseHooks)}),/*!
|
16
|
+
* Sizzle CSS Selector Engine
|
17
|
+
* Copyright 2012 jQuery Foundation and other contributors
|
18
|
+
* Released under the MIT license
|
19
|
+
* http://sizzlejs.com/
|
20
|
+
*/
|
21
|
+
function(e,t){function i(e,t,i,n){i=i||[],t=t||P;var o,a,r,s,l=t.nodeType;if(!e||"string"!=typeof e)return i;if(1!==l&&9!==l)return[];if(r=w(t),!r&&!n&&(o=it.exec(e)))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return i;if(a.id===s)return i.push(a),i}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&x(t,a)&&a.id===s)return i.push(a),i}else{if(o[2])return O.apply(i,R.call(t.getElementsByTagName(e),0)),i;if((s=o[3])&&ht&&t.getElementsByClassName)return O.apply(i,R.call(t.getElementsByClassName(s),0)),i}return m(e.replace(Q,"$1"),t,i,n,r)}function n(e){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===e}}function o(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function a(e){return j(function(t){return t=+t,j(function(i,n){for(var o,a=e([],i.length,t),r=a.length;r--;)i[o=a[r]]&&(i[o]=!(n[o]=i[o]))})})}function r(e,t,i){if(e===t)return i;for(var n=e.nextSibling;n;){if(n===t)return-1;n=n.nextSibling}return 1}function s(e,t){var n,o,a,r,s,l,c,u=$[N][e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=y.preFilter;s;){(!n||(o=J.exec(s)))&&(o&&(s=s.slice(o[0].length)||s),l.push(a=[])),n=!1,(o=et.exec(s))&&(a.push(n=new A(o.shift())),s=s.slice(n.length),n.type=o[0].replace(Q," "));for(r in y.filter)!(o=st[r].exec(s))||c[r]&&!(o=c[r](o))||(a.push(n=new A(o.shift())),s=s.slice(n.length),n.type=r,n.matches=o);if(!n)break}return t?s.length:s?i.error(e):$(e,l).slice(0)}function l(e,t,i){var n=t.dir,o=i&&"parentNode"===t.dir,a=H++;return t.first?function(t,i,a){for(;t=t[n];)if(o||1===t.nodeType)return e(t,i,a)}:function(t,i,r){if(r){for(;t=t[n];)if((o||1===t.nodeType)&&e(t,i,r))return t}else for(var s,l=I+" "+a+" ",c=l+v;t=t[n];)if(o||1===t.nodeType){if((s=t[N])===c)return t.sizset;if("string"==typeof s&&0===s.indexOf(l)){if(t.sizset)return t}else{if(t[N]=c,e(t,i,r))return t.sizset=!0,t;t.sizset=!1}}}}function c(e){return e.length>1?function(t,i,n){for(var o=e.length;o--;)if(!e[o](t,i,n))return!1;return!0}:e[0]}function u(e,t,i,n,o){for(var a,r=[],s=0,l=e.length,c=null!=t;l>s;s++)(a=e[s])&&(!i||i(a,n,o))&&(r.push(a),c&&t.push(s));return r}function d(e,t,i,n,o,a){return n&&!n[N]&&(n=d(n)),o&&!o[N]&&(o=d(o,a)),j(function(a,r,s,l){var c,d,h,p=[],m=[],g=r.length,v=a||f(t||"*",s.nodeType?[s]:s,[]),b=!e||!a&&t?v:u(v,p,e,s,l),y=i?o||(a?e:g||n)?[]:r:b;if(i&&i(b,y,s,l),n)for(c=u(y,m),n(c,[],s,l),d=c.length;d--;)(h=c[d])&&(y[m[d]]=!(b[m[d]]=h));if(a){if(o||e){if(o){for(c=[],d=y.length;d--;)(h=y[d])&&c.push(b[d]=h);o(null,y=[],c,l)}for(d=y.length;d--;)(h=y[d])&&(c=o?L.call(a,h):p[d])>-1&&(a[c]=!(r[c]=h))}}else y=u(y===r?y.splice(g,y.length):y),o?o(null,r,y,l):O.apply(r,y)})}function h(e){for(var t,i,n,o=e.length,a=y.relative[e[0].type],r=a||y.relative[" "],s=a?1:0,u=l(function(e){return e===t},r,!0),p=l(function(e){return L.call(t,e)>-1},r,!0),f=[function(e,i,n){return!a&&(n||i!==D)||((t=i).nodeType?u(e,i,n):p(e,i,n))}];o>s;s++)if(i=y.relative[e[s].type])f=[l(c(f),i)];else{if(i=y.filter[e[s].type].apply(null,e[s].matches),i[N]){for(n=++s;o>n&&!y.relative[e[n].type];n++);return d(s>1&&c(f),s>1&&e.slice(0,s-1).join("").replace(Q,"$1"),i,n>s&&h(e.slice(s,n)),o>n&&h(e=e.slice(n)),o>n&&e.join(""))}f.push(i)}return c(f)}function p(e,t){var n=t.length>0,o=e.length>0,a=function(r,s,l,c,d){var h,p,f,m=[],g=0,b="0",_=r&&[],w=null!=d,x=D,C=r||o&&y.find.TAG("*",d&&s.parentNode||s),k=I+=null==x?1:Math.E;for(w&&(D=s!==P&&s,v=a.el);null!=(h=C[b]);b++){if(o&&h){for(p=0;f=e[p];p++)if(f(h,s,l)){c.push(h);break}w&&(I=k,v=++a.el)}n&&((h=!f&&h)&&g--,r&&_.push(h))}if(g+=b,n&&b!==g){for(p=0;f=t[p];p++)f(_,m,s,l);if(r){if(g>0)for(;b--;)_[b]||m[b]||(m[b]=B.call(c));m=u(m)}O.apply(c,m),w&&!r&&m.length>0&&g+t.length>1&&i.uniqueSort(c)}return w&&(I=k,D=x),_};return a.el=0,n?j(a):a}function f(e,t,n){for(var o=0,a=t.length;a>o;o++)i(e,t[o],n);return n}function m(e,t,i,n,o){{var a,r,l,c,u,d=s(e);d.length}if(!n&&1===d.length){if(r=d[0]=d[0].slice(0),r.length>2&&"ID"===(l=r[0]).type&&9===t.nodeType&&!o&&y.relative[r[1].type]){if(t=y.find.ID(l.matches[0].replace(rt,""),t,o)[0],!t)return i;e=e.slice(r.shift().length)}for(a=st.POS.test(e)?-1:r.length-1;a>=0&&(l=r[a],!y.relative[c=l.type]);a--)if((u=y.find[c])&&(n=u(l.matches[0].replace(rt,""),nt.test(r[0].type)&&t.parentNode||t,o))){if(r.splice(a,1),e=n.length&&r.join(""),!e)return O.apply(i,R.call(n,0)),i;break}}return C(e,d)(n,t,o,i,nt.test(e)),i}function g(){}var v,b,y,_,w,x,C,k,T,D,S=!0,E="undefined",N=("sizcache"+Math.random()).replace(".",""),A=String,P=e.document,M=P.documentElement,I=0,H=0,B=[].pop,O=[].push,R=[].slice,L=[].indexOf||function(e){for(var t=0,i=this.length;i>t;t++)if(this[t]===e)return t;return-1},j=function(e,t){return e[N]=null==t||t,e},F=function(){var e={},t=[];return j(function(i,n){return t.push(i)>y.cacheLength&&delete e[t.shift()],e[i+" "]=n},e)},z=F(),$=F(),q=F(),W="[\\x20\\t\\r\\n\\f]",U="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",V=U.replace("w","w#"),K="([*^$|!~]?=)",Y="\\["+W+"*("+U+")"+W+"*(?:"+K+W+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+V+")|)|)"+W+"*\\]",X=":("+U+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+Y+")|[^:]|\\\\.)*|.*))\\)|)",G=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+W+"*((?:-\\d)?\\d*)"+W+"*\\)|)(?=[^-]|$)",Q=new RegExp("^"+W+"+|((?:^|[^\\\\])(?:\\\\.)*)"+W+"+$","g"),J=new RegExp("^"+W+"*,"+W+"*"),et=new RegExp("^"+W+"*([\\x20\\t\\r\\n\\f>+~])"+W+"*"),tt=new RegExp(X),it=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,nt=/[\x20\t\r\n\f]*[+~]/,ot=/h\d/i,at=/input|select|textarea|button/i,rt=/\\(?!\\)/g,st={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),NAME:new RegExp("^\\[name=['\"]?("+U+")['\"]?\\]"),TAG:new RegExp("^("+U.replace("w","w*")+")"),ATTR:new RegExp("^"+Y),PSEUDO:new RegExp("^"+X),POS:new RegExp(G,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+W+"*(even|odd|(([+-]|)(\\d*)n|)"+W+"*(?:([+-]|)"+W+"*(\\d+)|))"+W+"*\\)|)","i"),needsContext:new RegExp("^"+W+"*[>+~]|"+G,"i")},lt=function(e){var t=P.createElement("div");try{return e(t)}catch(i){return!1}finally{t=null}},ct=lt(function(e){return e.appendChild(P.createComment("")),!e.getElementsByTagName("*").length}),ut=lt(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==E&&"#"===e.firstChild.getAttribute("href")}),dt=lt(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),ht=lt(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),pt=lt(function(e){e.id=N+0,e.innerHTML="<a name='"+N+"'></a><div name='"+N+"'></div>",M.insertBefore(e,M.firstChild);var t=P.getElementsByName&&P.getElementsByName(N).length===2+P.getElementsByName(N+0).length;return b=!P.getElementById(N),M.removeChild(e),t});try{R.call(M.childNodes,0)[0].nodeType}catch(ft){R=function(e){for(var t,i=[];t=this[e];e++)i.push(t);return i}}i.matches=function(e,t){return i(e,null,null,t)},i.matchesSelector=function(e,t){return i(t,null,null,[e]).length>0},_=i.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=_(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n];n++)i+=_(t);return i},w=i.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},x=i.contains=M.contains?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!!(n&&1===n.nodeType&&i.contains&&i.contains(n))}:M.compareDocumentPosition?function(e,t){return t&&!!(16&e.compareDocumentPosition(t))}:function(e,t){for(;t=t.parentNode;)if(t===e)return!0;return!1},i.attr=function(e,t){var i,n=w(e);return n||(t=t.toLowerCase()),(i=y.attrHandle[t])?i(e):n||dt?e.getAttribute(t):(i=e.getAttributeNode(t),i?"boolean"==typeof e[t]?e[t]?t:null:i.specified?i.value:null:null)},y=i.selectors={cacheLength:50,createPseudo:j,match:st,attrHandle:ut?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:b?function(e,t,i){if(typeof t.getElementById!==E&&!i){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}}:function(e,i,n){if(typeof i.getElementById!==E&&!n){var o=i.getElementById(e);return o?o.id===e||typeof o.getAttributeNode!==E&&o.getAttributeNode("id").value===e?[o]:t:[]}},TAG:ct?function(e,t){return typeof t.getElementsByTagName!==E?t.getElementsByTagName(e):void 0}:function(e,t){var i=t.getElementsByTagName(e);if("*"===e){for(var n,o=[],a=0;n=i[a];a++)1===n.nodeType&&o.push(n);return o}return i},NAME:pt&&function(e,t){return typeof t.getElementsByName!==E?t.getElementsByName(name):void 0},CLASS:ht&&function(e,t,i){return typeof t.getElementsByClassName===E||i?void 0:t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,""),e[3]=(e[4]||e[5]||"").replace(rt,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||i.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&i.error(e[0]),e},PSEUDO:function(e){var t,i;return st.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(t=e[4])&&(tt.test(t)&&(i=s(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(t=t.slice(0,i),e[0]=e[0].slice(0,i)),e[2]=t),e.slice(0,3))}},filter:{ID:b?function(e){return e=e.replace(rt,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace(rt,""),function(t){var i=typeof t.getAttributeNode!==E&&t.getAttributeNode("id");return i&&i.value===e}},TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(rt,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=z[N][e+" "];return t||(t=new RegExp("(^|"+W+")"+e+"("+W+"|$)"))&&z(e,function(e){return t.test(e.className||typeof e.getAttribute!==E&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(o){var a=i.attr(o,e);return null==a?"!="===t:t?(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.substr(a.length-n.length)===n:"~="===t?(" "+a+" ").indexOf(n)>-1:"|="===t?a===n||a.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,i,n){return"nth"===e?function(e){var t,o,a=e.parentNode;if(1===i&&0===n)return!0;if(a)for(o=0,t=a.firstChild;t&&(1!==t.nodeType||(o++,e!==t));t=t.nextSibling);return o-=n,o===i||o%i===0&&o/i>=0}:function(t){var i=t;switch(e){case"only":case"first":for(;i=i.previousSibling;)if(1===i.nodeType)return!1;if("first"===e)return!0;i=t;case"last":for(;i=i.nextSibling;)if(1===i.nodeType)return!1;return!0}}},PSEUDO:function(e,t){var n,o=y.pseudos[e]||y.setFilters[e.toLowerCase()]||i.error("unsupported pseudo: "+e);return o[N]?o(t):o.length>1?(n=[e,e,"",t],y.setFilters.hasOwnProperty(e.toLowerCase())?j(function(e,i){for(var n,a=o(e,t),r=a.length;r--;)n=L.call(e,a[r]),e[n]=!(i[n]=a[r])}):function(e){return o(e,0,n)}):o}},pseudos:{not:j(function(e){var t=[],i=[],n=C(e.replace(Q,"$1"));return n[N]?j(function(e,t,i,o){for(var a,r=n(e,null,o,[]),s=e.length;s--;)(a=r[s])&&(e[s]=!(t[s]=a))}):function(e,o,a){return t[0]=e,n(t,null,a,i),!i.pop()}}),has:j(function(e){return function(t){return i(e,t).length>0}}),contains:j(function(e){return function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!y.pseudos.empty(e)},empty:function(e){var t;for(e=e.firstChild;e;){if(e.nodeName>"@"||3===(t=e.nodeType)||4===t)return!1;e=e.nextSibling}return!0},header:function(e){return ot.test(e.nodeName)},text:function(e){var t,i;return"input"===e.nodeName.toLowerCase()&&"text"===(t=e.type)&&(null==(i=e.getAttribute("type"))||i.toLowerCase()===t)},radio:n("radio"),checkbox:n("checkbox"),file:n("file"),password:n("password"),image:n("image"),submit:o("submit"),reset:o("reset"),button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return at.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:a(function(){return[0]}),last:a(function(e,t){return[t-1]}),eq:a(function(e,t,i){return[0>i?i+t:i]}),even:a(function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e}),odd:a(function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e}),lt:a(function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e}),gt:a(function(e,t,i){for(var n=0>i?i+t:i;++n<t;)e.push(n);return e})}},k=M.compareDocumentPosition?function(e,t){return e===t?(T=!0,0):(e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t):e.compareDocumentPosition)?-1:1}:function(e,t){if(e===t)return T=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var i,n,o=[],a=[],s=e.parentNode,l=t.parentNode,c=s;if(s===l)return r(e,t);if(!s)return-1;if(!l)return 1;for(;c;)o.unshift(c),c=c.parentNode;for(c=l;c;)a.unshift(c),c=c.parentNode;i=o.length,n=a.length;for(var u=0;i>u&&n>u;u++)if(o[u]!==a[u])return r(o[u],a[u]);return u===i?r(e,a[u],-1):r(o[u],t,1)},[0,0].sort(k),S=!T,i.uniqueSort=function(e){var t,i=[],n=1,o=0;if(T=S,e.sort(k),T){for(;t=e[n];n++)t===e[n-1]&&(o=i.push(n));for(;o--;)e.splice(i[o],1)}return e},i.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},C=i.compile=function(e,t){var i,n=[],o=[],a=q[N][e+" "];if(!a){for(t||(t=s(e)),i=t.length;i--;)a=h(t[i]),a[N]?n.push(a):o.push(a);a=q(e,p(o,n))}return a},P.querySelectorAll&&!function(){var e,t=m,n=/'|\\/g,o=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,a=[":focus"],r=[":active"],l=M.matchesSelector||M.mozMatchesSelector||M.webkitMatchesSelector||M.oMatchesSelector||M.msMatchesSelector;lt(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||a.push("\\["+W+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||a.push(":checked")}),lt(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&a.push("[*^$]="+W+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||a.push(":enabled",":disabled")}),a=new RegExp(a.join("|")),m=function(e,i,o,r,l){if(!r&&!l&&!a.test(e)){var c,u,d=!0,h=N,p=i,f=9===i.nodeType&&e;if(1===i.nodeType&&"object"!==i.nodeName.toLowerCase()){for(c=s(e),(d=i.getAttribute("id"))?h=d.replace(n,"\\$&"):i.setAttribute("id",h),h="[id='"+h+"'] ",u=c.length;u--;)c[u]=h+c[u].join("");p=nt.test(e)&&i.parentNode||i,f=c.join(",")}if(f)try{return O.apply(o,R.call(p.querySelectorAll(f),0)),o}catch(m){}finally{d||i.removeAttribute("id")}}return t(e,i,o,r,l)},l&&(lt(function(t){e=l.call(t,"div");try{l.call(t,"[test!='']:sizzle"),r.push("!=",X)}catch(i){}}),r=new RegExp(r.join("|")),i.matchesSelector=function(t,n){if(n=n.replace(o,"='$1']"),!w(t)&&!r.test(n)&&!a.test(n))try{var s=l.call(t,n);if(s||e||t.document&&11!==t.document.nodeType)return s}catch(c){}return i(n,null,null,[t]).length>0})}(),y.pseudos.nth=y.pseudos.eq,y.filters=g.prototype=y.pseudos,y.setFilters=new g,i.attr=Z.attr,Z.find=i,Z.expr=i.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=i.uniqueSort,Z.text=i.getText,Z.isXMLDoc=i.isXML,Z.contains=i.contains}(e);var Ht=/Until$/,Bt=/^(?:parents|prev(?:Until|All))/,Ot=/^.[^:#\[\.,]*$/,Rt=Z.expr.match.needsContext,Lt={children:!0,contents:!0,next:!0,prev:!0};Z.fn.extend({find:function(e){var t,i,n,o,a,r,s=this;if("string"!=typeof e)return Z(e).filter(function(){for(t=0,i=s.length;i>t;t++)if(Z.contains(s[t],this))return!0});for(r=this.pushStack("","find",e),t=0,i=this.length;i>t;t++)if(n=r.length,Z.find(e,this[t],r),t>0)for(o=n;o<r.length;o++)for(a=0;n>a;a++)if(r[a]===r[o]){r.splice(o--,1);break}return r},has:function(e){var t,i=Z(e,this),n=i.length;return this.filter(function(){for(t=0;n>t;t++)if(Z.contains(this,i[t]))return!0})},not:function(e){return this.pushStack(c(this,e,!1),"not",e)},filter:function(e){return this.pushStack(c(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?Rt.test(e)?Z(e,this.context).index(this[0])>=0:Z.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var i,n=0,o=this.length,a=[],r=Rt.test(e)||"string"!=typeof e?Z(e,t||this.context):0;o>n;n++)for(i=this[n];i&&i.ownerDocument&&i!==t&&11!==i.nodeType;){if(r?r.index(i)>-1:Z.find.matchesSelector(i,e)){a.push(i);break}i=i.parentNode}return a=a.length>1?Z.unique(a):a,this.pushStack(a,"closest",e)},index:function(e){return e?"string"==typeof e?Z.inArray(this[0],Z(e)):Z.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var i="string"==typeof e?Z(e,t):Z.makeArray(e&&e.nodeType?[e]:e),n=Z.merge(this.get(),i);return this.pushStack(s(i[0])||s(n[0])?n:Z.unique(n))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.fn.andSelf=Z.fn.addBack,Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,i){return Z.dir(e,"parentNode",i)},next:function(e){return l(e,"nextSibling")},prev:function(e){return l(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,i){return Z.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return Z.dir(e,"previousSibling",i)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return Z.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:Z.merge([],e.childNodes)}},function(e,t){Z.fn[e]=function(i,n){var o=Z.map(this,t,i);return Ht.test(e)||(n=i),n&&"string"==typeof n&&(o=Z.filter(n,o)),o=this.length>1&&!Lt[e]?Z.unique(o):o,this.length>1&&Bt.test(e)&&(o=o.reverse()),this.pushStack(o,e,K.call(arguments).join(","))}}),Z.extend({filter:function(e,t,i){return i&&(e=":not("+e+")"),1===t.length?Z.find.matchesSelector(t[0],e)?[t[0]]:[]:Z.find.matches(e,t)},dir:function(e,i,n){for(var o=[],a=e[i];a&&9!==a.nodeType&&(n===t||1!==a.nodeType||!Z(a).is(n));)1===a.nodeType&&o.push(a),a=a[i];return o},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}});var jt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ft=/ jQuery\d+="(?:null|\d+)"/g,zt=/^\s+/,$t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,qt=/<([\w:]+)/,Wt=/<tbody/i,Ut=/<|&#?\w+;/,Vt=/<(?:script|style|link)/i,Kt=/<(?:script|object|embed|option|style)/i,Yt=new RegExp("<(?:"+jt+")[\\s/>]","i"),Xt=/^(?:checkbox|radio)$/,Gt=/checked\s*(?:[^=]|=\s*.checked.)/i,Qt=/\/(java|ecma)script/i,Zt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Jt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},ei=u(z),ti=ei.appendChild(z.createElement("div"));Jt.optgroup=Jt.option,Jt.tbody=Jt.tfoot=Jt.colgroup=Jt.caption=Jt.thead,Jt.th=Jt.td,Z.support.htmlSerialize||(Jt._default=[1,"X<div>","</div>"]),Z.fn.extend({text:function(e){return Z.access(this,function(e){return e===t?Z.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(Z.isFunction(e))return this.each(function(t){Z(this).wrapAll(e.call(this,t))});if(this[0]){var t=Z(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return Z.isFunction(e)?this.each(function(t){Z(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Z(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=Z.isFunction(e);return this.each(function(i){Z(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!s(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(e,this),"before",this.selector)}},after:function(){if(!s(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var i,n=0;null!=(i=this[n]);n++)(!e||Z.filter(e,[i]).length)&&(t||1!==i.nodeType||(Z.cleanData(i.getElementsByTagName("*")),Z.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&Z.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Z.clone(this,e,t)})},html:function(e){return Z.access(this,function(e){var i=this[0]||{},n=0,o=this.length;if(e===t)return 1===i.nodeType?i.innerHTML.replace(Ft,""):t;if(!("string"!=typeof e||Vt.test(e)||!Z.support.htmlSerialize&&Yt.test(e)||!Z.support.leadingWhitespace&&zt.test(e)||Jt[(qt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace($t,"<$1></$2>");try{for(;o>n;n++)i=this[n]||{},1===i.nodeType&&(Z.cleanData(i.getElementsByTagName("*")),i.innerHTML=e);i=0}catch(a){}}i&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return s(this[0])?this.length?this.pushStack(Z(Z.isFunction(e)?e():e),"replaceWith",e):this:Z.isFunction(e)?this.each(function(t){var i=Z(this),n=i.html();i.replaceWith(e.call(this,t,n))}):("string"!=typeof e&&(e=Z(e).detach()),this.each(function(){var t=this.nextSibling,i=this.parentNode;Z(this).remove(),t?Z(t).before(e):Z(i).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,i,n){e=[].concat.apply([],e);var o,a,r,s,l=0,c=e[0],u=[],h=this.length;if(!Z.support.checkClone&&h>1&&"string"==typeof c&&Gt.test(c))return this.each(function(){Z(this).domManip(e,i,n)});if(Z.isFunction(c))return this.each(function(o){var a=Z(this);e[0]=c.call(this,o,i?a.html():t),a.domManip(e,i,n)});if(this[0]){if(o=Z.buildFragment(e,this,u),r=o.fragment,a=r.firstChild,1===r.childNodes.length&&(r=a),a)for(i=i&&Z.nodeName(a,"tr"),s=o.cacheable||h-1;h>l;l++)n.call(i&&Z.nodeName(this[l],"table")?d(this[l],"tbody"):this[l],l===s?r:Z.clone(r,!0,!0));r=a=null,u.length&&Z.each(u,function(e,t){t.src?Z.ajax?Z.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):Z.error("no ajax"):Z.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Zt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),Z.buildFragment=function(e,i,n){var o,a,r,s=e[0];return i=i||z,i=!i.nodeType&&i[0]||i,i=i.ownerDocument||i,!(1===e.length&&"string"==typeof s&&s.length<512&&i===z&&"<"===s.charAt(0))||Kt.test(s)||!Z.support.checkClone&&Gt.test(s)||!Z.support.html5Clone&&Yt.test(s)||(a=!0,o=Z.fragments[s],r=o!==t),o||(o=i.createDocumentFragment(),Z.clean(e,i,o,n),a&&(Z.fragments[s]=r&&o)),{fragment:o,cacheable:a}},Z.fragments={},Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Z.fn[e]=function(i){var n,o=0,a=[],r=Z(i),s=r.length,l=1===this.length&&this[0].parentNode;if((null==l||l&&11===l.nodeType&&1===l.childNodes.length)&&1===s)return r[t](this[0]),this;for(;s>o;o++)n=(o>0?this.clone(!0):this).get(),Z(r[o])[t](n),a=a.concat(n);return this.pushStack(a,e,r.selector)}}),Z.extend({clone:function(e,t,i){var n,o,a,r;if(Z.support.html5Clone||Z.isXMLDoc(e)||!Yt.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(ti.innerHTML=e.outerHTML,ti.removeChild(r=ti.firstChild)),!(Z.support.noCloneEvent&&Z.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Z.isXMLDoc(e)))for(p(e,r),n=f(e),o=f(r),a=0;n[a];++a)o[a]&&p(n[a],o[a]);if(t&&(h(e,r),i))for(n=f(e),o=f(r),a=0;n[a];++a)h(n[a],o[a]);return n=o=null,r},clean:function(e,t,i,n){var o,a,r,s,l,c,d,h,p,f,g,v=t===z&&ei,b=[];for(t&&"undefined"!=typeof t.createDocumentFragment||(t=z),o=0;null!=(r=e[o]);o++)if("number"==typeof r&&(r+=""),r){if("string"==typeof r)if(Ut.test(r)){for(v=v||u(t),d=t.createElement("div"),v.appendChild(d),r=r.replace($t,"<$1></$2>"),s=(qt.exec(r)||["",""])[1].toLowerCase(),l=Jt[s]||Jt._default,c=l[0],d.innerHTML=l[1]+r+l[2];c--;)d=d.lastChild;if(!Z.support.tbody)for(h=Wt.test(r),p="table"!==s||h?"<table>"!==l[1]||h?[]:d.childNodes:d.firstChild&&d.firstChild.childNodes,a=p.length-1;a>=0;--a)Z.nodeName(p[a],"tbody")&&!p[a].childNodes.length&&p[a].parentNode.removeChild(p[a]);!Z.support.leadingWhitespace&&zt.test(r)&&d.insertBefore(t.createTextNode(zt.exec(r)[0]),d.firstChild),r=d.childNodes,d.parentNode.removeChild(d)}else r=t.createTextNode(r);r.nodeType?b.push(r):Z.merge(b,r)}if(d&&(r=d=v=null),!Z.support.appendChecked)for(o=0;null!=(r=b[o]);o++)Z.nodeName(r,"input")?m(r):"undefined"!=typeof r.getElementsByTagName&&Z.grep(r.getElementsByTagName("input"),m);if(i)for(f=function(e){return!e.type||Qt.test(e.type)?n?n.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):void 0},o=0;null!=(r=b[o]);o++)Z.nodeName(r,"script")&&f(r)||(i.appendChild(r),"undefined"!=typeof r.getElementsByTagName&&(g=Z.grep(Z.merge([],r.getElementsByTagName("script")),f),b.splice.apply(b,[o+1,0].concat(g)),o+=g.length));return b},cleanData:function(e,t){for(var i,n,o,a,r=0,s=Z.expando,l=Z.cache,c=Z.support.deleteExpando,u=Z.event.special;null!=(o=e[r]);r++)if((t||Z.acceptData(o))&&(n=o[s],i=n&&l[n])){if(i.events)for(a in i.events)u[a]?Z.event.remove(o,a):Z.removeEvent(o,a,i.handle);l[n]&&(delete l[n],c?delete o[s]:o.removeAttribute?o.removeAttribute(s):o[s]=null,Z.deletedIds.push(n))}}}),function(){var e,t;Z.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=Z.uaMatch(q.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),Z.browser=t,Z.sub=function(){function e(t,i){return new e.fn.init(t,i)}Z.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(i,n){return n&&n instanceof Z&&!(n instanceof e)&&(n=e(n)),Z.fn.init.call(this,i,n,t)},e.fn.init.prototype=e.fn;var t=e(z);return e}}();var ii,ni,oi,ai=/alpha\([^)]*\)/i,ri=/opacity=([^)]*)/,si=/^(top|right|bottom|left)$/,li=/^(none|table(?!-c[ea]).+)/,ci=/^margin/,ui=new RegExp("^("+J+")(.*)$","i"),di=new RegExp("^("+J+")(?!px)[a-z%]+$","i"),hi=new RegExp("^([-+])=("+J+")","i"),pi={BODY:"block"},fi={position:"absolute",visibility:"hidden",display:"block"},mi={letterSpacing:0,fontWeight:400},gi=["Top","Right","Bottom","Left"],vi=["Webkit","O","Moz","ms"],bi=Z.fn.toggle;Z.fn.extend({css:function(e,i){return Z.access(this,function(e,i,n){return n!==t?Z.style(e,i,n):Z.css(e,i)},e,i,arguments.length>1)},show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e,t){var i="boolean"==typeof e;return Z.isFunction(e)&&Z.isFunction(t)?bi.apply(this,arguments):this.each(function(){(i?e:v(this))?Z(this).show():Z(this).hide()})}}),Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=ii(e,"opacity");return""===i?"1":i}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":Z.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,i,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,s,l=Z.camelCase(i),c=e.style;if(i=Z.cssProps[l]||(Z.cssProps[l]=g(c,l)),s=Z.cssHooks[i]||Z.cssHooks[l],n===t)return s&&"get"in s&&(a=s.get(e,!1,o))!==t?a:c[i];if(r=typeof n,"string"===r&&(a=hi.exec(n))&&(n=(a[1]+1)*a[2]+parseFloat(Z.css(e,i)),r="number"),!(null==n||"number"===r&&isNaN(n)||("number"!==r||Z.cssNumber[l]||(n+="px"),s&&"set"in s&&(n=s.set(e,n,o))===t)))try{c[i]=n}catch(u){}}},css:function(e,i,n,o){var a,r,s,l=Z.camelCase(i);return i=Z.cssProps[l]||(Z.cssProps[l]=g(e.style,l)),s=Z.cssHooks[i]||Z.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,o)),a===t&&(a=ii(e,i)),"normal"===a&&i in mi&&(a=mi[i]),n||o!==t?(r=parseFloat(a),n||Z.isNumeric(r)?r||0:a):a},swap:function(e,t,i){var n,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];n=i.call(e);for(o in t)e.style[o]=a[o];return n}}),e.getComputedStyle?ii=function(t,i){var n,o,a,r,s=e.getComputedStyle(t,null),l=t.style;return s&&(n=s.getPropertyValue(i)||s[i],""!==n||Z.contains(t.ownerDocument,t)||(n=Z.style(t,i)),di.test(n)&&ci.test(i)&&(o=l.width,a=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=n,n=s.width,l.width=o,l.minWidth=a,l.maxWidth=r)),n}:z.documentElement.currentStyle&&(ii=function(e,t){var i,n,o=e.currentStyle&&e.currentStyle[t],a=e.style;return null==o&&a&&a[t]&&(o=a[t]),di.test(o)&&!si.test(t)&&(i=a.left,n=e.runtimeStyle&&e.runtimeStyle.left,n&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=i,n&&(e.runtimeStyle.left=n)),""===o?"auto":o}),Z.each(["height","width"],function(e,t){Z.cssHooks[t]={get:function(e,i,n){return i?0===e.offsetWidth&&li.test(ii(e,"display"))?Z.swap(e,fi,function(){return w(e,t,n)}):w(e,t,n):void 0},set:function(e,i,n){return y(e,i,n?_(e,t,n,Z.support.boxSizing&&"border-box"===Z.css(e,"boxSizing")):0)}}}),Z.support.opacity||(Z.cssHooks.opacity={get:function(e,t){return ri.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,n=e.currentStyle,o=Z.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=n&&n.filter||i.filter||"";i.zoom=1,t>=1&&""===Z.trim(a.replace(ai,""))&&i.removeAttribute&&(i.removeAttribute("filter"),n&&!n.filter)||(i.filter=ai.test(a)?a.replace(ai,o):a+" "+o)}}),Z(function(){Z.support.reliableMarginRight||(Z.cssHooks.marginRight={get:function(e,t){return Z.swap(e,{display:"inline-block"},function(){return t?ii(e,"marginRight"):void 0})}}),!Z.support.pixelPosition&&Z.fn.position&&Z.each(["top","left"],function(e,t){Z.cssHooks[t]={get:function(e,i){if(i){var n=ii(e,t);return di.test(n)?Z(e).position()[t]+"px":n}}}})}),Z.expr&&Z.expr.filters&&(Z.expr.filters.hidden=function(e){return 0===e.offsetWidth&&0===e.offsetHeight||!Z.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||ii(e,"display"))},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)}),Z.each({margin:"",padding:"",border:"Width"},function(e,t){Z.cssHooks[e+t]={expand:function(i){var n,o="string"==typeof i?i.split(" "):[i],a={};for(n=0;4>n;n++)a[e+gi[n]+t]=o[n]||o[n-2]||o[0];return a}},ci.test(e)||(Z.cssHooks[e+t].set=y)});var yi=/%20/g,_i=/\[\]$/,wi=/\r?\n/g,xi=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ci=/^(?:select|textarea)/i;Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?Z.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Ci.test(this.nodeName)||xi.test(this.type))}).map(function(e,t){var i=Z(this).val();return null==i?null:Z.isArray(i)?Z.map(i,function(e){return{name:t.name,value:e.replace(wi,"\r\n")}}):{name:t.name,value:i.replace(wi,"\r\n")}}).get()}}),Z.param=function(e,i){var n,o=[],a=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)
|
22
|
+
};if(i===t&&(i=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,function(){a(this.name,this.value)});else for(n in e)C(n,e[n],i,a);return o.join("&").replace(yi,"+")};var ki,Ti,Di=/#.*$/,Si=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ei=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Ni=/^(?:GET|HEAD)$/,Ai=/^\/\//,Pi=/\?/,Mi=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ii=/([?&])_=[^&]*/,Hi=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Bi=Z.fn.load,Oi={},Ri={},Li=["*/"]+["*"];try{Ti=$.href}catch(ji){Ti=z.createElement("a"),Ti.href="",Ti=Ti.href}ki=Hi.exec(Ti.toLowerCase())||[],Z.fn.load=function(e,i,n){if("string"!=typeof e&&Bi)return Bi.apply(this,arguments);if(!this.length)return this;var o,a,r,s=this,l=e.indexOf(" ");return l>=0&&(o=e.slice(l,e.length),e=e.slice(0,l)),Z.isFunction(i)?(n=i,i=t):i&&"object"==typeof i&&(a="POST"),Z.ajax({url:e,type:a,dataType:"html",data:i,complete:function(e,t){n&&s.each(n,r||[e.responseText,t,e])}}).done(function(e){r=arguments,s.html(o?Z("<div>").append(e.replace(Mi,"")).find(o):e)}),this},Z.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){Z.fn[t]=function(e){return this.on(t,e)}}),Z.each(["get","post"],function(e,i){Z[i]=function(e,n,o,a){return Z.isFunction(n)&&(a=a||o,o=n,n=t),Z.ajax({type:i,url:e,data:n,success:o,dataType:a})}}),Z.extend({getScript:function(e,i){return Z.get(e,t,i,"script")},getJSON:function(e,t,i){return Z.get(e,t,i,"json")},ajaxSetup:function(e,t){return t?D(e,Z.ajaxSettings):(t=e,e=Z.ajaxSettings),D(e,t),e},ajaxSettings:{url:Ti,isLocal:Ei.test(ki[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Li},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:k(Oi),ajaxTransport:k(Ri),ajax:function(e,i){function n(e,i,n,r){var c,d,b,y,w,C=i;2!==_&&(_=2,l&&clearTimeout(l),s=t,a=r||"",x.readyState=e>0?4:0,n&&(y=S(h,x,n)),e>=200&&300>e||304===e?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(Z.lastModified[o]=w),w=x.getResponseHeader("Etag"),w&&(Z.etag[o]=w)),304===e?(C="notmodified",c=!0):(c=E(h,y),C=c.state,d=c.data,b=c.error,c=!b)):(b=C,(!C||e)&&(C="error",0>e&&(e=0))),x.status=e,x.statusText=(i||C)+"",c?m.resolveWith(p,[d,C,x]):m.rejectWith(p,[x,C,b]),x.statusCode(v),v=t,u&&f.trigger("ajax"+(c?"Success":"Error"),[x,h,c?d:b]),g.fireWith(p,[x,C]),u&&(f.trigger("ajaxComplete",[x,h]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=t),i=i||{};var o,a,r,s,l,c,u,d,h=Z.ajaxSetup({},i),p=h.context||h,f=p!==h&&(p.nodeType||p instanceof Z)?Z(p):Z.event,m=Z.Deferred(),g=Z.Callbacks("once memory"),v=h.statusCode||{},b={},y={},_=0,w="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!_){var i=e.toLowerCase();e=y[i]=y[i]||e,b[e]=t}return this},getAllResponseHeaders:function(){return 2===_?a:null},getResponseHeader:function(e){var i;if(2===_){if(!r)for(r={};i=Si.exec(a);)r[i[1].toLowerCase()]=i[2];i=r[e.toLowerCase()]}return i===t?null:i},overrideMimeType:function(e){return _||(h.mimeType=e),this},abort:function(e){return e=e||w,s&&s.abort(e),n(0,e),this}};if(m.promise(x),x.success=x.done,x.error=x.fail,x.complete=g.add,x.statusCode=function(e){if(e){var t;if(2>_)for(t in e)v[t]=[v[t],e[t]];else t=e[x.status],x.always(t)}return this},h.url=((e||h.url)+"").replace(Di,"").replace(Ai,ki[1]+"//"),h.dataTypes=Z.trim(h.dataType||"*").toLowerCase().split(tt),null==h.crossDomain&&(c=Hi.exec(h.url.toLowerCase()),h.crossDomain=!(!c||c[1]===ki[1]&&c[2]===ki[2]&&(c[3]||("http:"===c[1]?80:443))==(ki[3]||("http:"===ki[1]?80:443)))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Z.param(h.data,h.traditional)),T(Oi,h,i,x),2===_)return x;if(u=h.global,h.type=h.type.toUpperCase(),h.hasContent=!Ni.test(h.type),u&&0===Z.active++&&Z.event.trigger("ajaxStart"),!h.hasContent&&(h.data&&(h.url+=(Pi.test(h.url)?"&":"?")+h.data,delete h.data),o=h.url,h.cache===!1)){var C=Z.now(),k=h.url.replace(Ii,"$1_="+C);h.url=k+(k===h.url?(Pi.test(h.url)?"&":"?")+"_="+C:"")}(h.data&&h.hasContent&&h.contentType!==!1||i.contentType)&&x.setRequestHeader("Content-Type",h.contentType),h.ifModified&&(o=o||h.url,Z.lastModified[o]&&x.setRequestHeader("If-Modified-Since",Z.lastModified[o]),Z.etag[o]&&x.setRequestHeader("If-None-Match",Z.etag[o])),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Li+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)x.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(h.beforeSend.call(p,x,h)===!1||2===_))return x.abort();w="abort";for(d in{success:1,error:1,complete:1})x[d](h[d]);if(s=T(Ri,h,i,x)){x.readyState=1,u&&f.trigger("ajaxSend",[x,h]),h.async&&h.timeout>0&&(l=setTimeout(function(){x.abort("timeout")},h.timeout));try{_=1,s.send(b,n)}catch(D){if(!(2>_))throw D;n(-1,D)}}else n(-1,"No Transport");return x},active:0,lastModified:{},etag:{}});var Fi=[],zi=/\?/,$i=/(=)\?(?=&|$)|\?\?/,qi=Z.now();Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fi.pop()||Z.expando+"_"+qi++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",function(i,n,o){var a,r,s,l=i.data,c=i.url,u=i.jsonp!==!1,d=u&&$i.test(c),h=u&&!d&&"string"==typeof l&&!(i.contentType||"").indexOf("application/x-www-form-urlencoded")&&$i.test(l);return"jsonp"===i.dataTypes[0]||d||h?(a=i.jsonpCallback=Z.isFunction(i.jsonpCallback)?i.jsonpCallback():i.jsonpCallback,r=e[a],d?i.url=c.replace($i,"$1"+a):h?i.data=l.replace($i,"$1"+a):u&&(i.url+=(zi.test(c)?"&":"?")+i.jsonp+"="+a),i.converters["script json"]=function(){return s||Z.error(a+" was not called"),s[0]},i.dataTypes[0]="json",e[a]=function(){s=arguments},o.always(function(){e[a]=r,i[a]&&(i.jsonpCallback=n.jsonpCallback,Fi.push(a)),s&&Z.isFunction(r)&&r(s[0]),s=r=t}),"script"):void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),Z.ajaxTransport("script",function(e){if(e.crossDomain){var i,n=z.head||z.getElementsByTagName("head")[0]||z.documentElement;return{send:function(o,a){i=z.createElement("script"),i.async="async",e.scriptCharset&&(i.charset=e.scriptCharset),i.src=e.url,i.onload=i.onreadystatechange=function(e,o){(o||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,n&&i.parentNode&&n.removeChild(i),i=t,o||a(200,"success"))},n.insertBefore(i,n.firstChild)},abort:function(){i&&i.onload(0,1)}}}});var Wi,Ui=e.ActiveXObject?function(){for(var e in Wi)Wi[e](0,1)}:!1,Vi=0;Z.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&N()||A()}:N,function(e){Z.extend(Z.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(Z.ajaxSettings.xhr()),Z.support.ajax&&Z.ajaxTransport(function(i){if(!i.crossDomain||Z.support.cors){var n;return{send:function(o,a){var r,s,l=i.xhr();if(i.username?l.open(i.type,i.url,i.async,i.username,i.password):l.open(i.type,i.url,i.async),i.xhrFields)for(s in i.xhrFields)l[s]=i.xhrFields[s];i.mimeType&&l.overrideMimeType&&l.overrideMimeType(i.mimeType),i.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");try{for(s in o)l.setRequestHeader(s,o[s])}catch(c){}l.send(i.hasContent&&i.data||null),n=function(e,o){var s,c,u,d,h;try{if(n&&(o||4===l.readyState))if(n=t,r&&(l.onreadystatechange=Z.noop,Ui&&delete Wi[r]),o)4!==l.readyState&&l.abort();else{s=l.status,u=l.getAllResponseHeaders(),d={},h=l.responseXML,h&&h.documentElement&&(d.xml=h);try{d.text=l.responseText}catch(p){}try{c=l.statusText}catch(p){c=""}s||!i.isLocal||i.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(f){o||a(-1,f)}d&&a(s,c,d,u)},i.async?4===l.readyState?setTimeout(n,0):(r=++Vi,Ui&&(Wi||(Wi={},Z(e).unload(Ui)),Wi[r]=n),l.onreadystatechange=n):n()},abort:function(){n&&n(0,1)}}}});var Ki,Yi,Xi=/^(?:toggle|show|hide)$/,Gi=new RegExp("^(?:([-+])=|)("+J+")([a-z%]*)$","i"),Qi=/queueHooks$/,Zi=[B],Ji={"*":[function(e,t){var i,n,o=this.createTween(e,t),a=Gi.exec(t),r=o.cur(),s=+r||0,l=1,c=20;if(a){if(i=+a[2],n=a[3]||(Z.cssNumber[e]?"":"px"),"px"!==n&&s){s=Z.css(o.elem,e,!0)||i||1;do l=l||".5",s/=l,Z.style(o.elem,e,s+n);while(l!==(l=o.cur()/r)&&1!==l&&--c)}o.unit=n,o.start=s,o.end=a[1]?s+(a[1]+1)*i:i}return o}]};Z.Animation=Z.extend(I,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,n=0,o=e.length;o>n;n++)i=e[n],Ji[i]=Ji[i]||[],Ji[i].unshift(t)},prefilter:function(e,t){t?Zi.unshift(e):Zi.push(e)}}),Z.Tween=O,O.prototype={constructor:O,init:function(e,t,i,n,o,a){this.elem=e,this.prop=i,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(Z.cssNumber[i]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return e&&e.get?e.get(this):O.propHooks._default.get(this)},run:function(e){var t,i=O.propHooks[this.prop];return this.pos=t=this.options.duration?Z.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Z.css(e.elem,e.prop,!1,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Z.fx.step[e.prop]?Z.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Z.cssProps[e.prop]]||Z.cssHooks[e.prop])?Z.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Z.each(["toggle","show","hide"],function(e,t){var i=Z.fn[t];Z.fn[t]=function(n,o,a){return null==n||"boolean"==typeof n||!e&&Z.isFunction(n)&&Z.isFunction(o)?i.apply(this,arguments):this.animate(R(t,!0),n,o,a)}}),Z.fn.extend({fadeTo:function(e,t,i,n){return this.filter(v).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var o=Z.isEmptyObject(e),a=Z.speed(t,i,n),r=function(){var t=I(this,Z.extend({},e),a);o&&t.stop(!0)};return o||a.queue===!1?this.each(r):this.queue(a.queue,r)},stop:function(e,i,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=i,i=e,e=t),i&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",a=Z.timers,r=Z._data(this);if(i)r[i]&&r[i].stop&&o(r[i]);else for(i in r)r[i]&&r[i].stop&&Qi.test(i)&&o(r[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));(t||!n)&&Z.dequeue(this,e)})}}),Z.each({slideDown:R("show"),slideUp:R("hide"),slideToggle:R("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Z.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),Z.speed=function(e,t,i){var n=e&&"object"==typeof e?Z.extend({},e):{complete:i||!i&&t||Z.isFunction(e)&&e,duration:e,easing:i&&t||t&&!Z.isFunction(t)&&t};return n.duration=Z.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in Z.fx.speeds?Z.fx.speeds[n.duration]:Z.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){Z.isFunction(n.old)&&n.old.call(this),n.queue&&Z.dequeue(this,n.queue)},n},Z.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Z.timers=[],Z.fx=O.prototype.init,Z.fx.tick=function(){var e,i=Z.timers,n=0;for(Ki=Z.now();n<i.length;n++)e=i[n],e()||i[n]!==e||i.splice(n--,1);i.length||Z.fx.stop(),Ki=t},Z.fx.timer=function(e){e()&&Z.timers.push(e)&&!Yi&&(Yi=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.interval=13,Z.fx.stop=function(){clearInterval(Yi),Yi=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fx.step={},Z.expr&&Z.expr.filters&&(Z.expr.filters.animated=function(e){return Z.grep(Z.timers,function(t){return e===t.elem}).length});var en=/^(?:body|html)$/i;Z.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){Z.offset.setOffset(this,e,t)});var i,n,o,a,r,s,l,c={top:0,left:0},u=this[0],d=u&&u.ownerDocument;if(d)return(n=d.body)===u?Z.offset.bodyOffset(u):(i=d.documentElement,Z.contains(i,u)?("undefined"!=typeof u.getBoundingClientRect&&(c=u.getBoundingClientRect()),o=L(d),a=i.clientTop||n.clientTop||0,r=i.clientLeft||n.clientLeft||0,s=o.pageYOffset||i.scrollTop,l=o.pageXOffset||i.scrollLeft,{top:c.top+s-a,left:c.left+l-r}):c)},Z.offset={bodyOffset:function(e){var t=e.offsetTop,i=e.offsetLeft;return Z.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(Z.css(e,"marginTop"))||0,i+=parseFloat(Z.css(e,"marginLeft"))||0),{top:t,left:i}},setOffset:function(e,t,i){var n=Z.css(e,"position");"static"===n&&(e.style.position="relative");var o,a,r=Z(e),s=r.offset(),l=Z.css(e,"top"),c=Z.css(e,"left"),u=("absolute"===n||"fixed"===n)&&Z.inArray("auto",[l,c])>-1,d={},h={};u?(h=r.position(),o=h.top,a=h.left):(o=parseFloat(l)||0,a=parseFloat(c)||0),Z.isFunction(t)&&(t=t.call(e,i,s)),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):r.css(d)}},Z.fn.extend({position:function(){if(this[0]){var e=this[0],t=this.offsetParent(),i=this.offset(),n=en.test(t[0].nodeName)?{top:0,left:0}:t.offset();return i.top-=parseFloat(Z.css(e,"marginTop"))||0,i.left-=parseFloat(Z.css(e,"marginLeft"))||0,n.top+=parseFloat(Z.css(t[0],"borderTopWidth"))||0,n.left+=parseFloat(Z.css(t[0],"borderLeftWidth"))||0,{top:i.top-n.top,left:i.left-n.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||z.body;e&&!en.test(e.nodeName)&&"static"===Z.css(e,"position");)e=e.offsetParent;return e||z.body})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n=/Y/.test(i);Z.fn[e]=function(o){return Z.access(this,function(e,o,a){var r=L(e);return a===t?r?i in r?r[i]:r.document.documentElement[o]:e[o]:(r?r.scrollTo(n?Z(r).scrollLeft():a,n?a:Z(r).scrollTop()):e[o]=a,void 0)},e,o,arguments.length,null)}}),Z.each({Height:"height",Width:"width"},function(e,i){Z.each({padding:"inner"+e,content:i,"":"outer"+e},function(n,o){Z.fn[o]=function(o,a){var r=arguments.length&&(n||"boolean"!=typeof o),s=n||(o===!0||a===!0?"margin":"border");return Z.access(this,function(i,n,o){var a;return Z.isWindow(i)?i.document.documentElement["client"+e]:9===i.nodeType?(a=i.documentElement,Math.max(i.body["scroll"+e],a["scroll"+e],i.body["offset"+e],a["offset"+e],a["client"+e])):o===t?Z.css(i,n,o,s):Z.style(i,n,o,s)},i,r?o:t,r,null)}})}),e.jQuery=e.$=Z,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return Z})}(window),/*! jQuery UI - v1.9.2 - 2012-11-23
|
23
|
+
* http://jqueryui.com
|
24
|
+
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
|
25
|
+
* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */
|
26
|
+
function(e,t){function i(t,i){var o,a,r,s=t.nodeName.toLowerCase();return"area"===s?(o=t.parentNode,a=o.name,t.href&&a&&"map"===o.nodeName.toLowerCase()?(r=e("img[usemap=#"+a+"]")[0],!!r&&n(r)):!1):(/input|select|textarea|button|object/.test(s)?!t.disabled:"a"===s?t.href||i:i)&&n(t)}function n(t){return e.expr.filters.visible(t)&&!e(t).parents().andSelf().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var o=0,a=/^ui-id-\d+$/;e.ui=e.ui||{},e.ui.version||(e.extend(e.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,i){return"number"==typeof t?this.each(function(){var n=this;setTimeout(function(){e(n).focus(),i&&i.call(n)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var n,o,a=e(this[0]);a.length&&a[0]!==document;){if(n=a.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(o=parseInt(a.css("zIndex"),10),!isNaN(o)&&0!==o))return o;a=a.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++o)})},removeUniqueId:function(){return this.each(function(){a.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,n){return!!e.data(t,n[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),o=isNaN(n);return(o||n>=0)&&i(t,!o)}}),e(function(){var t=document.body,i=t.appendChild(i=document.createElement("div"));i.offsetHeight,e.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=100===i.offsetHeight,e.support.selectstart="onselectstart"in i,t.removeChild(i).style.display="none"}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,n){function o(t,i,n,o){return e.each(a,function(){i-=parseFloat(e.css(t,"padding"+this))||0,n&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),o&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var a="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),s={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+n]=function(i){return i===t?s["inner"+n].call(this):this.each(function(){e(this).css(r,o(this,i)+"px")})},e.fn["outer"+n]=function(t,i){return"number"!=typeof t?s["outer"+n].call(this,t):this.each(function(){e(this).css(r,o(this,t,!0,i)+"px")})}}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),function(){var t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];e.ui.ie=t.length?!0:!1,e.ui.ie6=6===parseFloat(t[1],10)}(),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,n){var o,a=e.ui[t].prototype;for(o in n)a.plugins[o]=a.plugins[o]||[],a.plugins[o].push([i,n[o]])},call:function(e,t,i){var n,o=e.plugins[t];if(o&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(n=0;n<o.length;n++)e.options[o[n][0]]&&o[n][1].apply(e.element,i)}},contains:e.contains,hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",o=!1;return t[n]>0?!0:(t[n]=1,o=t[n]>0,t[n]=0,o)},isOverAxis:function(e,t,i){return e>t&&t+i>e},isOver:function(t,i,n,o,a,r){return e.ui.isOverAxis(t,n,a)&&e.ui.isOverAxis(i,o,r)}}))}(jQuery),function(e,t){var i=0,n=Array.prototype.slice,o=e.cleanData;e.cleanData=function(t){for(var i,n=0;null!=(i=t[n]);n++)try{e(i).triggerHandler("remove")}catch(a){}o(t)},e.widget=function(t,i,n){var o,a,r,s,l=t.split(".")[0];t=t.split(".")[1],o=l+"-"+t,n||(n=i,i=e.Widget),e.expr[":"][o.toLowerCase()]=function(t){return!!e.data(t,o)},e[l]=e[l]||{},a=e[l][t],r=e[l][t]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new r(e,t)},e.extend(r,a,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),s=new i,s.options=e.widget.extend({},s.options),e.each(n,function(t,o){e.isFunction(o)&&(n[t]=function(){var e=function(){return i.prototype[t].apply(this,arguments)},n=function(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,a=this._superApply;return this._super=e,this._superApply=n,t=o.apply(this,arguments),this._super=i,this._superApply=a,t}}())}),r.prototype=e.widget.extend(s,{widgetEventPrefix:a?s.widgetEventPrefix:t},n,{constructor:r,namespace:l,widgetName:t,widgetBaseClass:o,widgetFullName:o}),a?(e.each(a._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete a._childConstructors):i._childConstructors.push(r),e.widget.bridge(t,r)},e.widget.extend=function(i){for(var o,a,r=n.call(arguments,1),s=0,l=r.length;l>s;s++)for(o in r[s])a=r[s][o],r[s].hasOwnProperty(o)&&a!==t&&(i[o]=e.isPlainObject(a)?e.isPlainObject(i[o])?e.widget.extend({},i[o],a):e.widget.extend({},a):a);return i},e.widget.bridge=function(i,o){var a=o.prototype.widgetFullName||i;e.fn[i]=function(r){var s="string"==typeof r,l=n.call(arguments,1),c=this;return r=!s&&l.length?e.widget.extend.apply(null,[r].concat(l)):r,s?this.each(function(){var n,o=e.data(this,a);return o?e.isFunction(o[r])&&"_"!==r.charAt(0)?(n=o[r].apply(o,l),n!==o&&n!==t?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):void 0):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new o(r,this))}),c}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),n!==this&&(e.data(n,this.widgetName,this),e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,n){var o,a,r,s=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(s={},o=i.split("."),i=o.shift(),o.length){for(a=s[i]=e.widget.extend({},this.options[i]),r=0;r<o.length-1;r++)a[o[r]]=a[o[r]]||{},a=a[o[r]];if(i=o.pop(),n===t)return a[i]===t?null:a[i];a[i]=n}else{if(n===t)return this.options[i]===t?null:this.options[i];s[i]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(t,i,n){var o,a=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=o=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),e.each(n,function(n,r){function s(){return t||a.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):void 0}"string"!=typeof r&&(s.guid=r.guid=r.guid||s.guid||e.guid++);var l=n.match(/^(\w+)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?o.delegate(u,c,s):i.bind(c,s)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,n){var o,a,r=this.options[t];if(n=n||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(o in a)o in i||(i[o]=a[o]);return this.element.trigger(i,n),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,o,a){"string"==typeof o&&(o={effect:o});var r,s=o?o===!0||"number"==typeof o?i:o.effect||i:t;o=o||{},"number"==typeof o&&(o={duration:o}),r=!e.isEmptyObject(o),o.complete=a,o.delay&&n.delay(o.delay),r&&e.effects&&(e.effects.effect[s]||e.uiBackCompat!==!1&&e.effects[s])?n[t](o):s!==t&&n[s]?n[s](o.duration,o.easing,a):n.queue(function(i){e(this)[t](),a&&a.call(n[0]),i()})}}),e.uiBackCompat!==!1&&(e.Widget.prototype._getCreateOptions=function(){return e.metadata&&e.metadata.get(this.element[0])[this.widgetName]})}(jQuery),function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,o=1===i.which,a="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return o&&!a&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return!e.ui.ie||document.documentMode>=9||t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(e){e.widget("ui.draggable",e.ui.mouse,{version:"1.9.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||e(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(t),this.handle?(e(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){e('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",t,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=!1;e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1);for(var n=this.element[0],o=!1;n&&(n=n.parentNode);)n==document&&(o=!0);if(!o&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!i||"valid"==this.options.revert&&i||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)){var a=this;e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",t)!==!1&&a._clear()})}else this._trigger("stop",t)!==!1&&this._clear();return!1},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var i=this.options.handle&&e(this.options.handle,this.element).length?!1:!0;return e(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(i=!0)}),i},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t])):"clone"==i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"==i.appendTo?this.element[0].parentNode:i.appendTo),n[0]==this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;if("parent"==t.containment&&(t.containment=this.helper[0].parentNode),("document"==t.containment||"window"==t.containment)&&(this.containment=["document"==t.containment?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==t.containment?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==t.containment?0:e(window).scrollLeft())+e("document"==t.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==t.containment?0:e(window).scrollTop())+(e("document"==t.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(t.containment)||t.containment.constructor==Array)t.containment.constructor==Array&&(this.containment=t.containment);else{var i=e(t.containment),n=i[0];if(!n)return;var o=(i.offset(),"hidden"!=e(n).css("overflow"));this.containment=[(parseInt(e(n).css("borderLeftWidth"),10)||0)+(parseInt(e(n).css("paddingLeft"),10)||0),(parseInt(e(n).css("borderTopWidth"),10)||0)+(parseInt(e(n).css("paddingTop"),10)||0),(o?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(e(n).css("borderLeftWidth"),10)||0)-(parseInt(e(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(o?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(e(n).css("borderTopWidth"),10)||0)-(parseInt(e(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i}},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"==t?1:-1,o=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),a=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())*n}},_generatePosition:function(t){var i=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName),a=t.pageX,r=t.pageY;if(this.originalPosition){var s;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();s=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else s=this.containment;t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(r=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(r=s[3]+this.offset.click.top)}if(i.grid){var c=i.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY;r=s?c-this.offset.click.top<s[1]||c-this.offset.click.top>s[3]?c-this.offset.click.top<s[1]?c+i.grid[1]:c-i.grid[1]:c:c;var u=i.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX;a=s?u-this.offset.click.left<s[0]||u-this.offset.click.left>s[2]?u-this.offset.click.left<s[0]?u+i.grid[0]:u-i.grid[0]:u:u}}return{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]==this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n]),"drag"==t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var n=e(this).data("draggable"),o=n.options,a=e.extend({},i,{item:n.element});n.sortables=[],e(o.connectToSortable).each(function(){var i=e.data(this,"sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,a))})},stop:function(t,i){var n=e(this).data("draggable"),o=e.extend({},i,{item:n.element});e.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"==n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,o))})},drag:function(t,i){var n=e(this).data("draggable"),o=this;e.each(n.sortables,function(){var a=!1,r=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(a=!0,e.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!=r&&this.instance._intersectsWith(this.instance.containerCache)&&e.ui.contains(r.instance.element[0],this.instance.element[0])&&(a=!1),a})),a?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(o).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",t),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",t),n.dropped=!1)})}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),i=e(this).data("draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor")),t.css("cursor",i.cursor)},stop:function(){var t=e(this).data("draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i){var n=e(i.helper),o=e(this).data("draggable").options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(t,i){var n=e(this).data("draggable").options;n._opacity&&e(i.helper).css("opacity",n._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("draggable");t.scrollParent[0]!=document&&"HTML"!=t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var i=e(this).data("draggable"),n=i.options,o=!1;i.scrollParent[0]!=document&&"HTML"!=i.scrollParent[0].tagName?(n.axis&&"x"==n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-t.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=o=i.scrollParent[0].scrollTop+n.scrollSpeed:t.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=o=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&"y"==n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-t.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=o=i.scrollParent[0].scrollLeft+n.scrollSpeed:t.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=o=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&"x"==n.axis||(t.pageY-e(document).scrollTop()<n.scrollSensitivity?o=e(document).scrollTop(e(document).scrollTop()-n.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<n.scrollSensitivity&&(o=e(document).scrollTop(e(document).scrollTop()+n.scrollSpeed))),n.axis&&"y"==n.axis||(t.pageX-e(document).scrollLeft()<n.scrollSensitivity?o=e(document).scrollLeft(e(document).scrollLeft()-n.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<n.scrollSensitivity&&(o=e(document).scrollLeft(e(document).scrollLeft()+n.scrollSpeed)))),o!==!1&&e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(){var t=e(this).data("draggable"),i=t.options;t.snapElements=[],e(i.snap.constructor!=String?i.snap.items||":data(draggable)":i.snap).each(function(){var i=e(this),n=i.offset();this!=t.element[0]&&t.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(t,i){for(var n=e(this).data("draggable"),o=n.options,a=o.snapTolerance,r=i.offset.left,s=r+n.helperProportions.width,l=i.offset.top,c=l+n.helperProportions.height,u=n.snapElements.length-1;u>=0;u--){var d=n.snapElements[u].left,h=d+n.snapElements[u].width,p=n.snapElements[u].top,f=p+n.snapElements[u].height;if(r>d-a&&h+a>r&&l>p-a&&f+a>l||r>d-a&&h+a>r&&c>p-a&&f+a>c||s>d-a&&h+a>s&&l>p-a&&f+a>l||s>d-a&&h+a>s&&c>p-a&&f+a>c){if("inner"!=o.snapMode){var m=Math.abs(p-c)<=a,g=Math.abs(f-l)<=a,v=Math.abs(d-s)<=a,b=Math.abs(h-r)<=a;m&&(i.position.top=n._convertPositionTo("relative",{top:p-n.helperProportions.height,left:0}).top-n.margins.top),g&&(i.position.top=n._convertPositionTo("relative",{top:f,left:0}).top-n.margins.top),v&&(i.position.left=n._convertPositionTo("relative",{top:0,left:d-n.helperProportions.width}).left-n.margins.left),b&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left-n.margins.left)}var y=m||g||v||b;if("outer"!=o.snapMode){var m=Math.abs(p-l)<=a,g=Math.abs(f-c)<=a,v=Math.abs(d-r)<=a,b=Math.abs(h-s)<=a;m&&(i.position.top=n._convertPositionTo("relative",{top:p,left:0}).top-n.margins.top),g&&(i.position.top=n._convertPositionTo("relative",{top:f-n.helperProportions.height,left:0}).top-n.margins.top),v&&(i.position.left=n._convertPositionTo("relative",{top:0,left:d}).left-n.margins.left),b&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left-n.margins.left)}!n.snapElements[u].snapping&&(m||g||v||b||y)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[u].item})),n.snapElements[u].snapping=m||g||v||b||y}else n.snapElements[u].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[u].item})),n.snapElements[u].snapping=!1}}}),e.ui.plugin.add("draggable","stack",{start:function(){var t=e(this).data("draggable").options,i=e.makeArray(e(t.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});if(i.length){var n=parseInt(i[0].style.zIndex)||0;e(i).each(function(e){this.style.zIndex=n+e}),this[0].style.zIndex=n+i.length}}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i){var n=e(i.helper),o=e(this).data("draggable").options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(t,i){var n=e(this).data("draggable").options;n._zIndex&&e(i.helper).css("zIndex",n._zIndex)}})}(jQuery),function(e){e.widget("ui.droppable",{version:"1.9.2",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var t=this.options,i=t.accept;this.isover=0,this.isout=1,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},e.ui.ddmanager.droppables[t.scope]=e.ui.ddmanager.droppables[t.scope]||[],e.ui.ddmanager.droppables[t.scope].push(this),t.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var t=e.ui.ddmanager.droppables[this.options.scope],i=0;i<t.length;i++)t[i]==this&&t.splice(i,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,i){"accept"==t&&(this.accept=e.isFunction(i)?i:function(e){return e.is(i)
|
27
|
+
}),e.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var n=i||e.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]==this.element[0])return!1;var o=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var t=e.data(this,"droppable");return t.options.greedy&&!t.options.disabled&&t.options.scope==n.options.scope&&t.accept.call(t.element[0],n.currentItem||n.element)&&e.ui.intersect(n,e.extend(t,{offset:t.element.offset()}),t.options.tolerance)?(o=!0,!1):void 0}),o?!1:this.accept.call(this.element[0],n.currentItem||n.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(n)),this.element):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(t,i,n){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left,a=o+t.helperProportions.width,r=(t.positionAbs||t.position.absolute).top,s=r+t.helperProportions.height,l=i.offset.left,c=l+i.proportions.width,u=i.offset.top,d=u+i.proportions.height;switch(n){case"fit":return o>=l&&c>=a&&r>=u&&d>=s;case"intersect":return l<o+t.helperProportions.width/2&&a-t.helperProportions.width/2<c&&u<r+t.helperProportions.height/2&&s-t.helperProportions.height/2<d;case"pointer":var h=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,p=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,f=e.ui.isOver(p,h,u,l,i.proportions.height,i.proportions.width);return f;case"touch":return(r>=u&&d>=r||s>=u&&d>=s||u>r&&s>d)&&(o>=l&&c>=o||a>=l&&c>=a||l>o&&a>c);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var n=e.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,a=(t.currentItem||t.element).find(":data(droppable)").andSelf();e:for(var r=0;r<n.length;r++)if(!(n[r].options.disabled||t&&!n[r].accept.call(n[r].element[0],t.currentItem||t.element))){for(var s=0;s<a.length;s++)if(a[s]==n[r].element[0]){n[r].proportions.height=0;continue e}n[r].visible="none"!=n[r].element.css("display"),n[r].visible&&("mousedown"==o&&n[r]._activate.call(n[r],i),n[r].offset=n[r].element.offset(),n[r].proportions={width:n[r].element[0].offsetWidth,height:n[r].element[0].offsetHeight})}},drop:function(t,i){var n=!1;return e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,i)))}),n},dragStart:function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n=e.ui.intersect(t,this,this.options.tolerance),o=n||1!=this.isover?n&&0==this.isover?"isover":null:"isout";if(o){var a;if(this.options.greedy){var r=this.options.scope,s=this.element.parents(":data(droppable)").filter(function(){return e.data(this,"droppable").options.scope===r});s.length&&(a=e.data(s[0],"droppable"),a.greedyChild="isover"==o?1:0)}a&&"isover"==o&&(a.isover=0,a.isout=1,a._out.call(a,i)),this[o]=1,this["isout"==o?"isover":"isout"]=0,this["isover"==o?"_over":"_out"].call(this,i),a&&"isout"==o&&(a.isout=0,a.isover=1,a._over.call(a,i))}}})},dragStop:function(t,i){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}}}(jQuery),function(e){e.widget("ui.resizable",e.ui.mouse,{version:"1.9.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var t=this,i=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=i.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var n=this.handles.split(",");this.handles={};for(var o=0;o<n.length;o++){var a=e.trim(n[o]),r="ui-resizable-"+a,s=e('<div class="ui-resizable-handle '+r+'"></div>');s.css({zIndex:i.zIndex}),"se"==a&&s.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[a]=".ui-resizable-"+a,this.element.append(s)}}this._renderAxis=function(t){t=t||this.element;for(var i in this.handles){if(this.handles[i].constructor==String&&(this.handles[i]=e(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=e(this.handles[i],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth();var a=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");t.css(a,o),this._proportionallyResize()}e(this.handles[i]).length}},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!t.resizing){if(this.className)var e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);t.axis=e&&e[1]?e[1]:"se"}}),i.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){i.disabled||(e(this).removeClass("ui-resizable-autohide"),t._handles.show())}).mouseleave(function(){i.disabled||t.resizing||(e(this).addClass("ui-resizable-autohide"),t._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){t(this.element);var i=this.element;this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()}return this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_mouseCapture:function(t){var i=!1;for(var n in this.handles)e(this.handles[n])[0]==t.target&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(i){var n=this.options,o=this.element.position(),a=this.element;this.resizing=!0,this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()},(a.is(".ui-draggable")||/absolute/.test(a.css("position")))&&a.css({position:"absolute",top:o.top,left:o.left}),this._renderProxy();var r=t(this.helper.css("left")),s=t(this.helper.css("top"));n.containment&&(r+=e(n.containment).scrollLeft()||0,s+=e(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:r,top:s},this.size=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalPosition={left:r,top:s},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=e(".ui-resizable-"+this.axis).css("cursor");return e("body").css("cursor","auto"==l?this.axis+"-resize":l),a.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var t=this.helper,i=(this.options,this.originalMousePosition),n=this.axis,o=e.pageX-i.left||0,a=e.pageY-i.top||0,r=this._change[n];if(!r)return!1;var s=r.apply(this,[e,o,a]);return this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(s=this._updateRatio(s,e)),s=this._respectSize(s,e),this._propagate("resize",e),t.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(s),this._trigger("resize",e,this.ui()),!1},_mouseStop:function(t){this.resizing=!1;var i=this.options,n=this;if(this._helper){var o=this._proportionallyResizeElements,a=o.length&&/textarea/i.test(o[0].nodeName),r=a&&e.ui.hasScroll(o[0],"left")?0:n.sizeDiff.height,s=a?0:n.sizeDiff.width,l={width:n.helper.width()-s,height:n.helper.height()-r},c=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,u=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;i.animate||this.element.css(e.extend(l,{top:u,left:c})),n.helper.height(n.size.height),n.helper.width(n.size.width),this._helper&&!i.animate&&this._proportionallyResize()}return e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,n,o,a,r,s=this.options;r={minWidth:i(s.minWidth)?s.minWidth:0,maxWidth:i(s.maxWidth)?s.maxWidth:1/0,minHeight:i(s.minHeight)?s.minHeight:0,maxHeight:i(s.maxHeight)?s.maxHeight:1/0},(this._aspectRatio||e)&&(t=r.minHeight*this.aspectRatio,o=r.minWidth/this.aspectRatio,n=r.maxHeight*this.aspectRatio,a=r.maxWidth/this.aspectRatio,t>r.minWidth&&(r.minWidth=t),o>r.minHeight&&(r.minHeight=o),n<r.maxWidth&&(r.maxWidth=n),a<r.maxHeight&&(r.maxHeight=a)),this._vBoundaries=r},_updateCache:function(e){this.options;this.offset=this.helper.offset(),i(e.left)&&(this.position.left=e.left),i(e.top)&&(this.position.top=e.top),i(e.height)&&(this.size.height=e.height),i(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=(this.options,this.position),n=this.size,o=this.axis;return i(e.height)?e.width=e.height*this.aspectRatio:i(e.width)&&(e.height=e.width/this.aspectRatio),"sw"==o&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"==o&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e,t){var n=(this.helper,this._vBoundaries),o=(this._aspectRatio||t.shiftKey,this.axis),a=i(e.width)&&n.maxWidth&&n.maxWidth<e.width,r=i(e.height)&&n.maxHeight&&n.maxHeight<e.height,s=i(e.width)&&n.minWidth&&n.minWidth>e.width,l=i(e.height)&&n.minHeight&&n.minHeight>e.height;s&&(e.width=n.minWidth),l&&(e.height=n.minHeight),a&&(e.width=n.maxWidth),r&&(e.height=n.maxHeight);var c=this.originalPosition.left+this.originalSize.width,u=this.position.top+this.size.height,d=/sw|nw|w/.test(o),h=/nw|ne|n/.test(o);s&&d&&(e.left=c-n.minWidth),a&&d&&(e.left=c-n.maxWidth),l&&h&&(e.top=u-n.minHeight),r&&h&&(e.top=u-n.maxHeight);var p=!e.width&&!e.height;return p&&!e.left&&e.top?e.top=null:p&&!e.top&&e.left&&(e.left=null),e},_proportionallyResize:function(){this.options;if(this._proportionallyResizeElements.length)for(var t=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){var n=this._proportionallyResizeElements[i];if(!this.borderDif){var o=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],a=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];this.borderDif=e.map(o,function(e,t){var i=parseInt(e,10)||0,n=parseInt(a[t],10)||0;return i+n})}n.css({height:t.height()-this.borderDif[0]-this.borderDif[2]||0,width:t.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var t=this.element,i=this.options;if(this.elementOffset=t.offset(),this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var n=e.ui.ie6?1:0,o=e.ui.ie6?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+o,height:this.element.outerHeight()+o,position:"absolute",left:this.elementOffset.left-n+"px",top:this.elementOffset.top-n+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=(this.options,this.originalSize),n=this.originalPosition;return{left:n.left+t,width:i.width-t}},n:function(e,t,i){var n=(this.options,this.originalSize),o=this.originalPosition;return{top:o.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!=t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("resizable"),i=t.options,n=function(t){e(t).each(function(){var t=e(this);t.data("resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):e.each(i.alsoResize,function(e){n(e)})},resize:function(t,i){var n=e(this).data("resizable"),o=n.options,a=n.originalSize,r=n.originalPosition,s={height:n.size.height-a.height||0,width:n.size.width-a.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0},l=function(t,n){e(t).each(function(){var t=e(this),o=e(this).data("resizable-alsoresize"),a={},r=n&&n.length?n:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(e,t){var i=(o[t]||0)+(s[t]||0);i&&i>=0&&(a[t]=i||null)}),t.css(a)})};"object"!=typeof o.alsoResize||o.alsoResize.nodeType?l(o.alsoResize):e.each(o.alsoResize,function(e,t){l(e,t)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).data("resizable"),n=i.options,o=i._proportionallyResizeElements,a=o.length&&/textarea/i.test(o[0].nodeName),r=a&&e.ui.hasScroll(o[0],"left")?0:i.sizeDiff.height,s=a?0:i.sizeDiff.width,l={width:i.size.width-s,height:i.size.height-r},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,u&&c?{top:u,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};o&&o.length&&e(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var i=e(this).data("resizable"),n=i.options,o=i.element,a=n.containment,r=a instanceof e?a.get(0):/parent/.test(a)?o.parent().get(0):a;if(r)if(i.containerElement=e(r),/document/.test(a)||a==document)i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0},i.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight};else{var s=e(r),l=[];e(["Top","Right","Left","Bottom"]).each(function(e,i){l[e]=t(s.css("padding"+i))}),i.containerOffset=s.offset(),i.containerPosition=s.position(),i.containerSize={height:s.innerHeight()-l[3],width:s.innerWidth()-l[1]};var c=i.containerOffset,u=i.containerSize.height,d=i.containerSize.width,h=e.ui.hasScroll(r,"left")?r.scrollWidth:d,p=e.ui.hasScroll(r)?r.scrollHeight:u;i.parentData={element:r,left:c.left,top:c.top,width:h,height:p}}},resize:function(t){var i=e(this).data("resizable"),n=i.options,o=(i.containerSize,i.containerOffset),a=(i.size,i.position),r=i._aspectRatio||t.shiftKey,s={top:0,left:0},l=i.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(s=o),a.left<(i._helper?o.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-o.left:i.position.left-s.left),r&&(i.size.height=i.size.width/i.aspectRatio),i.position.left=n.helper?o.left:0),a.top<(i._helper?o.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-o.top:i.position.top),r&&(i.size.width=i.size.height*i.aspectRatio),i.position.top=i._helper?o.top:0),i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top;var c=Math.abs((i._helper?i.offset.left-s.left:i.offset.left-s.left)+i.sizeDiff.width),u=Math.abs((i._helper?i.offset.top-s.top:i.offset.top-o.top)+i.sizeDiff.height),d=i.containerElement.get(0)==i.element.parent().get(0),h=/relative|absolute/.test(i.containerElement.css("position"));d&&h&&(c-=i.parentData.left),c+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-c,r&&(i.size.height=i.size.width/i.aspectRatio)),u+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-u,r&&(i.size.width=i.size.height*i.aspectRatio))},stop:function(){var t=e(this).data("resizable"),i=t.options,n=(t.position,t.containerOffset),o=t.containerPosition,a=t.containerElement,r=e(t.helper),s=r.offset(),l=r.outerWidth()-t.sizeDiff.width,c=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:s.left-o.left-n.left,width:l,height:c}),t._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:s.left-o.left-n.left,width:l,height:c})}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("resizable"),i=t.options,n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){{var t=e(this).data("resizable");t.options}t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){{var t=e(this).data("resizable");t.options}t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(t){{var i=e(this).data("resizable"),n=i.options,o=i.size,a=i.originalSize,r=i.originalPosition,s=i.axis;n._aspectRatio||t.shiftKey}n.grid="number"==typeof n.grid?[n.grid,n.grid]:n.grid;var l=Math.round((o.width-a.width)/(n.grid[0]||1))*(n.grid[0]||1),c=Math.round((o.height-a.height)/(n.grid[1]||1))*(n.grid[1]||1);/^(se|s|e)$/.test(s)?(i.size.width=a.width+l,i.size.height=a.height+c):/^(ne)$/.test(s)?(i.size.width=a.width+l,i.size.height=a.height+c,i.position.top=r.top-c):/^(sw)$/.test(s)?(i.size.width=a.width+l,i.size.height=a.height+c,i.position.left=r.left-l):(i.size.width=a.width+l,i.size.height=a.height+c,i.position.top=r.top-c,i.position.left=r.left-l)}});var t=function(e){return parseInt(e,10)||0},i=function(e){return!isNaN(parseInt(e,10))}}(jQuery),function(e){e.widget("ui.selectable",e.ui.mouse,{version:"1.9.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var t=this;this.element.addClass("ui-selectable"),this.dragged=!1;var i;this.refresh=function(){i=e(t.options.filter,t.element[0]),i.addClass("ui-selectee"),i.each(function(){var t=e(this),i=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=i.addClass("ui-selectee"),this._mouseInit(),this.helper=e("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var i=this;if(this.opos=[t.pageX,t.pageY],!this.options.disabled){var n=this.options;this.selectees=e(n.filter,this.element[0]),this._trigger("start",t),e(n.appendTo).append(this.helper),this.helper.css({left:t.clientX,top:t.clientY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=e.data(this,"selectable-item");n.startselected=!0,t.metaKey||t.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element}))}),e(t.target).parents().andSelf().each(function(){var n=e.data(this,"selectable-item");if(n){var o=!t.metaKey&&!t.ctrlKey||!n.$element.hasClass("ui-selected");return n.$element.removeClass(o?"ui-unselecting":"ui-selected").addClass(o?"ui-selecting":"ui-unselecting"),n.unselecting=!o,n.selecting=o,n.selected=o,o?i._trigger("selecting",t,{selecting:n.element}):i._trigger("unselecting",t,{unselecting:n.element}),!1}})}},_mouseDrag:function(t){var i=this;if(this.dragged=!0,!this.options.disabled){var n=this.options,o=this.opos[0],a=this.opos[1],r=t.pageX,s=t.pageY;if(o>r){var l=r;r=o,o=l}if(a>s){var l=s;s=a,a=l}return this.helper.css({left:o,top:a,width:r-o,height:s-a}),this.selectees.each(function(){var l=e.data(this,"selectable-item");if(l&&l.element!=i.element[0]){var c=!1;"touch"==n.tolerance?c=!(l.left>r||l.right<o||l.top>s||l.bottom<a):"fit"==n.tolerance&&(c=l.left>o&&l.right<r&&l.top>a&&l.bottom<s),c?(l.selected&&(l.$element.removeClass("ui-selected"),l.selected=!1),l.unselecting&&(l.$element.removeClass("ui-unselecting"),l.unselecting=!1),l.selecting||(l.$element.addClass("ui-selecting"),l.selecting=!0,i._trigger("selecting",t,{selecting:l.element}))):(l.selecting&&((t.metaKey||t.ctrlKey)&&l.startselected?(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.$element.addClass("ui-selected"),l.selected=!0):(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.startselected&&(l.$element.addClass("ui-unselecting"),l.unselecting=!0),i._trigger("unselecting",t,{unselecting:l.element}))),l.selected&&(t.metaKey||t.ctrlKey||l.startselected||(l.$element.removeClass("ui-selected"),l.selected=!1,l.$element.addClass("ui-unselecting"),l.unselecting=!0,i._trigger("unselecting",t,{unselecting:l.element}))))}}),!1}},_mouseStop:function(t){var i=this;this.dragged=!1;this.options;return e(".ui-unselecting",this.element[0]).each(function(){var n=e.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",t,{unselected:n.element})}),e(".ui-selecting",this.element[0]).each(function(){var n=e.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",t,{selected:n.element})}),this._trigger("stop",t),this.helper.remove(),!1}})}(jQuery),function(e){e.widget("ui.sortable",e.ui.mouse,{version:"1.9.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===e.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,i){"disabled"===t?(this.options[t]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,i){var n=this;if(this.reverting)return!1;if(this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(t);{var o=null;e(t.target).parents().each(function(){return e.data(this,n.widgetName+"-item")==n?(o=e(this),!1):void 0})}if(e.data(t.target,n.widgetName+"-item")==n&&(o=e(t.target)),!o)return!1;if(this.options.handle&&!i){var a=!1;if(e(this.options.handle,o).find("*").andSelf().each(function(){this==t.target&&(a=!0)}),!a)return!1}return this.currentItem=o,this._removeCurrentsFromItems(),!0},_mouseStart:function(t,i,n){var o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&(e("body").css("cursor")&&(this._storedCursor=e("body").css("cursor")),e("body").css("cursor",o.cursor)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(var a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var i=this.options,n=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(t.pageY-e(document).scrollTop()<i.scrollSensitivity?n=e(document).scrollTop(e(document).scrollTop()-i.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<i.scrollSensitivity&&(n=e(document).scrollTop(e(document).scrollTop()+i.scrollSpeed)),t.pageX-e(document).scrollLeft()<i.scrollSensitivity?n=e(document).scrollLeft(e(document).scrollLeft()-i.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<i.scrollSensitivity&&(n=e(document).scrollLeft(e(document).scrollLeft()+i.scrollSpeed))),n!==!1&&e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)}this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");for(var o=this.items.length-1;o>=0;o--){var a=this.items[o],r=a.item[0],s=this._intersectsWithPointer(a);if(s&&a.instance===this.currentContainer&&r!=this.currentItem[0]&&this.placeholder[1==s?"next":"prev"]()[0]!=r&&!e.contains(this.placeholder[0],r)&&("semi-dynamic"==this.options.type?!e.contains(this.element[0],r):!0)){if(this.direction=1==s?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(a))break;this._rearrange(t,a),this._trigger("change",t,this._uiHash());break}}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,o=this.placeholder.offset();this.reverting=!0,e(this.helper).animate({left:o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this
|
28
|
+
},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,a=e.left,r=a+e.width,s=e.top,l=s+e.height,c=this.offset.click.top,u=this.offset.click.left,d=n+c>s&&l>n+c&&t+u>a&&r>t+u;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?d:a<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&s<n+this.helperProportions.height/2&&o-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var i="x"===this.options.axis||e.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||e.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=i&&n,a=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return o?this.floating?r&&"right"==r||"down"==a?2:1:a&&("down"==a?2:1):!1},_intersectsWithSides:function(t){var i=e.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=e.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),o=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?"right"==a&&n||"left"==a&&!n:o&&("down"==o&&i||"up"==o&&!i)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!=e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!=e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor==String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i=[],n=[],o=this._connectWith();if(o&&t)for(var a=o.length-1;a>=0;a--)for(var r=e(o[a]),s=r.length-1;s>=0;s--){var l=e.data(r[s],this.widgetName);l&&l!=this&&!l.options.disabled&&n.push([e.isFunction(l.options.items)?l.options.items.call(l.element):e(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}n.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var a=n.length-1;a>=0;a--)n[a][0].each(function(){i.push(this)});return e(i)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]==e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i=this.items,n=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],o=this._connectWith();if(o&&this.ready)for(var a=o.length-1;a>=0;a--)for(var r=e(o[a]),s=r.length-1;s>=0;s--){var l=e.data(r[s],this.widgetName);l&&l!=this&&!l.options.disabled&&(n.push([e.isFunction(l.options.items)?l.options.items.call(l.element[0],t,{item:this.currentItem}):e(l.options.items,l.element),l]),this.containers.push(l))}for(var a=n.length-1;a>=0;a--)for(var c=n[a][1],u=n[a][0],s=0,d=u.length;d>s;s++){var h=e(u[s]);h.data(this.widgetName+"-item",c),i.push({item:h,instance:c,width:0,height:0,left:0,top:0})}},refreshPositions:function(t){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var i=this.items.length-1;i>=0;i--){var n=this.items[i];if(n.instance==this.currentContainer||!this.currentContainer||n.item[0]==this.currentItem[0]){var o=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item;t||(n.width=o.outerWidth(),n.height=o.outerHeight());var a=o.offset();n.left=a.left,n.top=a.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var i=this.containers.length-1;i>=0;i--){var a=this.containers[i].element.offset();this.containers[i].containerCache.left=a.left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}return this},_createPlaceholder:function(t){t=t||this;var i=t.options;if(!i.placeholder||i.placeholder.constructor==String){var n=i.placeholder;i.placeholder={element:function(){var i=e(document.createElement(t.currentItem[0].nodeName)).addClass(n||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return n||(i.style.visibility="hidden"),i},update:function(e,o){(!n||i.forcePlaceholderSize)&&(o.height()||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}}t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_contactContainers:function(t){for(var i=null,n=null,o=this.containers.length-1;o>=0;o--)if(!e.contains(this.currentItem[0],this.containers[o].element[0]))if(this._intersectsWith(this.containers[o].containerCache)){if(i&&e.contains(this.containers[o].element[0],i.element[0]))continue;i=this.containers[o],n=o}else this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",t,this._uiHash(this)),this.containers[o].containerCache.over=0);if(i)if(1===this.containers.length)this.containers[n]._trigger("over",t,this._uiHash(this)),this.containers[n].containerCache.over=1;else{for(var a=1e4,r=null,s=this.containers[n].floating?"left":"top",l=this.containers[n].floating?"width":"height",c=this.positionAbs[s]+this.offset.click[s],u=this.items.length-1;u>=0;u--)if(e.contains(this.containers[n].element[0],this.items[u].item[0])&&this.items[u].item[0]!=this.currentItem[0]){var d=this.items[u].item.offset()[s],h=!1;Math.abs(d-c)>Math.abs(d+this.items[u][l]-c)&&(h=!0,d+=this.items[u][l]),Math.abs(d-c)<a&&(a=Math.abs(d-c),r=this.items[u],this.direction=h?"up":"down")}if(!r&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[n],r?this._rearrange(t,r,null,!0):this._rearrange(t,null,this.containers[n].element,!0),this._trigger("change",t,this._uiHash()),this.containers[n]._trigger("change",t,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[n]._trigger("over",t,this._uiHash(this)),this.containers[n].containerCache.over=1}},_createHelper:function(t){var i=this.options,n=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"==i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||e("parent"!=i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(""==n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(""==n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;if("parent"==t.containment&&(t.containment=this.helper[0].parentNode),("document"==t.containment||"window"==t.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e("document"==t.containment?document:window).width()-this.helperProportions.width-this.margins.left,(e("document"==t.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(t.containment)){var i=e(t.containment)[0],n=e(t.containment).offset(),o="hidden"!=e(i).css("overflow");this.containment=[n.left+(parseInt(e(i).css("borderLeftWidth"),10)||0)+(parseInt(e(i).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(i).css("borderTopWidth"),10)||0)+(parseInt(e(i).css("paddingTop"),10)||0)-this.margins.top,n.left+(o?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e(i).css("borderLeftWidth"),10)||0)-(parseInt(e(i).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(o?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e(i).css("borderTopWidth"),10)||0)-(parseInt(e(i).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"==t?1:-1,o=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),a=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())*n}},_generatePosition:function(t){var i=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);"relative"!=this.cssPosition||this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset());var a=t.pageX,r=t.pageY;if(this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),i.grid)){var s=this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1];r=this.containment?s-this.offset.click.top<this.containment[1]||s-this.offset.click.top>this.containment[3]?s-this.offset.click.top<this.containment[1]?s+i.grid[1]:s-i.grid[1]:s:s;var l=this.originalPageX+Math.round((a-this.originalPageX)/i.grid[0])*i.grid[0];a=this.containment?l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2]?l-this.offset.click.left<this.containment[0]?l+i.grid[0]:l-i.grid[0]:l:l}return{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"==this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o==this.counter&&this.refreshPositions(!n)})},_clear:function(t,i){this.reverting=!1;var n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(var o in this._storedCSS)("auto"==this._storedCSS[o]||"static"==this._storedCSS[o])&&(this._storedCSS[o]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!i&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev==this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent==this.currentItem.parent()[0]||i||n.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(i||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))));for(var o=this.containers.length-1;o>=0;o--)i||n.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over&&(n.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over=0);if(this._storedCursor&&e("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!i){this._trigger("beforeStop",t,this._uiHash());for(var o=0;o<n.length;o++)n[o].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(i||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null,!i){for(var o=0;o<n.length;o++)n[o].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){e.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})}(jQuery),jQuery.effects||function(e,t){var i=e.uiBackCompat!==!1,n="ui-effects-";e.effects={effect:{}},/*!
|
29
|
+
* jQuery Color Animations v2.0.0
|
30
|
+
* http://jquery.com/
|
31
|
+
*
|
32
|
+
* Copyright 2012 jQuery Foundation and other contributors
|
33
|
+
* Released under the MIT license.
|
34
|
+
* http://jquery.org/license
|
35
|
+
*
|
36
|
+
* Date: Mon Aug 13 13:41:02 2012 -0500
|
37
|
+
*/
|
38
|
+
function(t,i){function n(e,t,i){var n=h[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:0>e?0:n.max<e?n.max:e)}function o(e){var i=u(),n=i._rgba=[];return e=e.toLowerCase(),m(c,function(t,o){var a,r=o.re.exec(e),s=r&&o.parse(r),l=o.space||"rgba";return s?(a=i[l](s),i[d[l].cache]=a[d[l].cache],n=i._rgba=a._rgba,!1):void 0}),n.length?("0,0,0,0"===n.join()&&t.extend(n,r.transparent),i):r[e]}function a(e,t,i){return i=(i+1)%1,1>6*i?e+(t-e)*i*6:1>2*i?t:2>3*i?e+(t-e)*(2/3-i)*6:e}var r,s="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),l=/^([\-+])=\s*(\d+\.?\d*)/,c=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],u=t.Color=function(e,i,n,o){return new t.Color.fn.parse(e,i,n,o)},d={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},p=u.support={},f=t("<p>")[0],m=t.each;f.style.cssText="background-color:rgba(1,1,1,.5)",p.rgba=f.style.backgroundColor.indexOf("rgba")>-1,m(d,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(a,s,l,c){if(a===i)return this._rgba=[null,null,null,null],this;(a.jquery||a.nodeType)&&(a=t(a).css(s),s=i);var h=this,p=t.type(a),f=this._rgba=[];return s!==i&&(a=[a,s,l,c],p="array"),"string"===p?this.parse(o(a)||r._default):"array"===p?(m(d.rgba.props,function(e,t){f[t.idx]=n(a[t.idx],t)}),this):"object"===p?(a instanceof u?m(d,function(e,t){a[t.cache]&&(h[t.cache]=a[t.cache].slice())}):m(d,function(t,i){var o=i.cache;m(i.props,function(e,t){if(!h[o]&&i.to){if("alpha"===e||null==a[e])return;h[o]=i.to(h._rgba)}h[o][t.idx]=n(a[e],t,!0)}),h[o]&&e.inArray(null,h[o].slice(0,3))<0&&(h[o][3]=1,i.from&&(h._rgba=i.from(h[o])))}),this):void 0},is:function(e){var t=u(e),i=!0,n=this;return m(d,function(e,o){var a,r=t[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],m(o.props,function(e,t){return null!=r[t.idx]?i=r[t.idx]===a[t.idx]:void 0})),i}),i},_space:function(){var e=[],t=this;return m(d,function(i,n){t[n.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var i=u(e),o=i._space(),a=d[o],r=0===this.alpha()?u("transparent"):this,s=r[a.cache]||a.to(r._rgba),l=s.slice();return i=i[a.cache],m(a.props,function(e,o){var a=o.idx,r=s[a],c=i[a],u=h[o.type]||{};null!==c&&(null===r?l[a]=c:(u.mod&&(c-r>u.mod/2?r+=u.mod:r-c>u.mod/2&&(r-=u.mod)),l[a]=n((c-r)*t+r,o)))}),this[o](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=u(e)._rgba;return u(t.map(i,function(e,t){return(1-n)*o[t]+n*e}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,d.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,o=e[1]/255,a=e[2]/255,r=e[3],s=Math.max(n,o,a),l=Math.min(n,o,a),c=s-l,u=s+l,d=.5*u;return t=l===s?0:n===s?60*(o-a)/c+360:o===s?60*(a-n)/c+120:60*(n-o)/c+240,i=0===d||1===d?d:.5>=d?c/u:c/(2-u),[Math.round(t)%360,i,d,null==r?1:r]},d.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],o=e[3],r=.5>=n?n*(1+i):n+i-n*i,s=2*n-r;return[Math.round(255*a(s,r,t+1/3)),Math.round(255*a(s,r,t)),Math.round(255*a(s,r,t-1/3)),o]},m(d,function(e,o){var a=o.props,r=o.cache,s=o.to,c=o.from;u.fn[e]=function(e){if(s&&!this[r]&&(this[r]=s(this._rgba)),e===i)return this[r].slice();var o,l=t.type(e),d="array"===l||"object"===l?e:arguments,h=this[r].slice();return m(a,function(e,t){var i=d["object"===l?e:t.idx];null==i&&(i=h[t.idx]),h[t.idx]=n(i,t)}),c?(o=u(c(h)),o[r]=h,o):u(h)},m(a,function(i,n){u.fn[i]||(u.fn[i]=function(o){var a,r=t.type(o),s="alpha"===i?this._hsla?"hsla":"rgba":e,c=this[s](),u=c[n.idx];return"undefined"===r?u:("function"===r&&(o=o.call(this,u),r=t.type(o)),null==o&&n.empty?this:("string"===r&&(a=l.exec(o),a&&(o=u+parseFloat(a[2])*("+"===a[1]?1:-1))),c[n.idx]=o,this[s](c)))})})}),m(s,function(e,i){t.cssHooks[i]={set:function(e,n){var a,r,s="";if("string"!==t.type(n)||(a=o(n))){if(n=u(a||n),!p.rgba&&1!==n._rgba[3]){for(r="backgroundColor"===i?e.parentNode:e;(""===s||"transparent"===s)&&r&&r.style;)try{s=t.css(r,"backgroundColor"),r=r.parentNode}catch(l){}n=n.blend(s&&"transparent"!==s?s:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(c){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=u(e.elem,i),e.end=u(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}}),t.cssHooks.borderColor={expand:function(e){var t={};return m(["Top","Right","Bottom","Left"],function(i,n){t["border"+n+"Color"]=e}),t}},r=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(){var t,i,n=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)t=n[i],"string"==typeof n[t]&&(o[e.camelCase(t)]=n[t]);else for(t in n)"string"==typeof n[t]&&(o[t]=n[t]);return o}function n(t,i){var n,o,r={};for(n in i)o=i[n],t[n]!==o&&(a[n]||(e.fx.step[n]||!isNaN(parseFloat(o)))&&(r[n]=o));return r}var o=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(jQuery.style(e.elem,i,e.end),e.setAttr=!0)}}),e.effects.animateClass=function(t,a,r,s){var l=e.speed(a,r,s);return this.queue(function(){var a,r=e(this),s=r.attr("class")||"",c=l.children?r.find("*").andSelf():r;c=c.map(function(){var t=e(this);return{el:t,start:i.call(this)}}),a=function(){e.each(o,function(e,i){t[i]&&r[i+"Class"](t[i])})},a(),c=c.map(function(){return this.end=i.call(this.el[0]),this.diff=n(this.start,this.end),this}),r.attr("class",s),c=c.map(function(){var t=this,i=e.Deferred(),n=jQuery.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()}),e.when.apply(e,c.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),l.complete.call(r[0])})})},e.fn.extend({_addClass:e.fn.addClass,addClass:function(t,i,n,o){return i?e.effects.animateClass.call(this,{add:t},i,n,o):this._addClass(t)},_removeClass:e.fn.removeClass,removeClass:function(t,i,n,o){return i?e.effects.animateClass.call(this,{remove:t},i,n,o):this._removeClass(t)},_toggleClass:e.fn.toggleClass,toggleClass:function(i,n,o,a,r){return"boolean"==typeof n||n===t?o?e.effects.animateClass.call(this,n?{add:i}:{remove:i},o,a,r):this._toggleClass(i,n):e.effects.animateClass.call(this,{toggle:i},n,o,a)},switchClass:function(t,i,n,o,a){return e.effects.animateClass.call(this,{add:i,remove:t},n,o,a)}})}(),function(){function o(t,i,n,o){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(o=n,n=i,i={}),e.isFunction(n)&&(o=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=o||i.complete,t}function a(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?!1:i&&e.effects[t]?!1:!0}e.extend(e.effects,{version:"1.9.2",save:function(e,t){for(var i=0;i<t.length;i++)null!==t[i]&&e.data(n+t[i],e[0].style[t[i]])},restore:function(e,i){var o,a;for(a=0;a<i.length;a++)null!==i[a]&&(o=e.data(n+i[a]),o===t&&(o=""),e.css(i[a],o))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(r){a=document.body}return t.wrap(n),(t[0]===a||e.contains(t[0],a))&&e(a).focus(),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(o),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).focus()),t},setTransition:function(t,i,n,o){return o=o||{},e.each(i,function(e,i){var a=t.cssUnit(i);a[0]>0&&(o[i]=a[0]*n+a[1])}),o}}),e.fn.extend({effect:function(){function t(t){function i(){e.isFunction(a)&&a.call(o[0]),e.isFunction(t)&&t()}var o=e(this),a=n.complete,r=n.mode;(o.is(":hidden")?"hide"===r:"show"===r)?i():s.call(o[0],n,i)}var n=o.apply(this,arguments),a=n.mode,r=n.queue,s=e.effects.effect[n.effect],l=!s&&i&&e.effects[n.effect];return e.fx.off||!s&&!l?a?this[a](n.duration,n.complete):this.each(function(){n.complete&&n.complete.call(this)}):s?r===!1?this.each(t):this.queue(r||"fx",t):l.call(this,{options:n,duration:n.duration,callback:n.complete,mode:n.mode})},_show:e.fn.show,show:function(e){if(a(e))return this._show.apply(this,arguments);var t=o.apply(this,arguments);return t.mode="show",this.effect.call(this,t)},_hide:e.fn.hide,hide:function(e){if(a(e))return this._hide.apply(this,arguments);var t=o.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(a(t)||"boolean"==typeof t||e.isFunction(t))return this.__toggle.apply(this,arguments);var i=o.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)},cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])}),n}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}()}(jQuery),function(e){var t=0,i={},n={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="show",e.widget("ui.accordion",{version:"1.9.2",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var i=this.accordionId="ui-accordion-"+(this.element.attr("id")||++t),n=this.options;this.prevShow=this.prevHide=e(),this.element.addClass("ui-accordion ui-widget ui-helper-reset"),this.headers=this.element.find(n.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this._hoverable(this.headers),this._focusable(this.headers),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),n.collapsible||n.active!==!1&&null!=n.active||(n.active=0),n.active<0&&(n.active+=this.headers.length),this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top"),this.active.next().addClass("ui-accordion-content-active").show(),this._createIcons(),this.refresh(),this.element.attr("role","tablist"),this.headers.attr("role","tab").each(function(t){var n=e(this),o=n.attr("id"),a=n.next(),r=a.attr("id");o||(o=i+"-header-"+t,n.attr("id",o)),r||(r=i+"-panel-"+t,a.attr("id",r)),n.attr("aria-controls",r),a.attr("aria-labelledby",o)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._on(this.headers,{keydown:"_keydown"}),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._setupEvents(n.event)},_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():e()}},_createIcons:function(){var t=this.options.icons;t&&(e("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||this.options.active!==!1||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons()),"disabled"===e&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t),void 0)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCode,n=this.headers.length,o=this.headers.index(t.target),a=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(o+1)%n];break;case i.LEFT:case i.UP:a=this.headers[(o-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[n-1]}a&&(e(t.target).attr("tabIndex",-1),e(a).attr("tabIndex",0),a.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().focus()},refresh:function(){var t,i,n=this.options.heightStyle,o=this.element.parent();"fill"===n?(e.support.minHeight||(i=o.css("overflow"),o.css("overflow","hidden")),t=o.height(),this.element.siblings(":visible").each(function(){var i=e(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(t-=i.outerHeight(!0))}),i&&o.css("overflow",i),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===n&&(t=0,this.headers.next().each(function(){t=Math.max(t,e(this).css("height","").height())}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={};t&&(e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._on(this.headers,i))},_eventHandler:function(t){var i=this.options,n=this.active,o=e(t.currentTarget),a=o[0]===n[0],r=a&&i.collapsible,s=r?e():o.next(),l=n.next(),c={oldHeader:n,oldPanel:l,newHeader:r?e():o,newPanel:s};t.preventDefault(),a&&!i.collapsible||this._trigger("beforeActivate",t,c)===!1||(i.active=r?!1:this.headers.index(o),this.active=a?e():o,this._toggle(c),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),a||(o.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&o.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),o.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var i=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,t):(n.hide(),i.show(),this._toggleComplete(t)),n.attr({"aria-expanded":"false","aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(e,t,o){var a,r,s,l=this,c=0,u=e.length&&(!t.length||e.index()<t.index()),d=this.options.animate||{},h=u&&d.down||d,p=function(){l._toggleComplete(o)};return"number"==typeof h&&(s=h),"string"==typeof h&&(r=h),r=r||h.easing||d.easing,s=s||h.duration||d.duration,t.length?e.length?(a=e.show().outerHeight(),t.animate(i,{duration:s,easing:r,step:function(e,t){t.now=Math.round(e)}}),e.hide().animate(n,{duration:s,easing:r,complete:p,step:function(e,i){i.now=Math.round(e),"height"!==i.prop?c+=i.now:"content"!==l.options.heightStyle&&(i.now=Math.round(a-t.outerHeight()-c),c=0)}}),void 0):t.animate(i,s,r,p):e.animate(n,s,r,p)},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.uiBackCompat!==!1&&(!function(e,t){e.extend(t.options,{navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}});var i=t._create;t._create=function(){if(this.options.navigation){var t=this,n=this.element.find(this.options.header),o=n.next(),a=n.add(o).find("a").filter(this.options.navigationFilter)[0];a&&n.add(o).each(function(i){return e.contains(this,a)?(t.options.active=Math.floor(i/2),!1):void 0})}i.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options,{heightStyle:null,autoHeight:!0,clearStyle:!1,fillSpace:!1});var i=t._create,n=t._setOption;e.extend(t,{_create:function(){this.options.heightStyle=this.options.heightStyle||this._mergeHeightStyle(),i.call(this)},_setOption:function(e){("autoHeight"===e||"clearStyle"===e||"fillSpace"===e)&&(this.options.heightStyle=this._mergeHeightStyle()),n.apply(this,arguments)},_mergeHeightStyle:function(){var e=this.options;return e.fillSpace?"fill":e.clearStyle?"content":e.autoHeight?"auto":void 0}})}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options.icons,{activeHeader:null,headerSelected:"ui-icon-triangle-1-s"});var i=t._createIcons;t._createIcons=function(){this.options.icons&&(this.options.icons.activeHeader=this.options.icons.activeHeader||this.options.icons.headerSelected),i.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){t.activate=t._activate;var i=t._findActive;t._findActive=function(e){return-1===e&&(e=!1),e&&"number"!=typeof e&&(e=this.headers.index(this.headers.filter(e)),-1===e&&(e=!1)),i.call(this,e)}}(jQuery,jQuery.ui.accordion.prototype),jQuery.ui.accordion.prototype.resize=jQuery.ui.accordion.prototype.refresh,function(e,t){e.extend(t.options,{change:null,changestart:null});var i=t._trigger;t._trigger=function(e,t,n){var o=i.apply(this,arguments);return o?("beforeActivate"===e?o=i.call(this,"changestart",t,{oldHeader:n.oldHeader,oldContent:n.oldPanel,newHeader:n.newHeader,newContent:n.newPanel}):"activate"===e&&(o=i.call(this,"change",t,{oldHeader:n.oldHeader,oldContent:n.oldPanel,newHeader:n.newHeader,newContent:n.newPanel})),o):!1}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options,{animate:null,animated:"slide"});var i=t._create;t._create=function(){var e=this.options;null===e.animate&&(e.animate=e.animated?"slide"===e.animated?300:"bounceslide"===e.animated?{duration:200,down:{easing:"easeOutBounce",duration:1e3}}:e.animated:!1),i.call(this)}}(jQuery,jQuery.ui.accordion.prototype))}(jQuery),function(e){var t=0;e.widget("ui.autocomplete",{version:"1.9.2",defaultElement:"<input>",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,i,n;this.isMultiLine=this._isMultiLine(),this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return t=!0,n=!0,i=!0,void 0;t=!1,n=!1,i=!1;var a=e.ui.keyCode;switch(o.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",o);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",o);break;case a.UP:t=!0,this._keyEvent("previous",o);break;case a.DOWN:t=!0,this._keyEvent("next",o);break;case a.ENTER:case a.NUMPAD_ENTER:this.menu.active&&(t=!0,o.preventDefault(),this.menu.select(o));break;case a.TAB:this.menu.active&&this.menu.select(o);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(o),o.preventDefault());break;default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(t)return t=!1,n.preventDefault(),void 0;if(!i){var o=e.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n);break;case o.PAGE_DOWN:this._move("nextPage",n);break;case o.UP:this._keyEvent("previous",n);break;case o.DOWN:this._keyEvent("next",n)}}},input:function(e){return n?(n=!1,e.preventDefault(),void 0):(this._searchTimeout(e),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(e),this._change(e),void 0)}}),this._initSource(),this.menu=e("<ul>").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:e(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(n){n.target===t.element[0]||n.target===i||e.contains(i,n.target)||t.close()})})},menufocus:function(t,i){if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)}),void 0;var n=i.item.data("ui-autocomplete-item")||i.item.data("item.autocomplete");!1!==this._trigger("focus",t,{item:n})?t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item")||t.item.data("item.autocomplete"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element),e.fn.bgiframe&&this.menu.element.bgiframe(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this.document.find(t||"body")[0]),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){return this.element.is("textarea")?!0:this.element.is("input")?!1:this.element.prop("isContentEditable")},_initSource:function(){var t,i,n=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(i,n){n(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,o){n.xhr&&n.xhr.abort(),n.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){o(e)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):this._trigger("search",t)!==!1?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=this,i=++t;return function(n){i===t&&e.__response(n),e.pending--,e.pending||e.element.removeClass("ui-autocomplete-loading")}},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({label:t.label||t.value,value:t.value||t.label},t)})},_suggest:function(t){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,t),this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var n=this;e.each(i,function(e,i){n._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<a>").text(i.label)).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this._value(this.term),this.menu.blur(),void 0):(this.menu[e](t),void 0):(this.search(null,t),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var n=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return n.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.text(t))}})}(jQuery),function(e){var t,i,n,o,a="ui-button ui-widget ui-state-default ui-corner-all",r="ui-state-hover ui-state-active ",s="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",l=function(){var t=e(this).find(":ui-button");setTimeout(function(){t.button("refresh")},1)},c=function(t){var i=t.name,n=t.form,o=e([]);return i&&(o=n?e(n).find("[name='"+i+"']"):e("[name='"+i+"']",t.ownerDocument).filter(function(){return!this.form})),o};e.widget("ui.button",{version:"1.9.2",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,l),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var r=this,s=this.options,u="checkbox"===this.type||"radio"===this.type,d=u?"":"ui-state-active",h="ui-state-focus";null===s.label&&(s.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(a).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){s.disabled||this===t&&e(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){s.disabled||e(this).removeClass(d)}).bind("click"+this.eventNamespace,function(e){s.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){r.buttonElement.addClass(h)}).bind("blur"+this.eventNamespace,function(){r.buttonElement.removeClass(h)}),u&&(this.element.bind("change"+this.eventNamespace,function(){o||r.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(e){s.disabled||(o=!1,i=e.pageX,n=e.pageY)}).bind("mouseup"+this.eventNamespace,function(e){s.disabled||(i!==e.pageX||n!==e.pageY)&&(o=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return s.disabled||o?!1:(e(this).toggleClass("ui-state-active"),r.buttonElement.attr("aria-pressed",r.element[0].checked),void 0)}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(s.disabled||o)return!1;
|
39
|
+
e(this).addClass("ui-state-active"),r.buttonElement.attr("aria-pressed","true");var t=r.element[0];c(t).not(t).map(function(){return e(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return s.disabled?!1:(e(this).addClass("ui-state-active"),t=this,r.document.one("mouseup",function(){t=null}),void 0)}).bind("mouseup"+this.eventNamespace,function(){return s.disabled?!1:(e(this).removeClass("ui-state-active"),void 0)}).bind("keydown"+this.eventNamespace,function(t){return s.disabled?!1:((t.keyCode===e.ui.keyCode.SPACE||t.keyCode===e.ui.keyCode.ENTER)&&e(this).addClass("ui-state-active"),void 0)}).bind("keyup"+this.eventNamespace,function(){e(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t){t.keyCode===e.ui.keyCode.SPACE&&e(this).click()})),this._setOption("disabled",s.disabled),this._resetButton()},_determineButtonType:function(){var e,t,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(e=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=e.find(t),this.buttonElement.length||(e=e.length?e.siblings():this.element.siblings(),this.buttonElement=e.filter(t),this.buttonElement.length||(this.buttonElement=e.find(t))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(a+" "+r+" "+s).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(e,t){return this._super(e,t),"disabled"===e?(t?this.element.prop("disabled",!0):this.element.prop("disabled",!1),void 0):(this._resetButton(),void 0)},refresh:function(){var t=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("disabled",t),"radio"===this.type?c(this.element[0]).each(function(){e(this).is(":checked")?e(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):e(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return this.options.label&&this.element.val(this.options.label),void 0;var t=this.buttonElement.removeClass(s),i=e("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(t.empty()).text(),n=this.options.icons,o=n.primary&&n.secondary,a=[];n.primary||n.secondary?(this.options.text&&a.push("ui-button-text-icon"+(o?"s":n.primary?"-primary":"-secondary")),n.primary&&t.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>"),n.secondary&&t.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>"),this.options.text||(a.push(o?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||t.attr("title",e.trim(i)))):a.push("ui-button-text-only"),t.addClass(a.join(" "))}}),e.widget("ui.buttonset",{version:"1.9.2",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,t){"disabled"===e&&this.buttons.button("option",e,t),this._super(e,t)},refresh:function(){var t="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(t,"mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).removeClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).removeClass("ui-datepicker-next-hover")}).delegate(t,"mouseover",function(){$.datepicker._isDisabledDatepicker(instActive.inline?e.parent()[0]:instActive.input[0])||($(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).addClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).addClass("ui-datepicker-next-hover"))})}function extendRemove(e,t){$.extend(e,t);for(var i in t)(null==t[i]||t[i]==undefined)&&(e[i]=t[i]);return e}$.extend($.ui,{datepicker:{version:"1.9.2"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(e,t){var i=e[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:i,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(e,t){var i=$(e);t.append=$([]),t.trigger=$([]),i.hasClass(this.markerClassName)||(this._attachments(i,t),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,i,n){t.settings[i]=n}).bind("getData.datepicker",function(e,i){return this._get(t,i)}),this._autoSize(t),$.data(e,PROP_NAME,t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var i=this._get(t,"appendText"),n=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=$('<span class="'+this._appendClass+'">'+i+"</span>"),e[n?"before":"after"](t.append)),e.unbind("focus",this._showDatepicker),t.trigger&&t.trigger.remove();var o=this._get(t,"showOn");if(("focus"==o||"both"==o)&&e.focus(this._showDatepicker),"button"==o||"both"==o){var a=this._get(t,"buttonText"),r=this._get(t,"buttonImage");t.trigger=$(this._get(t,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:r,alt:a,title:a}):$('<button type="button"></button>').addClass(this._triggerClass).html(""==r?a:$("<img/>").attr({src:r,alt:a,title:a}))),e[n?"before":"after"](t.trigger),t.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==e[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=e[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(e[0])):$.datepicker._showDatepicker(e[0]),!1})}},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t=new Date(2009,11,20),i=this._get(e,"dateFormat");if(i.match(/[DM]/)){var n=function(e){for(var t=0,i=0,n=0;n<e.length;n++)e[n].length>t&&(t=e[n].length,i=n);return i};t.setMonth(n(this._get(e,i.match(/MM/)?"monthNames":"monthNamesShort"))),t.setDate(n(this._get(e,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-t.getDay())}e.input.attr("size",this._formatDate(e,t).length)}},_inlineDatepicker:function(e,t){var i=$(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(t.dpDiv).bind("setData.datepicker",function(e,i,n){t.settings[i]=n}).bind("getData.datepicker",function(e,i){return this._get(t,i)}),$.data(e,PROP_NAME,t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,i,n,o){var a=this._dialogInst;if(!a){this.uuid+=1;var r="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+r+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),a=this._dialogInst=this._newInst(this._dialogInput,!1),a.settings={},$.data(this._dialogInput[0],PROP_NAME,a)}if(extendRemove(a.settings,n||{}),t=t&&t.constructor==Date?this._formatDate(a,t):t,this._dialogInput.val(t),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,!this._pos){var s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[s/2-100+c,l/2-150+u]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,a),this},_destroyDatepicker:function(e){var t=$(e),i=$.data(e,PROP_NAME);if(t.hasClass(this.markerClassName)){var n=e.nodeName.toLowerCase();$.removeData(e,PROP_NAME),"input"==n?(i.append.remove(),i.trigger.remove(),t.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"==n||"span"==n)&&t.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(e){var t=$(e),i=$.data(e,PROP_NAME);if(t.hasClass(this.markerClassName)){var n=e.nodeName.toLowerCase();if("input"==n)e.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==n||"span"==n){var o=t.children("."+this._inlineClass);o.children().removeClass("ui-state-disabled"),o.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)}this._disabledInputs=$.map(this._disabledInputs,function(t){return t==e?null:t})}},_disableDatepicker:function(e){var t=$(e),i=$.data(e,PROP_NAME);if(t.hasClass(this.markerClassName)){var n=e.nodeName.toLowerCase();if("input"==n)e.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==n||"span"==n){var o=t.children("."+this._inlineClass);o.children().addClass("ui-state-disabled"),o.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)}this._disabledInputs=$.map(this._disabledInputs,function(t){return t==e?null:t}),this._disabledInputs[this._disabledInputs.length]=e}},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]==e)return!0;return!1},_getInst:function(e){try{return $.data(e,PROP_NAME)}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,i){var n=this._getInst(e);if(2==arguments.length&&"string"==typeof t)return"defaults"==t?$.extend({},$.datepicker._defaults):n?"all"==t?$.extend({},n.settings):this._get(n,t):null;var o=t||{};if("string"==typeof t&&(o={},o[t]=i),n){this._curInst==n&&this._hideDatepicker();var a=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(n,"min"),s=this._getMinMaxDate(n,"max");extendRemove(n.settings,o),null!==r&&o.dateFormat!==undefined&&o.minDate===undefined&&(n.settings.minDate=this._formatDate(n,r)),null!==s&&o.dateFormat!==undefined&&o.maxDate===undefined&&(n.settings.maxDate=this._formatDate(n,s)),this._attachments($(e),n),this._autoSize(n),this._setDate(n,a),this._updateAlternate(n),this._updateDatepicker(n)}},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(e){var t=$.datepicker._getInst(e.target),i=!0,n=t.dpDiv.is(".ui-datepicker-rtl");if(t._keyEvent=!0,$.datepicker._datepickerShowing)switch(e.keyCode){case 9:$.datepicker._hideDatepicker(),i=!1;break;case 13:var o=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",t.dpDiv);o[0]&&$.datepicker._selectDay(e.target,t.selectedMonth,t.selectedYear,o[0]);var a=$.datepicker._get(t,"onSelect");if(a){var r=$.datepicker._formatDate(t);a.apply(t.input?t.input[0]:null,[r,t])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(t,"stepBigMonths"):-$.datepicker._get(t,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(t,"stepBigMonths"):+$.datepicker._get(t,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&$.datepicker._clearDate(e.target),i=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&$.datepicker._gotoToday(e.target),i=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,n?1:-1,"D"),i=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(t,"stepBigMonths"):-$.datepicker._get(t,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,-7,"D"),i=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,n?-1:1,"D"),i=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(t,"stepBigMonths"):+$.datepicker._get(t,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,7,"D"),i=e.ctrlKey||e.metaKey;break;default:i=!1}else 36==e.keyCode&&e.ctrlKey?$.datepicker._showDatepicker(this):i=!1;i&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t=$.datepicker._getInst(e.target);if($.datepicker._get(t,"constrainInput")){var i=$.datepicker._possibleChars($.datepicker._get(t,"dateFormat")),n=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return e.ctrlKey||e.metaKey||" ">n||!i||i.indexOf(n)>-1}},_doKeyUp:function(e){var t=$.datepicker._getInst(e.target);if(t.input.val()!=t.lastVal)try{var i=$.datepicker.parseDate($.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,$.datepicker._getFormatConfig(t));i&&($.datepicker._setDateFromField(t),$.datepicker._updateAlternate(t),$.datepicker._updateDatepicker(t))}catch(n){$.datepicker.log(n)}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!=e.nodeName.toLowerCase()&&(e=$("input",e.parentNode)[0]),!$.datepicker._isDisabledDatepicker(e)&&$.datepicker._lastInput!=e){var t=$.datepicker._getInst(e);$.datepicker._curInst&&$.datepicker._curInst!=t&&($.datepicker._curInst.dpDiv.stop(!0,!0),t&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var i=$.datepicker._get(t,"beforeShow"),n=i?i.apply(e,[e,t]):{};if(n!==!1){extendRemove(t.settings,n),t.lastVal=null,$.datepicker._lastInput=e,$.datepicker._setDateFromField(t),$.datepicker._inDialog&&(e.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(e),$.datepicker._pos[1]+=e.offsetHeight);var o=!1;$(e).parents().each(function(){return o|="fixed"==$(this).css("position"),!o});var a={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(t),a=$.datepicker._checkOffset(t,a,o),t.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),!t.inline){var r=$.datepicker._get(t,"showAnim"),s=$.datepicker._get(t,"duration"),l=function(){var e=t.dpDiv.find("iframe.ui-datepicker-cover");if(e.length){var i=$.datepicker._getBorders(t.dpDiv);e.css({left:-i[0],top:-i[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()})}};t.dpDiv.zIndex($(e).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&($.effects.effect[r]||$.effects[r])?t.dpDiv.show(r,$.datepicker._get(t,"showOptions"),s,l):t.dpDiv[r||"show"](r?s:null,l),r&&s||l(),t.input.is(":visible")&&!t.input.is(":disabled")&&t.input.focus(),$.datepicker._curInst=t}}}},_updateDatepicker:function(e){this.maxRows=4;var t=$.datepicker._getBorders(e.dpDiv);instActive=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i=e.dpDiv.find("iframe.ui-datepicker-cover");i.length&&i.css({left:-t[0],top:-t[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()}),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var n=this._getNumberOfMonths(e),o=n[1],a=17;if(e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&e.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",a*o+"em"),e.dpDiv[(1!=n[0]||1!=n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e==$.datepicker._curInst&&$.datepicker._datepickerShowing&&e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&e.input[0]!=document.activeElement&&e.input.focus(),e.yearshtml){var r=e.yearshtml;setTimeout(function(){r===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),r=e.yearshtml=null},0)}},_getBorders:function(e){var t=function(e){return{thin:1,medium:2,thick:3}[e]||e};return[parseFloat(t(e.css("border-left-width"))),parseFloat(t(e.css("border-top-width")))]},_checkOffset:function(e,t,i){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,s=document.documentElement.clientWidth+(i?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:$(document).scrollTop());return t.left-=this._get(e,"isRTL")?n-a:0,t.left-=i&&t.left==e.input.offset().left?$(document).scrollLeft():0,t.top-=i&&t.top==e.input.offset().top+r?$(document).scrollTop():0,t.left-=Math.min(t.left,t.left+n>s&&s>n?Math.abs(t.left+n-s):0),t.top-=Math.min(t.top,t.top+o>l&&l>o?Math.abs(o+r):0),t},_findPos:function(e){for(var t=this._getInst(e),i=this._get(t,"isRTL");e&&("hidden"==e.type||1!=e.nodeType||$.expr.filters.hidden(e));)e=e[i?"previousSibling":"nextSibling"];var n=$(e).offset();return[n.left,n.top]},_hideDatepicker:function(e){var t=this._curInst;if(t&&(!e||t==$.data(e,PROP_NAME))&&this._datepickerShowing){var i=this._get(t,"showAnim"),n=this._get(t,"duration"),o=function(){$.datepicker._tidyDialog(t)};$.effects&&($.effects.effect[i]||$.effects[i])?t.dpDiv.hide(i,$.datepicker._get(t,"showOptions"),n,o):t.dpDiv["slideDown"==i?"slideUp":"fadeIn"==i?"fadeOut":"hide"](i?n:null,o),i||o(),this._datepickerShowing=!1;var a=this._get(t,"onClose");a&&a.apply(t.input?t.input[0]:null,[t.input?t.input.val():"",t]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if($.datepicker._curInst){var t=$(e.target),i=$.datepicker._getInst(t[0]);(t[0].id!=$.datepicker._mainDivId&&0==t.parents("#"+$.datepicker._mainDivId).length&&!t.hasClass($.datepicker.markerClassName)&&!t.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||t.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=i)&&$.datepicker._hideDatepicker()}},_adjustDate:function(e,t,i){var n=$(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,t+("M"==i?this._get(o,"showCurrentAtPos"):0),i),this._updateDatepicker(o))},_gotoToday:function(e){var t=$(e),i=this._getInst(t[0]);if(this._get(i,"gotoCurrent")&&i.currentDay)i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear;else{var n=new Date;i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()}this._notifyChange(i),this._adjustDate(t)},_selectMonthYear:function(e,t,i){var n=$(e),o=this._getInst(n[0]);o["selected"+("M"==i?"Month":"Year")]=o["draw"+("M"==i?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,t,i,n){var o=$(e);if(!$(n).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(o[0])){var a=this._getInst(o[0]);a.selectedDay=a.currentDay=$("a",n).html(),a.selectedMonth=a.currentMonth=t,a.selectedYear=a.currentYear=i,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear))}},_clearDate:function(e){{var t=$(e);this._getInst(t[0])}this._selectDate(t,"")},_selectDate:function(e,t){var i=$(e),n=this._getInst(i[0]);t=null!=t?t:this._formatDate(n),n.input&&n.input.val(t),this._updateAlternate(n);var o=this._get(n,"onSelect");o?o.apply(n.input?n.input[0]:null,[t,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var t=this._get(e,"altField");if(t){var i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),o=this.formatDate(i,n,this._getFormatConfig(e));$(t).each(function(){$(this).val(o)})}},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t=new Date(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));var i=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(e,t,i){if(null==e||null==t)throw"Invalid arguments";if(t="object"==typeof t?t.toString():t+"",""==t)return null;var n=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff;n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10);for(var o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,s=(i?i.monthNames:null)||this._defaults.monthNames,l=-1,c=-1,u=-1,d=-1,h=!1,p=function(t){var i=b+1<e.length&&e.charAt(b+1)==t;return i&&b++,i},f=function(e){var i=p(e),n="@"==e?14:"!"==e?20:"y"==e&&i?4:"o"==e?3:2,o=new RegExp("^\\d{1,"+n+"}"),a=t.substring(v).match(o);if(!a)throw"Missing number at position "+v;return v+=a[0].length,parseInt(a[0],10)},m=function(e,i,n){var o=$.map(p(e)?n:i,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)}),a=-1;if($.each(o,function(e,i){var n=i[1];return t.substr(v,n.length).toLowerCase()==n.toLowerCase()?(a=i[0],v+=n.length,!1):void 0}),-1!=a)return a+1;throw"Unknown name at position "+v},g=function(){if(t.charAt(v)!=e.charAt(b))throw"Unexpected literal at position "+v;v++},v=0,b=0;b<e.length;b++)if(h)"'"!=e.charAt(b)||p("'")?g():h=!1;else switch(e.charAt(b)){case"d":u=f("d");break;case"D":m("D",o,a);break;case"o":d=f("o");break;case"m":c=f("m");break;case"M":c=m("M",r,s);break;case"y":l=f("y");break;case"@":var y=new Date(f("@"));l=y.getFullYear(),c=y.getMonth()+1,u=y.getDate();break;case"!":var y=new Date((f("!")-this._ticksTo1970)/1e4);l=y.getFullYear(),c=y.getMonth()+1,u=y.getDate();break;case"'":p("'")?g():h=!0;break;default:g()}if(v<t.length){var _=t.substr(v);if(!/^\s+/.test(_))throw"Extra/unparsed characters found in date: "+_}if(-1==l?l=(new Date).getFullYear():100>l&&(l+=(new Date).getFullYear()-(new Date).getFullYear()%100+(n>=l?0:-100)),d>-1)for(c=1,u=d;;){var w=this._getDaysInMonth(l,c-1);if(w>=u)break;c++,u-=w}var y=this._daylightSavingAdjust(new Date(l,c-1,u));if(y.getFullYear()!=l||y.getMonth()+1!=c||y.getDate()!=u)throw"Invalid date";return y},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";var n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,s=function(t){var i=h+1<e.length&&e.charAt(h+1)==t;return i&&h++,i},l=function(e,t,i){var n=""+t;if(s(e))for(;n.length<i;)n="0"+n;return n},c=function(e,t,i,n){return s(e)?n[t]:i[t]},u="",d=!1;if(t)for(var h=0;h<e.length;h++)if(d)"'"!=e.charAt(h)||s("'")?u+=e.charAt(h):d=!1;else switch(e.charAt(h)){case"d":u+=l("d",t.getDate(),2);break;case"D":u+=c("D",t.getDay(),n,o);break;case"o":u+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=l("m",t.getMonth()+1,2);break;case"M":u+=c("M",t.getMonth(),a,r);break;case"y":u+=s("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":s("'")?u+="'":d=!0;break;default:u+=e.charAt(h)}return u},_possibleChars:function(e){for(var t="",i=!1,n=function(t){var i=o+1<e.length&&e.charAt(o+1)==t;return i&&o++,i},o=0;o<e.length;o++)if(i)"'"!=e.charAt(o)||n("'")?t+=e.charAt(o):i=!1;else switch(e.charAt(o)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":n("'")?t+="'":i=!0;break;default:t+=e.charAt(o)}return t},_get:function(e,t){return e.settings[t]!==undefined?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!=e.lastVal){var i,n,o=this._get(e,"dateFormat"),a=e.lastVal=e.input?e.input.val():null;i=n=this._getDefaultDate(e);var r=this._getFormatConfig(e);try{i=this.parseDate(o,a,r)||n}catch(s){this.log(s),a=t?"":a}e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),e.currentDay=a?i.getDate():0,e.currentMonth=a?i.getMonth():0,e.currentYear=a?i.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(e,t,i){var n=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},o=function(t){try{return $.datepicker.parseDate($.datepicker._get(e,"dateFormat"),t,$.datepicker._getFormatConfig(e))}catch(i){}for(var n=(t.toLowerCase().match(/^c/)?$.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),a=n.getMonth(),r=n.getDate(),s=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(t);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(o,a))}l=s.exec(t)}return new Date(o,a,r)},a=null==t||""===t?i:"string"==typeof t?o(t):"number"==typeof t?isNaN(t)?i:n(t):new Date(t.getTime());return a=a&&"Invalid Date"==a.toString()?i:a,a&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,o=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),o==e.selectedMonth&&a==e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""==e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,-t,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,+t,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(i)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t=new Date;t=this._daylightSavingAdjust(new Date(t.getFullYear(),t.getMonth(),t.getDate()));var i=this._get(e,"isRTL"),n=this._get(e,"showButtonPanel"),o=this._get(e,"hideIfNoPrevNext"),a=this._get(e,"navigationAsDateFormat"),r=this._getNumberOfMonths(e),s=this._get(e,"showCurrentAtPos"),l=this._get(e,"stepMonths"),c=1!=r[0]||1!=r[1],u=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),d=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max"),p=e.drawMonth-s,f=e.drawYear;if(0>p&&(p+=12,f--),h){var m=this._daylightSavingAdjust(new Date(h.getFullYear(),h.getMonth()-r[0]*r[1]+1,h.getDate()));
|
40
|
+
for(m=d&&d>m?d:m;this._daylightSavingAdjust(new Date(f,p,1))>m;)p--,0>p&&(p=11,f--)}e.drawMonth=p,e.drawYear=f;var g=this._get(e,"prevText");g=a?this.formatDate(g,this._daylightSavingAdjust(new Date(f,p-l,1)),this._getFormatConfig(e)):g;var v=this._canAdjustMonth(e,-1,f,p)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+g+"</span></a>":o?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+g+"</span></a>",b=this._get(e,"nextText");b=a?this.formatDate(b,this._daylightSavingAdjust(new Date(f,p+l,1)),this._getFormatConfig(e)):b;var y=this._canAdjustMonth(e,1,f,p)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+b+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+b+"</span></a>":o?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+b+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+b+"</span></a>",_=this._get(e,"currentText"),w=this._get(e,"gotoCurrent")&&e.currentDay?u:t;_=a?this.formatDate(_,w,this._getFormatConfig(e)):_;var x=e.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(e,"closeText")+"</button>",C=n?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?x:"")+(this._isInRange(e,w)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+_+"</button>":"")+(i?"":x)+"</div>":"",k=parseInt(this._get(e,"firstDay"),10);k=isNaN(k)?0:k;for(var T=this._get(e,"showWeek"),D=this._get(e,"dayNames"),S=(this._get(e,"dayNamesShort"),this._get(e,"dayNamesMin")),E=this._get(e,"monthNames"),N=this._get(e,"monthNamesShort"),A=this._get(e,"beforeShowDay"),P=this._get(e,"showOtherMonths"),M=this._get(e,"selectOtherMonths"),I=(this._get(e,"calculateWeek")||this.iso8601Week,this._getDefaultDate(e)),H="",B=0;B<r[0];B++){var O="";this.maxRows=4;for(var R=0;R<r[1];R++){var L=this._daylightSavingAdjust(new Date(f,p,e.selectedDay)),j=" ui-corner-all",F="";if(c){if(F+='<div class="ui-datepicker-group',r[1]>1)switch(R){case 0:F+=" ui-datepicker-group-first",j=" ui-corner-"+(i?"right":"left");break;case r[1]-1:F+=" ui-datepicker-group-last",j=" ui-corner-"+(i?"left":"right");break;default:F+=" ui-datepicker-group-middle",j=""}F+='">'}F+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+j+'">'+(/all|left/.test(j)&&0==B?i?y:v:"")+(/all|right/.test(j)&&0==B?i?v:y:"")+this._generateMonthYearHeader(e,p,f,d,h,B>0||R>0,E,N)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var z=T?'<th class="ui-datepicker-week-col">'+this._get(e,"weekHeader")+"</th>":"",q=0;7>q;q++){var W=(q+k)%7;z+="<th"+((q+k+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+D[W]+'">'+S[W]+"</span></th>"}F+=z+"</tr></thead><tbody>";var U=this._getDaysInMonth(f,p);f==e.selectedYear&&p==e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,U));var V=(this._getFirstDayOfMonth(f,p)-k+7)%7,K=Math.ceil((V+U)/7),Y=c?this.maxRows>K?this.maxRows:K:K;this.maxRows=Y;for(var X=this._daylightSavingAdjust(new Date(f,p,1-V)),G=0;Y>G;G++){F+="<tr>";for(var Q=T?'<td class="ui-datepicker-week-col">'+this._get(e,"calculateWeek")(X)+"</td>":"",q=0;7>q;q++){var Z=A?A.apply(e.input?e.input[0]:null,[X]):[!0,""],J=X.getMonth()!=p,et=J&&!M||!Z[0]||d&&d>X||h&&X>h;Q+='<td class="'+((q+k+6)%7>=5?" ui-datepicker-week-end":"")+(J?" ui-datepicker-other-month":"")+(X.getTime()==L.getTime()&&p==e.selectedMonth&&e._keyEvent||I.getTime()==X.getTime()&&I.getTime()==L.getTime()?" "+this._dayOverClass:"")+(et?" "+this._unselectableClass+" ui-state-disabled":"")+(J&&!P?"":" "+Z[1]+(X.getTime()==u.getTime()?" "+this._currentClass:"")+(X.getTime()==t.getTime()?" ui-datepicker-today":""))+'"'+(J&&!P||!Z[2]?"":' title="'+Z[2]+'"')+(et?"":' data-handler="selectDay" data-event="click" data-month="'+X.getMonth()+'" data-year="'+X.getFullYear()+'"')+">"+(J&&!P?" ":et?'<span class="ui-state-default">'+X.getDate()+"</span>":'<a class="ui-state-default'+(X.getTime()==t.getTime()?" ui-state-highlight":"")+(X.getTime()==u.getTime()?" ui-state-active":"")+(J?" ui-priority-secondary":"")+'" href="#">'+X.getDate()+"</a>")+"</td>",X.setDate(X.getDate()+1),X=this._daylightSavingAdjust(X)}F+=Q+"</tr>"}p++,p>11&&(p=0,f++),F+="</tbody></table>"+(c?"</div>"+(r[0]>0&&R==r[1]-1?'<div class="ui-datepicker-row-break"></div>':""):""),O+=F}H+=O}return H+=C+($.ui.ie6&&!e.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),e._keyEvent=!1,H},_generateMonthYearHeader:function(e,t,i,n,o,a,r,s){var l=this._get(e,"changeMonth"),c=this._get(e,"changeYear"),u=this._get(e,"showMonthAfterYear"),d='<div class="ui-datepicker-title">',h="";if(a||!l)h+='<span class="ui-datepicker-month">'+r[t]+"</span>";else{var p=n&&n.getFullYear()==i,f=o&&o.getFullYear()==i;h+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var m=0;12>m;m++)(!p||m>=n.getMonth())&&(!f||m<=o.getMonth())&&(h+='<option value="'+m+'"'+(m==t?' selected="selected"':"")+">"+s[m]+"</option>");h+="</select>"}if(u||(d+=h+(!a&&l&&c?"":" ")),!e.yearshtml)if(e.yearshtml="",a||!c)d+='<span class="ui-datepicker-year">'+i+"</span>";else{var g=this._get(e,"yearRange").split(":"),v=(new Date).getFullYear(),b=function(e){var t=e.match(/c[+-].*/)?i+parseInt(e.substring(1),10):e.match(/[+-].*/)?v+parseInt(e,10):parseInt(e,10);return isNaN(t)?v:t},y=b(g[0]),_=Math.max(y,b(g[1]||""));for(y=n?Math.max(y,n.getFullYear()):y,_=o?Math.min(_,o.getFullYear()):_,e.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';_>=y;y++)e.yearshtml+='<option value="'+y+'"'+(y==i?' selected="selected"':"")+">"+y+"</option>";e.yearshtml+="</select>",d+=e.yearshtml,e.yearshtml=null}return d+=this._get(e,"yearSuffix"),u&&(d+=(!a&&l&&c?"":" ")+h),d+="</div>"},_adjustInstDate:function(e,t,i){var n=e.drawYear+("Y"==i?t:0),o=e.drawMonth+("M"==i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,o))+("D"==i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,o,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"==i||"Y"==i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),o=i&&i>t?i:t;return o=n&&o>n?n:o},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var o=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(0>t?t:o[0]*o[1]),1));return 0>t&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max");return(!i||t.getTime()>=i.getTime())&&(!n||t.getTime()<=n.getTime())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var o=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),o,this._getFormatConfig(e))}}),$.fn.datepicker=function(e){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!=e&&"getDate"!=e&&"widget"!=e?"option"==e&&2==arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this].concat(t)):$.datepicker._attachDatepicker(this,e)}):$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.2",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(e,t){var i="ui-dialog ui-widget ui-widget-content ui-corner-all ",n={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},o={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};e.widget("ui.dialog",{version:"1.9.2",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;0>i&&e(this).css("top",t.top-i)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.options.title=this.options.title||this.originalTitle;var t,n,o,a,r,s=this,l=this.options,c=l.title||" ";t=(this.uiDialog=e("<div>")).addClass(i+l.dialogClass).css({display:"none",outline:0,zIndex:l.zIndex}).attr("tabIndex",-1).keydown(function(t){l.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE&&(s.close(t),t.preventDefault())}).mousedown(function(e){s.moveToTop(!1,e)}).appendTo("body"),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(t),n=(this.uiDialogTitlebar=e("<div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").bind("mousedown",function(){t.focus()}).prependTo(t),o=e("<a href='#'></a>").addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").click(function(e){e.preventDefault(),s.close(e)}).appendTo(n),(this.uiDialogTitlebarCloseText=e("<span>")).addClass("ui-icon ui-icon-closethick").text(l.closeText).appendTo(o),a=e("<span>").uniqueId().addClass("ui-dialog-title").html(c).prependTo(n),r=(this.uiDialogButtonPane=e("<div>")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uiButtonSet=e("<div>")).addClass("ui-dialog-buttonset").appendTo(r),t.attr({role:"dialog","aria-labelledby":a.attr("id")}),n.find("*").add(n).disableSelection(),this._hoverable(o),this._focusable(o),l.draggable&&e.fn.draggable&&this._makeDraggable(),l.resizable&&e.fn.resizable&&this._makeResizable(),this._createButtons(l.buttons),this._isOpen=!1,e.fn.bgiframe&&t.bgiframe(),this._on(t,{keydown:function(i){if(l.modal&&i.keyCode===e.ui.keyCode.TAB){var n=e(":tabbable",t),o=n.filter(":first"),a=n.filter(":last");return i.target!==a[0]||i.shiftKey?i.target===o[0]&&i.shiftKey?(a.focus(1),!1):void 0:(o.focus(1),!1)}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var e,t=this.oldPosition;this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(t){var i,n,o=this;if(this._isOpen&&!1!==this._trigger("beforeClose",t))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){o._trigger("close",t)}):(this.uiDialog.hide(),this._trigger("close",t)),e.ui.dialog.overlay.resize(),this.options.modal&&(i=0,e(".ui-dialog").each(function(){this!==o.uiDialog[0]&&(n=e(this).css("z-index"),isNaN(n)||(i=Math.max(i,n)))}),e.ui.dialog.maxZ=i),this},isOpen:function(){return this._isOpen},moveToTop:function(t,i){var n,o=this.options;return o.modal&&!t||!o.stack&&!o.modal?this._trigger("focus",i):(o.zIndex>e.ui.dialog.maxZ&&(e.ui.dialog.maxZ=o.zIndex),this.overlay&&(e.ui.dialog.maxZ+=1,e.ui.dialog.overlay.maxZ=e.ui.dialog.maxZ,this.overlay.$el.css("z-index",e.ui.dialog.overlay.maxZ)),n={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},e.ui.dialog.maxZ+=1,this.uiDialog.css("z-index",e.ui.dialog.maxZ),this.element.attr(n),this._trigger("focus",i),this)},open:function(){if(!this._isOpen){var t,i=this.options,n=this.uiDialog;return this._size(),this._position(i.position),n.show(i.show),this.overlay=i.modal?new e.ui.dialog.overlay(this):null,this.moveToTop(!0),t=this.element.find(":tabbable"),t.length||(t=this.uiDialogButtonPane.find(":tabbable"),t.length||(t=n)),t.eq(0).focus(),this._isOpen=!0,this._trigger("open"),this}},_createButtons:function(t){var i=this,n=!1;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),"object"==typeof t&&null!==t&&e.each(t,function(){return!(n=!0)}),n?(e.each(t,function(t,n){var o,a;n=e.isFunction(n)?{click:n,text:t}:n,n=e.extend({type:"button"},n),a=n.click,n.click=function(){a.apply(i.element[0],arguments)},o=e("<button></button>",n).appendTo(i.uiButtonSet),e.fn.button&&o.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,o){e(this).addClass("ui-dialog-dragging"),i._trigger("dragStart",n,t(o))},drag:function(e,n){i._trigger("drag",e,t(n))},stop:function(o,a){n.position=[a.position.left-i.document.scrollLeft(),a.position.top-i.document.scrollTop()],e(this).removeClass("ui-dialog-dragging"),i._trigger("dragStop",o,t(a)),e.ui.dialog.overlay.resize()}})},_makeResizable:function(i){function n(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}i=i===t?this.options.resizable:i;var o=this,a=this.options,r=this.uiDialog.css("position"),s="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:s,start:function(t,i){e(this).addClass("ui-dialog-resizing"),o._trigger("resizeStart",t,n(i))},resize:function(e,t){o._trigger("resize",e,n(t))},stop:function(t,i){e(this).removeClass("ui-dialog-resizing"),a.height=e(this).height(),a.width=e(this).width(),o._trigger("resizeStop",t,n(i)),e.ui.dialog.overlay.resize()}}).css("position",r).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(t){var i,n=[],o=[0,0];t?(("string"==typeof t||"object"==typeof t&&"0"in t)&&(n=t.split?t.split(" "):[t[0],t[1]],1===n.length&&(n[1]=n[0]),e.each(["left","top"],function(e,t){+n[e]===n[e]&&(o[e]=n[e],n[e]=t)}),t={my:n[0]+(o[0]<0?o[0]:"+"+o[0])+" "+n[1]+(o[1]<0?o[1]:"+"+o[1]),at:n.join(" ")}),t=e.extend({},e.ui.dialog.prototype.options.position,t)):t=e.ui.dialog.prototype.options.position,i=this.uiDialog.is(":visible"),i||this.uiDialog.show(),this.uiDialog.position(t),i||this.uiDialog.hide()},_setOptions:function(t){var i=this,a={},r=!1;e.each(t,function(e,t){i._setOption(e,t),e in n&&(r=!0),e in o&&(a[e]=t)}),r&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(t,n){var o,a,r=this.uiDialog;switch(t){case"buttons":this._createButtons(n);break;case"closeText":this.uiDialogTitlebarCloseText.text(""+n);break;case"dialogClass":r.removeClass(this.options.dialogClass).addClass(i+n);break;case"disabled":n?r.addClass("ui-dialog-disabled"):r.removeClass("ui-dialog-disabled");break;case"draggable":o=r.is(":data(draggable)"),o&&!n&&r.draggable("destroy"),!o&&n&&this._makeDraggable();break;case"position":this._position(n);break;case"resizable":a=r.is(":data(resizable)"),a&&!n&&r.resizable("destroy"),a&&"string"==typeof n&&r.resizable("option","handles",n),a||n===!1||this._makeResizable(n);break;case"title":e(".ui-dialog-title",this.uiDialogTitlebar).html(""+(n||" "))}this._super(t,n)},_size:function(){var t,i,n,o=this.options,a=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),o.minWidth>o.width&&(o.width=o.minWidth),t=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),i=Math.max(0,o.minHeight-t),"auto"===o.height?e.support.minHeight?this.element.css({minHeight:i,height:"auto"}):(this.uiDialog.show(),n=this.element.css("height","auto").height(),a||this.uiDialog.hide(),this.element.height(Math.max(n,i))):this.element.height(Math.max(o.height-t,0)),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),e.extend(e.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(e){var t=e.attr("id");return t||(this.uuid+=1,t=this.uuid),"ui-dialog-title-"+t},overlay:function(t){this.$el=e.ui.dialog.overlay.create(t)}}),e.extend(e.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(e){return e+".dialog-overlay"}).join(" "),create:function(t){0===this.instances.length&&(setTimeout(function(){e.ui.dialog.overlay.instances.length&&e(document).bind(e.ui.dialog.overlay.events,function(t){return e(t.target).zIndex()<e.ui.dialog.overlay.maxZ?!1:void 0})},1),e(window).bind("resize.dialog-overlay",e.ui.dialog.overlay.resize));var i=this.oldInstances.pop()||e("<div>").addClass("ui-widget-overlay");return e(document).bind("keydown.dialog-overlay",function(n){var o=e.ui.dialog.overlay.instances;0!==o.length&&o[o.length-1]===i&&t.options.closeOnEscape&&!n.isDefaultPrevented()&&n.keyCode&&n.keyCode===e.ui.keyCode.ESCAPE&&(t.close(n),n.preventDefault())}),i.appendTo(document.body).css({width:this.width(),height:this.height()}),e.fn.bgiframe&&i.bgiframe(),this.instances.push(i),i},destroy:function(t){var i=e.inArray(t,this.instances),n=0;-1!==i&&this.oldInstances.push(this.instances.splice(i,1)[0]),0===this.instances.length&&e([document,window]).unbind(".dialog-overlay"),t.height(0).width(0).remove(),e.each(this.instances,function(){n=Math.max(n,this.css("z-index"))}),this.maxZ=n},height:function(){var t,i;return e.ui.ie?(t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),i=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),i>t?e(window).height()+"px":t+"px"):e(document).height()+"px"},width:function(){var t,i;return e.ui.ie?(t=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),i>t?e(window).width()+"px":t+"px"):e(document).width()+"px"},resize:function(){var t=e([]);e.each(e.ui.dialog.overlay.instances,function(){t=t.add(this)}),t.css({width:0,height:0}).css({width:e.ui.dialog.overlay.width(),height:e.ui.dialog.overlay.height()})}}),e.extend(e.ui.dialog.overlay.prototype,{destroy:function(){e.ui.dialog.overlay.destroy(this.$el)}})}(jQuery),function(e){var t=/up|down|vertical/,i=/up|left|vertical|horizontal/;e.effects.effect.blind=function(n,o){var a,r,s,l=e(this),c=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(l,n.mode||"hide"),d=n.direction||"up",h=t.test(d),p=h?"height":"width",f=h?"top":"left",m=i.test(d),g={},v="show"===u;l.parent().is(".ui-effects-wrapper")?e.effects.save(l.parent(),c):e.effects.save(l,c),l.show(),a=e.effects.createWrapper(l).css({overflow:"hidden"}),r=a[p](),s=parseFloat(a.css(f))||0,g[p]=v?r:0,m||(l.css(h?"bottom":"right",0).css(h?"top":"left","auto").css({position:"absolute"}),g[f]=v?s:r+s),v&&(a.css(p,0),m||a.css(f,s+r)),a.animate(g,{duration:n.duration,easing:n.easing,queue:!1,complete:function(){"hide"===u&&l.hide(),e.effects.restore(l,c),e.effects.removeWrapper(l),o()}})}}(jQuery),function(e){e.effects.effect.bounce=function(t,i){var n,o,a,r=e(this),s=["position","top","bottom","left","right","height","width"],l=e.effects.setMode(r,t.mode||"effect"),c="hide"===l,u="show"===l,d=t.direction||"up",h=t.distance,p=t.times||5,f=2*p+(u||c?1:0),m=t.duration/f,g=t.easing,v="up"===d||"down"===d?"top":"left",b="up"===d||"left"===d,y=r.queue(),_=y.length;for((u||c)&&s.push("opacity"),e.effects.save(r,s),r.show(),e.effects.createWrapper(r),h||(h=r["top"===v?"outerHeight":"outerWidth"]()/3),u&&(a={opacity:1},a[v]=0,r.css("opacity",0).css(v,b?2*-h:2*h).animate(a,m,g)),c&&(h/=Math.pow(2,p-1)),a={},a[v]=0,n=0;p>n;n++)o={},o[v]=(b?"-=":"+=")+h,r.animate(o,m,g).animate(a,m,g),h=c?2*h:h/2;c&&(o={opacity:0},o[v]=(b?"-=":"+=")+h,r.animate(o,m,g)),r.queue(function(){c&&r.hide(),e.effects.restore(r,s),e.effects.removeWrapper(r),i()}),_>1&&y.splice.apply(y,[1,0].concat(y.splice(_,f+1))),r.dequeue()}}(jQuery),function(e){e.effects.effect.clip=function(t,i){var n,o,a,r=e(this),s=["position","top","bottom","left","right","height","width"],l=e.effects.setMode(r,t.mode||"hide"),c="show"===l,u=t.direction||"vertical",d="vertical"===u,h=d?"height":"width",p=d?"top":"left",f={};e.effects.save(r,s),r.show(),n=e.effects.createWrapper(r).css({overflow:"hidden"}),o="IMG"===r[0].tagName?n:r,a=o[h](),c&&(o.css(h,0),o.css(p,a/2)),f[h]=c?a:0,f[p]=c?0:a/2,o.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){c||r.hide(),e.effects.restore(r,s),e.effects.removeWrapper(r),i()}})}}(jQuery),function(e){e.effects.effect.drop=function(t,i){var n,o=e(this),a=["position","top","bottom","left","right","opacity","height","width"],r=e.effects.setMode(o,t.mode||"hide"),s="show"===r,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l?"pos":"neg",d={opacity:s?1:0};e.effects.save(o,a),o.show(),e.effects.createWrapper(o),n=t.distance||o["top"===c?"outerHeight":"outerWidth"](!0)/2,s&&o.css("opacity",0).css(c,"pos"===u?-n:n),d[c]=(s?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+n,o.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&o.hide(),e.effects.restore(o,a),e.effects.removeWrapper(o),i()}})}}(jQuery),function(e){e.effects.effect.explode=function(t,i){function n(){y.push(this),y.length===d*h&&o()}function o(){p.css({visibility:"visible"}),e(y).remove(),m||p.hide(),i()}var a,r,s,l,c,u,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=d,p=e(this),f=e.effects.setMode(p,t.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/h),b=Math.ceil(p.outerHeight()/d),y=[];for(a=0;d>a;a++)for(l=g.top+a*b,u=a-(d-1)/2,r=0;h>r;r++)s=g.left+r*v,c=r-(h-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*v,top:-a*b}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:b,left:s+(m?c*v:0),top:l+(m?u*b:0),opacity:m?0:1}).animate({left:s+(m?0:c*v),top:l+(m?0:u*b),opacity:m?1:0},t.duration||500,t.easing,n)}}(jQuery),function(e){e.effects.effect.fade=function(t,i){var n=e(this),o=e.effects.setMode(n,t.mode||"toggle");n.animate({opacity:o},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}}(jQuery),function(e){e.effects.effect.fold=function(t,i){var n,o,a=e(this),r=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(a,t.mode||"hide"),l="show"===s,c="hide"===s,u=t.size||15,d=/([0-9]+)%/.exec(u),h=!!t.horizFirst,p=l!==h,f=p?["width","height"]:["height","width"],m=t.duration/2,g={},v={};e.effects.save(a,r),a.show(),n=e.effects.createWrapper(a).css({overflow:"hidden"}),o=p?[n.width(),n.height()]:[n.height(),n.width()],d&&(u=parseInt(d[1],10)/100*o[c?0:1]),l&&n.css(h?{height:0,width:u}:{height:u,width:0}),g[f[0]]=l?o[0]:u,v[f[1]]=l?o[1]:0,n.animate(g,m,t.easing).animate(v,m,t.easing,function(){c&&a.hide(),e.effects.restore(a,r),e.effects.removeWrapper(a),i()})}}(jQuery),function(e){e.effects.effect.highlight=function(t,i){var n=e(this),o=["backgroundImage","backgroundColor","opacity"],a=e.effects.setMode(n,t.mode||"show"),r={backgroundColor:n.css("backgroundColor")};"hide"===a&&(r.opacity=0),e.effects.save(n,o),n.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===a&&n.hide(),e.effects.restore(n,o),i()}})}}(jQuery),function(e){e.effects.effect.pulsate=function(t,i){var n,o=e(this),a=e.effects.setMode(o,t.mode||"show"),r="show"===a,s="hide"===a,l=r||"hide"===a,c=2*(t.times||5)+(l?1:0),u=t.duration/c,d=0,h=o.queue(),p=h.length;for((r||!o.is(":visible"))&&(o.css("opacity",0).show(),d=1),n=1;c>n;n++)o.animate({opacity:d},u,t.easing),d=1-d;o.animate({opacity:d},u,t.easing),o.queue(function(){s&&o.hide(),i()}),p>1&&h.splice.apply(h,[1,0].concat(h.splice(p,c+1))),o.dequeue()}}(jQuery),function(e){e.effects.effect.puff=function(t,i){var n=e(this),o=e.effects.setMode(n,t.mode||"hide"),a="hide"===o,r=parseInt(t.percent,10)||150,s=r/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:o,complete:i,percent:a?r:100,from:a?l:{height:l.height*s,width:l.width*s,outerHeight:l.outerHeight*s,outerWidth:l.outerWidth*s}}),n.effect(t)},e.effects.effect.scale=function(t,i){var n=e(this),o=e.extend(!0,{},t),a=e.effects.setMode(n,t.mode||"effect"),r=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===a?0:100),s=t.direction||"both",l=t.origin,c={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},u={y:"horizontal"!==s?r/100:1,x:"vertical"!==s?r/100:1};o.effect="size",o.queue=!1,o.complete=i,"effect"!==a&&(o.origin=l||["middle","center"],o.restore=!0),o.from=t.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:c),o.to={height:c.height*u.y,width:c.width*u.x,outerHeight:c.outerHeight*u.y,outerWidth:c.outerWidth*u.x},o.fade&&("show"===a&&(o.from.opacity=0,o.to.opacity=1),"hide"===a&&(o.from.opacity=1,o.to.opacity=0)),n.effect(o)},e.effects.effect.size=function(t,i){var n,o,a,r=e(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],c=["width","height","overflow"],u=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(r,t.mode||"effect"),f=t.restore||"effect"!==p,m=t.scale||"both",g=t.origin||["middle","center"],v=r.css("position"),b=f?s:l,y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&r.show(),n={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===t.mode&&"show"===p?(r.from=t.to||y,r.to=t.from||n):(r.from=t.from||("show"===p?y:n),r.to=t.to||("hide"===p?y:n)),a={from:{y:r.from.height/n.height,x:r.from.width/n.width},to:{y:r.to.height/n.height,x:r.to.width/n.width}},("box"===m||"both"===m)&&(a.from.y!==a.to.y&&(b=b.concat(d),r.from=e.effects.setTransition(r,d,a.from.y,r.from),r.to=e.effects.setTransition(r,d,a.to.y,r.to)),a.from.x!==a.to.x&&(b=b.concat(h),r.from=e.effects.setTransition(r,h,a.from.x,r.from),r.to=e.effects.setTransition(r,h,a.to.x,r.to))),("content"===m||"both"===m)&&a.from.y!==a.to.y&&(b=b.concat(u).concat(c),r.from=e.effects.setTransition(r,u,a.from.y,r.from),r.to=e.effects.setTransition(r,u,a.to.y,r.to)),e.effects.save(r,b),r.show(),e.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),g&&(o=e.effects.getBaseline(g,n),r.from.top=(n.outerHeight-r.outerHeight())*o.y,r.from.left=(n.outerWidth-r.outerWidth())*o.x,r.to.top=(n.outerHeight-r.to.outerHeight)*o.y,r.to.left=(n.outerWidth-r.to.outerWidth)*o.x),r.css(r.from),("content"===m||"both"===m)&&(d=d.concat(["marginTop","marginBottom"]).concat(u),h=h.concat(["marginLeft","marginRight"]),c=s.concat(d).concat(h),r.find("*[width]").each(function(){var i=e(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&e.effects.save(i,c),i.from={height:n.height*a.from.y,width:n.width*a.from.x,outerHeight:n.outerHeight*a.from.y,outerWidth:n.outerWidth*a.from.x},i.to={height:n.height*a.to.y,width:n.width*a.to.x,outerHeight:n.height*a.to.y,outerWidth:n.width*a.to.x},a.from.y!==a.to.y&&(i.from=e.effects.setTransition(i,d,a.from.y,i.from),i.to=e.effects.setTransition(i,d,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=e.effects.setTransition(i,h,a.from.x,i.from),i.to=e.effects.setTransition(i,h,a.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,c)})})),r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===p&&r.hide(),e.effects.restore(r,b),f||("static"===v?r.css({position:"relative",top:r.to.top,left:r.to.left}):e.each(["top","left"],function(e,t){r.css(t,function(t,i){var n=parseInt(i,10),o=e?r.to.left:r.to.top;return"auto"===i?o+"px":n+o+"px"})})),e.effects.removeWrapper(r),i()}})}}(jQuery),function(e){e.effects.effect.shake=function(t,i){var n,o=e(this),a=["position","top","bottom","left","right","height","width"],r=e.effects.setMode(o,t.mode||"effect"),s=t.direction||"left",l=t.distance||20,c=t.times||3,u=2*c+1,d=Math.round(t.duration/u),h="up"===s||"down"===s?"top":"left",p="up"===s||"left"===s,f={},m={},g={},v=o.queue(),b=v.length;for(e.effects.save(o,a),o.show(),e.effects.createWrapper(o),f[h]=(p?"-=":"+=")+l,m[h]=(p?"+=":"-=")+2*l,g[h]=(p?"-=":"+=")+2*l,o.animate(f,d,t.easing),n=1;c>n;n++)o.animate(m,d,t.easing).animate(g,d,t.easing);o.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function(){"hide"===r&&o.hide(),e.effects.restore(o,a),e.effects.removeWrapper(o),i()}),b>1&&v.splice.apply(v,[1,0].concat(v.splice(b,u+1))),o.dequeue()}}(jQuery),function(e){e.effects.effect.slide=function(t,i){var n,o=e(this),a=["position","top","bottom","left","right","width","height"],r=e.effects.setMode(o,t.mode||"show"),s="show"===r,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,d={};e.effects.save(o,a),o.show(),n=t.distance||o["top"===c?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(o).css({overflow:"hidden"}),s&&o.css(c,u?isNaN(n)?"-"+n:-n:n),d[c]=(s?u?"+=":"-=":u?"-=":"+=")+n,o.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&o.hide(),e.effects.restore(o,a),e.effects.removeWrapper(o),i()}})}}(jQuery),function(e){e.effects.effect.transfer=function(t,i){var n=e(this),o=e(t.to),a="fixed"===o.css("position"),r=e("body"),s=a?r.scrollTop():0,l=a?r.scrollLeft():0,c=o.offset(),u={top:c.top-s,left:c.left-l,height:o.innerHeight(),width:o.innerWidth()},d=n.offset(),h=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(t.className).css({top:d.top-s,left:d.left-l,height:n.innerHeight(),width:n.innerWidth(),position:a?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){h.remove(),i()})}}(jQuery),function(e){var t=!1;e.widget("ui.menu",{version:"1.9.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy(function(e){this.options.disabled&&e.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()
|
41
|
+
},"click .ui-menu-item:has(a)":function(i){var n=e(i.target).closest(".ui-menu-item");!t&&n.not(".ui-state-disabled").length&&(t=!0,this.select(i),n.has(".ui-menu").length?this.expand(i):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var i=e(t.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,i)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(i){e(i.target).closest(".ui-menu").length||this.collapseAll(i),t=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,o,a,r,s,l=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:l=!1,o=this.previousFilter||"",a=String.fromCharCode(t.keyCode),r=!1,clearTimeout(this.filterTimer),a===o?r=!0:a=o+a,s=new RegExp("^"+i(a),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return s.test(e(this).children("a").text())}),n=r&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(a=String.fromCharCode(t.keyCode),s=new RegExp("^"+i(a),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return s.test(e(this).children("a").text())})),n.length?(this.focus(t,n),n.length>1?(this.previousFilter=a,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i=this.options.icons.submenu,n=this.element.find(this.options.menus);n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.prev("a"),o=e("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(o),t.attr("aria-labelledby",n.attr("id"))}),t=n.add(this.element),t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=e(this);/[^\-—–\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(e,t){var i,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=t.children(".ui-menu"),i.length&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,n,o,a,r,s;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,o=t.offset().top-this.activeMenu.offset().top-i-n,a=this.activeMenu.scrollTop(),r=this.activeMenu.height(),s=t.height(),0>o?this.activeMenu.scrollTop(a+o):o+s>r&&this.activeMenu.scrollTop(a+o-r+s))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(t),this.activeMenu=n},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.children(".ui-menu-item")[t]()),this.focus(i,n)},nextPage:function(t){var i,n,o;return this.active?(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=e(this),i.offset().top-n-o<0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),void 0):(this.next(t),void 0)},previousPage:function(t){var i,n,o;return this.active?(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=e(this),i.offset().top-n+o>0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item").first())),void 0):(this.next(t),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)}})}(jQuery),function(e,t){function i(e,t,i){return[parseInt(e[0],10)*(h.test(e[0])?t/100:1),parseInt(e[1],10)*(h.test(e[1])?i/100:1)]}function n(t,i){return parseInt(e.css(t,i),10)||0}e.ui=e.ui||{};var o,a=Math.max,r=Math.abs,s=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+%?/,d=/^\w+/,h=/%$/,p=e.fn.position;e.position={scrollbarWidth:function(){if(o!==t)return o;var i,n,a=e("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),r=a.children()[0];return e("body").append(a),i=r.offsetWidth,a.css("overflow","scroll"),n=r.offsetWidth,i===n&&(n=a[0].clientWidth),a.remove(),o=i-n},getScrollInfo:function(t){var i=t.isWindow?"":t.element.css("overflow-x"),n=t.isWindow?"":t.element.css("overflow-y"),o="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,a="scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight;return{width:o?e.position.scrollbarWidth():0,height:a?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),n=e.isWindow(i[0]);return{element:i,isWindow:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return p.apply(this,arguments);t=e.extend({},t);var o,h,f,m,g,v=e(t.of),b=e.position.getWithinInfo(t.within),y=e.position.getScrollInfo(b),_=v[0],w=(t.collision||"flip").split(" "),x={};return 9===_.nodeType?(h=v.width(),f=v.height(),m={top:0,left:0}):e.isWindow(_)?(h=v.width(),f=v.height(),m={top:v.scrollTop(),left:v.scrollLeft()}):_.preventDefault?(t.at="left top",h=f=0,m={top:_.pageY,left:_.pageX}):(h=v.outerWidth(),f=v.outerHeight(),m=v.offset()),g=e.extend({},m),e.each(["my","at"],function(){var e,i,n=(t[this]||"").split(" ");1===n.length&&(n=l.test(n[0])?n.concat(["center"]):c.test(n[0])?["center"].concat(n):["center","center"]),n[0]=l.test(n[0])?n[0]:"center",n[1]=c.test(n[1])?n[1]:"center",e=u.exec(n[0]),i=u.exec(n[1]),x[this]=[e?e[0]:0,i?i[0]:0],t[this]=[d.exec(n[0])[0],d.exec(n[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?g.left+=h:"center"===t.at[0]&&(g.left+=h/2),"bottom"===t.at[1]?g.top+=f:"center"===t.at[1]&&(g.top+=f/2),o=i(x.at,h,f),g.left+=o[0],g.top+=o[1],this.each(function(){var l,c,u=e(this),d=u.outerWidth(),p=u.outerHeight(),_=n(this,"marginLeft"),C=n(this,"marginTop"),k=d+_+n(this,"marginRight")+y.width,T=p+C+n(this,"marginBottom")+y.height,D=e.extend({},g),S=i(x.my,u.outerWidth(),u.outerHeight());"right"===t.my[0]?D.left-=d:"center"===t.my[0]&&(D.left-=d/2),"bottom"===t.my[1]?D.top-=p:"center"===t.my[1]&&(D.top-=p/2),D.left+=S[0],D.top+=S[1],e.support.offsetFractions||(D.left=s(D.left),D.top=s(D.top)),l={marginLeft:_,marginTop:C},e.each(["left","top"],function(i,n){e.ui.position[w[i]]&&e.ui.position[w[i]][n](D,{targetWidth:h,targetHeight:f,elemWidth:d,elemHeight:p,collisionPosition:l,collisionWidth:k,collisionHeight:T,offset:[o[0]+S[0],o[1]+S[1]],my:t.my,at:t.at,within:b,elem:u})}),e.fn.bgiframe&&u.bgiframe(),t.using&&(c=function(e){var i=m.left-D.left,n=i+h-d,o=m.top-D.top,s=o+f-p,l={target:{element:v,left:m.left,top:m.top,width:h,height:f},element:{element:u,left:D.left,top:D.top,width:d,height:p},horizontal:0>n?"left":i>0?"right":"center",vertical:0>s?"top":o>0?"bottom":"middle"};d>h&&r(i+n)<h&&(l.horizontal="center"),p>f&&r(o+s)<f&&(l.vertical="middle"),l.important=a(r(i),r(n))>a(r(o),r(s))?"horizontal":"vertical",t.using.call(this,e,l)}),u.offset(e.extend(D,{using:c}))})},e.ui.position={fit:{left:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,s=e.left-t.collisionPosition.marginLeft,l=o-s,c=s+t.collisionWidth-r-o;t.collisionWidth>r?l>0&&0>=c?(i=e.left+l+t.collisionWidth-r-o,e.left+=l-i):e.left=c>0&&0>=l?o:l>c?o+r-t.collisionWidth:o:l>0?e.left+=l:c>0?e.left-=c:e.left=a(e.left-s,e.left)},top:function(e,t){var i,n=t.within,o=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,s=e.top-t.collisionPosition.marginTop,l=o-s,c=s+t.collisionHeight-r-o;t.collisionHeight>r?l>0&&0>=c?(i=e.top+l+t.collisionHeight-r-o,e.top+=l-i):e.top=c>0&&0>=l?o:l>c?o+r-t.collisionHeight:o:l>0?e.top+=l:c>0?e.top-=c:e.top=a(e.top-s,e.top)}},flip:{left:function(e,t){var i,n,o=t.within,a=o.offset.left+o.scrollLeft,s=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=e.left-t.collisionPosition.marginLeft,u=c-l,d=c+t.collisionWidth-s-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+h+p+f+t.collisionWidth-s-a,(0>i||i<r(u))&&(e.left+=h+p+f)):d>0&&(n=e.left-t.collisionPosition.marginLeft+h+p+f-l,(n>0||r(n)<d)&&(e.left+=h+p+f))},top:function(e,t){var i,n,o=t.within,a=o.offset.top+o.scrollTop,s=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=e.top-t.collisionPosition.marginTop,u=c-l,d=c+t.collisionHeight-s-l,h="top"===t.my[1],p=h?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(n=e.top+p+f+m+t.collisionHeight-s-a,e.top+p+f+m>u&&(0>n||n<r(u))&&(e.top+=p+f+m)):d>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-l,e.top+p+f+m>d&&(i>0||r(i)<d)&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,n,o,a,r=document.getElementsByTagName("body")[0],s=document.createElement("div");t=document.createElement(r?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&e.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(a in n)t.style[a]=n[a];t.appendChild(s),i=r||document.documentElement,i.insertBefore(t,i.firstChild),s.style.cssText="position: absolute; left: 10.7432222px;",o=e(s).offset().left,e.support.offsetFractions=o>10&&11>o,t.innerHTML="",i.removeChild(t)}(),e.uiBackCompat!==!1&&!function(e){var i=e.fn.position;e.fn.position=function(n){if(!n||!n.offset)return i.call(this,n);var o=n.offset.split(" "),a=n.at.split(" ");return 1===o.length&&(o[1]=o[0]),/^\d/.test(o[0])&&(o[0]="+"+o[0]),/^\d/.test(o[1])&&(o[1]="+"+o[1]),1===a.length&&(/left|center|right/.test(a[0])?a[1]="center":(a[1]=a[0],a[0]="center")),i.call(this,e.extend(n,{at:a[0]+o[0]+" "+a[1]+o[1],offset:t}))}}(jQuery)}(jQuery),function(e,t){e.widget("ui.progressbar",{version:"1.9.2",options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=e("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){return e===t?this._value():(this._setOption("value",e),this)},_setOption:function(e,t){"value"===e&&(this.options.value=t,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),this._super(e,t)},_value:function(){var e=this.options.value;return"number"!=typeof e&&(e=0),Math.min(this.options.max,Math.max(this.min,e))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var e=this.value(),t=this._percentage();this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),this.valueDiv.toggle(e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(t.toFixed(0)+"%"),this.element.attr("aria-valuenow",e)}})}(jQuery),function(e){var t=5;e.widget("ui.slider",e.ui.mouse,{version:"1.9.2",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var i,n,o=this.options,a=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),r="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",s=[];for(this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(o.disabled?" ui-slider-disabled ui-disabled":"")),this.range=e([]),o.range&&(o.range===!0&&(o.values||(o.values=[this._valueMin(),this._valueMin()]),o.values.length&&2!==o.values.length&&(o.values=[o.values[0],o.values[0]])),this.range=e("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===o.range||"max"===o.range?" ui-slider-range-"+o.range:""))),n=o.values&&o.values.length||1,i=a.length;n>i;i++)s.push(r);this.handles=a.add(e(s.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(e){e.preventDefault()}).mouseenter(function(){o.disabled||e(this).addClass("ui-state-hover")}).mouseleave(function(){e(this).removeClass("ui-state-hover")}).focus(function(){o.disabled?e(this).blur():(e(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),e(this).addClass("ui-state-focus"))}).blur(function(){e(this).removeClass("ui-state-focus")}),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t)}),this._on(this.handles,{keydown:function(i){var n,o,a,r,s=e(i.target).data("ui-slider-handle-index");switch(i.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i.preventDefault(),!this._keySliding&&(this._keySliding=!0,e(i.target).addClass("ui-state-active"),n=this._start(i,s),n===!1))return}switch(r=this.options.step,o=a=this.options.values&&this.options.values.length?this.values(s):this.value(),i.keyCode){case e.ui.keyCode.HOME:a=this._valueMin();break;case e.ui.keyCode.END:a=this._valueMax();break;case e.ui.keyCode.PAGE_UP:a=this._trimAlignValue(o+(this._valueMax()-this._valueMin())/t);break;case e.ui.keyCode.PAGE_DOWN:a=this._trimAlignValue(o-(this._valueMax()-this._valueMin())/t);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(o===this._valueMax())return;a=this._trimAlignValue(o+r);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(o===this._valueMin())return;a=this._trimAlignValue(o-r)}this._slide(i,s,a)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),e(t.target).removeClass("ui-state-active"))}}),this._refreshValue(),this._animateOff=!1},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var i,n,o,a,r,s,l,c,u=this,d=this.options;return d.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var i=Math.abs(n-u.values(t));o>i&&(o=i,a=e(this),r=t)}),d.range===!0&&this.values(1)===d.min&&(r+=1,a=e(this.handles[r])),s=this._start(t,r),s===!1?!1:(this._mouseSliding=!0,this._handleIndex=r,a.addClass("ui-state-active").focus(),l=a.offset(),c=!e(t.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-l.left-a.width()/2,top:t.pageY-l.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,o,a;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/t,n>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),o=this._valueMax()-this._valueMin(),a=this._valueMin()+n*o,this._trimAlignValue(a)},_start:function(e,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",e,i)},_slide:function(e,t,i){var n,o,a;this.options.values&&this.options.values.length?(n=this.values(t?0:1),2===this.options.values.length&&this.options.range===!0&&(0===t&&i>n||1===t&&n>i)&&(i=n),i!==this.values(t)&&(o=this.values(),o[t]=i,a=this._trigger("slide",e,{handle:this.handles[t],value:i,values:o}),n=this.values(t?0:1),a!==!1&&this.values(t,i,!0))):i!==this.value()&&(a=this._trigger("slide",e,{handle:this.handles[t],value:i}),a!==!1&&this.value(i))},_stop:function(e,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",e,i)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("change",e,i)}},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(t,i){var n,o,a;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t),void 0;if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(n=this.options.values,o=arguments[0],a=0;a<n.length;a+=1)n[a]=this._trimAlignValue(o[a]),this._change(null,a);this._refreshValue()},_setOption:function(t,i){var n,o=0;switch(e.isArray(this.options.values)&&(o=this.options.values.length),e.Widget.prototype._setOption.apply(this,arguments),t){case"disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.prop("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.prop("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;o>n;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1}},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=i>0?t:-t),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var t,i,n,o,a,r=this.options.range,s=this.options,l=this,c=this._animateOff?!1:s.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[c?"animate":"css"](u,s.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},s.animate),1===n&&l.range[c?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:s.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},s.animate),1===n&&l.range[c?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:s.animate}))),t=i}):(n=this.value(),o=this._valueMin(),a=this._valueMax(),i=a!==o?(n-o)/(a-o)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](u,s.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},s.animate),"max"===r&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:s.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},s.animate),"max"===r&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:s.animate}))}})}(jQuery),function(e){function t(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.spinner",{version:"1.9.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},i=this.element;return e.each(["min","max","step"],function(e,n){var o=i.attr(n);void 0!==o&&o.length&&(t[n]=o)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e),void 0)},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){var e=this.element[0]===this.document[0].activeElement;e||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(t)!==!1&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return e(t.currentTarget).hasClass("ui-state-active")?this._start(t)===!1?!1:(this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var i=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>▲</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>▼</span></a>"},_start:function(e){return this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return t=null!==n.min?n.min:0,i=e-t,i=Math.round(i/n.step)*n.step,e=t+i,e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&e<n.min?n.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){if("culture"===e||"numberFormat"===e){var i=this._parse(this.element.val());return this.options[e]=t,this.element.val(this._format(i)),void 0}("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),this._super(e,t),"disabled"===e&&(t?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:t(function(e){this._super(e),this._value(this.element.val())}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(e,t){var i;""!==e&&(i=this._parse(e),null!==i&&(t||(i=this._adjustValue(i)),e=this._format(i))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t(function(e){this._stepUp(e)}),_stepUp:function(e){this._spin((e||1)*this.options.step)},stepDown:t(function(e){this._stepDown(e)}),_stepDown:function(e){this._spin((e||1)*-this.options.step)},pageUp:t(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:t(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?(t(this._value).call(this,e),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(jQuery),function(e,t){function i(){return++o}function n(e){return e.hash.length>1&&e.href.replace(a,"")===location.href.replace(a,"").replace(/\s/g,"%20")}var o=0,a=/#.*$/;e.widget("ui.tabs",{version:"1.9.2",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var t=this,i=this.options,n=i.active,o=location.hash.substring(1);this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()
|
42
|
+
}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),null===n&&(o&&this.tabs.each(function(t,i){return e(i).attr("aria-controls")===o?(n=t,!1):void 0}),null===n&&(n=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===n||-1===n)&&(n=this.tabs.length?0:!1)),n!==!1&&(n=this.tabs.index(this.tabs.eq(n)),-1===n&&(n=i.collapsible?!1:0)),i.active=n,!i.collapsible&&i.active===!1&&this.anchors.length&&(i.active=0),e.isArray(i.disabled)&&(i.disabled=e.unique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(this.options.active):e(),this._refresh(),this.active.length&&this.load(i.active)},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),o=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:n++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:o=!1,n--;break;case e.ui.keyCode.END:n=this.anchors.length-1;break;case e.ui.keyCode.HOME:n=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),this._activate(n),void 0;case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),this._activate(n===this.options.active?!1:n),void 0;default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,o),t.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function n(){return t>o&&(t=0),0>t&&(t=o),t}for(var o=this.tabs.length-1;-1!==e.inArray(n(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):"disabled"===e?(this._setupDisabled(t),void 0):(this._super(e,t),"collapsible"===e&&(this.element.toggleClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t),void 0)},_tabId:function(e){return e.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=e(),this.anchors.each(function(i,o){var a,r,s,l=e(o).uniqueId().attr("id"),c=e(o).closest("li"),u=c.attr("aria-controls");n(o)?(a=o.hash,r=t.element.find(t._sanitizeSelector(a))):(s=t._tabId(c),a="#"+s,r=t.element.find(a),r.length||(r=t._createPanel(s),r.insertAfter(t.panels[i-1]||t.tablist)),r.attr("aria-live","polite")),r.length&&(t.panels=t.panels.add(r)),u&&c.data("ui-tabs-aria-controls",u),c.attr({"aria-controls":a.substring(1),"aria-labelledby":l}),r.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i,n=0;i=this.tabs[n];n++)t===!0||-1!==e.inArray(n,t)?e(i).addClass("ui-state-disabled").attr("aria-disabled","true"):e(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={click:function(e){e.preventDefault()}};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,n,o=this.element.parent();"fill"===t?(e.support.minHeight||(n=o.css("overflow"),o.css("overflow","hidden")),i=o.height(),this.element.siblings(":visible").each(function(){var t=e(this),n=t.css("position");"absolute"!==n&&"fixed"!==n&&(i-=t.outerHeight(!0))}),n&&o.css("overflow",n),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,n=this.active,o=e(t.currentTarget),a=o.closest("li"),r=a[0]===n[0],s=r&&i.collapsible,l=s?e():this._getPanelForTab(a),c=n.length?this._getPanelForTab(n):e(),u={oldTab:n,oldPanel:c,newTab:s?e():a,newPanel:l};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||r&&!i.collapsible||this._trigger("beforeActivate",t,u)===!1||(i.active=s?!1:this.tabs.index(a),this.active=r?e():a,this.xhr&&this.xhr.abort(),c.length||l.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(a),t),this._toggle(t,u))},_toggle:function(t,i){function n(){a.running=!1,a._trigger("activate",t,i)}function o(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&a.options.show?a._show(r,a.options.show,n):(r.show(),n())}var a=this,r=i.newPanel,s=i.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),o()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),r.length&&s.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var i,n=this._findActive(t);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var n=this.options.disabled;n!==!1&&(i===t?n=!1:(i=this._getIndex(i),n=e.isArray(n)?e.map(n,function(e){return e!==i?e:null}):e.map(this.tabs,function(e,t){return t!==i?t:null})),this._setupDisabled(n))},disable:function(i){var n=this.options.disabled;if(n!==!0){if(i===t)n=!0;else{if(i=this._getIndex(i),-1!==e.inArray(i,n))return;n=e.isArray(n)?e.merge([i],n).sort():[i]}this._setupDisabled(n)}},load:function(t,i){t=this._getIndex(t);var o=this,a=this.tabs.eq(t),r=a.find(".ui-tabs-anchor"),s=this._getPanelForTab(a),l={tab:a,panel:s};n(r[0])||(this.xhr=e.ajax(this._ajaxSettings(r,i,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(a.addClass("ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.success(function(e){setTimeout(function(){s.html(e),o._trigger("load",i,l)},1)}).complete(function(e,t){setTimeout(function(){"abort"===t&&o.panels.stop(!1,!0),a.removeClass("ui-tabs-loading"),s.removeAttr("aria-busy"),e===o.xhr&&delete o.xhr},1)})))},_ajaxSettings:function(t,i,n){var o=this;return{url:t.attr("href"),beforeSend:function(t,a){return o._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:a},n))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),e.uiBackCompat!==!1&&(e.ui.tabs.prototype._ui=function(e,t){return{tab:e,panel:t,index:this.anchors.index(e)}},e.widget("ui.tabs",e.ui.tabs,{url:function(e,t){this.anchors.eq(e).attr("href",t)}}),e.widget("ui.tabs",e.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var t=this;this._on({tabsbeforeload:function(i,n){return e.data(n.tab[0],"cache.tabs")?(i.preventDefault(),void 0):(n.jqXHR.success(function(){t.options.cache&&e.data(n.tab[0],"cache.tabs",!0)}),void 0)}})},_ajaxSettings:function(t,i,n){var o=this.options.ajaxOptions;return e.extend({},o,{error:function(e,t){try{o.error(e,t,n.tab.closest("li").index(),n.tab[0])}catch(i){}}},this._superApply(arguments))},_setOption:function(e,t){"cache"===e&&t===!1&&this.anchors.removeData("cache.tabs"),this._super(e,t)},_destroy:function(){this.anchors.removeData("cache.tabs"),this._super()},url:function(e){this.anchors.eq(e).removeData("cache.tabs"),this._superApply(arguments)}}),e.widget("ui.tabs",e.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),e.widget("ui.tabs",e.ui.tabs,{options:{spinner:"<em>Loading…</em>"},_create:function(){this._super(),this._on({tabsbeforeload:function(e,t){if(e.target===this.element[0]&&this.options.spinner){var i=t.tab.find("span"),n=i.html();i.html(this.options.spinner),t.jqXHR.complete(function(){i.html(n)})}}})}}),e.widget("ui.tabs",e.ui.tabs,{options:{enable:null,disable:null},enable:function(t){var i,n=this.options;(t&&n.disabled===!0||e.isArray(n.disabled)&&-1!==e.inArray(t,n.disabled))&&(i=!0),this._superApply(arguments),i&&this._trigger("enable",null,this._ui(this.anchors[t],this.panels[t]))},disable:function(t){var i,n=this.options;(t&&n.disabled===!1||e.isArray(n.disabled)&&-1===e.inArray(t,n.disabled))&&(i=!0),this._superApply(arguments),i&&this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))}}),e.widget("ui.tabs",e.ui.tabs,{options:{add:null,remove:null,tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},add:function(i,n,o){o===t&&(o=this.anchors.length);var a,r,s=this.options,l=e(s.tabTemplate.replace(/#\{href\}/g,i).replace(/#\{label\}/g,n)),c=i.indexOf("#")?this._tabId(l):i.replace("#","");return l.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),l.attr("aria-controls",c),a=o>=this.tabs.length,r=this.element.find("#"+c),r.length||(r=this._createPanel(c),a?o>0?r.insertAfter(this.panels.eq(-1)):r.appendTo(this.element):r.insertBefore(this.panels[o])),r.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide(),a?l.appendTo(this.tablist):l.insertBefore(this.tabs[o]),s.disabled=e.map(s.disabled,function(e){return e>=o?++e:e}),this.refresh(),1===this.tabs.length&&s.active===!1&&this.option("active",0),this._trigger("add",null,this._ui(this.anchors[o],this.panels[o])),this},remove:function(t){t=this._getIndex(t);var i=this.options,n=this.tabs.eq(t).remove(),o=this._getPanelForTab(n).remove();return n.hasClass("ui-tabs-active")&&this.anchors.length>2&&this._activate(t+(t+1<this.anchors.length?1:-1)),i.disabled=e.map(e.grep(i.disabled,function(e){return e!==t}),function(e){return e>=t?--e:e}),this.refresh(),this._trigger("remove",null,this._ui(n.find("a")[0],o[0])),this}}),e.widget("ui.tabs",e.ui.tabs,{length:function(){return this.anchors.length}}),e.widget("ui.tabs",e.ui.tabs,{options:{idPrefix:"ui-tabs-"},_tabId:function(t){var n=t.is("li")?t.find("a[href]"):t;return n=n[0],e(n).closest("li").attr("aria-controls")||n.title&&n.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF\-]/g,"")||this.options.idPrefix+i()}}),e.widget("ui.tabs",e.ui.tabs,{options:{panelTemplate:"<div></div>"},_createPanel:function(t){return e(this.options.panelTemplate).attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),e.widget("ui.tabs",e.ui.tabs,{_create:function(){var e=this.options;null===e.active&&e.selected!==t&&(e.active=-1===e.selected?!1:e.selected),this._super(),e.selected=e.active,e.selected===!1&&(e.selected=-1)},_setOption:function(e,t){if("selected"!==e)return this._super(e,t);var i=this.options;this._super("active",-1===t?!1:t),i.selected=i.active,i.selected===!1&&(i.selected=-1)},_eventHandler:function(){this._superApply(arguments),this.options.selected=this.options.active,this.options.selected===!1&&(this.options.selected=-1)}}),e.widget("ui.tabs",e.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),this.options.active!==!1&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(e,t,i){var n,o,a=this._superApply(arguments);return a?("beforeActivate"===e?(n=i.newTab.length?i.newTab:i.oldTab,o=i.newPanel.length?i.newPanel:i.oldPanel,a=this._super("select",t,{tab:n.find(".ui-tabs-anchor")[0],panel:o[0],index:n.closest("li").index()})):"activate"===e&&i.newTab.length&&(a=this._super("show",t,{tab:i.newTab.find(".ui-tabs-anchor")[0],panel:i.newPanel[0],index:i.newTab.closest("li").index()})),a):!1}}),e.widget("ui.tabs",e.ui.tabs,{select:function(e){if(e=this._getIndex(e),-1===e){if(!this.options.collapsible||-1===this.options.selected)return;e=this.options.selected}this.anchors.eq(e).trigger(this.options.event+this.eventNamespace)}}),function(){var t=0;e.widget("ui.tabs",e.ui.tabs,{options:{cookie:null},_create:function(){var e,t=this.options;null==t.active&&t.cookie&&(e=parseInt(this._cookie(),10),-1===e&&(e=!1),t.active=e),this._super()},_cookie:function(i){var n=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++t)];return arguments.length&&(n.push(i===!1?-1:i),n.push(this.options.cookie)),e.cookie.apply(null,n)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),e.widget("ui.tabs",e.ui.tabs,{_trigger:function(t,i,n){var o=e.extend({},n);return"load"===t&&(o.panel=o.panel[0],o.tab=o.tab.find(".ui-tabs-anchor")[0]),this._super(t,i,o)}}),e.widget("ui.tabs",e.ui.tabs,{options:{fx:null},_getFx:function(){var t,i,n=this.options.fx;return n&&(e.isArray(n)?(t=n[0],i=n[1]):t=i=n),n?{show:i,hide:t}:null},_toggle:function(e,t){function i(){o.running=!1,o._trigger("activate",e,t)}function n(){t.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&s.show?a.animate(s.show,s.show.duration,function(){i()}):(a.show(),i())}var o=this,a=t.newPanel,r=t.oldPanel,s=this._getFx();return s?(o.running=!0,r.length&&s.hide?r.animate(s.hide,s.hide.duration,function(){t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r.hide(),n()),void 0):this._super(e,t)}}))}(jQuery),function(e){function t(t,i){var n=(t.attr("aria-describedby")||"").split(/\s+/);n.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",e.trim(n.join(" ")))}function i(t){var i=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/),o=e.inArray(i,n);-1!==o&&n.splice(o,1),t.removeData("ui-tooltip-id"),n=e.trim(n.join(" ")),n?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")}var n=0;e.widget("ui.tooltip",{version:"1.9.2",options:{content:function(){return e(this).attr("title")},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(t,i){var n=this;return"disabled"===t?(this[i?"_disable":"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&e.each(this.tooltips,function(e,t){n._updateContent(t)}),void 0)},_disable:function(){var t=this;e.each(this.tooltips,function(i,n){var o=e.Event("blur");o.target=o.currentTarget=n[0],t.close(o,!0)}),this.element.find(this.options.items).andSelf().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,n=e(t?t.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&n.parents().each(function(){var t,n=e(this);n.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.currentTarget=this,i.close(t,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,t))},_updateContent:function(e,t){var i,n=this.options.content,o=this,a=t?t.type:null;return"string"==typeof n?this._open(t,e,n):(i=n.call(e[0],function(i){e.data("ui-tooltip-open")&&o._delay(function(){t&&(t.type=a),this._open(t,e,i)})}),i&&this._open(t,e,i),void 0)},_open:function(i,n,o){function a(e){c.of=e,r.is(":hidden")||r.position(c)}var r,s,l,c=e.extend({},this.options.position);if(o){if(r=this._find(n),r.length)return r.find(".ui-tooltip-content").html(o),void 0;n.is("[title]")&&(i&&"mouseover"===i.type?n.attr("title",""):n.removeAttr("title")),r=this._tooltip(n),t(n,r.attr("id")),r.find(".ui-tooltip-content").html(o),this.options.track&&i&&/^mouse/.test(i.type)?(this._on(this.document,{mousemove:a}),a(i)):r.position(e.extend({of:n},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.show&&this.options.show.delay&&(l=setInterval(function(){r.is(":visible")&&(a(c.of),clearInterval(l))},e.fx.interval)),this._trigger("open",i,{tooltip:r}),s={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var i=e.Event(t);i.currentTarget=n[0],this.close(i,!0)}},remove:function(){this._removeTooltip(r)}},i&&"mouseover"!==i.type||(s.mouseleave="close"),i&&"focusin"!==i.type||(s.focusout="close"),this._on(!0,n,s)}},close:function(t){var n=this,o=e(t?t.currentTarget:this.element),a=this._find(o);this.closing||(o.data("ui-tooltip-title")&&o.attr("title",o.data("ui-tooltip-title")),i(o),a.stop(!0),this._hide(a,this.options.hide,function(){n._removeTooltip(e(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,i){e(i.element).attr("title",i.title),delete n.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:a}),this.closing=!1)},_tooltip:function(t){var i="ui-tooltip-"+n++,o=e("<div>").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return e("<div>").addClass("ui-tooltip-content").appendTo(o),o.appendTo(this.document[0].body),e.fn.bgiframe&&o.bgiframe(),this.tooltips[i]=t,o},_find:function(t){var i=t.data("ui-tooltip-id");return i?e("#"+i):e()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(i,n){var o=e.Event("blur");o.target=o.currentTarget=n[0],t.close(o,!0),e("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})}})}(jQuery),/*
|
43
|
+
* jQuery File Upload Plugin 5.19.4
|
44
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
45
|
+
*
|
46
|
+
* Copyright 2010, Sebastian Tschan
|
47
|
+
* https://blueimp.net
|
48
|
+
*
|
49
|
+
* Licensed under the MIT license:
|
50
|
+
* http://www.opensource.org/licenses/MIT
|
51
|
+
*/
|
52
|
+
function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):e(window.jQuery)}(function(e){"use strict";e.support.xhrFileUpload=!(!window.XMLHttpRequestUpload||!window.FileReader),e.support.xhrFormDataFileUpload=!!window.FormData,e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:e(document),fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,formData:function(e){return e.serializeArray()},add:function(e,t){t.submit()},processData:!1,contentType:!1,cache:!1},_refreshOptionsList:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_BitrateTimer:function(){this.timestamp=+new Date,this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,i){var n=e-this.timestamp;return(!this.bitrate||!i||n>i)&&(this.bitrate=(t-this.loaded)*(1e3/n)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var i;return"function"==typeof t.formData?t.formData(t.form):e.isArray(t.formData)?t.formData:t.formData?(i=[],e.each(t.formData,function(e,t){i.push({name:e,value:t})}),i):[]},_getTotal:function(t){var i=0;return e.each(t,function(e,t){i+=t.size||1}),i},_onProgress:function(e,t){if(e.lengthComputable){var i,n,o=+new Date;if(t._time&&t.progressInterval&&o-t._time<t.progressInterval&&e.loaded!==e.total)return;t._time=o,i=t.total||this._getTotal(t.files),n=parseInt(e.loaded/e.total*(t.chunkSize||i),10)+(t.uploadedBytes||0),this._loaded+=n-(t.loaded||t.uploadedBytes||0),t.lengthComputable=!0,t.loaded=n,t.total=i,t.bitrate=t._bitrateTimer.getBitrate(o,n,t.bitrateInterval),this._trigger("progress",e,t),this._trigger("progressall",e,{lengthComputable:!0,loaded:this._loaded,total:this._total,bitrate:this._bitrateTimer.getBitrate(o,this._loaded,t.bitrateInterval)})}},_initProgressListener:function(t){var i=this,n=t.xhr?t.xhr():e.ajaxSettings.xhr();n.upload&&(e(n.upload).bind("progress",function(e){var n=e.originalEvent;e.lengthComputable=n.lengthComputable,e.loaded=n.loaded,e.total=n.total,i._onProgress(e,t)}),t.xhr=function(){return n})},_initXHRData:function(t){var i,n=t.files[0],o=t.multipart||!e.support.xhrFileUpload,a=t.paramName[0];t.headers=t.headers||{},t.contentRange&&(t.headers["Content-Range"]=t.contentRange),o?e.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:a,value:t.blob}):e.each(t.files,function(e,n){i.push({name:t.paramName[e]||a,value:n})})):(t.formData instanceof FormData?i=t.formData:(i=new FormData,e.each(this._getFormData(t),function(e,t){i.append(t.name,t.value)})),t.blob?(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(n.name)+'"',t.headers["Content-Description"]=encodeURI(n.type),i.append(a,t.blob,n.name)):e.each(t.files,function(e,n){(window.Blob&&n instanceof Blob||window.File&&n instanceof File)&&i.append(t.paramName[e]||a,n,n.name)})),t.data=i):(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(n.name)+'"',t.contentType=n.type,t.data=t.blob||n),t.blob=null},_initIframeSettings:function(t){t.dataType="iframe "+(t.dataType||""),t.formData=this._getFormData(t),t.redirect&&e("<a></a>").prop("href",t.url).prop("host")!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e,"iframe")},_getParamName:function(t){var i=e(t.fileInput),n=t.paramName;return n?e.isArray(n)||(n=[n]):(n=[],i.each(function(){for(var t=e(this),i=t.prop("name")||"files[]",o=(t.prop("files")||[1]).length;o;)n.push(i),o-=1}),n.length||(n=[i.prop("name")||"files[]"])),n},_initFormSettings:function(t){t.form&&t.form.length||(t.form=e(t.fileInput.prop("form")),t.form.length||(t.form=e(this.options.fileInput.prop("form")))),t.paramName=this._getParamName(t),t.url||(t.url=t.form.prop("action")||location.href),t.type=(t.type||t.form.prop("method")||"").toUpperCase(),"POST"!==t.type&&"PUT"!==t.type&&(t.type="POST"),t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var i=e.extend({},this.options,t);return this._initFormSettings(i),this._initDataSettings(i),i},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(t,i,n){var o=e.Deferred(),a=o.promise();return i=i||this.options.context||a,t===!0?o.resolveWith(i,n):t===!1&&o.rejectWith(i,n),a.abort=o.promise,this._enhancePromise(a)},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),i=t&&t.split("-"),n=i&&i.length>1&&parseInt(i[1],10);return n&&n+1},_chunkedUpload:function(t,i){var n,o,a=this,r=t.files[0],s=r.size,l=t.uploadedBytes=t.uploadedBytes||0,c=t.maxChunkSize||s,u=r.slice||r.webkitSlice||r.mozSlice,d=e.Deferred(),h=d.promise();return this._isXHRUpload(t)&&u&&(l||s>c)&&!t.data?i?!0:l>=s?(r.error="Uploaded bytes exceed file size",this._getXHRPromise(!1,t.context,[null,"error",r.error])):(o=function(){var i=e.extend({},t);i.blob=u.call(r,l,l+c),i.chunkSize=i.blob.size,i.contentRange="bytes "+l+"-"+(l+i.chunkSize-1)+"/"+s,a._initXHRData(i),a._initProgressListener(i),n=(e.ajax(i)||a._getXHRPromise(!1,i.context)).done(function(n,r,c){l=a._getUploadedBytes(c)||l+i.chunkSize,i.loaded||a._onProgress(e.Event("progress",{lengthComputable:!0,loaded:l-i.uploadedBytes,total:l-i.uploadedBytes}),i),t.uploadedBytes=i.uploadedBytes=l,s>l?o():d.resolveWith(i.context,[n,r,c])}).fail(function(e,t,n){d.rejectWith(i.context,[e,t,n])})},this._enhancePromise(h),h.abort=function(){return n.abort()},o(),h):!1},_beforeSend:function(e,t){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer),this._active+=1,this._loaded+=t.uploadedBytes||0,this._total+=this._getTotal(t.files)},_onDone:function(t,i,n,o){this._isXHRUpload(o)||this._onProgress(e.Event("progress",{lengthComputable:!0,loaded:1,total:1}),o),o.result=t,o.textStatus=i,o.jqXHR=n,this._trigger("done",null,o)},_onFail:function(e,t,i,n){n.jqXHR=e,n.textStatus=t,n.errorThrown=i,this._trigger("fail",null,n),n.recalculateProgress&&(this._loaded-=n.loaded||n.uploadedBytes||0,this._total-=n.total||this._getTotal(n.files))},_onAlways:function(e,t,i,n){this._active-=1,n.textStatus=t,i&&i.always?(n.jqXHR=i,n.result=e):(n.jqXHR=e,n.errorThrown=i),this._trigger("always",null,n),0===this._active&&(this._trigger("stop"),this._loaded=this._total=0,this._bitrateTimer=null)},_onSend:function(t,i){var n,o,a,r,s=this,l=s._getAJAXSettings(i),c=function(){return s._sending+=1,l._bitrateTimer=new s._BitrateTimer,n=n||((o||s._trigger("send",t,l)===!1)&&s._getXHRPromise(!1,l.context,o)||s._chunkedUpload(l)||e.ajax(l)).done(function(e,t,i){s._onDone(e,t,i,l)}).fail(function(e,t,i){s._onFail(e,t,i,l)}).always(function(e,t,i){if(s._sending-=1,s._onAlways(e,t,i,l),l.limitConcurrentUploads&&l.limitConcurrentUploads>s._sending)for(var n,o=s._slots.shift();o;){if(n=o.state?"pending"===o.state():!o.isRejected()){o.resolve();break}o=s._slots.shift()}})};return this._beforeSend(t,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(a=e.Deferred(),this._slots.push(a),r=a.pipe(c)):r=this._sequence=this._sequence.pipe(c,c),r.abort=function(){return o=[void 0,"abort","abort"],n?n.abort():(a&&a.rejectWith(l.context,o),c())},this._enhancePromise(r)):c()},_onAdd:function(t,i){var n,o,a,r,s=this,l=!0,c=e.extend({},this.options,i),u=c.limitMultiFileUploads,d=this._getParamName(c);if((c.singleFileUploads||u)&&this._isXHRUpload(c))if(!c.singleFileUploads&&u)for(a=[],n=[],r=0;r<i.files.length;r+=u)a.push(i.files.slice(r,r+u)),o=d.slice(r,r+u),o.length||(o=d),n.push(o);else n=d;else a=[i.files],n=[d];return i.originalFiles=i.files,e.each(a||i.files,function(o,r){var c=e.extend({},i);return c.files=a?r:[r],c.paramName=n[o],c.submit=function(){return c.jqXHR=this.jqXHR=s._trigger("submit",t,this)!==!1&&s._onSend(t,this),this.jqXHR},l=s._trigger("add",t,c)}),l},_replaceFileInput:function(t){var i=t.clone(!0);e("<form></form>").append(i)[0].reset(),t.after(i).detach(),e.cleanData(t.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(e,n){return n===t[0]?i[0]:n}),t[0]===this.element[0]&&(this.element=i)},_handleFileTreeEntry:function(t,i){var n,o=this,a=e.Deferred(),r=function(e){e&&!e.entry&&(e.entry=t),a.resolve([e])};return i=i||"",t.isFile?t._file?(t._file.relativePath=i,a.resolve(t._file)):t.file(function(e){e.relativePath=i,a.resolve(e)},r):t.isDirectory?(n=t.createReader(),n.readEntries(function(e){o._handleFileTreeEntries(e,i+t.name+"/").done(function(e){a.resolve(e)}).fail(r)},r)):a.resolve([]),a.promise()},_handleFileTreeEntries:function(t,i){var n=this;return e.when.apply(e,e.map(t,function(e){return n._handleFileTreeEntry(e,i)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){t=t||{};var i=t.items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(e.map(i,function(e){var t;return e.webkitGetAsEntry?(t=e.webkitGetAsEntry(),t&&(t._file=e.getAsFile()),t):e.getAsEntry()})):e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){t=e(t);var i,n,o=t.prop("webkitEntries")||t.prop("entries");if(o&&o.length)return this._handleFileTreeEntries(o);if(i=e.makeArray(t.prop("files")),i.length)void 0===i[0].name&&i[0].fileName&&e.each(i,function(e,t){t.name=t.fileName,t.size=t.fileSize});else{if(n=t.prop("value"),!n)return e.Deferred().resolve([]).promise();i=[{name:n.replace(/^.*\\/,"")}]}return e.Deferred().resolve(i).promise()},_getFileInputFiles:function(t){return t instanceof e&&1!==t.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(t)},_onChange:function(t){var i=this,n={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(n.fileInput).always(function(e){n.files=e,i.options.replaceFileInput&&i._replaceFileInput(n.fileInput),i._trigger("change",t,n)!==!1&&i._onAdd(t,n)})},_onPaste:function(t){var i=t.originalEvent.clipboardData,n=i&&i.items||[],o={files:[]};return e.each(n,function(e,t){var i=t.getAsFile&&t.getAsFile();i&&o.files.push(i)}),this._trigger("paste",t,o)===!1||this._onAdd(t,o)===!1?!1:void 0},_onDrop:function(e){e.preventDefault();var t=this,i=e.dataTransfer=e.originalEvent.dataTransfer,n={};this._getDroppedFiles(i).always(function(i){n.files=i,t._trigger("drop",e,n)!==!1&&t._onAdd(e,n)})},_onDragOver:function(e){var t=e.dataTransfer=e.originalEvent.dataTransfer;return this._trigger("dragover",e)===!1?!1:(t&&(t.dropEffect="copy"),e.preventDefault(),void 0)},_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop}),this._on(this.options.pasteZone,{paste:this._onPaste})),this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(t,i){var n=-1!==e.inArray(t,this._refreshOptionsList);n&&this._destroyEventHandlers(),this._super(t,i),n&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;void 0===t.fileInput?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof e||(t.fileInput=e(t.fileInput)),t.dropZone instanceof e||(t.dropZone=e(t.dropZone)),t.pasteZone instanceof e||(t.pasteZone=e(t.pasteZone))},_create:function(){var t=this.options;e.extend(t,e(this.element[0].cloneNode(!1)).data()),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=this._loaded=this._total=0,this._initEventHandlers()},_destroy:function(){this._destroyEventHandlers()},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(e){t.files=e,i._onAdd(null,t)}):(t.files=e.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var i,n,o=this,a=e.Deferred(),r=a.promise();return r.abort=function(){return n=!0,i?i.abort():(a.reject(null,"abort","abort"),r)},this._getFileInputFiles(t.fileInput).always(function(e){n||(t.files=e,i=o._onSend(null,t).then(function(e,t,i){a.resolve(e,t,i)},function(e,t,i){a.reject(e,t,i)}))}),this._enhancePromise(r)}if(t.files=e.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),/*
|
53
|
+
* jQuery Iframe Transport Plugin 1.2.5
|
54
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
55
|
+
*
|
56
|
+
* Copyright 2011, Sebastian Tschan
|
57
|
+
* https://blueimp.net
|
58
|
+
*
|
59
|
+
* Licensed under the MIT license:
|
60
|
+
* http://creativecommons.org/licenses/MIT/
|
61
|
+
*/
|
62
|
+
function(e){"use strict";var t=0;e.ajaxTransport("iframe",function(i){if(i.async&&("POST"===i.type||"GET"===i.type)){var n,o;return{send:function(a,r){n=e('<form style="display:none;"></form>'),o=e('<iframe src="javascript:false;" name="iframe-transport-'+(t+=1)+'"></iframe>').bind("load",function(){var t;o.unbind("load").bind("load",function(){var t;try{if(t=o.contents(),!t.length||!t[0].firstChild)throw new Error}catch(i){t=void 0}r(200,"success",{iframe:t}),e('<iframe src="javascript:false;"></iframe>').appendTo(n),n.remove()}),n.prop("target",o.prop("name")).prop("action",i.url).prop("method",i.type),i.formData&&e.each(i.formData,function(t,i){e('<input type="hidden"/>').prop("name",i.name).val(i.value).appendTo(n)}),i.fileInput&&i.fileInput.length&&"POST"===i.type&&(t=i.fileInput.clone(),i.fileInput.after(function(e){return t[e]}),i.paramName&&i.fileInput.each(function(){e(this).prop("name",i.paramName)}),n.append(i.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data")),n.submit(),t&&t.length&&i.fileInput.each(function(i,n){var o=e(t[i]);e(n).prop("name",o.prop("name")),o.replaceWith(n)})}),n.append(o).appendTo(document.body)},abort:function(){o&&o.unbind("load").prop("src","javascript".concat(":false;")),n&&n.remove()}}}}),e.ajaxSetup({converters:{"iframe text":function(t){return e(t[0].body).text()},"iframe json":function(t){return e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return e(t[0].body).html()},"iframe script":function(t){return e.globalEval(e(t[0].body).text())}}})}(jQuery),/*
|
63
|
+
* jQuery UI Autocomplete HTML Extension
|
64
|
+
*
|
65
|
+
* Copyright 2010, Scott González (http://scottgonzalez.com)
|
66
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
67
|
+
*
|
68
|
+
* http://github.com/scottgonzalez/jquery-ui-extensions
|
69
|
+
*/
|
70
|
+
function(e){function t(t,i){var n=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(t){return n.test(e("<div>").html(t.label||t.value||t).text())})}var i=e.ui.autocomplete.prototype,n=i._initSource;e.extend(i,{_initSource:function(){this.options.html&&e.isArray(this.options.source)?this.source=function(e,i){i(t(this.options.source,e.term))}:n.call(this)},_renderItem:function(t,i){return e("<li></li>").data("item.autocomplete",i).append(e("<a></a>")[this.options.html?"html":"text"](i.label)).appendTo(t)}})}(jQuery),function(e,t){var i=function(){var t=e._data(document,"events");return t&&t.click&&e.grep(t.click,function(e){return"rails"===e.namespace}).length};i()&&e.error("jquery-ujs has already been loaded!");var n;e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input:file",linkDisableSelector:"a[data-disable-with]",CSRFProtection:function(t){var i=e('meta[name="csrf-token"]').attr("content");i&&t.setRequestHeader("X-CSRF-Token",i)},fire:function(t,i,n){var o=e.Event(i);return t.trigger(o,n),o.result!==!1},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e.attr("href")},handleRemote:function(i){var o,a,r,s,l,c,u,d;if(n.fire(i,"ajax:before")){if(s=i.data("cross-domain"),l=s===t?null:s,c=i.data("with-credentials")||null,u=i.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,i.is("form")){o=i.attr("method"),a=i.attr("action"),r=i.serializeArray();var h=i.data("ujs:submit-button");h&&(r.push(h),i.data("ujs:submit-button",null))}else i.is(n.inputChangeSelector)?(o=i.data("method"),a=i.data("url"),r=i.serialize(),i.data("params")&&(r=r+"&"+i.data("params"))):(o=i.data("method"),a=n.href(i),r=i.data("params")||null);d={type:o||"GET",data:r,dataType:u,beforeSend:function(e,o){return o.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+o.accepts.script),n.fire(i,"ajax:beforeSend",[e,o])},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},xhrFields:{withCredentials:c},crossDomain:l},a&&(d.url=a);var p=n.ajax(d);return i.trigger("ajax:send",p),p}return!1},handleMethod:function(i){var o=n.href(i),a=i.data("method"),r=i.attr("target"),s=e("meta[name=csrf-token]").attr("content"),l=e("meta[name=csrf-param]").attr("content"),c=e('<form method="post" action="'+o+'"></form>'),u='<input name="_method" value="'+a+'" type="hidden" />';l!==t&&s!==t&&(u+='<input name="'+l+'" value="'+s+'" type="hidden" />'),r&&c.attr("target",r),c.hide().append(u).appendTo("body"),c.submit()},disableFormElements:function(t){t.find(n.disableSelector).each(function(){var t=e(this),i=t.is("button")?"html":"val";t.data("ujs:enable-with",t[i]()),t[i](t.data("disable-with")),t.prop("disabled",!0)})},enableFormElements:function(t){t.find(n.enableSelector).each(function(){var t=e(this),i=t.is("button")?"html":"val";t.data("ujs:enable-with")&&t[i](t.data("ujs:enable-with")),t.prop("disabled",!1)})},allowAction:function(e){var t,i=e.data("confirm"),o=!1;return i?(n.fire(e,"confirm")&&(o=n.confirm(i),t=n.fire(e,"confirm:complete",[o])),o&&t):!0},blankInputs:function(t,i,n){var o,a,r=e(),s=i||"input,textarea",l=t.find(s);return l.each(function(){if(o=e(this),a=o.is(":checkbox,:radio")?o.is(":checked"):o.val(),!a==!n){if(o.is(":radio")&&l.filter('input:radio:checked[name="'+o.attr("name")+'"]').length)return!0;r=r.add(o)}}),r.length?r:!1},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},callFormSubmitBindings:function(i,n){var o=i.data("events"),a=!0;return o!==t&&o.submit!==t&&e.each(o.submit,function(e,t){return"function"==typeof t.handler?a=t.handler(n):void 0}),a},disableElement:function(e){e.data("ujs:enable-with",e.html()),e.html(e.data("disable-with")),e.bind("click.railsDisable",function(e){return n.stopEverything(e)})},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.data("ujs:enable-with",!1)),e.unbind("click.railsDisable")}},n.fire(e(document),"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,i){e.crossDomain||n.CSRFProtection(i)}),e(document).delegate(n.linkDisableSelector,"ajax:complete",function(){n.enableElement(e(this))}),e(document).delegate(n.linkClickSelector,"click.rails",function(i){var o=e(this),a=o.data("method"),r=o.data("params");if(!n.allowAction(o))return n.stopEverything(i);if(o.is(n.linkDisableSelector)&&n.disableElement(o),o.data("remote")!==t){if(!(!i.metaKey&&!i.ctrlKey||a&&"GET"!==a||r))return!0;var s=n.handleRemote(o);return s===!1?n.enableElement(o):s.error(function(){n.enableElement(o)}),!1}return o.data("method")?(n.handleMethod(o),!1):void 0}),e(document).delegate(n.inputChangeSelector,"change.rails",function(t){var i=e(this);return n.allowAction(i)?(n.handleRemote(i),!1):n.stopEverything(t)}),e(document).delegate(n.formSubmitSelector,"submit.rails",function(i){var o=e(this),a=o.data("remote")!==t,r=n.blankInputs(o,n.requiredInputSelector),s=n.nonBlankInputs(o,n.fileInputSelector);if(!n.allowAction(o))return n.stopEverything(i);if(r&&o.attr("novalidate")==t&&n.fire(o,"ajax:aborted:required",[r]))return n.stopEverything(i);if(a){if(s){setTimeout(function(){n.disableFormElements(o)},13);var l=n.fire(o,"ajax:aborted:file",[s]);return l||setTimeout(function(){n.enableFormElements(o)},13),l}return!e.support.submitBubbles&&e().jquery<"1.7"&&n.callFormSubmitBindings(o,i)===!1?n.stopEverything(i):(n.handleRemote(o),!1)}setTimeout(function(){n.disableFormElements(o)},13)}),e(document).delegate(n.formInputClickSelector,"click.rails",function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);var o=i.attr("name"),a=o?{name:o,value:i.val()}:null;i.closest("form").data("ujs:submit-button",a)}),e(document).delegate(n.formSubmitSelector,"ajax:beforeSend.rails",function(t){this==t.target&&n.disableFormElements(e(this))}),e(document).delegate(n.formSubmitSelector,"ajax:complete.rails",function(t){this==t.target&&n.enableFormElements(e(this))}),e(function(){csrf_token=e("meta[name=csrf-token]").attr("content"),csrf_param=e("meta[name=csrf-param]").attr("content"),e('form input[name="'+csrf_param+'"]').val(csrf_token)}))}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery||window.$)}(function(e){var t,i={className:"autosizejs",append:"",callback:!1,resizeDelay:10},n='<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',o=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],a=e(n).data("autosize",!0)[0];a.style.lineHeight="99px","99px"===e(a).css("lineHeight")&&o.push("lineHeight"),a.style.lineHeight="",e.fn.autosize=function(n){return n=e.extend({},i,n||{}),a.parentNode!==document.body&&e(document.body).append(a),this.each(function(){function i(){var t,i;"getComputedStyle"in window?(t=window.getComputedStyle(h),i=h.getBoundingClientRect().width,e.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(e,n){i-=parseInt(t[n],10)}),a.style.width=i+"px"):a.style.width=Math.max(p.width(),0)+"px"}function r(){var r={};if(t=h,a.className=n.className,c=parseInt(p.css("maxHeight"),10),e.each(o,function(e,t){r[t]=p.css(t)}),e(a).css(r),i(),window.chrome){var s=h.style.width;h.style.width="0px";{h.offsetWidth}h.style.width=s}}function s(){var e,o;t!==h?r():i(),a.value=h.value+n.append,a.style.overflowY=h.style.overflowY,o=parseInt(h.style.height,10),a.scrollTop=0,a.scrollTop=9e4,e=a.scrollTop,c&&e>c?(h.style.overflowY="scroll",e=c):(h.style.overflowY="hidden",u>e&&(e=u)),e+=f,o!==e&&(h.style.height=e+"px",m&&n.callback.call(h,h))}function l(){clearTimeout(d),d=setTimeout(function(){var e=p.width();e!==v&&(v=e,s())},parseInt(n.resizeDelay,10))}var c,u,d,h=this,p=e(h),f=0,m=e.isFunction(n.callback),g={height:h.style.height,overflow:h.style.overflow,overflowY:h.style.overflowY,wordWrap:h.style.wordWrap,resize:h.style.resize},v=p.width();p.data("autosize")||(p.data("autosize",!0),("border-box"===p.css("box-sizing")||"border-box"===p.css("-moz-box-sizing")||"border-box"===p.css("-webkit-box-sizing"))&&(f=p.outerHeight()-p.height()),u=Math.max(parseInt(p.css("minHeight"),10)-f||0,p.height()),p.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word",resize:"none"===p.css("resize")||"vertical"===p.css("resize")?"none":"horizontal"}),"onpropertychange"in h?"oninput"in h?p.on("input.autosize keyup.autosize",s):p.on("propertychange.autosize",function(){"value"===event.propertyName&&s()}):p.on("input.autosize",s),n.resizeDelay!==!1&&e(window).on("resize.autosize",l),p.on("autosize.resize",s),p.on("autosize.resizeIncludeStyle",function(){t=null,s()}),p.on("autosize.destroy",function(){t=null,clearTimeout(d),e(window).off("resize",l),p.off("autosize").off(".autosize").css(g).removeData("autosize")}),s())})}}),window.tinyMCEPreInit=window.tinyMCEPreInit||{base:"/assets/tinymce",query:"3.5.9",suffix:""},function(e){var t,i=/^\s*|\s*$/g,n="$1"==="B".replace(/A(.)|B/,"$1"),o={majorVersion:"3",minorVersion:"5.9",releaseDate:"2013-10-10",_init:function(){function t(e){return e.src&&/tiny_mce(|_gzip|_jquery|_prototype|_full)(_dev|_src)?.js/.test(e.src)?(/_(src|dev)\.js/g.test(e.src)&&(l.suffix="_src"),-1!=(r=e.src.indexOf("?"))&&(l.query=e.src.substring(r+1)),l.baseURL=e.src.substring(0,e.src.lastIndexOf("/")),a&&-1==l.baseURL.indexOf("://")&&0!==l.baseURL.indexOf("/")&&(l.baseURL=a+l.baseURL),l.baseURL):null}var i,n,o,a,r,s,l=this,c=document,u=navigator,d=u.userAgent;if(l.isIE11=-1!=d.indexOf("Trident/")&&-1!=d.indexOf("rv:"),l.isOpera=e.opera&&opera.buildNumber,l.isWebKit=/WebKit/.test(d),l.isIE=!l.isWebKit&&!l.isOpera&&/MSIE/gi.test(d)&&/Explorer/gi.test(u.appName)||l.isIE11,l.isIE6=l.isIE&&/MSIE [56]/.test(d),l.isIE7=l.isIE&&/MSIE [7]/.test(d),l.isIE8=l.isIE&&/MSIE [8]/.test(d),l.isIE9=l.isIE&&/MSIE [9]/.test(d),l.isGecko=!l.isWebKit&&!l.isIE11&&/Gecko/.test(d),l.isMac=-1!=d.indexOf("Mac"),l.isAir=/adobeair/i.test(d),l.isIDevice=/(iPad|iPhone)/.test(d),l.isIOS5=l.isIDevice&&d.match(/AppleWebKit\/(\d*)/)[1]>=534,e.tinyMCEPreInit)return l.suffix=tinyMCEPreInit.suffix,l.baseURL=tinyMCEPreInit.base,l.query=tinyMCEPreInit.query,void 0;for(l.suffix="",n=c.getElementsByTagName("base"),i=0;i<n.length;i++)s=n[i].href,s&&(/^https?:\/\/[^\/]+$/.test(s)&&(s+="/"),a=s?s.match(/.*\//)[0]:"");for(n=c.getElementsByTagName("script"),i=0;i<n.length;i++)if(t(n[i]))return;if(o=c.getElementsByTagName("head")[0])for(n=o.getElementsByTagName("script"),i=0;i<n.length;i++)if(t(n[i]))return},is:function(e,i){return i?"array"==i&&o.isArray(e)?!0:typeof e==i:e!==t},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},makeMap:function(e,t,i){var n;for(e=e||[],t=t||",","string"==typeof e&&(e=e.split(t)),i=i||{},n=e.length;n--;)i[e[n]]={};return i},each:function(e,i,n){var o,a;if(!e)return 0;if(n=n||e,e.length!==t){for(o=0,a=e.length;a>o;o++)if(i.call(n,e[o],o,e)===!1)return 0}else for(o in e)if(e.hasOwnProperty(o)&&i.call(n,e[o],o,e)===!1)return 0;return 1},map:function(e,t){var i=[];return o.each(e,function(e){i.push(t(e))}),i},grep:function(e,t){var i=[];return o.each(e,function(e){(!t||t(e))&&i.push(e)}),i},inArray:function(e,t){var i,n;if(e)for(i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1},extend:function(e,i){var n,o,a,r,s=arguments;for(n=1,o=s.length;o>n;n++){i=s[n];for(a in i)i.hasOwnProperty(a)&&(r=i[a],r!==t&&(e[a]=r))}return e},trim:function(e){return(e?""+e:"").replace(i,"")},create:function(e,t,i){var n,o,a,r,s,l=this,c=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),a=e[3].match(/(^|\.)(\w+)$/i)[2],o=l.createNS(e[3].replace(/\.\w+$/,""),i),!o[a]){if("static"==e[2])return o[a]=t,this.onCreate&&this.onCreate(e[2],e[3],o[a]),void 0;t[a]||(t[a]=function(){},c=1),o[a]=t[a],l.extend(o[a].prototype,t),e[5]&&(n=l.resolve(e[5]).prototype,r=e[5].match(/\.(\w+)$/i)[1],s=o[a],o[a]=c?function(){return n[r].apply(this,arguments)}:function(){return this.parent=n[r],s.apply(this,arguments)},o[a].prototype[a]=o[a],l.each(n,function(e,t){o[a].prototype[t]=n[t]}),l.each(t,function(e,t){n[t]?o[a].prototype[t]=function(){return this.parent=n[t],e.apply(this,arguments)}:t!=a&&(o[a].prototype[t]=e)})),l.each(t["static"],function(e,t){o[a][t]=e}),this.onCreate&&this.onCreate(e[2],e[3],o[a].prototype)}},walk:function(e,t,i,n){n=n||this,e&&(i&&(e=e[i]),o.each(e,function(e,a){return t.call(n,e,a,i)===!1?!1:(o.walk(e,t,i,n),void 0)}))},createNS:function(t,i){var n,o;for(i=i||e,t=t.split("."),n=0;n<t.length;n++)o=t[n],i[o]||(i[o]={}),i=i[o];return i},resolve:function(t,i){var n,o;for(i=i||e,t=t.split("."),n=0,o=t.length;o>n&&(i=i[t[n]],i);n++);return i},addUnload:function(t,i){function n(){function t(){i.detachEvent("onstop",t),o&&o(),i=0}var i=document;"interactive"==i.readyState&&(i&&i.attachEvent("onstop",t),e.setTimeout(function(){i&&i.detachEvent("onstop",t)},0))}var o,a=this;return o=function(){var t,i,r=a.unloads;if(r){for(i in r)t=r[i],t&&t.func&&t.func.call(t.scope,1);e.detachEvent?(e.detachEvent("onbeforeunload",n),e.detachEvent("onunload",o)):e.removeEventListener&&e.removeEventListener("unload",o,!1),a.unloads=t=r=w=o=0,e.CollectGarbage&&CollectGarbage()}},t={func:t,scope:i||this},a.unloads?a.unloads.push(t):(e.attachEvent?(e.attachEvent("onunload",o),e.attachEvent("onbeforeunload",n)):e.addEventListener&&e.addEventListener("unload",o,!1),a.unloads=[t]),t},removeUnload:function(e){var t=this.unloads,i=null;return o.each(t,function(n,o){return n&&n.func==e?(t.splice(o,1),i=e,!1):void 0}),i},explode:function(e,t){return!e||o.is(e,"array")?e:o.map(e.split(t||","),o.trim)},_addVer:function(e){var t;return this.query?(t=(-1==e.indexOf("?")?"?":"&")+this.query,-1==e.indexOf("#")?e+t:e.replace("#",t+"#")):e},_replace:function(e,i,o){return n?o.replace(e,function(){var e,n=i,o=arguments;for(e=0;e<o.length-2;e++)n=o[e]===t?n.replace(new RegExp("\\$"+e,"g"),""):n.replace(new RegExp("\\$"+e,"g"),o[e]);return n}):o.replace(e,i)}};o._init(),e.tinymce=e.tinyMCE=o}(window),tinymce.create("tinymce.util.Dispatcher",{scope:null,listeners:null,inDispatch:!1,Dispatcher:function(e){this.scope=e||this,this.listeners=[]},add:function(e,t){return this.listeners.push({cb:e,scope:t||this.scope}),e},addToTop:function(e,t){var i=this,n={cb:e,scope:t||i.scope};return i.inDispatch?i.listeners=[n].concat(i.listeners):i.listeners.unshift(n),e},remove:function(e){var t=this.listeners,i=null;return tinymce.each(t,function(n,o){return e==n.cb?(i=n,t.splice(o,1),!1):void 0}),i},dispatch:function(){var e,t,i,n=this,o=arguments,a=n.listeners;for(n.inDispatch=!0,t=0;t<a.length&&(i=a[t],e=i.cb.apply(i.scope,o.length>0?o:[i.scope]),e!==!1);t++);return n.inDispatch=!1,e}}),function(){var e=tinymce.each;tinymce.create("tinymce.util.URI",{URI:function(t,i){var n,o,a=this;return t=tinymce.trim(t),i=a.settings=i||{},/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t)?(a.source=t,void 0):(0===t.indexOf("/")&&0!==t.indexOf("//")&&(t=(i.base_uri?i.base_uri.protocol||"http":"http")+"://mce_host"+t),/^[\w\-]*:?\/\//.test(t)||(o=i.base_uri?i.base_uri.path:new tinymce.util.URI(location.href).directory,t=(i.base_uri&&i.base_uri.protocol||"http")+"://mce_host"+a.toAbsPath(o,t)),t=t.replace(/@@/g,"(mce_at)"),t=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),e(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],function(e,i){var n=t[i];n&&(n=n.replace(/\(mce_at\)/g,"@@")),a[e]=n}),n=i.base_uri,n&&(a.protocol||(a.protocol=n.protocol),a.userInfo||(a.userInfo=n.userInfo),a.port||"mce_host"!==a.host||(a.port=n.port),a.host&&"mce_host"!==a.host||(a.host=n.host),a.source=""),void 0)},setPath:function(e){var t=this;e=/^(.*?)\/?(\w+)?$/.exec(e),t.path=e[0],t.directory=e[1],t.file=e[2],t.source="",t.getURI()},toRelative:function(e){var t,i=this;if("./"===e)return e;if(e=new tinymce.util.URI(e,{base_uri:i}),"mce_host"!=e.host&&i.host!=e.host&&e.host||i.port!=e.port||i.protocol!=e.protocol)return e.getURI();var n=i.getURI(),o=e.getURI();return n==o||"/"==n.charAt(n.length-1)&&n.substr(0,n.length-1)==o?n:(t=i.toRelPath(i.path,e.path),e.query&&(t+="?"+e.query),e.anchor&&(t+="#"+e.anchor),t)},toAbsolute:function(e,t){return e=new tinymce.util.URI(e,{base_uri:this}),e.getURI(this.host==e.host&&this.protocol==e.protocol?t:0)},toRelPath:function(e,t){var i,n,o,a=0,r="";if(e=e.substring(0,e.lastIndexOf("/")),e=e.split("/"),i=t.split("/"),e.length>=i.length)for(n=0,o=e.length;o>n;n++)if(n>=i.length||e[n]!=i[n]){a=n+1;break}if(e.length<i.length)for(n=0,o=i.length;o>n;n++)if(n>=e.length||e[n]!=i[n]){a=n+1;break}if(1===a)return t;for(n=0,o=e.length-(a-1);o>n;n++)r+="../";for(n=a-1,o=i.length;o>n;n++)r+=n!=a-1?"/"+i[n]:i[n];return r},toAbsPath:function(t,i){var n,o,a,r=0,s=[];for(o=/\/$/.test(i)?"/":"",t=t.split("/"),i=i.split("/"),e(t,function(e){e&&s.push(e)}),t=s,n=i.length-1,s=[];n>=0;n--)0!==i[n].length&&"."!==i[n]&&(".."!==i[n]?r>0?r--:s.push(i[n]):r++);return n=t.length-r,a=0>=n?s.reverse().join("/"):t.slice(0,n).join("/")+"/"+s.reverse().join("/"),0!==a.indexOf("/")&&(a="/"+a),o&&a.lastIndexOf("/")!==a.length-1&&(a+=o),a},getURI:function(e){var t,i=this;return(!i.source||e)&&(t="",e||(i.protocol&&(t+=i.protocol+"://"),i.userInfo&&(t+=i.userInfo+"@"),i.host&&(t+=i.host),i.port&&(t+=":"+i.port)),i.path&&(t+=i.path),i.query&&(t+="?"+i.query),i.anchor&&(t+="#"+i.anchor),i.source=t),i.source}})}(),function(){var e=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(t){var i,n=this.get(t);return n&&e(n.split("&"),function(e){e=e.split("="),i=i||{},i[unescape(e[0])]=unescape(e[1])}),i},setHash:function(t,i,n,o,a,r){var s="";e(i,function(e,t){s+=(s?"&":"")+escape(t)+"="+escape(e)}),this.set(t,s,n,o,a,r)},get:function(e){var t,i,n=document.cookie,o=e+"=";if(n){if(i=n.indexOf("; "+o),-1==i){if(i=n.indexOf(o),0!==i)return null}else i+=2;return t=n.indexOf(";",i),-1==t&&(t=n.length),unescape(n.substring(i+o.length,t))}},set:function(e,t,i,n,o,a){document.cookie=e+"="+escape(t)+(i?"; expires="+i.toGMTString():"")+(n?"; path="+escape(n):"")+(o?"; domain="+o:"")+(a?"; secure":"")},remove:function(e,t,i){var n=new Date;n.setTime(n.getTime()-1e3),this.set(e,"",n,t,i)}})}(),function(){function serialize(e,t){var i,n,o,a;if(t=t||'"',null==e)return"null";if(o=typeof e,"string"==o)return n="\bb t\nn\ff\rr\"\"''\\\\",t+e.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(e,o){return'"'===t&&"'"===e?e:(i=n.indexOf(o),i+1?"\\"+n.charAt(i+1):(e=o.charCodeAt().toString(16),"\\u"+"0000".substring(e.length)+e))})+t;if("object"==o){if(e.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(e)){for(i=0,n="[";i<e.length;i++)n+=(i>0?",":"")+serialize(e[i],t);return n+"]"}n="{";for(a in e)e.hasOwnProperty(a)&&(n+="function"!=typeof e[a]?(n.length>1?","+t:t)+a+t+":"+serialize(e[a],t):"");return n+"}"}return""+e}tinymce.util.JSON={serialize:serialize,parse:function(s){try{return eval("("+s+")")}catch(ex){}}}}(),tinymce.create("static tinymce.util.XHR",{send:function(e){function t(){!e.async||4==n.readyState||r++>1e4?(e.success&&1e4>r&&200==n.status?e.success.call(e.success_scope,""+n.responseText,n,e):e.error&&e.error.call(e.error_scope,r>1e4?"TIMED_OUT":"GENERAL",n,e),n=null):a.setTimeout(t,10)}function i(e){n=0;try{n=new ActiveXObject(e)}catch(t){}return n}var n,o,a=window,r=0;if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=e.async===!1?!1:!0,e.data=e.data||"",n=a.XMLHttpRequest?new XMLHttpRequest:i("Microsoft.XMLHTTP")||i("Msxml2.XMLHTTP")){if(n.overrideMimeType&&n.overrideMimeType(e.content_type),n.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.content_type&&n.setRequestHeader("Content-Type",e.content_type),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(e.data),!e.async)return t();o=a.setTimeout(t,10)}}}),function(){var e=tinymce.extend,t=tinymce.util.JSON,i=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(t){this.settings=e({},t),this.count=0},send:function(n){var o=n.error,a=n.success;n=e(this.settings,n),n.success=function(e,i){e=t.parse(e),"undefined"==typeof e&&(e={error:"JSON Parse error."}),e.error?o.call(n.error_scope||n.scope,e.error,i):a.call(n.success_scope||n.scope,e.result)},n.error=function(e,t){o&&o.call(n.error_scope||n.scope,e,t)},n.data=t.serialize({id:n.id||"c"+this.count++,method:n.method,params:n.params}),n.content_type="application/json",i.send(n)},"static":{sendRPC:function(e){return(new tinymce.util.JSONRequest).send(e)}}})}(),function(e){e.VK={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey},metaKeyPressed:function(t){return e.isMac?t.metaKey:t.ctrlKey&&!t.altKey}}}(tinymce),tinymce.util.Quirks=function(e){function t(t,i){try{e.getDoc().execCommand(t,!1,i)}catch(n){}}function i(){var t=e.getDoc().documentMode;return t?t:6}function n(e){return e.isDefaultPrevented()}function o(){function t(t){function i(){if(3==s.nodeType){if(t&&l==s.length)return!0;if(!t&&0===l)return!0}}var n,o,a,r,s,l,c;n=M.getRng();var u=[n.startContainer,n.startOffset,n.endContainer,n.endOffset];if(n.collapsed||(t=!0),s=n[(t?"start":"end")+"Container"],l=n[(t?"start":"end")+"Offset"],3==s.nodeType&&(o=P.getParent(n.startContainer,P.isBlock),t&&(o=P.getNext(o,P.isBlock)),!o||!i()&&n.collapsed||(a=P.create("em",{id:"__mceDel"}),O(tinymce.grep(o.childNodes),function(e){a.appendChild(e)}),o.appendChild(a))),n=P.createRng(),n.setStart(u[0],u[1]),n.setEnd(u[2],u[3]),M.setRng(n),e.getDoc().execCommand(t?"ForwardDelete":"Delete",!1,null),a){for(r=M.getBookmark();c=P.get("__mceDel");)P.remove(c,!0);M.moveToBookmark(r)}}e.onKeyDown.add(function(e,i){var o;o=i.keyCode==A,n(i)||!o&&i.keyCode!=N||E.modifierPressed(i)||(i.preventDefault(),t(o))}),e.addCommand("Delete",function(){t()})}function a(){function t(e){var t=P.create("body"),i=e.cloneContents();return t.appendChild(i),M.serializer.serialize(t,{format:"html"})}function i(i){var n=t(i),o=P.createRng();o.selectNode(e.getBody());var a=t(o);return n===a}e.onKeyDown.add(function(e,t){var o,a=t.keyCode;if(!n(t)&&(a==A||a==N)){if(o=e.selection.isCollapsed(),o&&!P.isEmpty(e.getBody()))return;if(tinymce.isIE&&!o)return;if(!o&&!i(e.selection.getRng()))return;e.setContent(""),e.selection.setCursorLocation(e.getBody(),0),e.nodeChanged()}})}function r(){e.onKeyDown.add(function(e,t){!n(t)&&65==t.keyCode&&E.metaKeyPressed(t)&&(t.preventDefault(),e.execCommand("SelectAll"))})}function s(){e.settings.content_editable||(P.bind(e.getDoc(),"focusin",function(){M.setRng(M.getRng())}),P.bind(e.getDoc(),"mousedown",function(t){t.target==e.getDoc().documentElement&&(e.getWin().focus(),M.setRng(M.getRng()))}))}function l(){e.onKeyDown.add(function(e,t){if(!n(t)&&t.keyCode===N&&M.isCollapsed()&&0===M.getRng(!0).startOffset){var i=M.getNode(),o=i.previousSibling;o&&o.nodeName&&"hr"===o.nodeName.toLowerCase()&&(P.remove(o),tinymce.dom.Event.cancel(t))}})}function c(){Range.prototype.getClientRects||e.onMouseDown.add(function(e,t){if(!n(t)&&"HTML"===t.target.nodeName){var i=e.getBody();i.blur(),setTimeout(function(){i.focus()},0)}})}function u(){e.onClick.add(function(e,t){t=t.target,/^(IMG|HR)$/.test(t.nodeName)&&M.getSel().setBaseAndExtent(t,0,t,1),"A"==t.nodeName&&P.hasClass(t,"mceItemAnchor")&&M.select(t),e.nodeChanged()})}function d(){function t(){var t=P.getAttribs(M.getStart().cloneNode(!1));return function(){var i=M.getStart();i!==e.getBody()&&(P.setAttrib(i,"style",null),O(t,function(e){i.setAttributeNode(e.cloneNode(!0))}))}}function i(){return!M.isCollapsed()&&P.getParent(M.getStart(),P.isBlock)!=P.getParent(M.getEnd(),P.isBlock)}function o(e,t){return t.preventDefault(),!1}e.onKeyPress.add(function(e,o){var a;return n(o)||8!=o.keyCode&&46!=o.keyCode||!i()?void 0:(a=t(),e.getDoc().execCommand("delete",!1,null),a(),o.preventDefault(),!1)}),P.bind(e.getDoc(),"cut",function(a){var r;!n(a)&&i()&&(r=t(),e.onKeyUp.addToTop(o),setTimeout(function(){r(),e.onKeyUp.remove(o)},0))})}function h(){var t,i;P.bind(e.getDoc(),"selectionchange",function(){i&&(clearTimeout(i),i=0),i=window.setTimeout(function(){var i=M.getRng();t&&tinymce.dom.RangeUtils.compareRanges(i,t)||(e.nodeChanged(),t=i)},50)})}function p(){document.body.setAttribute("role","application")}function f(){e.onKeyDown.add(function(e,t){if(!n(t)&&t.keyCode===N&&M.isCollapsed()&&0===M.getRng(!0).startOffset){var i=M.getNode().previousSibling;if(i&&i.nodeName&&"table"===i.nodeName.toLowerCase())return tinymce.dom.Event.cancel(t)}})}function m(){i()>7||(t("RespectVisibilityInDesign",!0),e.contentStyles.push(".mceHideBrInPre pre br {display: none}"),P.addClass(e.getBody(),"mceHideBrInPre"),H.addNodeFilter("pre",function(e){for(var t,i,n,o,a=e.length;a--;)for(t=e[a].getAll("br"),i=t.length;i--;)n=t[i],o=n.prev,o&&3===o.type&&"\n"!=o.value.charAt(o.value-1)?o.value+="\n":n.parent.insert(new tinymce.html.Node("#text",3),n,!0).value="\n"}),B.addNodeFilter("pre",function(e){for(var t,i,n,o,a=e.length;a--;)for(t=e[a].getAll("br"),i=t.length;i--;)n=t[i],o=n.prev,o&&3==o.type&&(o.value=o.value.replace(/\r?\n$/,""))}))}function g(){P.bind(e.getBody(),"mouseup",function(){var e,t=M.getNode();"IMG"==t.nodeName&&((e=P.getStyle(t,"width"))&&(P.setAttrib(t,"width",e.replace(/[^0-9%]+/g,"")),P.setStyle(t,"width","")),(e=P.getStyle(t,"height"))&&(P.setAttrib(t,"height",e.replace(/[^0-9%]+/g,"")),P.setStyle(t,"height","")))})}function v(){e.onKeyDown.add(function(e,t){var i,o,a,r,s,l,c;if(i=t.keyCode==A,!n(t)&&(i||t.keyCode==N)&&!E.modifierPressed(t)&&(o=M.getRng(),a=o.startContainer,r=o.startOffset,c=o.collapsed,3==a.nodeType&&a.nodeValue.length>0&&(0===r&&!c||c&&r===(i?0:1)))){if(l=a.previousSibling,l&&"IMG"==l.nodeName)return;nonEmptyElements=e.schema.getNonEmptyElements(),t.preventDefault(),s=P.create("br",{id:"__tmp"}),a.parentNode.insertBefore(s,a),e.getDoc().execCommand(i?"ForwardDelete":"Delete",!1,null),a=M.getRng().startContainer,l=a.previousSibling,l&&1==l.nodeType&&!P.isBlock(l)&&P.isEmpty(l)&&!nonEmptyElements[l.nodeName.toLowerCase()]&&P.remove(l),P.remove("__tmp")}})}function b(){e.onKeyDown.add(function(e,t){var i,o,a,r,s;if(!n(t)&&t.keyCode==E.BACKSPACE&&(i=M.getRng(),o=i.startContainer,a=i.startOffset,r=P.getRoot(),s=o,i.collapsed&&0===a)){for(;s&&s.parentNode&&s.parentNode.firstChild==s&&s.parentNode!=r;)s=s.parentNode;"BLOCKQUOTE"===s.tagName&&(e.formatter.toggle("blockquote",null,s),i=P.createRng(),i.setStart(o,0),i.setEnd(o,0),M.setRng(i))}})}function y(){function i(){e._refreshContentEditable(),t("StyleWithCSS",!1),t("enableInlineTableEditing",!1),I.object_resizing||t("enableObjectResizing",!1)}I.readonly||(e.onBeforeExecCommand.add(i),e.onMouseDown.add(i))}function _(){function t(){O(P.select("a"),function(e){var t=e.parentNode,i=P.getRoot();if(t.lastChild===e){for(;t&&!P.isBlock(t);){if(t.parentNode.lastChild!==t||t===i)return;t=t.parentNode}P.add(t,"br",{"data-mce-bogus":1})}})}e.onExecCommand.add(function(e,i){"CreateLink"===i&&t(e)}),e.onSetContent.add(M.onSetContent.add(t))}function w(){I.forced_root_block&&e.onInit.add(function(){t("DefaultParagraphSeparator",I.forced_root_block)})}function x(){function t(t,i){t&&i.initial||e.execCommand("mceRepaint")}e.onUndo.add(t),e.onRedo.add(t),e.onSetContent.add(t)}function C(){e.onKeyDown.add(function(e,t){var i;n(t)||t.keyCode!=N||(i=e.getDoc().selection.createRange(),i&&i.item&&(t.preventDefault(),e.undoManager.beforeChange(),P.remove(i.item(0)),e.undoManager.add()))})}function k(){var t;i()>=10&&(t="",O("p div h1 h2 h3 h4 h5 h6".split(" "),function(e,i){t+=(i>0?",":"")+e+":empty"}),e.contentStyles.push(t+"{padding-right: 1px !important}"))}function T(){function i(e){var t,i;t=e.screenX-h,i=e.screenY-p,b=t*d[2]+f,y=i*d[3]+m,b=5>b?5:b,y=5>y?5:y,(E.modifierPressed(e)||"IMG"==c.nodeName&&d[2]*d[3]!==0)&&(b=Math.round(y/g),y=Math.round(b*g)),P.setStyles(u,{width:b,height:y}),d[2]<0&&u.clientWidth<=b&&P.setStyle(u,"left",s+(f-b)),d[3]<0&&u.clientHeight<=y&&P.setStyle(u,"top",l+(m-y))}function n(){function t(t,i){i&&(c.style[t]||!e.schema.isValid(c.nodeName.toLowerCase(),t)?P.setStyle(c,t,i):P.setAttrib(c,t,i))}t("width",b),t("height",y),P.unbind(w,"mousemove",i),P.unbind(w,"mouseup",n),_!=w&&(P.unbind(_,"mousemove",i),P.unbind(_,"mouseup",n)),P.remove(u),o(c)}function o(e){var t,o,r;a(),t=P.getPos(e),s=t.x,l=t.y,o=e.offsetWidth,r=e.offsetHeight,c!=e&&(c=e,b=y=0),O(v,function(e,t){var a;a=P.get("mceResizeHandle"+t),a?P.show(a):(a=P.add(w.documentElement,"div",{id:"mceResizeHandle"+t,"class":"mceResizeHandle",style:"cursor:"+t+"-resize; margin:0; padding:0"}),P.bind(a,"mousedown",function(t){t.preventDefault(),n(),h=t.screenX,p=t.screenY,f=c.clientWidth,m=c.clientHeight,g=m/f,d=e,u=c.cloneNode(!0),P.addClass(u,"mceClonedResizable"),P.setStyles(u,{left:s,top:l,margin:0}),w.documentElement.appendChild(u),P.bind(w,"mousemove",i),P.bind(w,"mouseup",n),_!=w&&(P.bind(_,"mousemove",i),P.bind(_,"mouseup",n))})),P.setStyles(a,{left:o*e[0]+s-a.offsetWidth/2,top:r*e[1]+l-a.offsetHeight/2})}),tinymce.isOpera||"IMG"!=c.nodeName||c.setAttribute("data-mce-selected","1")}function a(){c&&c.removeAttribute("data-mce-selected");for(var e in v)P.hide("mceResizeHandle"+e)}function r(){var e=P.getParent(M.getNode(),"table,img");O(P.select("img[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),e?o(e):a()}var s,l,c,u,d,h,p,f,m,g,v,b,y,_=document,w=e.getDoc();I.object_resizing&&I.webkit_fake_resize!==!1&&(t("enableObjectResizing",!1),v={n:[.5,0,0,-1],e:[1,.5,1,0],s:[.5,1,0,1],w:[0,.5,-1,0],nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},e.contentStyles.push(".mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000}"),e.onNodeChange.add(r),P.bind(w,"selectionchange",r),e.serializer.addAttributeFilter("data-mce-selected",function(e,t){for(var i=e.length;i--;)e[i].attr(t,null)}))}function D(){i()<9&&(H.addNodeFilter("noscript",function(e){for(var t,i,n=e.length;n--;)t=e[n],i=t.firstChild,i&&t.attr("data-mce-innertext",i.value)}),B.addNodeFilter("noscript",function(e){for(var t,i,n,o=e.length;o--;)t=e[o],i=e[o].firstChild,i?i.value=tinymce.html.Entities.decode(i.value):(n=t.attributes.map["data-mce-innertext"],n&&(t.attr("data-mce-innertext",null),i=new tinymce.html.Node("#text",3),i.value=n,i.raw=!0,t.append(i)))}))}function S(){e.contentStyles.push("body {min-height: 100px}"),e.onClick.add(function(t,i){"HTML"==i.target.nodeName&&(e.execCommand("SelectAll"),e.selection.collapse(!0),e.nodeChanged())})}var E=tinymce.VK,N=E.BACKSPACE,A=E.DELETE,P=e.dom,M=e.selection,I=e.settings,H=e.parser,B=e.serializer,O=tinymce.each;f(),b(),a(),tinymce.isWebKit&&(v(),o(),s(),u(),w(),tinymce.isIDevice?h():(T(),r())),tinymce.isIE&&!tinymce.isIE11&&(l(),p(),m(),g(),C(),k(),D()),tinymce.isIE11&&S(),tinymce.isGecko&&!tinymce.isIE11&&(l(),c(),d(),y(),_(),x()),tinymce.isOpera&&T()},function(e){function t(e){var t;return t=document.createElement("div"),t.innerHTML=e,t.textContent||t.innerText||e}function i(e,t){var i,n,a,r={};if(e){for(e=e.split(","),t=t||10,i=0;i<e.length;i+=2)n=String.fromCharCode(parseInt(e[i],t)),o[n]||(a="&"+e[i+1]+";",r[n]=a,r[a]=n);return r}}var n,o,a,r=/[&<>\"\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=/[<>&\"\']/g,c=/&(#x|#)?([\w]+);/g,u={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};
|
71
|
+
o={'"':""","'":"'","<":"<",">":">","&":"&"},a={"<":"<",">":">","&":"&",""":'"',"'":"'"},n=i("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),e.html=e.html||{},e.html.Entities={encodeRaw:function(e,t){return e.replace(t?r:s,function(e){return o[e]||e})},encodeAllRaw:function(e){return(""+e).replace(l,function(e){return o[e]||e})},encodeNumeric:function(e,t){return e.replace(t?r:s,function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":o[e]||"&#"+e.charCodeAt(0)+";"})},encodeNamed:function(e,t,i){return i=i||n,e.replace(t?r:s,function(e){return o[e]||i[e]||e})},getEncodeFunc:function(t,a){function l(e,t){return e.replace(t?r:s,function(e){return o[e]||a[e]||"&#"+e.charCodeAt(0)+";"||e})}function c(e,t){return u.encodeNamed(e,t,a)}var u=e.html.Entities;return a=i(a)||n,t=e.makeMap(t.replace(/\+/g,",")),t.named&&t.numeric?l:t.named?a?c:u.encodeNamed:t.numeric?u.encodeNumeric:u.encodeRaw},decode:function(e){return e.replace(c,function(e,i,o){return i?(o=parseInt(o,2===i.length?16:10),o>65535?(o-=65536,String.fromCharCode(55296+(o>>10),56320+(1023&o))):u[o]||String.fromCharCode(o)):a[e]||n[e]||t(e)})}}}(tinymce),tinymce.html.Styles=function(e,t){function i(e,t,i,n){function o(e){return e=parseInt(e).toString(16),e.length>1?e:"0"+e}return"#"+o(t)+o(i)+o(n)}var n,o,a,r=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,l=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,u={};for(e=e||{},a="\\\" \\' \\; \\: ; : ".split(" "),o=0;o<a.length;o++)u[a[o]]=""+o,u[""+o]=a[o];return{toHex:function(e){return e.replace(r,i)},parse:function(t){function n(e,t){var i,n,o,a;"none"===b["border-image"]&&delete b["border-image"],i=b[e+"-top"+t],i&&(n=b[e+"-right"+t],i==n&&(o=b[e+"-bottom"+t],n==o&&(a=b[e+"-left"+t],o==a&&(b[e+t]=a,delete b[e+"-top"+t],delete b[e+"-right"+t],delete b[e+"-bottom"+t],delete b[e+"-left"+t]))))}function o(e){var t,i=b[e];if(i&&!(i.indexOf(" ")<0)){for(i=i.split(" "),t=i.length;t--;)if(i[t]!==i[0])return!1;return b[e]=i[0],!0}}function a(e,t,i,n){o(t)&&o(i)&&o(n)&&(b[e]=b[t]+" "+b[i]+" "+b[n],delete b[t],delete b[i],delete b[n])}function d(e){return v=!0,u[e]}function h(e,t){return v&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return u[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e}function p(e,t,i,n,o,a){return(o=o||a)?(o=h(o),"'"+o.replace(/\'/g,"\\'")+"'"):(t=h(t||i||n),y&&(t=y.call(_,t,"style")),"url('"+t.replace(/\'/g,"\\'")+"')")}var f,m,g,v,b={},y=e.url_converter,_=e.url_converter_scope||this;if(t){for(t=t.replace(/\\[\"\';:\uFEFF]/g,d).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,d)});f=l.exec(t);)m=f[1].replace(c,"").toLowerCase(),g=f[2].replace(c,""),m&&g.length>0&&("font-weight"===m&&"700"===g?g="bold":("color"===m||"background-color"===m)&&(g=g.toLowerCase()),g=g.replace(r,i),g=g.replace(s,p),b[m]=v?h(g,!0):g),l.lastIndex=f.index+f[0].length;n("border",""),n("border","-width"),n("border","-color"),n("border","-style"),n("padding",""),n("margin",""),a("border","border-width","border-style","border-color"),"medium none"===b.border&&delete b.border}return b},serialize:function(e,i){function o(i){var o,a,r,l;if(o=t.styles[i])for(a=0,r=o.length;r>a;a++)i=o[a],l=e[i],l!==n&&l.length>0&&(s+=(s.length>0?" ":"")+i+": "+l+";")}var a,r,s="";if(i&&t&&t.styles)o("*"),o(i);else for(a in e)r=e[a],r!==n&&r.length>0&&(s+=(s.length>0?" ":"")+a+": "+r+";");return s}}},function(e){function t(e,t){return e.split(t||",")}function i(e,i){function n(t){return t.replace(/[A-Z]+/g,function(t){return n(e[t])})}var o,a={};for(o in e)e.hasOwnProperty(o)&&(e[o]=n(e[o]));return n(i).replace(/#/g,"#text").replace(/(\w+)\[([^\]]+)\]\[([^\]]*)\]/g,function(e,i,n,o){n=t(n,"|"),a[i]={attributes:r(n),attributesOrder:n,children:r(o,"|",{"#comment":{}})}}),a}function n(){var e=a.html5;return e||(e=a.html5=i({A:"id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"#|a|abbr|area|audio|b|bdo|br|button|canvas|cite|code|command|datalist|del|dfn|em|embed|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|meta|meter|noscript|object|output|progress|q|ruby|samp|script|select|small|span|strong|sub|sup|svg|textarea|time|var|video|wbr",C:"#|a|abbr|area|address|article|aside|audio|b|bdo|blockquote|br|button|canvas|cite|code|command|datalist|del|details|dfn|dialog|div|dl|em|embed|fieldset|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|menu|meta|meter|nav|noscript|ol|object|output|p|pre|progress|q|ruby|samp|script|section|select|small|span|strong|style|sub|sup|svg|table|textarea|time|ul|var|video"},"html[A|manifest][body|head]head[A][base|command|link|meta|noscript|script|style|title]title[A][#]base[A|href|target][]link[A|href|rel|media|type|sizes][]meta[A|http-equiv|name|content|charset][]style[A|type|media|scoped][#]script[A|charset|type|src|defer|async][#]noscript[A][C]body[A][C]section[A][C]nav[A][C]article[A][C]aside[A][C]h1[A][B]h2[A][B]h3[A][B]h4[A][B]h5[A][B]h6[A][B]hgroup[A][h1|h2|h3|h4|h5|h6]header[A][C]footer[A][C]address[A][C]p[A][B]br[A][]pre[A][B]dialog[A][dd|dt]blockquote[A|cite][C]ol[A|start|reversed][li]ul[A][li]li[A|value][C]dl[A][dd|dt]dt[A][B]dd[A][C]a[A|href|target|ping|rel|media|type][B]em[A][B]strong[A][B]small[A][B]cite[A][B]q[A|cite][B]dfn[A][B]abbr[A][B]code[A][B]var[A][B]samp[A][B]kbd[A][B]sub[A][B]sup[A][B]i[A][B]b[A][B]mark[A][B]progress[A|value|max][B]meter[A|value|min|max|low|high|optimum][B]time[A|datetime][B]ruby[A][B|rt|rp]rt[A][B]rp[A][B]bdo[A][B]span[A][B]ins[A|cite|datetime][B]del[A|cite|datetime][B]figure[A][C|legend|figcaption]figcaption[A][C]img[A|alt|src|height|width|usemap|ismap][]iframe[A|name|src|height|width|sandbox|seamless][]embed[A|src|height|width|type][]object[A|data|type|height|width|usemap|name|form|classid][param]param[A|name|value][]details[A|open][C|legend]command[A|type|label|icon|disabled|checked|radiogroup][]menu[A|type|label][C|li]legend[A][C|B]div[A][C]source[A|src|type|media][]audio[A|src|autobuffer|autoplay|loop|controls][source]video[A|src|autobuffer|autoplay|loop|controls|width|height|poster][source]hr[A][]form[A|accept-charset|action|autocomplete|enctype|method|name|novalidate|target][C]fieldset[A|disabled|form|name][C|legend]label[A|form|for][B]input[A|type|accept|alt|autocomplete|autofocus|checked|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|height|list|max|maxlength|min|multiple|pattern|placeholder|readonly|required|size|src|step|width|files|value|name][]button[A|autofocus|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|name|value|type][B]select[A|autofocus|disabled|form|multiple|name|size][option|optgroup]datalist[A][B|option]optgroup[A|disabled|label][option]option[A|disabled|selected|label|value][]textarea[A|autofocus|disabled|form|maxlength|name|placeholder|readonly|required|rows|cols|wrap][]keygen[A|autofocus|challenge|disabled|form|keytype|name][]output[A|for|form|name][B]canvas[A|width|height][]map[A|name][B|C]area[A|shape|coords|href|alt|target|media|rel|ping|type][]mathml[A][]svg[A][]table[A|border][caption|colgroup|thead|tfoot|tbody|tr]caption[A][C]colgroup[A|span][col]col[A|span][]thead[A][tr]tfoot[A][tr]tbody[A][tr]tr[A][th|td]th[A|headers|rowspan|colspan|scope][B]td[A|headers|rowspan|colspan][C]wbr[A][]")),e}function o(){var e=a.html4;return e||(e=a.html4=i({Z:"H|K|N|O|P",Y:"X|form|R|Q",ZG:"E|span|width|align|char|charoff|valign",X:"p|T|div|U|W|isindex|fieldset|table",ZF:"E|align|char|charoff|valign",W:"pre|hr|blockquote|address|center|noframes",ZE:"abbr|axis|headers|scope|rowspan|colspan|align|char|charoff|valign|nowrap|bgcolor|width|height",ZD:"[E][S]",U:"ul|ol|dl|menu|dir",ZC:"p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q",T:"h1|h2|h3|h4|h5|h6",ZB:"X|S|Q",S:"R|P",ZA:"a|G|J|M|O|P",R:"a|H|K|N|O",Q:"noscript|P",P:"ins|del|script",O:"input|select|textarea|label|button",N:"M|L",M:"em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym",L:"sub|sup",K:"J|I",J:"tt|i|b|u|s|strike",I:"big|small|font|basefont",H:"G|F",G:"br|span|bdo",F:"object|applet|img|map|iframe",E:"A|B|C",D:"accesskey|tabindex|onfocus|onblur",C:"onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"lang|xml:lang|dir",A:"id|class|style|title"},"script[id|charset|type|language|src|defer|xml:space][]style[B|id|type|media|title|xml:space][]object[E|declare|classid|codebase|data|type|codetype|archive|standby|width|height|usemap|name|tabindex|align|border|hspace|vspace][#|param|Y]param[id|name|value|valuetype|type][]p[E|align][#|S]a[E|D|charset|type|name|href|hreflang|rel|rev|shape|coords|target][#|Z]br[A|clear][]span[E][#|S]bdo[A|C|B][#|S]applet[A|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][#|param|Y]h1[E|align][#|S]img[E|src|alt|name|longdesc|width|height|usemap|ismap|align|border|hspace|vspace][]map[B|C|A|name][X|form|Q|area]h2[E|align][#|S]iframe[A|longdesc|name|src|frameborder|marginwidth|marginheight|scrolling|align|width|height][#|Y]h3[E|align][#|S]tt[E][#|S]i[E][#|S]b[E][#|S]u[E][#|S]s[E][#|S]strike[E][#|S]big[E][#|S]small[E][#|S]font[A|B|size|color|face][#|S]basefont[id|size|color|face][]em[E][#|S]strong[E][#|S]dfn[E][#|S]code[E][#|S]q[E|cite][#|S]samp[E][#|S]kbd[E][#|S]var[E][#|S]cite[E][#|S]abbr[E][#|S]acronym[E][#|S]sub[E][#|S]sup[E][#|S]input[E|D|type|name|value|checked|disabled|readonly|size|maxlength|src|alt|usemap|onselect|onchange|accept|align][]select[E|name|size|multiple|disabled|tabindex|onfocus|onblur|onchange][optgroup|option]optgroup[E|disabled|label][option]option[E|selected|disabled|label|value][]textarea[E|D|name|rows|cols|disabled|readonly|onselect|onchange][]label[E|for|accesskey|onfocus|onblur][#|S]button[E|D|name|value|type|disabled][#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]h4[E|align][#|S]ins[E|cite|datetime][#|Y]h5[E|align][#|S]del[E|cite|datetime][#|Y]h6[E|align][#|S]div[E|align][#|Y]ul[E|type|compact][li]li[E|type|value][#|Y]ol[E|type|compact|start][li]dl[E|compact][dt|dd]dt[E][#|S]dd[E][#|Y]menu[E|compact][li]dir[E|compact][li]pre[E|width|xml:space][#|ZA]hr[E|align|noshade|size|width][]blockquote[E|cite][#|Y]address[E][#|S|p]center[E][#|Y]noframes[E][#|Y]isindex[A|B|prompt][]fieldset[E][#|legend|Y]legend[E|accesskey|align][#|S]table[E|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|col|colgroup|thead|tfoot|tbody|tr]caption[E|align][#|S]col[ZG][]colgroup[ZG][col]thead[ZF][tr]tr[ZF|bgcolor][th|td]th[E|ZE][#|Y]form[E|action|method|name|enctype|onsubmit|onreset|accept|accept-charset|target][#|X|R|Q]noscript[E][#|Y]td[E|ZE][#|Y]tfoot[ZF][tr]tbody[ZF][tr]area[E|D|shape|coords|href|nohref|alt|target][]base[id|href|target][]body[E|onload|onunload|background|bgcolor|text|link|vlink|alink][#|Y]")),e}var a={},r=e.makeMap,s=e.each;e.html.Schema=function(i){function l(t,n,o){var s=i[t];return s?s=r(s,",",r(s.toUpperCase()," ")):(s=a[t],s||(s=r(n," ",r(n.toUpperCase()," ")),s=e.extend(s,o),a[t]=s)),s}function c(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")}function u(i){var n,o,a,s,l,u,d,h,p,f,m,g,v,b,y,_,w,x,C,T=/^([#+\-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,S=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,E=/[*?+]/;if(i)for(i=t(i),k["@"]&&(_=k["@"].attributes,w=k["@"].attributesOrder),n=0,o=i.length;o>n;n++)if(l=T.exec(i[n])){if(b=l[1],p=l[2],y=l[3],h=l[4],g={},v=[],u={attributes:g,attributesOrder:v},"#"===b&&(u.paddEmpty=!0),"-"===b&&(u.removeEmpty=!0),_){for(x in _)g[x]=_[x];v.push.apply(v,w)}if(h)for(h=t(h,"|"),a=0,s=h.length;s>a;a++)if(l=S.exec(h[a])){if(d={},m=l[1],f=l[2].replace(/::/g,":"),b=l[3],C=l[4],"!"===m&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(f),d.required=!0),"-"===m){delete g[f],v.splice(e.inArray(v,f),1);continue}b&&("="===b&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:f,value:C}),d.defaultValue=C),":"===b&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:f,value:C}),d.forcedValue=C),"<"===b&&(d.validValues=r(C,"?"))),E.test(f)?(u.attributePatterns=u.attributePatterns||[],d.pattern=c(f),u.attributePatterns.push(d)):(g[f]||v.push(f),g[f]=d)}_||"@"!=p||(_=g,w=v),y&&(u.outputName=p,k[y]=u),E.test(p)?(u.pattern=c(p),D.push(u)):k[p]=u}}function d(e){k={},D=[],u(e),s(g,function(e,t){T[t]=e.children})}function h(e){var i=/^(~)?(.+)$/;e&&s(t(e),function(e){var t=i.exec(e),n="~"===t[1],o=n?"span":"div",a=t[2];T[a]=T[o],S[a]=o,n||(w[a.toUpperCase()]={},w[a]={}),k[a]||(k[a]=k[o]),s(T,function(e){e[o]&&(e[a]=e[o])})})}function p(e){var i=/^([+\-]?)(\w+)\[([^\]]+)\]$/;e&&s(t(e),function(e){var n,o,a=i.exec(e);a&&(o=a[1],n=o?T[a[2]]:T[a[2]]={"#comment":{}},n=T[a[2]],s(t(a[3],"|"),function(e){"-"===o?delete n[e]:n[e]={}}))})}function f(e){var t,i=k[e];if(i)return i;for(t=D.length;t--;)if(i=D[t],i.pattern.test(e))return i}var m,g,v,b,y,_,w,x,C=this,k={},T={},D=[],S={};i=i||{},g="html5"==i.schema?n():o(),i.verify_html===!1&&(i.valid_elements="*[*]"),i.valid_styles&&(m={},s(i.valid_styles,function(t,i){m[i]=e.explode(t)})),v=l("whitespace_elements","pre script noscript style textarea"),b=l("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),y=l("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr"),_=l("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),x=l("non_empty_elements","td th iframe video audio object script",y),textBlockElementsMap=l("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside nav figure"),w=l("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex samp option datalist select optgroup",textBlockElementsMap),i.valid_elements?d(i.valid_elements):(s(g,function(e,t){k[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},T[t]=e.children}),"html5"!=i.schema&&s(t("strong/b,em/i"),function(e){e=t(e,"/"),k[e[1]].outputName=e[0]}),k.img.attributesDefault=[{name:"alt",value:""}],s(t("ol,ul,sub,sup,blockquote,span,font,a,table,tbody,tr,strong,em,b,i"),function(e){k[e]&&(k[e].removeEmpty=!0)}),s(t("p,h1,h2,h3,h4,h5,h6,th,td,pre,div,address,caption"),function(e){k[e].paddEmpty=!0})),h(i.custom_elements),p(i.valid_children),u(i.extended_valid_elements),p("+ol[ul|ol],+ul[ul|ol]"),i.invalid_elements&&e.each(e.explode(i.invalid_elements),function(e){k[e]&&delete k[e]}),f("span")||u("span[!data-mce-type|*]"),C.children=T,C.styles=m,C.getBoolAttrs=function(){return _},C.getBlockElements=function(){return w},C.getTextBlockElements=function(){return textBlockElementsMap},C.getShortEndedElements=function(){return y},C.getSelfClosingElements=function(){return b},C.getNonEmptyElements=function(){return x},C.getWhiteSpaceElements=function(){return v},C.isValidChild=function(e,t){var i=T[e];return!(!i||!i[t])},C.isValid=function(e,t){var i,n,o=f(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(i=o.attributePatterns)for(n=i.length;n--;)if(i[n].pattern.test(e))return!0}return!1},C.getElementRule=f,C.getCustomElements=function(){return S},C.addValidElements=u,C.setValidElements=d,C.addCustomElements=h,C.addValidChildren=p,C.elements=k}}(tinymce),function(e){e.html.SaxParser=function(t,i){var n=this,o=function(){};t=t||{},n.schema=i=i||new e.html.Schema,t.fix_self_closing!==!1&&(t.fix_self_closing=!0),e.each("comment cdata text start end pi doctype".split(" "),function(e){e&&(n[e]=t[e]||o)}),n.parse=function(n){function o(e){var t,i;for(t=L.length;t--&&L[t].name!==e;);if(t>=0){for(i=L.length-1;i>=t;i--)e=L[i],e.valid&&O.end(e.name);L.length=t}}function a(e,t,i,n,o){var a,r;if(t=t.toLowerCase(),i=t in g?t:F(i||n||o||""),b&&!p&&0!==t.indexOf("data-")){if(a=k[t],!a&&T){for(r=T.length;r--&&(a=T[r],!a.pattern.test(t)););-1===r&&(a=null)}if(!a)return;if(a.validValues&&!(i in a.validValues))return}c.map[t]=i,c.push({name:t,value:i})}var r,s,l,c,u,d,h,p,f,m,g,v,b,y,_,w,x,C,k,T,D,S,E,N,A,P,M,I,H,B,O=this,R=0,L=[],j=0,F=e.html.Entities.decode;for(A=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([A-Za-z0-9\\-\\:\\.]+)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),P=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,M={script:/<\/script[^>]*>/gi,style:/<\/style[^>]*>/gi,noscript:/<\/noscript[^>]*>/gi},m=i.getShortEndedElements(),N=t.self_closing_elements||i.getSelfClosingElements(),g=i.getBoolAttrs(),b=t.validate,f=t.remove_internals,H=t.fix_self_closing,B=e.isIE,C=/^:/;r=A.exec(n);){if(R<r.index&&O.text(F(n.substr(R,r.index-R))),s=r[6])s=s.toLowerCase(),B&&C.test(s)&&(s=s.substr(1)),o(s);else if(s=r[7]){if(s=s.toLowerCase(),B&&C.test(s)&&(s=s.substr(1)),v=s in m,H&&N[s]&&L.length>0&&L[L.length-1].name===s&&o(s),!b||(y=i.getElementRule(s))){if(_=!0,b&&(k=y.attributes,T=y.attributePatterns),(x=r[8])?(p=-1!==x.indexOf("data-mce-type"),p&&f&&(_=!1),c=[],c.map={},x.replace(P,a)):(c=[],c.map={}),b&&!p){if(D=y.attributesRequired,S=y.attributesDefault,E=y.attributesForced)for(u=E.length;u--;)w=E[u],h=w.name,I=w.value,"{$uid}"===I&&(I="mce_"+j++),c.map[h]=I,c.push({name:h,value:I});if(S)for(u=S.length;u--;)w=S[u],h=w.name,h in c.map||(I=w.value,"{$uid}"===I&&(I="mce_"+j++),c.map[h]=I,c.push({name:h,value:I}));if(D){for(u=D.length;u--&&!(D[u]in c.map););-1===u&&(_=!1)}c.map["data-mce-bogus"]&&(_=!1)}_&&O.start(s,c,v)}else _=!1;if(l=M[s]){l.lastIndex=R=r.index+r[0].length,(r=l.exec(n))?(_&&(d=n.substr(R,r.index-R)),R=r.index+r[0].length):(d=n.substr(R),R=n.length),_&&d.length>0&&O.text(d,!0),_&&O.end(s),A.lastIndex=R;continue}v||(x&&x.indexOf("/")==x.length-1?_&&O.end(s):L.push({name:s,valid:_}))}else(s=r[1])?O.comment(s):(s=r[2])?O.cdata(s):(s=r[3])?O.doctype(s):(s=r[4])&&O.pi(s,r[5]);R=r.index+r[0].length}for(R<n.length&&O.text(F(n.substr(R))),u=L.length-1;u>=0;u--)s=L[u],s.valid&&O.end(s.name)}}}(tinymce),function(e){function t(e,t,i){var n,o,a=i?"lastChild":"firstChild",r=i?"prev":"next";if(e[a])return e[a];if(e!==t){if(n=e[r])return n;for(o=e.parent;o&&o!==t;o=o.parent)if(n=o[r])return n}}function i(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}var n=/^[ \t\r\n]*$/,o={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};e.extend(i.prototype,{replace:function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},attr:function(e,t){var i,n,o,a=this;if("string"!=typeof e){for(n in e)a.attr(n,e[n]);return a}if(i=a.attributes){if(t!==o){if(null===t){if(e in i.map)for(delete i.map[e],n=i.length;n--;)if(i[n].name===e)return i=i.splice(n,1),a;return a}if(e in i.map){for(n=i.length;n--;)if(i[n].name===e){i[n].value=t;break}}else i.push({name:e,value:t});return i.map[e]=t,a}return i.map[e]}},clone:function(){var e,t,n,o,a,r=this,s=new i(r.name,r.type);if(n=r.attributes){for(a=[],a.map={},e=0,t=n.length;t>e;e++)o=n[e],"id"!==o.name&&(a[a.length]={name:o.name,value:o.value},a.map[o.name]=o.value);s.attributes=a}return s.value=r.value,s.shortEnded=r.shortEnded,s},wrap:function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},unwrap:function(){var e,t,i=this;for(e=i.firstChild;e;)t=e.next,i.insert(e,i,!0),e=t;i.remove()},remove:function(){var e=this,t=e.parent,i=e.next,n=e.prev;return t&&(t.firstChild===e?(t.firstChild=i,i&&(i.prev=null)):n.next=i,t.lastChild===e?(t.lastChild=n,n&&(n.next=null)):i.prev=n,e.parent=e.next=e.prev=null),e},append:function(e){var t,i=this;return e.parent&&e.remove(),t=i.lastChild,t?(t.next=e,e.prev=t,i.lastChild=e):i.lastChild=i.firstChild=e,e.parent=i,e},insert:function(e,t,i){var n;return e.parent&&e.remove(),n=t.parent||this,i?(t===n.firstChild?n.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===n.lastChild?n.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=n,e},getAll:function(e){var i,n=this,o=[];for(i=n.firstChild;i;i=t(i,n))i.name===e&&o.push(i);return o},empty:function(){var e,i,n,o=this;if(o.firstChild){for(e=[],n=o.firstChild;n;n=t(n,o))e.push(n);for(i=e.length;i--;)n=e[i],n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}return o.firstChild=o.lastChild=null,o},isEmpty:function(e){var i,o,a=this,r=a.firstChild;if(r)do{if(1===r.type){if(r.attributes.map["data-mce-bogus"])continue;if(e[r.name])return!1;for(i=r.attributes.length;i--;)if(o=r.attributes[i].name,"name"===o||0===o.indexOf("data-mce-"))return!1}if(8===r.type)return!1;if(3===r.type&&!n.test(r.value))return!1}while(r=t(r,a));return!0},walk:function(e){return t(this,null,e)}}),e.extend(i,{create:function(e,t){var n,a;if(n=new i(e,o[e]||1),t)for(a in t)n.attr(a,t[a]);return n}}),e.html.Node=i}(tinymce),function(e){var t=e.html.Node;e.html.DomParser=function(i,n){function o(i){var o,r,s,l,c,u,d,h,p,f,m,g,v,b;for(m=e.makeMap("tr,td,th,tbody,thead,tfoot,table"),f=n.getNonEmptyElements(),g=n.getTextBlockElements(),o=0;o<i.length;o++)if(r=i[o],r.parent&&!r.fixed)if(g[r.name]&&"li"==r.parent.name){for(v=r.next;v&&g[v.name];)v.name="li",v.fixed=!0,r.parent.insert(v,r.parent),v=v.next;r.unwrap(r)}else{for(l=[r],s=r.parent;s&&!n.isValidChild(s.name,r.name)&&!m[s.name];s=s.parent)l.push(s);if(s&&l.length>1){for(l.reverse(),c=u=a.filterNode(l[0].clone()),p=0;p<l.length-1;p++){for(n.isValidChild(u.name,l[p].name)?(d=a.filterNode(l[p].clone()),u.append(d)):d=u,h=l[p].firstChild;h&&h!=l[p+1];)b=h.next,d.append(h),h=b;u=d}c.isEmpty(f)?s.insert(r,l[0],!0):(s.insert(c,l[0],!0),s.insert(r,c)),s=l[0],(s.isEmpty(f)||s.firstChild===s.lastChild&&"br"===s.firstChild.name)&&s.empty().remove()}else if(r.parent){if("li"===r.name){if(v=r.prev,v&&("ul"===v.name||"ul"===v.name)){v.append(r);continue}if(v=r.next,v&&("ul"===v.name||"ul"===v.name)){v.insert(r,v.firstChild,!0);continue}r.wrap(a.filterNode(new t("ul",1)));continue}n.isValidChild(r.parent.name,"div")&&n.isValidChild("div",r.name)?r.wrap(a.filterNode(new t("div",1))):"style"===r.name||"script"===r.name?r.empty().remove():r.unwrap()}}}var a=this,r={},s=[],l={},c={};i=i||{},i.validate="validate"in i?i.validate:!0,i.root_name=i.root_name||"body",a.schema=n=n||new e.html.Schema,a.filterNode=function(e){var t,i,n;i in r&&(n=l[i],n?n.push(e):l[i]=[e]),t=s.length;for(;t--;)i=s[t].name,i in e.attributes.map&&(n=c[i],n?n.push(e):c[i]=[e]);return e},a.addNodeFilter=function(t,i){e.each(e.explode(t),function(e){var t=r[e];t||(r[e]=t=[]),t.push(i)})},a.addAttributeFilter=function(t,i){e.each(e.explode(t),function(e){var t;for(t=0;t<s.length;t++)if(s[t].name===e)return s[t].callbacks.push(i),void 0;s.push({name:e,callbacks:[i]})})},a.parse=function(a,u){function d(){for(var e,t,i=g.firstChild;i;)e=i.next,3==i.type||1==i.type&&"p"!==i.name&&!D[i.name]&&!i.attr("data-mce-type")?t?t.append(i):(t=h(B,1),g.insert(t,i),t.append(i)):t=null,i=e}function h(e,i){var n,o=new t(e,i);return e in r&&(n=l[e],n?n.push(o):l[e]=[o]),o}function p(e){var t,i,n;for(t=e.prev;t&&3===t.type;)i=t.value.replace(N,""),i.length>0?(t.value=i,t=t.prev):(n=t.prev,t.remove(),t=n)}function f(e){var t,i={};for(t in e)"li"!==t&&"p"!=t&&(i[t]=e[t]);return i}var m,g,v,b,y,_,w,x,C,k,T,D,S,E,N,A,P,M,I,H,B,O=[];if(u=u||{},l={},c={},D=e.extend(e.makeMap("script,style,head,html,body,title,meta,param"),n.getBlockElements()),H=n.getNonEmptyElements(),I=n.children,T=i.validate,B="forced_root_block"in u?u.forced_root_block:i.forced_root_block,M=n.getWhiteSpaceElements(),S=/^[ \t\r\n]+/,N=/[ \t\r\n]+$/,A=/[ \t\r\n]+/g,P=/^[ \t\r\n]+$/,m=new e.html.SaxParser({validate:T,self_closing_elements:f(n.getSelfClosingElements()),cdata:function(e){v.append(h("#cdata",4)).value=e},text:function(e,t){var i;E||(e=e.replace(A," "),v.lastChild&&D[v.lastChild.name]&&(e=e.replace(S,""))),0!==e.length&&(i=h("#text",3),i.raw=!!t,v.append(i).value=e)},comment:function(e){v.append(h("#comment",8)).value=e},pi:function(e,t){v.append(h(e,7)).value=t,p(v)},doctype:function(e){var t;t=v.append(h("#doctype",10)),t.value=e,p(v)},start:function(e,t,i){var o,a,r,l,u;if(r=T?n.getElementRule(e):{}){for(o=h(r.outputName||e,1),o.attributes=t,o.shortEnded=i,v.append(o),u=I[v.name],u&&I[o.name]&&!u[o.name]&&O.push(o),a=s.length;a--;)l=s[a].name,l in t.map&&(C=c[l],C?C.push(o):c[l]=[o]);D[e]&&p(o),i||(v=o),!E&&M[e]&&(E=!0)}},end:function(e){var i,o,a,r,s;if(o=T?n.getElementRule(e):{}){if(D[e]&&!E){if(i=v.firstChild,i&&3===i.type)for(a=i.value.replace(S,""),a.length>0?(i.value=a,i=i.next):(r=i.next,i.remove(),i=r);i&&3===i.type;)a=i.value,r=i.next,(0===a.length||P.test(a))&&(i.remove(),i=r),i=r;if(i=v.lastChild,i&&3===i.type)for(a=i.value.replace(N,""),a.length>0?(i.value=a,i=i.prev):(r=i.prev,i.remove(),i=r);i&&3===i.type;)a=i.value,r=i.prev,(0===a.length||P.test(a))&&(i.remove(),i=r),i=r}if(E&&M[e]&&(E=!1),(o.removeEmpty||o.paddEmpty)&&v.isEmpty(H))if(o.paddEmpty)v.empty().append(new t("#text","3")).value=" ";else if(!v.attributes.map.name&&!v.attributes.map.id)return s=v.parent,v.empty().remove(),v=s,void 0;v=v.parent}}},n),g=v=new t(u.context||i.root_name,11),m.parse(a),T&&O.length&&(u.context?u.invalid=!0:o(O)),B&&"body"==g.name&&d(),!u.invalid){for(k in l){for(C=r[k],b=l[k],w=b.length;w--;)b[w].parent||b.splice(w,1);for(y=0,_=C.length;_>y;y++)C[y](b,k,u)}for(y=0,_=s.length;_>y;y++)if(C=s[y],C.name in c){for(b=c[C.name],w=b.length;w--;)b[w].parent||b.splice(w,1);for(w=0,x=C.callbacks.length;x>w;w++)C.callbacks[w](b,C.name,u)}}return g},i.remove_trailing_brs&&a.addNodeFilter("br",function(t){var i,o,a,r,s,l,c=t.length,u=e.extend({},n.getBlockElements()),d=n.getNonEmptyElements();for(u.body=1,i=0;c>i;i++)if(o=t[i],a=o.parent,u[o.parent.name]&&o===a.lastChild){for(s=o.prev;s;){if(l=s.name,"span"!==l||"bookmark"!==s.attr("data-mce-type")){if("br"!==l)break;if("br"===l){o=null;break}}s=s.prev}o&&(o.remove(),a.isEmpty(d)&&(elementRule=n.getElementRule(a.name),elementRule&&(elementRule.removeEmpty?a.remove():elementRule.paddEmpty&&(a.empty().append(new e.html.Node("#text",3)).value=" "))))}else{for(r=o;a.firstChild===r&&a.lastChild===r&&(r=a,!u[a.name]);)a=a.parent;r===a&&(textNode=new e.html.Node("#text",3),textNode.value=" ",o.replace(textNode))}}),i.allow_html_in_named_anchor||a.addAttributeFilter("id,name",function(e){for(var t,i,n,o,a=e.length;a--;)if(o=e[a],"a"===o.name&&o.firstChild&&!o.attr("href")){n=o.parent,t=o.lastChild;do i=t.prev,n.insert(t,o),t=i;while(t)}})}}(tinymce),tinymce.html.Writer=function(e){var t,i,n,o,a,r=[];return e=e||{},t=e.indent,i=tinymce.makeMap(e.indent_before||""),n=tinymce.makeMap(e.indent_after||""),o=tinymce.html.Entities.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"==e.element_format,{start:function(e,s,l){var c,u,d,h;if(t&&i[e]&&r.length>0&&(h=r[r.length-1],h.length>0&&"\n"!==h&&r.push("\n")),r.push("<",e),s)for(c=0,u=s.length;u>c;c++)d=s[c],r.push(" ",d.name,'="',o(d.value,!0),'"');r[r.length]=!l||a?">":" />",l&&t&&n[e]&&r.length>0&&(h=r[r.length-1],h.length>0&&"\n"!==h&&r.push("\n"))},end:function(e){var i;r.push("</",e,">"),t&&n[e]&&r.length>0&&(i=r[r.length-1],i.length>0&&"\n"!==i&&r.push("\n"))},text:function(e,t){e.length>0&&(r[r.length]=t?e:o(e))},cdata:function(e){r.push("<![CDATA[",e,"]]>")},comment:function(e){r.push("<!--",e,"-->")},pi:function(e,i){i?r.push("<?",e," ",i,"?>"):r.push("<?",e,"?>"),t&&r.push("\n")},doctype:function(e){r.push("<!DOCTYPE",e,">",t?"\n":"")},reset:function(){r.length=0},getContent:function(){return r.join("").replace(/\n$/,"")}}},function(e){e.html.Serializer=function(t,i){var n=this,o=new e.html.Writer(t);t=t||{},t.validate="validate"in t?t.validate:!0,n.schema=i=i||new e.html.Schema,n.writer=o,n.serialize=function(e){function n(e){var t,s,l,c,u,d,h,p,f,m=a[e.type];if(m)m(e);else{if(t=e.name,s=e.shortEnded,l=e.attributes,r&&l&&l.length>1){for(d=[],d.map={},f=i.getElementRule(e.name),h=0,p=f.attributesOrder.length;p>h;h++)c=f.attributesOrder[h],c in l.map&&(u=l.map[c],d.map[c]=u,d.push({name:c,value:u}));for(h=0,p=l.length;p>h;h++)c=l[h].name,c in d.map||(u=l.map[c],d.map[c]=u,d.push({name:c,value:u}));l=d}if(o.start(e.name,l,s),!s){if(e=e.firstChild)do n(e);while(e=e.next);o.end(t)}}}var a,r;return r=t.validate,a={3:function(e){o.text(e.value,e.raw)},8:function(e){o.comment(e.value)},7:function(e){o.pi(e.name,e.value)},10:function(e){o.doctype(e.value)},4:function(e){o.cdata(e.value)},11:function(e){if(e=e.firstChild)do n(e);while(e=e.next)}},o.reset(),1!=e.type||t.inner?a[11](e):n(e),o.getContent()}}}(tinymce),tinymce.dom={},function(e,t){function i(e,t,i,n){e.addEventListener?e.addEventListener(t,i,n||!1):e.attachEvent&&e.attachEvent("on"+t,i)}function n(e,t,i,n){e.removeEventListener?e.removeEventListener(t,i,n||!1):e.detachEvent&&e.detachEvent("on"+t,i)}function o(e,t){function i(){return!1}function n(){return!0}var o,a=t||{};for(o in e)"layerX"!==o&&"layerY"!==o&&(a[o]=e[o]);return a.target||(a.target=a.srcElement||document),a.preventDefault=function(){a.isDefaultPrevented=n,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},a.stopPropagation=function(){a.isPropagationStopped=n,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},a.stopImmediatePropagation=function(){a.isImmediatePropagationStopped=n,a.stopPropagation()},a.isDefaultPrevented||(a.isDefaultPrevented=i,a.isPropagationStopped=i,a.isImmediatePropagationStopped=i),a}function a(e,t,o){function a(){o.domLoaded||(o.domLoaded=!0,t(l))}var r=e.document,l={type:"ready"};return"complete"==r.readyState?(a(),void 0):(s?i(e,"DOMContentLoaded",a):(i(r,"readystatechange",function(){"complete"===r.readyState&&(n(r,"readystatechange",arguments.callee),a())}),r.documentElement.doScroll&&e===e.top&&!function(){try{r.documentElement.doScroll("left")}catch(e){return setTimeout(arguments.callee,0),void 0}a()}()),i(e,"load",a),void 0)}function r(e){function r(e,t){var i,n,o,a;if(i=p[t][e.type])for(n=0,o=i.length;o>n;n++)if(a=i[n],a&&a.func.call(a.scope,e)===!1&&e.preventDefault(),e.isImmediatePropagationStopped())return}var l,c,u,d,h=this,p={};u="onmouseenter"in document.documentElement,c="onfocusin"in document.documentElement,d={mouseenter:"mouseover",mouseleave:"mouseout"},l=1,h.domLoaded=!1,h.events=p,h.bind=function(n,f,m,g){function v(e){r(o(e||T.event),b)}var b,y,_,w,x,C,k,T=window;
|
72
|
+
if(n&&3!==n.nodeType&&8!==n.nodeType){for(n[t]?(b=n[t],p[b]||(p[b]={})):(b=l++,n[t]=b,p[b]={}),g=g||n,f=f.split(" "),_=f.length;_--;)w=f[_],C=v,x=k=!1,"DOMContentLoaded"===w&&(w="ready"),!h.domLoaded&&"complete"!=n.readyState||"ready"!==w?(u||(x=d[w],x&&(C=function(e){var t,i;if(t=e.currentTarget,i=e.relatedTarget,i&&t.contains)i=t.contains(i);else for(;i&&i!==t;)i=i.parentNode;i||(e=o(e||T.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,r(e,b))})),c||"focusin"!==w&&"focusout"!==w||(k=!0,x="focusin"===w?"focus":"blur",C=function(e){e=o(e||T.event),e.type="focus"===e.type?"focusin":"focusout",r(e,b)}),y=p[b][w],y?y.push({func:m,scope:g}):(p[b][w]=y=[{func:m,scope:g}],y.fakeName=x,y.capture=k,y.nativeHandler=C,s||(y.proxyHandler=e(b)),"ready"===w?a(n,C,h):i(n,x||w,s?C:y.proxyHandler,k))):(h.domLoaded=!0,m.call(g,o({type:w})));return n=y=0,m}},h.unbind=function(e,i,o){var a,r,l,c,u,d;if(!e||3===e.nodeType||8===e.nodeType)return h;if(a=e[t]){if(d=p[a],i){for(i=i.split(" "),l=i.length;l--;)if(u=i[l],r=d[u]){if(o)for(c=r.length;c--;)r[c].func===o&&r.splice(c,1);o&&0!==r.length||(delete d[u],n(e,r.fakeName||u,s?r.nativeHandler:r.proxyHandler,r.capture))}}else{for(u in d)r=d[u],n(e,r.fakeName||u,s?r.nativeHandler:r.proxyHandler,r.capture);d={}}for(u in d)return h;delete p[a];try{delete e[t]}catch(f){e[t]=null}}return h},h.fire=function(e,i,n){var a,s;if(!e||3===e.nodeType||8===e.nodeType)return h;s=o(null,n),s.type=i;do a=e[t],a&&r(s,a),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow;while(e&&!s.isPropagationStopped());return h},h.clean=function(e){var i,n,o=h.unbind;if(!e||3===e.nodeType||8===e.nodeType)return h;if(e[t]&&o(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(o(e),n=e.getElementsByTagName("*"),i=n.length;i--;)e=n[i],e[t]&&o(e);return h},h.callNativeHandler=function(e,t){p&&p[e][t.type].nativeHandler(t)},h.destory=function(){p={}},h.add=function(e,t,i,n){"string"==typeof e&&(e=document.getElementById(e));{if(!(e&&e instanceof Array))return"init"===t&&(t="ready"),h.bind(e,t instanceof Array?t.join(" "):t,i,n);for(var o=e.length;o--;)h.add(e[o],t,i,n)}},h.remove=function(e,t,i,n){if(!e)return h;if("string"==typeof e&&(e=document.getElementById(e)),e instanceof Array){for(var o=e.length;o--;)h.remove(e[o],t,i,n);return h}return h.unbind(e,t instanceof Array?t.join(" "):t,i)},h.clear=function(e){return"string"==typeof e&&(e=document.getElementById(e)),h.clean(e)},h.cancel=function(e){return e&&(h.prevent(e),h.stop(e)),!1},h.prevent=function(e){return e.preventDefault||(e=o(e)),e.preventDefault(),!1},h.stop=function(e){return e.stopPropagation||(e=o(e)),e.stopPropagation(),!1}}var s=!!document.addEventListener;e.EventUtils=r,e.Event=new r(function(e){return function(t){tinymce.dom.Event.callNativeHandler(e,t)}}),e.Event.bind(window,"ready",function(){}),e=0}(tinymce.dom,"data-mce-expando"),tinymce.dom.TreeWalker=function(e,t){function i(e,i,n,o){var a,r;if(e){if(!o&&e[i])return e[i];if(e!=t){if(a=e[n])return a;for(r=e.parentNode;r&&r!=t;r=r.parentNode)if(a=r[n])return a}}}var n=e;this.current=function(){return n},this.next=function(e){return n=i(n,"firstChild","nextSibling",e)},this.prev=function(e){return n=i(n,"lastChild","previousSibling",e)}},function(e){var t=e.each,i=e.is,n=e.isWebKit,o=e.isIE,a=e.html.Entities,r=/^([a-z0-9],?)+$/i,s=/^[ \t\r\n]*$/;e.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(t,i){var n,o=this;if(o.doc=t,o.win=window,o.files={},o.cssFlicker=!1,o.counter=0,o.stdMode=!e.isIE||t.documentMode>=8,o.boxModel=!e.isIE||"CSS1Compat"==t.compatMode||o.stdMode,o.hasOuterHTML="outerHTML"in t.createElement("a"),o.settings=i=e.extend({keep_values:!1,hex_colors:1},i),o.schema=i.schema,o.styles=new e.html.Styles({url_converter:i.url_converter,url_converter_scope:i.url_converter_scope},i.schema),e.isIE6)try{t.execCommand("BackgroundImageCache",!1,!0)}catch(a){o.cssFlicker=!0}o.fixDoc(t),o.events=i.ownEvents?new e.dom.EventUtils(i.proxy):e.dom.Event,e.addUnload(o.destroy,o),n=i.schema?i.schema.getBlockElements():{},o.isBlock=function(e){if(!e)return!1;var t=e.nodeType;return t?!(1!==t||!n[e.nodeName]):!!n[e]}},fixDoc:function(t){var i,n=this.settings;if(o&&!e.isIE11&&n.schema){"abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video".replace(/\w+/g,function(e){t.createElement(e)});for(i in n.schema.getCustomElements())t.createElement(i)}},clone:function(i,n){var a,r,s=this;return!o||e.isIE11||1!==i.nodeType||n?i.cloneNode(n):(r=s.doc,n?a.firstChild:(a=r.createElement(i.nodeName),t(s.getAttribs(i),function(e){s.setAttrib(a,e.nodeName,s.getAttrib(i,e.nodeName))}),a))},getRoot:function(){var e=this,t=e.settings;return t&&e.get(t.root_element)||e.doc.body},getViewPort:function(e){var t,i;return e=e?e:this.win,t=e.document,i=this.boxModel?t.documentElement:t.body,{x:e.pageXOffset||i.scrollLeft,y:e.pageYOffset||i.scrollTop,w:e.innerWidth||i.clientWidth,h:e.innerHeight||i.clientHeight}},getRect:function(e){var t,i,n=this;return e=n.get(e),t=n.getPos(e),i=n.getSize(e),{x:t.x,y:t.y,w:i.w,h:i.h}},getSize:function(e){var t,i,n=this;return e=n.get(e),t=n.getStyle(e,"width"),i=n.getStyle(e,"height"),-1===t.indexOf("px")&&(t=0),-1===i.indexOf("px")&&(i=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(i,10)||e.offsetHeight||e.clientHeight}},getParent:function(e,t,i){return this.getParents(e,t,i,!1)},getParents:function(e,t,n,o){var a,r=this,s=r.settings,l=[];for(e=r.get(e),o=void 0===o,s.strict_root&&(n=n||r.getRoot()),i(t,"string")&&(a=t,t="*"===t?function(e){return 1==e.nodeType}:function(e){return r.is(e,a)});e&&e!=n&&e.nodeType&&9!==e.nodeType;){if(!t||t(e)){if(!o)return e;l.push(e)}e=e.parentNode}return o?l:null},get:function(e){var t;return e&&this.doc&&"string"==typeof e&&(t=e,e=this.doc.getElementById(e),e&&e.id!==t)?this.doc.getElementsByName(t)[1]:e},getNext:function(e,t){return this._findSib(e,t,"nextSibling")},getPrev:function(e,t){return this._findSib(e,t,"previousSibling")},select:function(t,i){var n=this;return e.dom.Sizzle(t,n.get(i)||n.get(n.settings.root_element)||n.doc,[])},is:function(t,i){var n;if(void 0===t.length){if("*"===i)return 1==t.nodeType;if(r.test(i)){for(i=i.toLowerCase().split(/,/),t=t.nodeName.toLowerCase(),n=i.length-1;n>=0;n--)if(i[n]==t)return!0;return!1}}return e.dom.Sizzle.matches(i,t.nodeType?[t]:t).length>0},add:function(e,t,n,o,a){var r=this;return this.run(e,function(e){var s;return s=i(t,"string")?r.doc.createElement(t):t,r.setAttribs(s,n),o&&(o.nodeType?s.appendChild(o):r.setHTML(s,o)),a?s:e.appendChild(s)})},create:function(e,t,i){return this.add(this.doc.createElement(e),e,t,i,1)},createHTML:function(e,t,i){var n,o="",a=this;o+="<"+e;for(n in t)t.hasOwnProperty(n)&&(o+=" "+n+'="'+a.encode(t[n])+'"');return"undefined"!=typeof i?o+">"+i+"</"+e+">":o+" />"},remove:function(t,i){return this.run(t,function(t){var n,o=t.parentNode;if(!o)return null;if(i)for(;n=t.firstChild;)!e.isIE||3!==n.nodeType||n.nodeValue?o.insertBefore(n,t):t.removeChild(n);return o.removeChild(t)})},setStyle:function(t,i,n){var a=this;return a.run(t,function(r){var s;switch(s=r.style,i=i.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}),a.pixelStyles.test(i)&&(e.is(n,"number")||/^[\-0-9\.]+$/.test(n))&&(n+="px"),i){case"opacity":o&&!e.isIE11&&(s.filter=""===n?"":"alpha(opacity="+100*n+")",t.currentStyle&&t.currentStyle.hasLayout||(s.display="inline-block")),s[i]=s["-moz-opacity"]=s["-khtml-opacity"]=n||"";break;case"float":o&&!e.isIE11?s.styleFloat=n:s.cssFloat=n;break;default:s[i]=n||""}a.settings.update_styles&&a.setAttrib(r,"data-mce-style")})},getStyle:function(e,t,i){if(e=this.get(e)){if(this.doc.defaultView&&i){t=t.replace(/[A-Z]/g,function(e){return"-"+e});try{return this.doc.defaultView.getComputedStyle(e,null).getPropertyValue(t)}catch(n){return null}}return t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}),"float"==t&&(t=o?"styleFloat":"cssFloat"),e.currentStyle&&i?e.currentStyle[t]:e.style?e.style[t]:void 0}},setStyles:function(e,i){var n,o=this,a=o.settings;n=a.update_styles,a.update_styles=0,t(i,function(t,i){o.setStyle(e,i,t)}),a.update_styles=n,a.update_styles&&o.setAttrib(e,a.cssText)},removeAllAttribs:function(e){return this.run(e,function(e){var t,i=e.attributes;for(t=i.length-1;t>=0;t--)e.removeAttributeNode(i.item(t))})},setAttrib:function(e,n,o){var a=this;if(e&&n)return a.settings.strict&&(n=n.toLowerCase()),this.run(e,function(e){var r=a.settings,s=e.getAttribute(n);if(null!==o)switch(n){case"style":if(!i(o,"string"))return t(o,function(t,i){a.setStyle(e,i,t)}),void 0;r.keep_values&&(o&&!a._isRes(o)?e.setAttribute("data-mce-style",o,2):e.removeAttribute("data-mce-style",2)),e.style.cssText=o;break;case"class":e.className=o||"";break;case"src":case"href":r.keep_values&&(r.url_converter&&(o=r.url_converter.call(r.url_converter_scope||a,o,n,e)),a.setAttrib(e,"data-mce-"+n,o,2));break;case"shape":e.setAttribute("data-mce-style",o)}if(i(o)&&null!==o&&0!==o.length?e.setAttribute(n,""+o,2):e.removeAttribute(n,2),tinyMCE.activeEditor&&s!=o){var l=tinyMCE.activeEditor;l.onSetAttrib.dispatch(l,e,n,o)}})},setAttribs:function(e,i){var n=this;return this.run(e,function(e){t(i,function(t,i){n.setAttrib(e,i,t)})})},getAttrib:function(t,a,r){var s,l,c=this;if(t=c.get(t),!t||1!==t.nodeType)return r===l?!1:r;if(i(r)||(r=""),/^(src|href|style|coords|shape)$/.test(a)&&(s=t.getAttribute("data-mce-"+a)))return s;if(o&&c.props[a]&&(s=t[c.props[a]],s=s&&s.nodeValue?s.nodeValue:s),s||(s=t.getAttribute(a,2)),/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(a))return t[c.props[a]]===!0&&""===s?a:s?a:"";if("FORM"===t.nodeName&&t.getAttributeNode(a))return t.getAttributeNode(a).nodeValue;if("style"===a&&(s=s||t.style.cssText,s&&(s=c.serializeStyle(c.parseStyle(s),t.nodeName),c.settings.keep_values&&!c._isRes(s)&&t.setAttribute("data-mce-style",s))),n&&"class"===a&&s&&(s=s.replace(/(apple|webkit)\-[a-z\-]+/gi,"")),o)switch(a){case"rowspan":case"colspan":1===s&&(s="");break;case"size":("+0"===s||20===s||0===s)&&(s="");break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":0===s&&(s="");break;case"hspace":-1===s&&(s="");break;case"maxlength":case"tabindex":(32768===s||2147483647===s||"32768"===s)&&(s="");break;case"multiple":case"compact":case"noshade":case"nowrap":return 65535===s?a:r;case"shape":s=s.toLowerCase();break;default:0===a.indexOf("on")&&s&&(s=e._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1",""+s))}return s!==l&&null!==s&&""!==s?""+s:r},getPos:function(e,t){var i,n,o=this,a=0,r=0,s=o.doc;if(e=o.get(e),t=t||s.body,e){if(e.getBoundingClientRect)return e=e.getBoundingClientRect(),i=o.boxModel?s.documentElement:s.body,a=e.left+(s.documentElement.scrollLeft||s.body.scrollLeft)-i.clientTop,r=e.top+(s.documentElement.scrollTop||s.body.scrollTop)-i.clientLeft,{x:a,y:r};for(n=e;n&&n!=t&&n.nodeType;)a+=n.offsetLeft||0,r+=n.offsetTop||0,n=n.offsetParent;for(n=e.parentNode;n&&n!=t&&n.nodeType;)a-=n.scrollLeft||0,r-=n.scrollTop||0,n=n.parentNode}return{x:a,y:r}},parseStyle:function(e){return this.styles.parse(e)},serializeStyle:function(e,t){return this.styles.serialize(e,t)},addStyle:function(e){var t,i=this.doc;styleElm=i.getElementById("mceDefaultStyles"),styleElm||(styleElm=i.createElement("style"),styleElm.id="mceDefaultStyles",styleElm.type="text/css",t=i.getElementsByTagName("head")[0],t.firstChild?t.insertBefore(styleElm,t.firstChild):t.appendChild(styleElm)),styleElm.styleSheet?styleElm.styleSheet.cssText+=e:styleElm.appendChild(i.createTextNode(e))},loadCSS:function(i){var n,a=this,r=a.doc;i||(i=""),n=r.getElementsByTagName("head")[0],t(i.split(","),function(t){var i;a.files[t]||(a.files[t]=!0,i=a.create("link",{rel:"stylesheet",href:e._addVer(t)}),o&&!e.isIE11&&r.documentMode&&r.recalc&&(i.onload=function(){r.recalc&&r.recalc(),i.onload=null}),n.appendChild(i))})},addClass:function(e,t){return this.run(e,function(e){var i;return t?this.hasClass(e,t)?e.className:(i=this.removeClass(e,t),e.className=(""!=i?i+" ":"")+t):0})},removeClass:function(t,i){var n,o=this;return o.run(t,function(t){var a;return o.hasClass(t,i)?(n||(n=new RegExp("(^|\\s+)"+i+"(\\s+|$)","g")),a=t.className.replace(n," "),a=e.trim(" "!=a?a:""),t.className=a,a||(t.removeAttribute("class"),t.removeAttribute("className")),a):t.className})},hasClass:function(e,t){return e=this.get(e),e&&t?-1!==(" "+e.className+" ").indexOf(" "+t+" "):!1},show:function(e){return this.setStyle(e,"display","block")},hide:function(e){return this.setStyle(e,"display","none")},isHidden:function(e){return e=this.get(e),!e||"none"==e.style.display||"none"==this.getStyle(e,"display")},uniqueId:function(e){return(e?e:"mce_")+this.counter++},setHTML:function(i,n){var a=this;return a.run(i,function(i){if(o){for(;i.firstChild;)i.removeChild(i.firstChild);try{i.innerHTML="<br />"+n,i.removeChild(i.firstChild)}catch(r){var s=a.create("div");s.innerHTML="<br />"+n,t(e.grep(s.childNodes),function(e,t){t&&i.canHaveHTML&&i.appendChild(e)})}}else i.innerHTML=n;return n})},getOuterHTML:function(e){var t,i=this;return(e=i.get(e))?1===e.nodeType&&i.hasOuterHTML?e.outerHTML:(t=(e.ownerDocument||i.doc).createElement("body"),t.appendChild(e.cloneNode(!0)),t.innerHTML):null},setOuterHTML:function(e,t,i){function n(e,t,i){var n,o;for(o=i.createElement("body"),o.innerHTML=t,n=o.lastChild;n;)a.insertAfter(n.cloneNode(!0),e),n=n.previousSibling;a.remove(e)}var a=this;return this.run(e,function(e){if(e=a.get(e),1==e.nodeType)if(i=i||e.ownerDocument||a.doc,o)try{o&&1==e.nodeType?e.outerHTML=t:n(e,t,i)}catch(r){n(e,t,i)}else n(e,t,i)})},decode:a.decode,encode:a.encodeAllRaw,insertAfter:function(e,t){return t=this.get(t),this.run(e,function(e){var i,n;return i=t.parentNode,n=t.nextSibling,n?i.insertBefore(e,n):i.appendChild(e),e})},replace:function(n,o,a){var r=this;return i(o,"array")&&(n=n.cloneNode(!0)),r.run(o,function(i){return a&&t(e.grep(i.childNodes),function(e){n.appendChild(e)}),i.parentNode.replaceChild(n,i)})},rename:function(e,i){var n,o=this;return e.nodeName!=i.toUpperCase()&&(n=o.create(i),t(o.getAttribs(e),function(t){o.setAttrib(n,t.nodeName,o.getAttrib(e,t.nodeName))}),o.replace(n,e,1)),n||e},findCommonAncestor:function(e,t){for(var i,n=e;n;){for(i=t;i&&n!=i;)i=i.parentNode;if(n==i)break;n=n.parentNode}return!n&&e.ownerDocument?e.ownerDocument.documentElement:n},toHex:function(e){function t(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e}var i=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(e);return i?e="#"+t(i[1])+t(i[2])+t(i[3]):e},getClasses:function(){function i(o){t(o.imports,function(e){i(e)}),t(o.cssRules||o.rules,function(o){switch(o.type||1){case 1:o.selectorText&&t(o.selectorText.split(","),function(t){t=t.replace(/^\s*|\s*$|^\s\./g,""),!/\.mce/.test(t)&&/\.[\w\-]+$/.test(t)&&(n=t,t=e._replace(/.*\.([a-z0-9_\-]+).*/i,"$1",t),(!s||(t=s(t,n)))&&(r[t]||(a.push({"class":t}),r[t]=1)))});break;case 3:try{i(o.styleSheet)}catch(l){}}})}var n,o=this,a=[],r={},s=o.settings.class_filter;if(o.classes)return o.classes;try{t(o.doc.styleSheets,i)}catch(l){}return a.length>0&&(o.classes=a),a},run:function(e,i,n){var o,a=this;return a.doc&&"string"==typeof e&&(e=a.get(e)),e?(n=n||this,e.nodeType||!e.length&&0!==e.length?i.call(n,e):(o=[],t(e,function(e,t){e&&("string"==typeof e&&(e=a.doc.getElementById(e)),o.push(i.call(n,e,t)))}),o)):!1},getAttribs:function(e){var t;return e=this.get(e),e?o?(t=[],"OBJECT"==e.nodeName?e.attributes:("OPTION"===e.nodeName&&this.getAttrib(e,"selected")&&t.push({specified:1,nodeName:"selected"}),e.cloneNode(!1).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(e){t.push({specified:1,nodeName:e})}),t)):e.attributes:[]},isEmpty:function(t,i){var n,o,a,r,l,c=this,u=0;if(t=t.firstChild){r=new e.dom.TreeWalker(t,t.parentNode),i=i||c.schema?c.schema.getNonEmptyElements():null;do{if(a=t.nodeType,1===a){if(t.getAttribute("data-mce-bogus"))continue;if(l=t.nodeName.toLowerCase(),i&&i[l]){if("br"===l){u++;continue}return!1}for(o=c.getAttribs(t),n=t.attributes.length;n--;)if(l=t.attributes[n].nodeName,"name"===l||"data-mce-bookmark"===l)return!1}if(8==a)return!1;if(3===a&&!s.test(t.nodeValue))return!1}while(t=r.next())}return 1>=u},destroy:function(t){var i=this;i.win=i.doc=i.root=i.events=i.frag=null,t||e.removeUnload(i.destroy)},createRng:function(){var t=this.doc;return t.createRange?t.createRange():new e.dom.Range(this)},nodeIndex:function(e,t){var i,n,o,a=0;if(e)for(i=e.nodeType,e=e.previousSibling,n=e;e;e=e.previousSibling)o=e.nodeType,(!t||3!=o||o!=i&&e.nodeValue.length)&&(a++,i=o);return a},split:function(t,i,n){function o(t){function i(e){var t=e.previousSibling&&"SPAN"==e.previousSibling.nodeName,i=e.nextSibling&&"SPAN"==e.nextSibling.nodeName;return t&&i}var n,a=t.childNodes,r=t.nodeType;if(1!=r||"bookmark"!=t.getAttribute("data-mce-type")){for(n=a.length-1;n>=0;n--)o(a[n]);if(9!=r){if(3==r&&t.nodeValue.length>0){var s=e.trim(t.nodeValue).length;if(!l.isBlock(t.parentNode)||s>0||0===s&&i(t))return}else if(1==r&&(a=t.childNodes,1==a.length&&a[0]&&1==a[0].nodeType&&"bookmark"==a[0].getAttribute("data-mce-type")&&t.parentNode.insertBefore(a[0],t),a.length||/^(br|hr|input|img)$/i.test(t.nodeName)))return;l.remove(t)}return t}}var a,r,s,l=this,c=l.createRng();return t&&i?(c.setStart(t.parentNode,l.nodeIndex(t)),c.setEnd(i.parentNode,l.nodeIndex(i)),a=c.extractContents(),c=l.createRng(),c.setStart(i.parentNode,l.nodeIndex(i)+1),c.setEnd(t.parentNode,l.nodeIndex(t)+1),r=c.extractContents(),s=t.parentNode,s.insertBefore(o(a),t),n?s.replaceChild(n,i):s.insertBefore(i,t),s.insertBefore(o(r),t),l.remove(t),n||i):void 0},bind:function(e,t,i,n){return this.events.add(e,t,i,n||this)},unbind:function(e,t,i){return this.events.remove(e,t,i)},fire:function(e,t,i){return this.events.fire(e,t,i)},getContentEditable:function(e){var t;return 1!=e.nodeType?null:(t=e.getAttribute("data-mce-contenteditable"),t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null)},_findSib:function(e,t,n){var o=this,a=t;if(e)for(i(a,"string")&&(a=function(e){return o.is(e,t)}),e=e[n];e;e=e[n])if(a(e))return e;return null},_isRes:function(e){return/^(top|left|bottom|right|width|height)/i.test(e)||/;\s*(top|left|bottom|right|width|height)/i.test(e)}}),e.DOM=new e.dom.DOMUtils(document,{process_html:0})}(tinymce),function(e){function t(e){function i(){return H.createDocumentFragment()}function n(e,t){x(L,e,t)}function o(e,t){x(j,e,t)}function a(e){n(e.parentNode,U(e))}function r(e){n(e.parentNode,U(e)+1)}function s(e){o(e.parentNode,U(e))}function l(e){o(e.parentNode,U(e)+1)}function c(e){e?(I[$]=I[z],I[q]=I[F]):(I[z]=I[$],I[F]=I[q]),I.collapsed=L}function u(e){a(e),l(e)}function d(e){n(e,0),o(e,1===e.nodeType?e.childNodes.length:e.nodeValue.length)}function h(e,t){var i=I[z],n=I[F],o=I[$],a=I[q],r=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset;return 0===e?w(i,n,r,s):1===e?w(o,a,r,s):2===e?w(o,a,l,c):3===e?w(i,n,l,c):void 0}function p(){C(R)}function f(){return C(B)}function m(){return C(O)}function g(t){var i,n,o=this[z],a=this[F];3!==o.nodeType&&4!==o.nodeType||!o.nodeValue?(o.childNodes.length>0&&(n=o.childNodes[a]),n?o.insertBefore(t,n):o.appendChild(t)):a?a>=o.nodeValue.length?e.insertAfter(t,o):(i=o.splitText(a),o.parentNode.insertBefore(t,i)):o.parentNode.insertBefore(t,o)}function v(e){var t=I.extractContents();I.insertNode(e),e.appendChild(t),I.selectNode(e)}function b(){return W(new t(e),{startContainer:I[z],startOffset:I[F],endContainer:I[$],endOffset:I[q],collapsed:I.collapsed,commonAncestorContainer:I.commonAncestorContainer})}function y(e,t){var i;if(3==e.nodeType)return e;if(0>t)return e;for(i=e.firstChild;i&&t>0;)--t,i=i.nextSibling;return i?i:e}function _(){return I[z]==I[$]&&I[F]==I[q]}function w(t,i,n,o){var a,r,s,l,c,u;if(t==n)return i==o?0:o>i?-1:1;for(a=n;a&&a.parentNode!=t;)a=a.parentNode;if(a){for(r=0,s=t.firstChild;s!=a&&i>r;)r++,s=s.nextSibling;return r>=i?-1:1}for(a=t;a&&a.parentNode!=n;)a=a.parentNode;if(a){for(r=0,s=n.firstChild;s!=a&&o>r;)r++,s=s.nextSibling;return o>r?-1:1}for(l=e.findCommonAncestor(t,n),c=t;c&&c.parentNode!=l;)c=c.parentNode;for(c||(c=l),u=n;u&&u.parentNode!=l;)u=u.parentNode;if(u||(u=l),c==u)return 0;for(s=l.firstChild;s;){if(s==c)return-1;if(s==u)return 1;s=s.nextSibling}}function x(t,i,n){var o,a;for(t?(I[z]=i,I[F]=n):(I[$]=i,I[q]=n),o=I[$];o.parentNode;)o=o.parentNode;for(a=I[z];a.parentNode;)a=a.parentNode;a==o?w(I[z],I[F],I[$],I[q])>0&&I.collapse(t):I.collapse(t),I.collapsed=_(),I.commonAncestorContainer=e.findCommonAncestor(I[z],I[$])}function C(e){var t,i,n,o,a,r,s,l=0,c=0;if(I[z]==I[$])return k(e);for(t=I[$],i=t.parentNode;i;t=i,i=i.parentNode){if(i==I[z])return T(t,e);++l}for(t=I[z],i=t.parentNode;i;t=i,i=i.parentNode){if(i==I[$])return D(t,e);++c}for(n=c-l,o=I[z];n>0;)o=o.parentNode,n--;for(a=I[$];0>n;)a=a.parentNode,n++;for(r=o.parentNode,s=a.parentNode;r!=s;r=r.parentNode,s=s.parentNode)o=r,a=s;return S(o,a,e)}function k(e){var t,n,o,a,r,s,l,c,u;if(e!=R&&(t=i()),I[F]==I[q])return t;if(3==I[z].nodeType){if(n=I[z].nodeValue,o=n.substring(I[F],I[q]),e!=O&&(a=I[z],c=I[F],u=I[q]-I[F],0===c&&u>=a.nodeValue.length-1?a.parentNode.removeChild(a):a.deleteData(c,u),I.collapse(L)),e==R)return;return o.length>0&&t.appendChild(H.createTextNode(o)),t}for(a=y(I[z],I[F]),r=I[q]-I[F];a&&r>0;)s=a.nextSibling,l=P(a,e),t&&t.appendChild(l),--r,a=s;return e!=O&&I.collapse(L),t}function T(e,t){var n,o,a,r,s,l;if(t!=R&&(n=i()),o=E(e,t),n&&n.appendChild(o),a=U(e),r=a-I[F],0>=r)return t!=O&&(I.setEndBefore(e),I.collapse(j)),n;for(o=e.previousSibling;r>0;)s=o.previousSibling,l=P(o,t),n&&n.insertBefore(l,n.firstChild),--r,o=s;return t!=O&&(I.setEndBefore(e),I.collapse(j)),n}function D(e,t){var n,o,a,r,s,l;for(t!=R&&(n=i()),a=N(e,t),n&&n.appendChild(a),o=U(e),++o,r=I[q]-o,a=e.nextSibling;a&&r>0;)s=a.nextSibling,l=P(a,t),n&&n.appendChild(l),--r,a=s;return t!=O&&(I.setStartAfter(e),I.collapse(L)),n}function S(e,t,n){var o,a,r,s,l,c,u,d;for(n!=R&&(a=i()),o=N(e,n),a&&a.appendChild(o),r=e.parentNode,s=U(e),l=U(t),++s,c=l-s,u=e.nextSibling;c>0;)d=u.nextSibling,o=P(u,n),a&&a.appendChild(o),u=d,--c;return o=E(t,n),a&&a.appendChild(o),n!=O&&(I.setStartAfter(e),I.collapse(L)),a}function E(e,t){var i,n,o,a,r,s=y(I[$],I[q]-1),l=s!=I[$];if(s==e)return A(s,l,j,t);for(i=s.parentNode,n=A(i,j,j,t);i;){for(;s;)o=s.previousSibling,a=A(s,l,j,t),t!=R&&n.insertBefore(a,n.firstChild),l=L,s=o;if(i==e)return n;s=i.previousSibling,i=i.parentNode,r=A(i,j,j,t),t!=R&&r.appendChild(n),n=r}}function N(e,t){var i,n,o,a,r,s=y(I[z],I[F]),l=s!=I[z];if(s==e)return A(s,l,L,t);for(i=s.parentNode,n=A(i,j,L,t);i;){for(;s;)o=s.nextSibling,a=A(s,l,L,t),t!=R&&n.appendChild(a),l=L,s=o;if(i==e)return n;s=i.nextSibling,i=i.parentNode,r=A(i,j,L,t),t!=R&&r.appendChild(n),n=r}}function A(t,i,n,o){var a,r,s,l,c;if(i)return P(t,o);if(3==t.nodeType){if(a=t.nodeValue,n?(l=I[F],r=a.substring(l),s=a.substring(0,l)):(l=I[q],r=a.substring(0,l),s=a.substring(l)),o!=O&&(t.nodeValue=s),o==R)return;return c=e.clone(t,j),c.nodeValue=r,c}if(o!=R)return e.clone(t,j)}function P(t,i){return i!=R?i==O?e.clone(t,L):t:(t.parentNode.removeChild(t),void 0)}function M(){return e.create("body",null,m()).outerText}var I=this,H=e.doc,B=0,O=1,R=2,L=!0,j=!1,F="startOffset",z="startContainer",$="endContainer",q="endOffset",W=tinymce.extend,U=e.nodeIndex;return W(I,{startContainer:H,startOffset:0,endContainer:H,endOffset:0,collapsed:L,commonAncestorContainer:H,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:n,setEnd:o,setStartBefore:a,setStartAfter:r,setEndBefore:s,setEndAfter:l,collapse:c,selectNode:u,selectNodeContents:d,compareBoundaryPoints:h,deleteContents:p,extractContents:f,cloneContents:m,insertNode:g,surroundContents:v,cloneRange:b,toStringIE:M}),I}e.Range=t,t.prototype.toString=function(){return this.toStringIE()}}(tinymce.dom),function(){function e(e){function t(t,i){var n,o,a,r,s,l,c,u,d=0,h=-1;if(n=t.duplicate(),n.collapse(i),u=n.parentElement(),u.ownerDocument===e.dom.doc){for(;"false"===u.contentEditable;)u=u.parentNode;if(!u.hasChildNodes())return{node:u,inside:1};for(r=u.children,o=r.length-1;o>=d;)if(c=Math.floor((d+o)/2),s=r[c],n.moveToElementText(s),h=n.compareEndPoints(i?"StartToStart":"EndToEnd",t),h>0)o=c-1;else{if(!(0>h))return{node:s};d=c+1}if(0>h)for(s?n.collapse(!1):(n.moveToElementText(u),n.collapse(!0),s=u,a=!0),l=0;0!==n.compareEndPoints(i?"StartToStart":"StartToEnd",t)&&0!==n.move("character",1)&&u==n.parentElement();)l++;else for(n.collapse(!0),l=0;0!==n.compareEndPoints(i?"StartToStart":"StartToEnd",t)&&0!==n.move("character",-1)&&u==n.parentElement();)l++;return{node:s,position:h,offset:l,inside:a}}}function i(){function i(e){var i,n,o,a,r,s=t(u,e),l=0;if(i=s.node,n=s.offset,s.inside&&!i.hasChildNodes())return d[e?"setStart":"setEnd"](i,0),void 0;if(n===a)return d[e?"setStartBefore":"setEndAfter"](i),void 0;if(s.position<0){if(o=s.inside?i.firstChild:i.nextSibling,!o)return d[e?"setStartAfter":"setEndAfter"](i),void 0;if(!n)return 3==o.nodeType?d[e?"setStart":"setEnd"](o,0):d[e?"setStartBefore":"setEndBefore"](o),void 0;for(;o;){if(r=o.nodeValue,l+=r.length,l>=n){i=o,l-=n,l=r.length-l;break}o=o.nextSibling}}else{if(o=i.previousSibling,!o)return d[e?"setStartBefore":"setEndBefore"](i);if(!n)return 3==i.nodeType?d[e?"setStart":"setEnd"](o,i.nodeValue.length):d[e?"setStartAfter":"setEndAfter"](o),void 0;for(;o;){if(l+=o.nodeValue.length,l>=n){i=o,l-=n;break}o=o.previousSibling}}d[e?"setStart":"setEnd"](i,l)}var a,r,s,l,c,u=e.getRng(),d=o.createRng();if(a=u.item?u.item(0):u.parentElement(),a.ownerDocument!=o.doc)return d;if(r=e.isCollapsed(),u.item)return d.setStart(a.parentNode,o.nodeIndex(a)),d.setEnd(d.startContainer,d.startOffset+1),d;try{i(!0),r||i()}catch(h){if(-2147024809!=h.number)throw h;c=n.getBookmark(2),s=u.duplicate(),s.collapse(!0),a=s.parentElement(),r||(s=u.duplicate(),s.collapse(!1),l=s.parentElement(),l.innerHTML=l.innerHTML),a.innerHTML=a.innerHTML,n.moveToBookmark(c),u=e.getRng(),i(!0),r||i()}return d}var n=this,o=e.dom,a=!1;this.getBookmark=function(i){function n(e){var t,i,n,a,r=[];for(t=e.parentNode,i=o.getRoot().parentNode;t!=i&&9!==t.nodeType;){for(n=t.children,a=n.length;a--;)if(e===n[a]){r.push(a);break}e=t,t=t.parentNode}return r}function a(e){var i;return i=t(r,e),i?{position:i.position,offset:i.offset,indexes:n(i.node),inside:i.inside}:void 0}var r=e.getRng(),s={};return 2===i&&(r.item?s.start={ctrl:!0,indexes:n(r.item(0))}:(s.start=a(!0),e.isCollapsed()||(s.end=a()))),s},this.moveToBookmark=function(e){function t(e){var t,i,n,a;for(t=o.getRoot(),i=e.length-1;i>=0;i--)a=t.children,n=e[i],n<=a.length-1&&(t=a[n]);return t}function i(i){var o,r,s,l=e[i?"start":"end"];l&&(o=l.position>0,r=a.createTextRange(),r.moveToElementText(t(l.indexes)),offset=l.offset,offset!==s?(r.collapse(l.inside||o),r.moveStart("character",o?-offset:offset)):r.collapse(i),n.setEndPoint(i?"StartToStart":"EndToStart",r),i&&n.collapse(!0))}var n,a=o.doc.body;e.start&&(e.start.ctrl?(n=a.createControlRange(),n.addElement(t(e.start.indexes)),n.select()):(n=a.createTextRange(),i(!0),i(),n.select()))},this.addRange=function(t){function i(e){var t,i,r,d,h;r=o.create("a"),t=e?s:c,i=e?l:u,d=n.duplicate(),(t==f||t==f.documentElement)&&(t=m,i=0),3==t.nodeType?(t.parentNode.insertBefore(r,t),d.moveToElementText(r),d.moveStart("character",i),o.remove(r),n.setEndPoint(e?"StartToStart":"EndToEnd",d)):(h=t.childNodes,h.length?(i>=h.length?o.insertAfter(r,h[h.length-1]):t.insertBefore(r,h[i]),d.moveToElementText(r)):t.canHaveHTML&&(t.innerHTML="<span></span>",r=t.firstChild,d.moveToElementText(r),d.collapse(a)),n.setEndPoint(e?"StartToStart":"EndToEnd",d),o.remove(r))}var n,r,s,l,c,u,d,h,p,f=e.dom.doc,m=f.body;if(s=t.startContainer,l=t.startOffset,c=t.endContainer,u=t.endOffset,n=m.createTextRange(),s==c&&1==s.nodeType){if(l==u&&!s.hasChildNodes()){if(s.canHaveHTML)return d=s.previousSibling,d&&!d.hasChildNodes()&&o.isBlock(d)?d.innerHTML="":d=null,s.innerHTML="<span></span><span></span>",n.moveToElementText(s.lastChild),n.select(),o.doc.selection.clear(),s.innerHTML="",d&&(d.innerHTML=""),void 0;l=o.nodeIndex(s),s=s.parentNode}if(l==u-1)try{if(p=s.childNodes[l],r=m.createControlRange(),r.addElement(p),r.select(),h=e.getRng(),h.item&&p===h.item(0))return}catch(g){}}i(!0),i(),n.select()},this.getRangeAt=i}tinymce.dom.TridentSelection=e}(),/*
|
73
|
+
* Sizzle CSS Selector Engine
|
74
|
+
* Copyright, The Dojo Foundation
|
75
|
+
* Released under the MIT, BSD, and GPL Licenses.
|
76
|
+
* More information: http://sizzlejs.com/
|
77
|
+
*/
|
78
|
+
function(){function e(e,t,i,o,a,r){for(var s=0,l=o.length;l>s;s++){var c=o[s];if(c){var u=!1;for(c=c[e];c;){if(c[n]===i){u=o[c.sizset];break}if(1!==c.nodeType||r||(c[n]=i,c.sizset=s),c.nodeName.toLowerCase()===t){u=c;break}c=c[e]}o[s]=u}}}function t(e,t,i,o,a,r){for(var s=0,l=o.length;l>s;s++){var c=o[s];if(c){var u=!1;for(c=c[e];c;){if(c[n]===i){u=o[c.sizset];break}if(1===c.nodeType)if(r||(c[n]=i,c.sizset=s),"string"!=typeof t){if(c===t){u=!0;break}}else if(d.filter(t,[c]).length>0){u=c;break}c=c[e]}o[s]=u}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n="sizcache",o=0,a=Object.prototype.toString,r=!1,s=!0,l=/\\/g,c=/\r\n/g,u=/\W/;[0,0].sort(function(){return s=!1,0});var d=function(e,t,n,o){n=n||[],t=t||document;var r=t;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,l,c,u,h,m,g,b,y=!0,_=d.isXML(t),x=[],C=e;do if(i.exec(""),s=i.exec(C),s&&(C=s[3],x.push(s[1]),s[2])){u=s[3];break}while(s);if(x.length>1&&f.exec(e))if(2===x.length&&p.relative[x[0]])l=w(x[0]+x[1],t,o);else for(l=p.relative[x[0]]?[t]:d(x.shift(),t);x.length;)e=x.shift(),p.relative[e]&&(e+=x.shift()),l=w(e,l,o);else if(!o&&x.length>1&&9===t.nodeType&&!_&&p.match.ID.test(x[0])&&!p.match.ID.test(x[x.length-1])&&(h=d.find(x.shift(),t,_),t=h.expr?d.filter(h.expr,h.set)[0]:h.set[0]),t)for(h=o?{expr:x.pop(),set:v(o)}:d.find(x.pop(),1!==x.length||"~"!==x[0]&&"+"!==x[0]||!t.parentNode?t:t.parentNode,_),l=h.expr?d.filter(h.expr,h.set):h.set,x.length>0?c=v(l):y=!1;x.length;)m=x.pop(),g=m,p.relative[m]?g=x.pop():m="",null==g&&(g=t),p.relative[m](c,g,_);else c=x=[];if(c||(c=l),c||d.error(m||e),"[object Array]"===a.call(c))if(y)if(t&&1===t.nodeType)for(b=0;null!=c[b];b++)c[b]&&(c[b]===!0||1===c[b].nodeType&&d.contains(t,c[b]))&&n.push(l[b]);else for(b=0;null!=c[b];b++)c[b]&&1===c[b].nodeType&&n.push(l[b]);else n.push.apply(n,c);else v(c,n);return u&&(d(u,r,n,o),d.uniqueSort(n)),n};d.uniqueSort=function(e){if(y&&(r=s,e.sort(y),r))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},d.matches=function(e,t){return d(e,null,null,t)},d.matchesSelector=function(e,t){return d(t,null,null,[e]).length>0},d.find=function(e,t,i){var n,o,a,r,s,c;if(!e)return[];for(o=0,a=p.order.length;a>o;o++)if(s=p.order[o],(r=p.leftMatch[s].exec(e))&&(c=r[1],r.splice(1,1),"\\"!==c.substr(c.length-1)&&(r[1]=(r[1]||"").replace(l,""),n=p.find[s](r,t,i),null!=n))){e=e.replace(p.match[s],"");break}return n||(n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:n,expr:e}},d.filter=function(e,t,i,n){for(var o,a,r,s,l,c,u,h,f,m=e,g=[],v=t,b=t&&t[0]&&d.isXML(t[0]);e&&t.length;){for(r in p.filter)if(null!=(o=p.leftMatch[r].exec(e))&&o[2]){if(c=p.filter[r],u=o[1],a=!1,o.splice(1,1),"\\"===u.substr(u.length-1))continue;if(v===g&&(g=[]),p.preFilter[r])if(o=p.preFilter[r](o,v,i,g,n,b)){if(o===!0)continue}else a=s=!0;if(o)for(h=0;null!=(l=v[h]);h++)l&&(s=c(l,o,h,v),f=n^s,i&&null!=s?f?a=!0:v[h]=!1:f&&(g.push(l),a=!0));if(void 0!==s){if(i||(v=g),e=e.replace(p.match[r],""),!a)return[];break}}if(e===m){if(null!=a)break;d.error(e)}m=e}return v},d.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var h=d.getText=function(e){var t,i,n=e.nodeType,o="";if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(c,"");for(e=e.firstChild;e;e=e.nextSibling)o+=h(e)}else if(3===n||4===n)return e.nodeValue}else for(t=0;i=e[t];t++)8!==i.nodeType&&(o+=h(i));return o},p=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var i="string"==typeof t,n=i&&!u.test(t),o=i&&!n;n&&(t=t.toLowerCase());for(var a,r=0,s=e.length;s>r;r++)if(a=e[r]){for(;(a=a.previousSibling)&&1!==a.nodeType;);e[r]=o||a&&a.nodeName.toLowerCase()===t?a||!1:a===t}o&&d.filter(t,e,!0)},">":function(e,t){var i,n="string"==typeof t,o=0,a=e.length;if(n&&!u.test(t)){for(t=t.toLowerCase();a>o;o++)if(i=e[o]){var r=i.parentNode;e[o]=r.nodeName.toLowerCase()===t?r:!1}}else{for(;a>o;o++)i=e[o],i&&(e[o]=n?i.parentNode:i.parentNode===t);n&&d.filter(t,e,!0)}},"":function(i,n,a){var r,s=o++,l=t;"string"!=typeof n||u.test(n)||(n=n.toLowerCase(),r=n,l=e),l("parentNode",n,s,i,r,a)},"~":function(i,n,a){var r,s=o++,l=t;"string"!=typeof n||u.test(n)||(n=n.toLowerCase(),r=n,l=e),l("previousSibling",n,s,i,r,a)}},find:{ID:function(e,t,i){if("undefined"!=typeof t.getElementById&&!i){var n=t.getElementById(e[1]);return n&&n.parentNode?[n]:[]}},NAME:function(e,t){if("undefined"!=typeof t.getElementsByName){for(var i=[],n=t.getElementsByName(e[1]),o=0,a=n.length;a>o;o++)n[o].getAttribute("name")===e[1]&&i.push(n[o]);return 0===i.length?null:i}},TAG:function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e[1]):void 0}},preFilter:{CLASS:function(e,t,i,n,o,a){if(e=" "+e[1].replace(l,"")+" ",a)return e;for(var r,s=0;null!=(r=t[s]);s++)r&&(o^(r.className&&(" "+r.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?i||n.push(r):i&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(l,"")},TAG:function(e){return e[1].replace(l,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||d.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===e[2]&&"2n"||"odd"===e[2]&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&d.error(e[0]);return e[0]=o++,e},ATTR:function(e,t,i,n,o,a){var r=e[1]=e[1].replace(l,"");return!a&&p.attrMap[r]&&(e[1]=p.attrMap[r]),e[4]=(e[4]||e[5]||"").replace(l,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,o,a){if("not"===e[1]){if(!((i.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var r=d.filter(e[3],t,n,!0^a);return n||o.push.apply(o,r),!1}e[3]=d(e[3],null,null,t)}else if(p.match.POS.test(e[0])||p.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return e.disabled===!1&&"hidden"!==e.type},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,i){return!!d(i[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),i=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===i&&(t===i||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,i,n){return t===n.length-1},even:function(e,t){return t%2===0},odd:function(e,t){return t%2===1},lt:function(e,t,i){return t<i[3]-0},gt:function(e,t,i){return t>i[3]-0},nth:function(e,t,i){return i[3]-0===t},eq:function(e,t,i){return i[3]-0===t}},filter:{PSEUDO:function(e,t,i,n){var o=t[1],a=p.filters[o];if(a)return a(e,i,t,n);if("contains"===o)return(e.textContent||e.innerText||h([e])||"").indexOf(t[3])>=0;if("not"===o){for(var r=t[3],s=0,l=r.length;l>s;s++)if(r[s]===e)return!1;return!0}d.error(o)},CHILD:function(e,t){var i,o,a,r,s,l,c=t[1],u=e;switch(c){case"only":case"first":for(;u=u.previousSibling;)if(1===u.nodeType)return!1;if("first"===c)return!0;u=e;case"last":for(;u=u.nextSibling;)if(1===u.nodeType)return!1;return!0;case"nth":if(i=t[2],o=t[3],1===i&&0===o)return!0;if(a=t[0],r=e.parentNode,r&&(r[n]!==a||!e.nodeIndex)){for(s=0,u=r.firstChild;u;u=u.nextSibling)1===u.nodeType&&(u.nodeIndex=++s);r[n]=a}return l=e.nodeIndex-o,0===i?0===l:l%i===0&&l/i>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var i=t[1],n=d.attr?d.attr(e,i):p.attrHandle[i]?p.attrHandle[i](e):null!=e[i]?e[i]:e.getAttribute(i),o=n+"",a=t[2],r=t[4];return null==n?"!="===a:!a&&d.attr?null!=n:"="===a?o===r:"*="===a?o.indexOf(r)>=0:"~="===a?(" "+o+" ").indexOf(r)>=0:r?"!="===a?o!==r:"^="===a?0===o.indexOf(r):"$="===a?o.substr(o.length-r.length)===r:"|="===a?o===r||o.substr(0,r.length+1)===r+"-":!1:o&&n!==!1},POS:function(e,t,i,n){var o=t[2],a=p.setFilters[o];return a?a(e,i,t,n):void 0}}},f=p.match.POS,m=function(e,t){return"\\"+(t-0+1)};for(var g in p.match)p.match[g]=new RegExp(p.match[g].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[g]=new RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[g].source.replace(/\\(\d+)/g,m));p.match.globalPOS=f;var v=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(b){v=function(e,t){var i=0,n=t||[];if("[object Array]"===a.call(e))Array.prototype.push.apply(n,e);else if("number"==typeof e.length)for(var o=e.length;o>i;i++)n.push(e[i]);else for(;e[i];i++)n.push(e[i]);return n}}var y,_;document.documentElement.compareDocumentPosition?y=function(e,t){return e===t?(r=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(y=function(e,t){if(e===t)return r=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var i,n,o=[],a=[],s=e.parentNode,l=t.parentNode,c=s;if(s===l)return _(e,t);if(!s)return-1;if(!l)return 1;for(;c;)o.unshift(c),c=c.parentNode;for(c=l;c;)a.unshift(c),c=c.parentNode;i=o.length,n=a.length;for(var u=0;i>u&&n>u;u++)if(o[u]!==a[u])return _(o[u],a[u]);return u===i?_(e,a[u],-1):_(o[u],t,1)},_=function(e,t,i){if(e===t)return i;for(var n=e.nextSibling;n;){if(n===t)return-1;n=n.nextSibling}return 1}),function(){var e=document.createElement("div"),t="script"+(new Date).getTime(),i=document.documentElement;e.innerHTML="<a name='"+t+"'/>",i.insertBefore(e,i.firstChild),document.getElementById(t)&&(p.find.ID=function(e,t,i){if("undefined"!=typeof t.getElementById&&!i){var n=t.getElementById(e[1]);return n?n.id===e[1]||"undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id").nodeValue===e[1]?[n]:void 0:[]}},p.filter.ID=function(e,t){var i="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&i&&i.nodeValue===t}),i.removeChild(e),i=e=null}(),function(){var e=document.createElement("div");e.appendChild(document.createComment("")),e.getElementsByTagName("*").length>0&&(p.find.TAG=function(e,t){var i=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var n=[],o=0;i[o];o++)1===i[o].nodeType&&n.push(i[o]);i=n}return i}),e.innerHTML="<a href='#'></a>",e.firstChild&&"undefined"!=typeof e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(p.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),document.querySelectorAll&&!function(){var e=d,t=document.createElement("div"),i="__sizzle__";if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){d=function(t,n,o,a){if(n=n||document,!a&&!d.isXML(n)){var r=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(r&&(1===n.nodeType||9===n.nodeType)){if(r[1])return v(n.getElementsByTagName(t),o);if(r[2]&&p.find.CLASS&&n.getElementsByClassName)return v(n.getElementsByClassName(r[2]),o)}if(9===n.nodeType){if("body"===t&&n.body)return v([n.body],o);if(r&&r[3]){var s=n.getElementById(r[3]);if(!s||!s.parentNode)return v([],o);if(s.id===r[3])return v([s],o)}try{return v(n.querySelectorAll(t),o)}catch(l){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var c=n,u=n.getAttribute("id"),h=u||i,f=n.parentNode,m=/^\s*[+~]/.test(t);u?h=h.replace(/'/g,"\\$&"):n.setAttribute("id",h),m&&f&&(n=n.parentNode);try{if(!m||f)return v(n.querySelectorAll("[id='"+h+"'] "+t),o)}catch(g){}finally{u||c.removeAttribute("id")}}}return e(t,n,o,a)};for(var n in e)d[n]=e[n];t=null}}(),function(){var e=document.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var i=!t.call(document.createElement("div"),"div"),n=!1;try{t.call(document.documentElement,"[test!='']:sizzle")}catch(o){n=!0}d.matchesSelector=function(e,o){if(o=o.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!d.isXML(e))try{if(n||!p.match.PSEUDO.test(o)&&!/!=/.test(o)){var a=t.call(e,o);if(a||!i||e.document&&11!==e.document.nodeType)return a}}catch(r){}return d(o,null,null,[e]).length>0}}}(),function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length&&(e.lastChild.className="e",1!==e.getElementsByClassName("e").length&&(p.order.splice(1,0,"CLASS"),p.find.CLASS=function(e,t,i){return"undefined"==typeof t.getElementsByClassName||i?void 0:t.getElementsByClassName(e[1])},e=null))}(),d.contains=document.documentElement.contains?function(e,t){return e!==t&&(e.contains?e.contains(t):!0)}:document.documentElement.compareDocumentPosition?function(e,t){return!!(16&e.compareDocumentPosition(t))}:function(){return!1},d.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return t?"HTML"!==t.nodeName:!1};var w=function(e,t,i){for(var n,o=[],a="",r=t.nodeType?[t]:t;n=p.match.PSEUDO.exec(e);)a+=n[0],e=e.replace(p.match.PSEUDO,"");e=p.relative[e]?e+"*":e;for(var s=0,l=r.length;l>s;s++)d(e,r[s],o,i);return d.filter(a,o)};window.tinymce.dom.Sizzle=d}(),function(e){e.dom.Element=function(t,i){var n,o,a=this;a.settings=i=i||{},a.id=t,a.dom=n=i.dom||e.DOM,e.isIE||(o=n.get(a.id)),e.each("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get".split(/,/),function(e){a[e]=function(){var i,o=[t];for(i=0;i<arguments.length;i++)o.push(arguments[i]);return o=n[e].apply(n,o),a.update(e),o}}),e.extend(a,{on:function(t,i,n){return e.dom.Event.add(a.id,t,i,n)},getXY:function(){return{x:parseInt(a.getStyle("left")),y:parseInt(a.getStyle("top"))}},getSize:function(){var e=n.get(a.id);return{w:parseInt(a.getStyle("width")||e.clientWidth),h:parseInt(a.getStyle("height")||e.clientHeight)}},moveTo:function(e,t){a.setStyles({left:e,top:t})},moveBy:function(e,t){var i=a.getXY();a.moveTo(i.x+e,i.y+t)},resizeTo:function(e,t){a.setStyles({width:e,height:t})},resizeBy:function(e,t){var i=a.getSize();a.resizeTo(i.w+e,i.h+t)},update:function(t){var o;if(e.isIE6&&i.blocker){if(t=t||"",0===t.indexOf("get")||0===t.indexOf("has")||0===t.indexOf("is"))return;if("remove"==t)return n.remove(a.blocker),void 0;a.blocker?o=n.get(a.blocker):(a.blocker=n.uniqueId(),o=n.add(i.container||n.getRoot(),"iframe",{id:a.blocker,style:"position:absolute;",frameBorder:0,src:'javascript:""'}),n.setStyle(o,"opacity",0)),n.setStyles(o,{left:a.getStyle("left",1),top:a.getStyle("top",1),width:a.getStyle("width",1),height:a.getStyle("height",1),display:a.getStyle("display",1),zIndex:parseInt(a.getStyle("zIndex",1)||0)-1})}}})}}(tinymce),function(e){var t=e.is,i=e.isIE,n=e.each,o=e.dom.TreeWalker;e.create("tinymce.dom.Selection",{Selection:function(t,i,o,a){var r=this;r.dom=t,r.win=i,r.serializer=o,r.editor=a,n(["onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent"],function(t){r[t]=new e.util.Dispatcher(r)}),r.win.getSelection||(r.tridentSel=new e.dom.TridentSelection(r)),e.isIE&&!e.isIE11&&t.boxModel&&this._fixIESelection(),e.addUnload(r.destroy,r)},setCursorLocation:function(e,t){var i=this,n=i.dom.createRng();n.setStart(e,t),n.setEnd(e,t),i.setRng(n),i.collapse(!1)},getContent:function(e){var i,n,o,a=this,r=a.getRng(),s=a.dom.create("body"),l=a.getSel();return e=e||{},i=n="",e.get=!0,e.format=e.format||"html",e.forced_root_block="",a.onBeforeGetContent.dispatch(a,e),"text"==e.format?a.isCollapsed()?"":r.text||(l.toString?l.toString():""):(r.cloneContents?(o=r.cloneContents(),o&&s.appendChild(o)):t(r.item)||t(r.htmlText)?(s.innerHTML="<br>"+(r.item?r.item(0).outerHTML:r.htmlText),s.removeChild(s.firstChild)):s.innerHTML=r.toString(),/^\s/.test(s.innerHTML)&&(i=" "),/\s+$/.test(s.innerHTML)&&(n=" "),e.getInner=!0,e.content=a.isCollapsed()?"":i+a.serializer.serialize(s,e)+n,a.onGetContent.dispatch(a,e),e.content)},setContent:function(e,t){var i,n,o,a=this,r=a.getRng(),s=a.win.document;if(t=t||{format:"html"},t.set=!0,e=t.content=e,t.no_events||a.onBeforeSetContent.dispatch(a,t),e=t.content,r.insertNode){e+='<span id="__caret">_</span>',r.startContainer==s&&r.endContainer==s?s.body.innerHTML=e:(r.deleteContents(),0===s.body.childNodes.length?s.body.innerHTML=e:r.createContextualFragment?r.insertNode(r.createContextualFragment(e)):(n=s.createDocumentFragment(),o=s.createElement("div"),n.appendChild(o),o.outerHTML=e,r.insertNode(n))),i=a.dom.get("__caret"),r=s.createRange(),r.setStartBefore(i),r.setEndBefore(i),a.setRng(r),a.dom.remove("__caret");try{a.setRng(r)}catch(l){}}else r.item&&(s.execCommand("Delete",!1,null),r=a.getRng()),/^\s+/.test(e)?(r.pasteHTML('<span id="__mce_tmp">_</span>'+e),a.dom.remove("__mce_tmp")):r.pasteHTML(e);t.no_events||a.onSetContent.dispatch(a,t)},getStart:function(){var e,t,i,n,o=this,a=o.getRng();if(a.duplicate||a.item){if(a.item)return a.item(0);for(i=a.duplicate(),i.collapse(1),e=i.parentElement(),e.ownerDocument!==o.dom.doc&&(e=o.dom.getRoot()),t=n=a.parentElement();n=n.parentNode;)if(n==e){e=t;break}return e}return e=a.startContainer,1==e.nodeType&&e.hasChildNodes()&&(e=e.childNodes[Math.min(e.childNodes.length-1,a.startOffset)]),e&&3==e.nodeType?e.parentNode:e},getEnd:function(){var e,t,i=this,n=i.getRng();return n.duplicate||n.item?n.item?n.item(0):(n=n.duplicate(),n.collapse(0),e=n.parentElement(),e.ownerDocument!==i.dom.doc&&(e=i.dom.getRoot()),e&&"BODY"==e.nodeName?e.lastChild||e:e):(e=n.endContainer,t=n.endOffset,1==e.nodeType&&e.hasChildNodes()&&(e=e.childNodes[t>0?t-1:t]),e&&3==e.nodeType?e.parentNode:e)},getBookmark:function(e,t){function i(e,t){var i=0;return n(f.select(e),function(e,n){e==t&&(i=n)}),i}function o(e){function t(t){var i,n,o,a=t?"start":"end";i=e[a+"Container"],n=e[a+"Offset"],1==i.nodeType&&"TR"==i.nodeName&&(o=i.childNodes,i=o[Math.min(t?n:n-1,o.length-1)],i&&(n=t?0:i.childNodes.length,e["set"+(t?"Start":"End")](i,n)))}return t(!0),t(),e}function a(){function e(e,i){var o,a,r=e[i?"startContainer":"endContainer"],s=e[i?"startOffset":"endOffset"],l=[],c=0;if(3==r.nodeType){if(t)for(o=r.previousSibling;o&&3==o.nodeType;o=o.previousSibling)s+=o.nodeValue.length;l.push(s)}else a=r.childNodes,s>=a.length&&a.length&&(c=1,s=Math.max(0,a.length-1)),l.push(p.dom.nodeIndex(a[s],t)+c);for(;r&&r!=n;r=r.parentNode)l.push(p.dom.nodeIndex(r,t));return l}var i=p.getRng(!0),n=f.getRoot(),o={};return o.start=e(i,!0),p.isCollapsed()||(o.end=e(i)),o}var r,s,l,c,u,d,h,p=this,f=p.dom,m="";if(2==e)return p.tridentSel?p.tridentSel.getBookmark(e):a();if(e)return r=p.getRng(),r.setStart&&(r={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset}),{rng:r};if(r=p.getRng(),l=f.uniqueId(),c=tinyMCE.activeEditor.selection.isCollapsed(),h="overflow:hidden;line-height:0px",r.duplicate||r.item){if(r.item)return d=r.item(0),u=d.nodeName,{name:u,index:i(u,d)};s=r.duplicate();try{r.collapse(),r.pasteHTML('<span data-mce-type="bookmark" id="'+l+'_start" style="'+h+'">'+m+"</span>"),c||(s.collapse(!1),r.moveToElementText(s.parentElement()),0===r.compareEndPoints("StartToEnd",s)&&s.move("character",-1),s.pasteHTML('<span data-mce-type="bookmark" id="'+l+'_end" style="'+h+'">'+m+"</span>"))}catch(g){return null}}else{if(d=p.getNode(),u=d.nodeName,"IMG"==u)return{name:u,index:i(u,d)};s=o(r.cloneRange()),c||(s.collapse(!1),s.insertNode(f.create("span",{"data-mce-type":"bookmark",id:l+"_end",style:h},m))),r=o(r),r.collapse(!0),r.insertNode(f.create("span",{"data-mce-type":"bookmark",id:l+"_start",style:h},m))}return p.moveToBookmark({id:l,keep:1}),{id:l}},moveToBookmark:function(t){function o(e){var i,n,o,a,r=t[e?"start":"end"];if(r){for(o=r[0],n=c,i=r.length-1;i>=1;i--){if(a=n.childNodes,r[i]>a.length-1)return;n=a[r[i]]}3===n.nodeType&&(o=Math.min(r[0],n.nodeValue.length)),1===n.nodeType&&(o=Math.min(r[0],n.childNodes.length)),e?s.setStart(n,o):s.setEnd(n,o)}return!0}function a(i){var o,a,r,s,l=m.get(t.id+"_"+i),c=t.keep;if(l&&(o=l.parentNode,"start"==i?(c?(o=l.firstChild,a=1):a=m.nodeIndex(l),u=d=o,h=p=a):(c?(o=l.firstChild,a=1):a=m.nodeIndex(l),d=o,p=a),!c)){for(s=l.previousSibling,r=l.nextSibling,n(e.grep(l.childNodes),function(e){3==e.nodeType&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});l=m.get(t.id+"_"+i);)m.remove(l,1);s&&r&&s.nodeType==r.nodeType&&3==s.nodeType&&!e.isOpera&&(a=s.nodeValue.length,s.appendData(r.nodeValue),m.remove(r),"start"==i?(u=d=s,h=p=a):(d=s,p=a))}}function r(e){return!m.isBlock(e)||e.innerHTML||i||(e.innerHTML='<br data-mce-bogus="1" />'),e}var s,l,c,u,d,h,p,f=this,m=f.dom;if(t)if(t.start){if(s=m.createRng(),c=m.getRoot(),f.tridentSel)return f.tridentSel.moveToBookmark(t);o(!0)&&o()&&f.setRng(s)}else if(t.id)a("start"),a("end"),u&&(s=m.createRng(),s.setStart(r(u),h),s.setEnd(r(d),p),f.setRng(s));else if(t.name)f.select(m.select(t.name)[t.index]);else if(t.rng){if(s=t.rng,s.startContainer){l=f.dom.createRng();try{l.setStart(s.startContainer,s.startOffset),l.setEnd(s.endContainer,s.endOffset)}catch(g){}s=l}f.setRng(s)}},select:function(t,i){function n(t,i){var n=new o(t,t);do{if(3==t.nodeType&&0!==e.trim(t.nodeValue).length)return i?l.setStart(t,0):l.setEnd(t,t.nodeValue.length),void 0;if("BR"==t.nodeName)return i?l.setStartBefore(t):l.setEndBefore(t),void 0}while(t=i?n.next():n.prev())}var a,r=this,s=r.dom,l=s.createRng();return t&&(a=s.nodeIndex(t),l.setStart(t.parentNode,a),l.setEnd(t.parentNode,a+1),i&&(n(t,1),n(t)),r.setRng(l)),t},isCollapsed:function(){var e=this,t=e.getRng(),i=e.getSel();return!t||t.item?!1:t.compareEndPoints?0===t.compareEndPoints("StartToEnd",t):!i||t.collapsed},collapse:function(e){var t,i=this,n=i.getRng();n.item&&(t=n.item(0),n=i.win.document.body.createTextRange(),n.moveToElementText(t)),n.collapse(!!e),i.setRng(n)},getSel:function(){var e=this.win;return e.getSelection?e.getSelection():e.document.selection},getRng:function(t){var i,n,o,a=this,r=a.win.document;if(t&&a.tridentSel)return a.tridentSel.getRangeAt(0);try{(i=a.getSel())&&(n=i.rangeCount>0?i.getRangeAt(0):i.createRange?i.createRange():r.createRange())}catch(s){}return e.isIE&&!e.isIE11&&n&&n.setStart&&r.selection.createRange().item&&(o=r.selection.createRange().item(0),n=r.createRange(),n.setStartBefore(o),n.setEndAfter(o)),n||(n=r.createRange?r.createRange():r.body.createTextRange()),n.setStart&&9===n.startContainer.nodeType&&n.collapsed&&(o=a.dom.getRoot(),n.setStart(o,0),n.setEnd(o,0)),a.selectedRange&&a.explicitRange&&(0===n.compareBoundaryPoints(n.START_TO_START,a.selectedRange)&&0===n.compareBoundaryPoints(n.END_TO_END,a.selectedRange)?n=a.explicitRange:(a.selectedRange=null,a.explicitRange=null)),n},setRng:function(e,t){var i,n=this;if(n.tridentSel){if(e.cloneRange)try{return n.tridentSel.addRange(e),void 0}catch(o){}try{e.select()}catch(o){}}else if(i=n.getSel()){n.explicitRange=e;try{i.removeAllRanges()}catch(o){}i.addRange(e),t===!1&&i.extend&&(i.collapse(e.endContainer,e.endOffset),i.extend(e.startContainer,e.startOffset)),n.selectedRange=i.rangeCount>0?i.getRangeAt(0):null}},setNode:function(e){var t=this;return t.setContent(t.dom.getOuterHTML(e)),e},getNode:function(){function e(e,t){for(var i=e;e&&3===e.nodeType&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||i}var t,i=this,n=i.getRng(),o=(i.getSel(),n.startContainer),a=n.endContainer;return n?n.setStart?(t=n.commonAncestorContainer,!n.collapsed&&(n.startContainer==n.endContainer&&n.endOffset-n.startOffset<2&&n.startContainer.hasChildNodes()&&(t=n.startContainer.childNodes[n.startOffset]),3===o.nodeType&&3===a.nodeType&&(o=o.length===n.startOffset?e(o.nextSibling,!0):o.parentNode,a=0===n.endOffset?e(a.previousSibling,!1):a.parentNode,o&&o===a))?o:t&&3==t.nodeType?t.parentNode:t):n.item?n.item(0):n.parentElement():i.dom.getRoot()},getSelectedBlocks:function(e,t){var i,n,a,r=this,s=r.dom,l=[];if(i=s.getParent(e||r.getStart(),s.isBlock),n=s.getParent(t||r.getEnd(),s.isBlock),i&&l.push(i),i&&n&&i!=n){a=i;for(var c=new o(i,s.getRoot());(a=c.next())&&a!=n;)s.isBlock(a)&&l.push(a)}return n&&i!=n&&l.push(n),l},isForward:function(){var e,t,i=this.dom,n=this.getSel();return n&&null!=n.anchorNode&&null!=n.focusNode?(e=i.createRng(),e.setStart(n.anchorNode,n.anchorOffset),e.collapse(!0),t=i.createRng(),t.setStart(n.focusNode,n.focusOffset),t.collapse(!0),e.compareBoundaryPoints(e.START_TO_START,t)<=0):!0},normalize:function(){function t(e){function t(e,t){for(var i=new o(e,f.getParent(e.parentNode,f.isBlock)||m);e=i[t?"prev":"next"]();)if("BR"===e.nodeName)return!0}function s(e,t){var i,r;for(t=t||l,i=new o(t,f.getParent(t.parentNode,f.isBlock)||m);d=i[e?"prev":"next"]();){if(3===d.nodeType&&d.nodeValue.length>0)return l=d,c=e?d.nodeValue.length:0,n=!0,void 0;if(f.isBlock(d)||h[d.nodeName.toLowerCase()])return;r=d}a&&r&&(l=r,n=!0,c=0)}var l,c,u,d,h,p,f=r.dom,m=f.getRoot();if(l=i[(e?"start":"end")+"Container"],c=i[(e?"start":"end")+"Offset"],h=f.schema.getNonEmptyElements(),9===l.nodeType&&(l=f.getRoot(),c=0),l===m){if(e&&(d=l.childNodes[c>0?c-1:0],d&&(p=d.nodeName.toLowerCase(),h[d.nodeName]||"TABLE"==d.nodeName)))return;if(l.hasChildNodes()&&(l=l.childNodes[Math.min(!e&&c>0?c-1:c,l.childNodes.length-1)],c=0,l.hasChildNodes()&&!/TABLE/.test(l.nodeName))){d=l,u=new o(l,m);do{if(3===d.nodeType&&d.nodeValue.length>0){c=e?0:d.nodeValue.length,l=d,n=!0;break}if(h[d.nodeName.toLowerCase()]){c=f.nodeIndex(d),l=d.parentNode,"IMG"!=d.nodeName||e||c++,n=!0;break}}while(d=e?u.next():u.prev())}}a&&(3===l.nodeType&&0===c&&s(!0),1===l.nodeType&&(d=l.childNodes[c],!d||"BR"!==d.nodeName||t(d)||t(d,!0)||s(!0,l.childNodes[c]))),e&&!a&&3===l.nodeType&&c===l.nodeValue.length&&s(!1),n&&i["set"+(e?"Start":"End")](l,c)}var i,n,a,r=this;e.isIE||(i=r.getRng(),a=i.collapsed,t(!0),a||t(),n&&(a&&i.collapse(!0),r.setRng(i,r.isForward())))},selectorChanged:function(e,t){var i,o=this;return o.selectorChangedData||(o.selectorChangedData={},i={},o.editor.onNodeChange.addToTop(function(e,t,a){var r=o.dom,s=r.getParents(a,null,r.getRoot()),l={};n(o.selectorChangedData,function(e,t){n(s,function(o){return r.is(o,t)?(i[t]||(n(e,function(e){e(!0,{node:o,selector:t,parents:s})}),i[t]=e),l[t]=e,!1):void 0})}),n(i,function(e,t){l[t]||(delete i[t],n(e,function(e){e(!1,{node:a,selector:t,parents:s})}))})})),o.selectorChangedData[e]||(o.selectorChangedData[e]=[]),o.selectorChangedData[e].push(t),o},scrollIntoView:function(e){var t,i,n=this,o=n.dom;i=o.getViewPort(n.editor.getWin()),t=o.getPos(e).y,(t<i.y||t+25>i.y+i.h)&&n.editor.getWin().scrollTo(0,t<i.y?t:t-i.h+25)},destroy:function(t){var i=this;i.win=null,t||e.removeUnload(i.destroy)},_fixIESelection:function(){function e(e,t){var i=l.createTextRange();try{i.moveToPoint(e,t)}catch(n){i=null}return i}function t(t){var n;t.button?(n=e(t.x,t.y),n&&(n.compareEndPoints("StartToStart",o)>0?n.setEndPoint("StartToStart",o):n.setEndPoint("EndToEnd",o),n.select())):i()}function i(){var e=s.selection.createRange();o&&!e.item&&0===e.compareEndPoints("StartToEnd",e)&&o.select(),r.unbind(s,"mouseup",i),r.unbind(s,"mousemove",t),o=n=0}var n,o,a,r=this.dom,s=r.doc,l=s.body;s.documentElement.unselectable=!0,r.bind(s,["mousedown","contextmenu"],function(l){if("HTML"===l.target.nodeName){if(n&&i(),a=s.documentElement,a.scrollHeight>a.clientHeight)return;n=1,o=e(l.x,l.y),o&&(r.bind(s,"mouseup",i),r.bind(s,"mousemove",t),r.win.focus(),o.select())}})}})}(tinymce),function(e){e.dom.Serializer=function(t,i,n){var o,a,r,s=e.isIE,l=e.each;return t.apply_source_formatting||(t.indent=!1),i=i||e.DOM,n=n||new e.html.Schema(t),t.entity_encoding=t.entity_encoding||"named",t.remove_trailing_brs="remove_trailing_brs"in t?t.remove_trailing_brs:!0,o=new e.util.Dispatcher(self),a=new e.util.Dispatcher(self),r=new e.html.DomParser(t,n),r.addAttributeFilter("src,href,style",function(e,n){for(var o,a,r,s=e.length,l="data-mce-"+n,c=t.url_converter,u=t.url_converter_scope;s--;)o=e[s],a=o.attributes.map[l],a!==r?(o.attr(n,a.length>0?a:null),o.attr(l,null)):(a=o.attributes.map[n],"style"===n?a=i.serializeStyle(i.parseStyle(a),o.name):c&&(a=c.call(u,a,n,o.name)),o.attr(n,a.length>0?a:null))}),r.addAttributeFilter("class",function(e){for(var t,i,n=e.length;n--;)t=e[n],i=t.attr("class").replace(/(?:^|\s)mce(Item\w+|Selected)(?!\S)/g,""),t.attr("class",i.length>0?i:null)}),r.addAttributeFilter("data-mce-type",function(e,t,i){for(var n,o=e.length;o--;)n=e[o],"bookmark"!==n.attributes.map["data-mce-type"]||i.cleanup||n.remove()}),r.addAttributeFilter("data-mce-expando",function(e,t){for(var i=e.length;i--;)e[i].attr(t,null)}),r.addNodeFilter("noscript",function(t){for(var i,n=t.length;n--;)i=t[n].firstChild,i&&(i.value=e.html.Entities.decode(i.value))}),r.addNodeFilter("script,style",function(e,t){function i(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")}for(var n,o,a=e.length;a--;)n=e[a],o=n.firstChild?n.firstChild.value:"","script"===t?(n.attr("type",(n.attr("type")||"text/javascript").replace(/^mce\-/,"")),o.length>0&&(n.firstChild.value="// <![CDATA[\n"+i(o)+"\n// ]]>")):o.length>0&&(n.firstChild.value="<!--\n"+i(o)+"\n-->")}),r.addNodeFilter("#comment",function(e){for(var t,i=e.length;i--;)t=e[i],0===t.value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))}),r.addNodeFilter("xml:namespace,input",function(e,t){for(var i,n=e.length;n--;)i=e[n],7===i.type?i.remove():1===i.type&&("input"!==t||"type"in i.attributes.map||i.attr("type","text"))}),t.fix_list_elements&&r.addNodeFilter("ul,ol",function(e){for(var t,i,n=e.length;n--;)t=e[n],i=t.parent,("ul"===i.name||"ol"===i.name)&&t.prev&&"li"===t.prev.name&&t.prev.append(t)}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style",function(e,t){for(var i=e.length;i--;)e[i].attr(t,null)}),{schema:n,addNodeFilter:r.addNodeFilter,addAttributeFilter:r.addAttributeFilter,onPreProcess:o,onPostProcess:a,serialize:function(c,u){var d,h,p,f,m;return s&&i.select("script,style,select,map").length>0?(m=c.innerHTML,c=c.cloneNode(!1),i.setHTML(c,m)):c=c.cloneNode(!0),d=c.ownerDocument.implementation,d.createHTMLDocument&&(h=d.createHTMLDocument(""),l("BODY"==c.nodeName?c.childNodes:[c],function(e){h.body.appendChild(h.importNode(e,!0))}),c="BODY"!=c.nodeName?h.body.firstChild:h.body,p=i.doc,i.doc=h),u=u||{},u.format=u.format||"html",u.no_events||(u.node=c,o.dispatch(self,u)),f=new e.html.Serializer(t,n),u.content=f.serialize(r.parse(e.trim(u.getInner?c.innerHTML:i.getOuterHTML(c)),u)),u.cleanup||(u.content=u.content.replace(/\uFEFF/g,"")),u.no_events||a.dispatch(self,u),p&&(i.doc=p),u.node=null,u.content},addRules:function(e){n.addValidElements(e)},setRules:function(e){n.setValidElements(e)
|
79
|
+
}}}}(tinymce),function(e){e.dom.ScriptLoader=function(){function t(t,i){function n(){c.remove(l),a&&(a.onreadystatechange=a.onload=a=null),i()}function o(){"undefined"!=typeof console&&console.log&&console.log("Failed to load: "+t)}var a,r,s,l,c=e.DOM;return l=c.uniqueId(),e.isIE6&&(r=new e.util.URI(t),s=location,r.host==s.hostname&&r.port==s.port&&r.protocol+":"==s.protocol&&"file"!=r.protocol.toLowerCase())?(e.util.XHR.send({url:e._addVer(r.getURI()),success:function(e){var t=c.create("script",{type:"text/javascript"});t.text=e,document.getElementsByTagName("head")[0].appendChild(t),c.remove(t),n()},error:o}),void 0):(a=document.createElement("script"),a.id=l,a.type="text/javascript",a.src=e._addVer(t),(!e.isIE||e.isIE11)&&(a.onload=n),a.onerror=o,e.isOpera||(a.onreadystatechange=function(){var e=a.readyState;("complete"==e||"loaded"==e)&&n()}),(document.getElementsByTagName("head")[0]||document.body).appendChild(a),void 0)}var i,n=0,o=1,a=2,r={},s=[],l={},c=[],u=0;this.isDone=function(e){return r[e]==a},this.markDone=function(e){r[e]=a},this.add=this.load=function(e,t,o){var a=r[e];a==i&&(s.push(e),r[e]=n),t&&(l[e]||(l[e]=[]),l[e].push({func:t,scope:o||this}))},this.loadQueue=function(e,t){this.loadScripts(s,e,t)},this.loadScripts=function(n,s,d){function h(t){e.each(l[t],function(e){e.func.call(e.scope)}),l[t]=i}var p;c.push({func:s,scope:d||this}),(p=function(){var i=e.grep(n);n.length=0,e.each(i,function(e){return r[e]==a?(h(e),void 0):(r[e]!=o&&(r[e]=o,u++,t(e,function(){r[e]=a,u--,h(e),p()})),void 0)}),u||(e.each(c,function(e){e.func.call(e.scope)}),c.length=0)})()}},e.ScriptLoader=new e.dom.ScriptLoader}(tinymce),function(e){e.dom.RangeUtils=function(t){this.walk=function(i,n){function o(e){var t;return t=e[0],3===t.nodeType&&t===m&&g>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===b&&e.length>0&&t===v&&3===t.nodeType&&e.splice(e.length-1,1),e}function a(e,t,i){for(var n=[];e&&e!=i;e=e[t])n.push(e);return n}function r(e,t){do{if(e.parentNode==t)return e;e=e.parentNode}while(e)}function s(e,t,i){var r=i?"nextSibling":"previousSibling";for(d=e,h=d.parentNode;d&&d!=t;d=h)h=d.parentNode,p=a(d==e?d:d[r],r),p.length&&(i||p.reverse(),n(o(p)))}var l,c,u,d,h,p,f,m=i.startContainer,g=i.startOffset,v=i.endContainer,b=i.endOffset;if(f=t.select("td.mceSelected,th.mceSelected"),f.length>0)return e.each(f,function(e){n([e])}),void 0;if(1==m.nodeType&&m.hasChildNodes()&&(m=m.childNodes[g]),1==v.nodeType&&v.hasChildNodes()&&(v=v.childNodes[Math.min(b-1,v.childNodes.length-1)]),m==v)return n(o([m]));for(l=t.findCommonAncestor(m,v),d=m;d;d=d.parentNode){if(d===v)return s(m,l,!0);if(d===l)break}for(d=v;d;d=d.parentNode){if(d===m)return s(v,l);if(d===l)break}c=r(m,l)||m,u=r(v,l)||v,s(m,c,!0),p=a(c==m?c:c.nextSibling,"nextSibling",u==v?u.nextSibling:u),p.length&&n(o(p)),s(v,u)},this.split=function(e){function t(e,t){return e.splitText(t)}var i=e.startContainer,n=e.startOffset,o=e.endContainer,a=e.endOffset;return i==o&&3==i.nodeType?n>0&&n<i.nodeValue.length&&(o=t(i,n),i=o.previousSibling,a>n?(a-=n,i=o=t(o,a).previousSibling,a=o.nodeValue.length,n=0):a=0):(3==i.nodeType&&n>0&&n<i.nodeValue.length&&(i=t(i,n),n=0),3==o.nodeType&&a>0&&a<o.nodeValue.length&&(o=t(o,a).previousSibling,a=o.nodeValue.length)),{startContainer:i,startOffset:n,endContainer:o,endOffset:a}}},e.dom.RangeUtils.compareRanges=function(e,t){if(e&&t){if(!e.item&&!e.duplicate)return e.startContainer==t.startContainer&&e.startOffset==t.startOffset;if(e.item&&t.item&&e.item(0)===t.item(0))return!0;if(e.isEqual&&t.isEqual&&t.isEqual(e))return!0}return!1}}(tinymce),function(e){var t=e.dom.Event,i=e.each;e.create("tinymce.ui.KeyboardNavigation",{KeyboardNavigation:function(n,o){var a,r,s,l,c,u=this,d=n.root,h=n.items,p=n.enableUpDown,f=n.enableLeftRight||!n.enableUpDown,m=n.excludeFromTabOrder;o=o||e.DOM,a=function(e){c=e.target.id},r=function(e){o.setAttrib(e.target.id,"tabindex","-1")},l=function(){var e=o.get(c);o.setAttrib(e,"tabindex","0"),e.focus()},u.focus=function(){o.get(c).focus()},u.destroy=function(){i(h,function(e){var t=o.get(e.id);o.unbind(t,"focus",a),o.unbind(t,"blur",r)});var e=o.get(d);o.unbind(e,"focus",l),o.unbind(e,"keydown",s),h=o=d=u.focus=a=r=s=l=null,u.destroy=function(){}},u.moveFocus=function(e,a){{var r,s=-1;u.controls}c&&(i(h,function(e,t){return e.id===c?(s=t,!1):void 0}),s+=e,0>s?s=h.length-1:s>=h.length&&(s=0),r=h[s],o.setAttrib(c,"tabindex","-1"),o.setAttrib(r.id,"tabindex","0"),o.get(r.id).focus(),n.actOnFocus&&n.onAction(r.id),a&&t.cancel(a))},s=function(e){var i=37,o=39,a=38,r=40,s=27,l=14,d=13,h=32;switch(e.keyCode){case i:f&&u.moveFocus(-1),t.cancel(e);break;case o:f&&u.moveFocus(1),t.cancel(e);break;case a:p&&u.moveFocus(-1),t.cancel(e);break;case r:p&&u.moveFocus(1),t.cancel(e);break;case s:n.onCancel&&(n.onCancel(),t.cancel(e));break;case l:case d:case h:n.onAction&&(n.onAction(c),t.cancel(e))}},i(h,function(e,t){var i,n;e.id||(e.id=o.uniqueId("_mce_item_")),n=o.get(e.id),m?(o.bind(n,"blur",r),i="-1"):i=0===t?"0":"-1",n.setAttribute("tabindex",i),o.bind(n,"focus",a)}),h[0]&&(c=h[0].id),o.setAttrib(d,"tabindex","-1");var g=o.get(d);o.bind(g,"focus",l),o.bind(g,"keydown",s)}})}(tinymce),function(e){var t=e.DOM,i=e.is;e.create("tinymce.ui.Control",{Control:function(t,i,n){this.id=t,this.settings=i=i||{},this.rendered=!1,this.onRender=new e.util.Dispatcher(this),this.classPrefix="",this.scope=i.scope||this,this.disabled=0,this.active=0,this.editor=n},setAriaProperty:function(e,i){var n=t.get(this.id+"_aria")||t.get(this.id);n&&t.setAttrib(n,"aria-"+e,!!i)},focus:function(){t.get(this.id).focus()},setDisabled:function(e){e!=this.disabled&&(this.setAriaProperty("disabled",e),this.setState("Disabled",e),this.setState("Enabled",!e),this.disabled=e)},isDisabled:function(){return this.disabled},setActive:function(e){e!=this.active&&(this.setState("Active",e),this.active=e,this.setAriaProperty("pressed",e))},isActive:function(){return this.active},setState:function(e,i){var n=t.get(this.id);e=this.classPrefix+e,i?t.addClass(n,e):t.removeClass(n,e)},isRendered:function(){return this.rendered},renderHTML:function(){},renderTo:function(e){t.setHTML(e,this.renderHTML())},postRender:function(){var e,t=this;i(t.disabled)&&(e=t.disabled,t.disabled=-1,t.setDisabled(e)),i(t.active)&&(e=t.active,t.active=-1,t.setActive(e))},remove:function(){t.remove(this.id),this.destroy()},destroy:function(){e.dom.Event.clear(this.id)}})}(tinymce),tinymce.create("tinymce.ui.Container:tinymce.ui.Control",{Container:function(e,t,i){this.parent(e,t,i),this.controls=[],this.lookup={}},add:function(e){return this.lookup[e.id]=e,this.controls.push(e),e},get:function(e){return this.lookup[e]}}),tinymce.create("tinymce.ui.Separator:tinymce.ui.Control",{Separator:function(e,t){this.parent(e,t),this.classPrefix="mceSeparator",this.setDisabled(!0)},renderHTML:function(){return tinymce.DOM.createHTML("span",{"class":this.classPrefix,role:"separator","aria-orientation":"vertical",tabindex:"-1"})}}),function(e){{var t=e.is;e.DOM,e.each,e.walk}e.create("tinymce.ui.MenuItem:tinymce.ui.Control",{MenuItem:function(e,t){this.parent(e,t),this.classPrefix="mceMenuItem"},setSelected:function(e){this.setState("Selected",e),this.setAriaProperty("checked",!!e),this.selected=e},isSelected:function(){return this.selected},postRender:function(){var e=this;e.parent(),t(e.selected)&&e.setSelected(e.selected)}})}(tinymce),function(e){var t=(e.is,e.DOM),i=(e.each,e.walk);e.create("tinymce.ui.Menu:tinymce.ui.MenuItem",{Menu:function(t,i){var n=this;n.parent(t,i),n.items={},n.collapsed=!1,n.menuCount=0,n.onAddItem=new e.util.Dispatcher(this)},expand:function(e){var t=this;e&&i(t,function(e){e.expand&&e.expand()},"items",t),t.collapsed=!1},collapse:function(e){var t=this;e&&i(t,function(e){e.collapse&&e.collapse()},"items",t),t.collapsed=!0},isCollapsed:function(){return this.collapsed},add:function(i){return i.settings||(i=new e.ui.MenuItem(i.id||t.uniqueId(),i)),this.onAddItem.dispatch(this,i),this.items[i.id]=i},addSeparator:function(){return this.add({separator:!0})},addMenu:function(e){return e.collapse||(e=this.createMenu(e)),this.menuCount++,this.add(e)},hasMenus:function(){return 0!==this.menuCount},remove:function(e){delete this.items[e.id]},removeAll:function(){var e=this;i(e,function(e){e.removeAll?e.removeAll():e.remove(),e.destroy()},"items",e),e.items={}},createMenu:function(i){var n=new e.ui.Menu(i.id||t.uniqueId(),i);return n.onAddItem.add(this.onAddItem.dispatch,this.onAddItem),n}})}(tinymce),function(e){var t=e.is,i=e.DOM,n=e.each,o=e.dom.Event,a=e.dom.Element;e.create("tinymce.ui.DropMenu:tinymce.ui.Menu",{DropMenu:function(n,o){o=o||{},o.container=o.container||i.doc.body,o.offset_x=o.offset_x||0,o.offset_y=o.offset_y||0,o.vp_offset_x=o.vp_offset_x||0,o.vp_offset_y=o.vp_offset_y||0,t(o.icons)&&!o.icons&&(o["class"]+=" mceNoIcons"),this.parent(n,o),this.onShowMenu=new e.util.Dispatcher(this),this.onHideMenu=new e.util.Dispatcher(this),this.classPrefix="mceMenu"},createMenu:function(t){var n,o=this,a=o.settings;return t.container=t.container||a.container,t.parent=o,t.constrain=t.constrain||a.constrain,t["class"]=t["class"]||a["class"],t.vp_offset_x=t.vp_offset_x||a.vp_offset_x,t.vp_offset_y=t.vp_offset_y||a.vp_offset_y,t.keyboard_focus=a.keyboard_focus,n=new e.ui.DropMenu(t.id||i.uniqueId(),t),n.onAddItem.add(o.onAddItem.dispatch,o.onAddItem),n},focus:function(){var e=this;e.keyboardNav&&e.keyboardNav.focus()},update:function(){var e,t,n=this,o=n.settings,a=i.get("menu_"+n.id+"_tbl"),r=i.get("menu_"+n.id+"_co");e=o.max_width?Math.min(a.offsetWidth,o.max_width):a.offsetWidth,t=o.max_height?Math.min(a.offsetHeight,o.max_height):a.offsetHeight,i.boxModel?n.element.setStyles({width:e,height:t}):n.element.setStyles({width:e+2,height:t+2}),o.max_width&&i.setStyle(r,"width",e),o.max_height&&(i.setStyle(r,"height",t),a.clientHeight<o.max_height&&i.setStyle(r,"overflow","hidden"))},showMenu:function(t,r,s){var l,c,u,d,h,p,f=this,m=f.settings,g=i.getViewPort(),v=2,b=f.classPrefix;f.collapse(1),f.isMenuVisible||(f.rendered?l=i.get("menu_"+f.id):(l=i.add(f.settings.container,f.renderNode()),n(f.items,function(e){e.postRender()}),f.element=new a("menu_"+f.id,{blocker:1,container:m.container})),e.isOpera||i.setStyles(l,{left:-65535,top:-65535}),i.show(l),f.update(),t+=m.offset_x||0,r+=m.offset_y||0,g.w-=4,g.h-=4,m.constrain&&(c=l.clientWidth-v,u=l.clientHeight-v,d=g.x+g.w,h=g.y+g.h,t+m.vp_offset_x+c>d&&(t=s?s-c:Math.max(0,d-m.vp_offset_x-c)),r+m.vp_offset_y+u>h&&(r=Math.max(0,h-m.vp_offset_y-u))),i.setStyles(l,{left:t,top:r}),f.element.update(),f.isMenuVisible=1,f.mouseClickFunc=o.add(l,"click",function(e){var t;if(e=e.target,e&&(e=i.getParent(e,"tr"))&&!i.hasClass(e,b+"ItemSub")){if(t=f.items[e.id],t.isDisabled())return;for(p=f;p;)p.hideMenu&&p.hideMenu(),p=p.settings.parent;return t.settings.onclick&&t.settings.onclick(e),!1}}),f.hasMenus()&&(f.mouseOverFunc=o.add(l,"mouseover",function(e){var t,n;if(e=e.target,e&&(e=i.getParent(e,"tr"))){if(t=f.items[e.id],f.lastMenu&&f.lastMenu.collapse(1),t.isDisabled())return;e&&i.hasClass(e,b+"ItemSub")&&(n=i.getRect(e),t.showMenu(n.x+n.w-v,n.y-v,n.x),f.lastMenu=t,i.addClass(i.get(t.id).firstChild,b+"ItemActive"))}})),o.add(l,"keydown",f._keyHandler,f),f.onShowMenu.dispatch(f),m.keyboard_focus&&f._setupKeyboardNav())},hideMenu:function(e){var t,n=this,a=i.get("menu_"+n.id);n.isMenuVisible&&(n.keyboardNav&&n.keyboardNav.destroy(),o.remove(a,"mouseover",n.mouseOverFunc),o.remove(a,"click",n.mouseClickFunc),o.remove(a,"keydown",n._keyHandler),i.hide(a),n.isMenuVisible=0,e||n.collapse(1),n.element&&n.element.hide(),(t=i.get(n.id))&&i.removeClass(t.firstChild,n.classPrefix+"ItemActive"),n.onHideMenu.dispatch(n))},add:function(e){var t,n=this;return e=n.parent(e),n.isRendered&&(t=i.get("menu_"+n.id))&&n._add(i.select("tbody",t)[0],e),e},collapse:function(e){this.parent(e),this.hideMenu(1)},remove:function(e){return i.remove(e.id),this.destroy(),this.parent(e)},destroy:function(){var e=this,t=i.get("menu_"+e.id);e.keyboardNav&&e.keyboardNav.destroy(),o.remove(t,"mouseover",e.mouseOverFunc),o.remove(i.select("a",t),"focus",e.mouseOverFunc),o.remove(t,"click",e.mouseClickFunc),o.remove(t,"keydown",e._keyHandler),e.element&&e.element.remove(),i.remove(t)},renderNode:function(){var e,t,o,r,s=this,l=s.settings;return r=i.create("div",{role:"listbox",id:"menu_"+s.id,"class":l["class"],style:"position:absolute;left:0;top:0;z-index:200000;outline:0"}),s.settings.parent&&i.setAttrib(r,"aria-parent","menu_"+s.settings.parent.id),o=i.add(r,"div",{role:"presentation",id:"menu_"+s.id+"_co","class":s.classPrefix+(l["class"]?" "+l["class"]:"")}),s.element=new a("menu_"+s.id,{blocker:1,container:l.container}),l.menu_line&&i.add(o,"span",{"class":s.classPrefix+"Line"}),e=i.add(o,"table",{role:"presentation",id:"menu_"+s.id+"_tbl",border:0,cellPadding:0,cellSpacing:0}),t=i.add(e,"tbody"),n(s.items,function(e){s._add(t,e)}),s.rendered=!0,r},_setupKeyboardNav:function(){var t,n,o=this;t=i.get("menu_"+o.id),n=i.select("a[role=option]","menu_"+o.id),n.splice(0,0,t),o.keyboardNav=new e.ui.KeyboardNavigation({root:"menu_"+o.id,items:n,onCancel:function(){o.hideMenu()},enableUpDown:!0}),t.focus()},_keyHandler:function(e){var t=this;switch(e.keyCode){case 37:t.settings.parent&&(t.hideMenu(),t.settings.parent.focus(),o.cancel(e));break;case 39:t.mouseOverFunc&&t.mouseOverFunc(e)}},_add:function(e,t){var n,o,a,r,s,l=t.settings,c=this.classPrefix;return l.separator?(a=i.add(e,"tr",{id:t.id,"class":c+"ItemSeparator"}),i.add(a,"td",{"class":c+"ItemSeparator"}),(n=a.previousSibling)&&i.addClass(n,"mceLast"),void 0):(n=a=i.add(e,"tr",{id:t.id,"class":c+"Item "+c+"ItemEnabled"}),n=r=i.add(n,l.titleItem?"th":"td"),n=o=i.add(n,"a",{id:t.id+"_aria",role:l.titleItem?"presentation":"option",href:"javascript:;",onclick:"return false;",onmousedown:"return false;"}),l.parent&&(i.setAttrib(o,"aria-haspopup","true"),i.setAttrib(o,"aria-owns","menu_"+t.id)),i.addClass(r,l["class"]),s=i.add(n,"span",{"class":"mceIcon"+(l.icon?" mce_"+l.icon:"")}),l.icon_src&&i.add(s,"img",{src:l.icon_src}),n=i.add(n,l.element||"span",{"class":"mceText",title:t.settings.title},t.settings.title),t.settings.style&&("function"==typeof t.settings.style&&(t.settings.style=t.settings.style()),i.setAttrib(n,"style",t.settings.style)),1==e.childNodes.length&&i.addClass(a,"mceFirst"),(n=a.previousSibling)&&i.hasClass(n,c+"ItemSeparator")&&i.addClass(a,"mceFirst"),t.collapse&&i.addClass(a,c+"ItemSub"),(n=a.previousSibling)&&i.removeClass(n,"mceLast"),i.addClass(a,"mceLast"),void 0)}})}(tinymce),function(e){var t=e.DOM;e.create("tinymce.ui.Button:tinymce.ui.Control",{Button:function(e,t,i){this.parent(e,t,i),this.classPrefix="mceButton"},renderHTML:function(){var e,i,n=this.classPrefix,o=this.settings;return i=t.encode(o.label||""),e='<a role="button" id="'+this.id+'" href="javascript:;" class="'+n+" "+n+"Enabled "+o["class"]+(i?" "+n+"Labeled":"")+'" onmousedown="return false;" onclick="return false;" aria-labelledby="'+this.id+'_voice" title="'+t.encode(o.title)+'">',e+=!o.image||this.editor&&this.editor.forcedHighContrastMode?'<span class="mceIcon '+o["class"]+'"></span>'+(i?'<span class="'+n+'Label">'+i+"</span>":""):'<span class="mceIcon '+o["class"]+'"><img class="mceIcon" src="'+o.image+'" alt="'+t.encode(o.title)+'" /></span>'+(i?'<span class="'+n+'Label">'+i+"</span>":""),e+='<span class="mceVoiceLabel mceIconOnly" style="display: none;" id="'+this.id+'_voice">'+o.title+"</span>",e+="</a>"},postRender:function(){var t,i=this,n=i.settings;e.isIE&&i.editor&&e.dom.Event.add(i.id,"mousedown",function(){var e=i.editor.selection.getNode().nodeName;t="IMG"===e?i.editor.selection.getBookmark():null}),e.dom.Event.add(i.id,"click",function(o){return i.isDisabled()?void 0:(e.isIE&&i.editor&&null!==t&&i.editor.selection.moveToBookmark(t),n.onclick.call(n.scope,o))}),e.dom.Event.add(i.id,"keydown",function(t){return i.isDisabled()||t.keyCode!=e.VK.SPACEBAR?void 0:(e.dom.Event.cancel(t),n.onclick.call(n.scope,t))})}})}(tinymce),function(e){var t,i=e.DOM,n=e.dom.Event,o=e.each,a=e.util.Dispatcher;e.create("tinymce.ui.ListBox:tinymce.ui.Control",{ListBox:function(t,i,n){var o=this;o.parent(t,i,n),o.items=[],o.onChange=new a(o),o.onPostRender=new a(o),o.onAdd=new a(o),o.onRenderMenu=new e.util.Dispatcher(this),o.classPrefix="mceListBox",o.marked={}},select:function(e){var i,n,a=this;return a.marked={},e==t?a.selectByIndex(-1):(n=e&&"function"==typeof e?e:function(t){return t==e},e!=a.selectedValue&&(o(a.items,function(e,t){return n(e.value)?(i=1,a.selectByIndex(t),!1):void 0}),i||a.selectByIndex(-1)),void 0)},selectByIndex:function(e){var t,n,o,a=this;a.marked={},e!=a.selectedIndex&&(t=i.get(a.id+"_text"),o=i.get(a.id+"_voiceDesc"),n=a.items[e],n?(a.selectedValue=n.value,a.selectedIndex=e,i.setHTML(t,i.encode(n.title)),i.setHTML(o,a.settings.title+" - "+n.title),i.removeClass(t,"mceTitle"),i.setAttrib(a.id,"aria-valuenow",n.title)):(i.setHTML(t,i.encode(a.settings.title)),i.setHTML(o,i.encode(a.settings.title)),i.addClass(t,"mceTitle"),a.selectedValue=a.selectedIndex=null,i.setAttrib(a.id,"aria-valuenow",a.settings.title)),t=0)},mark:function(e){this.marked[e]=!0},add:function(t,i,n){var o=this;n=n||{},n=e.extend(n,{title:t,value:i}),o.items.push(n),o.onAdd.dispatch(o,n)},getLength:function(){return this.items.length},renderHTML:function(){var e="",t=this,n=t.settings,o=t.classPrefix;return e='<span role="listbox" aria-haspopup="true" aria-labelledby="'+t.id+'_voiceDesc" aria-describedby="'+t.id+'_voiceDesc"><table role="presentation" tabindex="0" id="'+t.id+'" cellpadding="0" cellspacing="0" class="'+o+" "+o+"Enabled"+(n["class"]?" "+n["class"]:"")+'"><tbody><tr>',e+="<td>"+i.createHTML("span",{id:t.id+"_voiceDesc","class":"voiceLabel",style:"display:none;"},t.settings.title),e+=i.createHTML("a",{id:t.id+"_text",tabindex:-1,href:"javascript:;","class":"mceText",onclick:"return false;",onmousedown:"return false;"},i.encode(t.settings.title))+"</td>",e+="<td>"+i.createHTML("a",{id:t.id+"_open",tabindex:-1,href:"javascript:;","class":"mceOpen",onclick:"return false;",onmousedown:"return false;"},'<span><span style="display:none;" class="mceIconOnly" aria-hidden="true">▼</span></span>')+"</td>",e+="</tr></tbody></table></span>"},showMenu:function(){var t,a,r=this,s=i.get(this.id);if(!r.isDisabled()&&0!==r.items.length){if(r.menu&&r.menu.isMenuVisible)return r.hideMenu();r.isMenuRendered||(r.renderMenu(),r.isMenuRendered=!0),t=i.getPos(s),a=r.menu,a.settings.offset_x=t.x,a.settings.offset_y=t.y,a.settings.keyboard_focus=!e.isOpera,o(r.items,function(e){a.items[e.id]&&a.items[e.id].setSelected(0)}),o(r.items,function(e){a.items[e.id]&&r.marked[e.value]&&a.items[e.id].setSelected(1),e.value===r.selectedValue&&a.items[e.id].setSelected(1)}),a.showMenu(0,s.clientHeight),n.add(i.doc,"mousedown",r.hideMenu,r),i.addClass(r.id,r.classPrefix+"Selected")}},hideMenu:function(e){var t=this;if(t.menu&&t.menu.isMenuVisible){if(i.removeClass(t.id,t.classPrefix+"Selected"),e&&"mousedown"==e.type&&(e.target.id==t.id+"_text"||e.target.id==t.id+"_open"))return;e&&i.getParent(e.target,".mceMenu")||(i.removeClass(t.id,t.classPrefix+"Selected"),n.remove(i.doc,"mousedown",t.hideMenu,t),t.menu.hideMenu())}},renderMenu:function(){var e,n=this;e=n.settings.control_manager.createDropMenu(n.id+"_menu",{menu_line:1,"class":n.classPrefix+"Menu mceNoIcons",max_width:250,max_height:150}),e.onHideMenu.add(function(){n.hideMenu(),n.focus()}),e.add({title:n.settings.title,"class":"mceMenuItemTitle",onclick:function(){n.settings.onselect("")!==!1&&n.select("")}}),o(n.items,function(o){o.value===t?e.add({title:o.title,role:"option","class":"mceMenuItemTitle",onclick:function(){n.settings.onselect("")!==!1&&n.select("")}}):(o.id=i.uniqueId(),o.role="option",o.onclick=function(){n.settings.onselect(o.value)!==!1&&n.select(o.value)},e.add(o))}),n.onRenderMenu.dispatch(n,e),n.menu=e},postRender:function(){var t=this,o=t.classPrefix;n.add(t.id,"click",t.showMenu,t),n.add(t.id,"keydown",function(e){32==e.keyCode&&(t.showMenu(e),n.cancel(e))}),n.add(t.id,"focus",function(){t._focused||(t.keyDownHandler=n.add(t.id,"keydown",function(e){40==e.keyCode&&(t.showMenu(),n.cancel(e))}),t.keyPressHandler=n.add(t.id,"keypress",function(e){var i;13==e.keyCode&&(i=t.selectedValue,t.selectedValue=null,n.cancel(e),t.settings.onselect(i))})),t._focused=1}),n.add(t.id,"blur",function(){n.remove(t.id,"keydown",t.keyDownHandler),n.remove(t.id,"keypress",t.keyPressHandler),t._focused=0}),(e.isIE6||!i.boxModel)&&(n.add(t.id,"mouseover",function(){i.hasClass(t.id,o+"Disabled")||i.addClass(t.id,o+"Hover")}),n.add(t.id,"mouseout",function(){i.hasClass(t.id,o+"Disabled")||i.removeClass(t.id,o+"Hover")})),t.onPostRender.dispatch(t,i.get(t.id))},destroy:function(){this.parent(),n.clear(this.id+"_text"),n.clear(this.id+"_open")}})}(tinymce),function(e){{var t,i=e.DOM,n=e.dom.Event,o=e.each;e.util.Dispatcher}e.create("tinymce.ui.NativeListBox:tinymce.ui.ListBox",{NativeListBox:function(e,t){this.parent(e,t),this.classPrefix="mceNativeListBox"},setDisabled:function(e){i.get(this.id).disabled=e,this.setAriaProperty("disabled",e)},isDisabled:function(){return i.get(this.id).disabled},select:function(e){var i,n,a=this;return e==t?a.selectByIndex(-1):(n=e&&"function"==typeof e?e:function(t){return t==e},e!=a.selectedValue&&(o(a.items,function(e,t){return n(e.value)?(i=1,a.selectByIndex(t),!1):void 0}),i||a.selectByIndex(-1)),void 0)},selectByIndex:function(e){i.get(this.id).selectedIndex=e+1,this.selectedValue=this.items[e]?this.items[e].value:null},add:function(e,t,n){var o,a=this;n=n||{},n.value=t,a.isRendered()&&i.add(i.get(this.id),"option",n,e),o={title:e,value:t,attribs:n},a.items.push(o),a.onAdd.dispatch(a,o)},getLength:function(){return this.items.length},renderHTML:function(){var e,t=this;return e=i.createHTML("option",{value:""},"-- "+t.settings.title+" --"),o(t.items,function(t){e+=i.createHTML("option",{value:t.value},t.title)}),e=i.createHTML("select",{id:t.id,"class":"mceNativeListBox","aria-labelledby":t.id+"_aria"},e),e+=i.createHTML("span",{id:t.id+"_aria",style:"display: none"},t.settings.title)},postRender:function(){function e(e){var t=o.items[e.target.selectedIndex-1];t&&(t=t.value)&&(o.onChange.dispatch(o,t),o.settings.onselect&&o.settings.onselect(t))}var t,o=this,a=!0;o.rendered=!0,n.add(o.id,"change",e),n.add(o.id,"keydown",function(i){var r,s=38,l=40,c=13,u=32;return n.remove(o.id,"change",t),a=!1,r=n.add(o.id,"blur",function(){a||(a=!0,n.add(o.id,"change",e),n.remove(o.id,"blur",r))}),i.keyCode==c||i.keyCode==u?(e(i),n.cancel(i)):((i.keyCode==l||i.keyCode==s)&&i.stopImmediatePropagation(),void 0)}),o.onPostRender.dispatch(o,i.get(o.id))}})}(tinymce),function(e){{var t=e.DOM,i=e.dom.Event;e.each}e.create("tinymce.ui.MenuButton:tinymce.ui.Button",{MenuButton:function(i,n,o){this.parent(i,n,o),this.onRenderMenu=new e.util.Dispatcher(this),n.menu_container=n.menu_container||t.doc.body},showMenu:function(){var e,n,o,a=this,r=t.get(a.id);if(!a.isDisabled()){if(a.isMenuRendered||(a.renderMenu(),a.isMenuRendered=!0),a.isMenuVisible)return a.hideMenu();e=t.getPos(a.settings.menu_container),n=t.getPos(r),o=a.menu,o.settings.offset_x=n.x,o.settings.offset_y=n.y,o.settings.vp_offset_x=n.x,o.settings.vp_offset_y=n.y,o.settings.keyboard_focus=a._focused,o.showMenu(0,r.firstChild.clientHeight),i.add(t.doc,"mousedown",a.hideMenu,a),a.setState("Selected",1),a.isMenuVisible=1}},renderMenu:function(){var e,t=this;e=t.settings.control_manager.createDropMenu(t.id+"_menu",{menu_line:1,"class":this.classPrefix+"Menu",icons:t.settings.icons}),e.onHideMenu.add(function(){t.hideMenu(),t.focus()}),t.onRenderMenu.dispatch(t,e),t.menu=e},hideMenu:function(e){var n=this;e&&"mousedown"==e.type&&t.getParent(e.target,function(e){return e.id===n.id||e.id===n.id+"_open"})||(e&&t.getParent(e.target,".mceMenu")||(n.setState("Selected",0),i.remove(t.doc,"mousedown",n.hideMenu,n),n.menu&&n.menu.hideMenu()),n.isMenuVisible=0)},postRender:function(){var e=this,t=e.settings;i.add(e.id,"click",function(){e.isDisabled()||(t.onclick&&t.onclick(e.value),e.showMenu())})}})}(tinymce),function(e){{var t=e.DOM,i=e.dom.Event;e.each}e.create("tinymce.ui.SplitButton:tinymce.ui.MenuButton",{SplitButton:function(e,t,i){this.parent(e,t,i),this.classPrefix="mceSplitButton"},renderHTML:function(){var e,i,n=this,o=n.settings;return e="<tbody><tr>",i=o.image?t.createHTML("img ",{src:o.image,role:"presentation","class":"mceAction "+o["class"]}):t.createHTML("span",{"class":"mceAction "+o["class"]},""),i+=t.createHTML("span",{"class":"mceVoiceLabel mceIconOnly",id:n.id+"_voice",style:"display:none;"},o.title),e+="<td >"+t.createHTML("a",{role:"button",id:n.id+"_action",tabindex:"-1",href:"javascript:;","class":"mceAction "+o["class"],onclick:"return false;",onmousedown:"return false;",title:o.title},i)+"</td>",i=t.createHTML("span",{"class":"mceOpen "+o["class"]},'<span style="display:none;" class="mceIconOnly" aria-hidden="true">▼</span>'),e+="<td >"+t.createHTML("a",{role:"button",id:n.id+"_open",tabindex:"-1",href:"javascript:;","class":"mceOpen "+o["class"],onclick:"return false;",onmousedown:"return false;",title:o.title},i)+"</td>",e+="</tr></tbody>",e=t.createHTML("table",{role:"presentation","class":"mceSplitButton mceSplitButtonEnabled "+o["class"],cellpadding:"0",cellspacing:"0",title:o.title},e),t.createHTML("div",{id:n.id,role:"button",tabindex:"0","aria-labelledby":n.id+"_voice","aria-haspopup":"true"},e)},postRender:function(){var n,o=this,a=o.settings;a.onclick&&(n=function(e){o.isDisabled()||(a.onclick(o.value),i.cancel(e))},i.add(o.id+"_action","click",n),i.add(o.id,["click","keydown"],function(e){var t=40;32!==e.keyCode&&13!==e.keyCode&&14!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey?("click"===e.type||e.keyCode===t)&&(o.showMenu(),i.cancel(e)):(n(),i.cancel(e))})),i.add(o.id+"_open","click",function(e){o.showMenu(),i.cancel(e)}),i.add([o.id,o.id+"_open"],"focus",function(){o._focused=1}),i.add([o.id,o.id+"_open"],"blur",function(){o._focused=0}),(e.isIE6||!t.boxModel)&&(i.add(o.id,"mouseover",function(){t.hasClass(o.id,"mceSplitButtonDisabled")||t.addClass(o.id,"mceSplitButtonHover")}),i.add(o.id,"mouseout",function(){t.hasClass(o.id,"mceSplitButtonDisabled")||t.removeClass(o.id,"mceSplitButtonHover")}))},destroy:function(){this.parent(),i.clear(this.id+"_action"),i.clear(this.id+"_open"),i.clear(this.id)}})}(tinymce),function(e){var t=e.DOM,i=e.dom.Event,n=e.is,o=e.each;e.create("tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton",{ColorSplitButton:function(t,i,n){var o=this;o.parent(t,i,n),o.settings=i=e.extend({colors:"000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF",grid_width:8,default_color:"#888888"},o.settings),o.onShowMenu=new e.util.Dispatcher(o),o.onHideMenu=new e.util.Dispatcher(o),o.value=i.default_color},showMenu:function(){var n,o,a=this;if(!a.isDisabled()){if(a.isMenuRendered||(a.renderMenu(),a.isMenuRendered=!0),a.isMenuVisible)return a.hideMenu();n=t.get(a.id),t.show(a.id+"_menu"),t.addClass(n,"mceSplitButtonSelected"),o=t.getPos(n),t.setStyles(a.id+"_menu",{left:o.x,top:o.y+n.firstChild.clientHeight,zIndex:2e5}),n=0,i.add(t.doc,"mousedown",a.hideMenu,a),a.onShowMenu.dispatch(a),a._focused&&(a._keyHandler=i.add(a.id+"_menu","keydown",function(e){27==e.keyCode&&a.hideMenu()}),t.select("a",a.id+"_menu")[0].focus()),a.keyboardNav=new e.ui.KeyboardNavigation({root:a.id+"_menu",items:t.select("a",a.id+"_menu"),onCancel:function(){a.hideMenu(),a.focus()}}),a.keyboardNav.focus(),a.isMenuVisible=1}},hideMenu:function(e){var n=this;if(n.isMenuVisible){if(e&&"mousedown"==e.type&&t.getParent(e.target,function(e){return e.id===n.id+"_open"}))return;e&&t.getParent(e.target,".mceSplitButtonMenu")||(t.removeClass(n.id,"mceSplitButtonSelected"),i.remove(t.doc,"mousedown",n.hideMenu,n),i.remove(n.id+"_menu","keydown",n._keyHandler),t.hide(n.id+"_menu")),n.isMenuVisible=0,n.onHideMenu.dispatch(),n.keyboardNav.destroy()}},renderMenu:function(){var a,r,s,l,c,u,d=this,h=0,p=d.settings;return c=t.add(p.menu_container,"div",{role:"listbox",id:d.id+"_menu","class":p.menu_class+" "+p["class"],style:"position:absolute;left:0;top:-1000px;"}),a=t.add(c,"div",{"class":p["class"]+" mceSplitButtonMenu"}),t.add(a,"span",{"class":"mceMenuLine"}),r=t.add(a,"table",{role:"presentation","class":"mceColorSplitMenu"}),s=t.add(r,"tbody"),h=0,o(n(p.colors,"array")?p.colors:p.colors.split(","),function(i){i=i.replace(/^#/,""),h--||(l=t.add(s,"tr"),h=p.grid_width-1),r=t.add(l,"td");var n={href:"javascript:;",style:{backgroundColor:"#"+i},title:d.editor.getLang("colors."+i,i),"data-mce-color":"#"+i};e.isIE||(n.role="option"),r=t.add(r,"a",n),d.editor.forcedHighContrastMode&&(r=t.add(r,"canvas",{width:16,height:16,"aria-hidden":"true"}),r.getContext&&(u=r.getContext("2d"))?(u.fillStyle="#"+i,u.fillRect(0,0,16,16)):t.remove(r))}),p.more_colors_func&&(r=t.add(s,"tr"),r=t.add(r,"td",{colspan:p.grid_width,"class":"mceMoreColors"}),r=t.add(r,"a",{role:"option",id:d.id+"_more",href:"javascript:;",onclick:"return false;","class":"mceMoreColors"},p.more_colors_title),i.add(r,"click",function(e){return p.more_colors_func.call(p.more_colors_scope||this),i.cancel(e)})),t.addClass(a,"mceColorSplitMenu"),i.add(d.id+"_menu","mousedown",function(e){return i.cancel(e)}),i.add(d.id+"_menu","click",function(e){var i;return e=t.getParent(e.target,"a",s),e&&"a"==e.nodeName.toLowerCase()&&(i=e.getAttribute("data-mce-color"))&&d.setColor(i),!1}),c},setColor:function(e){this.displayColor(e),this.hideMenu(),this.settings.onselect(e)},displayColor:function(e){var i=this;t.setStyle(i.id+"_preview","backgroundColor",e),i.value=e},postRender:function(){var e=this,i=e.id;e.parent(),t.add(i+"_action","div",{id:i+"_preview","class":"mceColorPreview"}),t.setStyle(e.id+"_preview","backgroundColor",e.value)},destroy:function(){var e=this;e.parent(),i.clear(e.id+"_menu"),i.clear(e.id+"_more"),t.remove(e.id+"_menu"),e.keyboardNav&&e.keyboardNav.destroy()}})}(tinymce),function(e){var t=e.DOM,i=e.each,n=e.dom.Event;e.create("tinymce.ui.ToolbarGroup:tinymce.ui.Container",{renderHTML:function(){var i=this,n=[],o=i.controls,a=e.each,r=i.settings;return n.push('<div id="'+i.id+'" role="group" aria-labelledby="'+i.id+'_voice">'),n.push("<span role='application'>"),n.push('<span id="'+i.id+'_voice" class="mceVoiceLabel" style="display:none;">'+t.encode(r.name)+"</span>"),a(o,function(e){n.push(e.renderHTML())}),n.push("</span>"),n.push("</div>"),n.join("")},focus:function(){var e=this;t.get(e.id).focus()},postRender:function(){var n=this,o=[];i(n.controls,function(e){i(e.controls,function(e){e.id&&o.push(e)})}),n.keyNav=new e.ui.KeyboardNavigation({root:n.id,items:o,onCancel:function(){e.isWebKit&&t.get(n.editor.id+"_ifr").focus(),n.editor.focus()},excludeFromTabOrder:!n.settings.tab_focus_toolbar})},destroy:function(){var e=this;e.parent(),e.keyNav.destroy(),n.clear(e.id)}})}(tinymce),function(e){{var t=e.DOM;e.each}e.create("tinymce.ui.Toolbar:tinymce.ui.Container",{renderHTML:function(){var e,i,n,o,a,r,s=this,l="",c=s.settings;for(r=s.controls,n=0;n<r.length;n++)i=r[n],o=r[n-1],a=r[n+1],0===n&&(e="mceToolbarStart",i.Button?e+=" mceToolbarStartButton":i.SplitButton?e+=" mceToolbarStartSplitButton":i.ListBox&&(e+=" mceToolbarStartListBox"),l+=t.createHTML("td",{"class":e},t.createHTML("span",null,"<!-- IE -->"))),o&&i.ListBox&&(o.Button||o.SplitButton)&&(l+=t.createHTML("td",{"class":"mceToolbarEnd"},t.createHTML("span",null,"<!-- IE -->"))),l+=t.stdMode?'<td style="position: relative">'+i.renderHTML()+"</td>":"<td>"+i.renderHTML()+"</td>",a&&i.ListBox&&(a.Button||a.SplitButton)&&(l+=t.createHTML("td",{"class":"mceToolbarStart"},t.createHTML("span",null,"<!-- IE -->")));return e="mceToolbarEnd",i.Button?e+=" mceToolbarEndButton":i.SplitButton?e+=" mceToolbarEndSplitButton":i.ListBox&&(e+=" mceToolbarEndListBox"),l+=t.createHTML("td",{"class":e},t.createHTML("span",null,"<!-- IE -->")),t.createHTML("table",{id:s.id,"class":"mceToolbar"+(c["class"]?" "+c["class"]:""),cellpadding:"0",cellspacing:"0",align:s.settings.align||"",role:"presentation",tabindex:"-1"},"<tbody><tr>"+l+"</tr></tbody>")}})}(tinymce),function(e){{var t=e.util.Dispatcher;e.each}e.create("tinymce.AddOnManager",{AddOnManager:function(){var e=this;e.items=[],e.urls={},e.lookup={},e.onAdd=new t(e)},get:function(e){return this.lookup[e]?this.lookup[e].instance:void 0},dependencies:function(e){var t;return this.lookup[e]&&(t=this.lookup[e].dependencies),t||[]},requireLangPack:function(t){var i=e.settings;i&&i.language&&i.language_load!==!1&&e.ScriptLoader.add(this.urls[t]+"/langs/"+i.language+".js")
|
80
|
+
},add:function(e,t,i){return this.items.push(t),this.lookup[e]={instance:t,dependencies:i},this.onAdd.dispatch(this,e,t),t},createUrl:function(e,t){return"object"==typeof t?t:{prefix:e.prefix,resource:t,suffix:e.suffix}},addComponents:function(t,i){var n=this.urls[t];e.each(i,function(t){e.ScriptLoader.add(n+"/"+t)})},load:function(t,i,n,o){function a(){var a=r.dependencies(t);e.each(a,function(e){var t=r.createUrl(i,e);r.load(t.resource,t,void 0,void 0)}),n&&(o?n.call(o):n.call(e.ScriptLoader))}var r=this,s=i;r.urls[t]||("object"==typeof i&&(s=i.prefix+i.resource+i.suffix),0!==s.indexOf("/")&&-1==s.indexOf("://")&&(s=e.baseURL+"/"+s),r.urls[t]=s.substring(0,s.lastIndexOf("/")),r.lookup[t]?a():e.ScriptLoader.add(s,a,o))}}),e.PluginManager=new e.AddOnManager,e.ThemeManager=new e.AddOnManager}(tinymce),function(e){var t,i=e.each,n=e.extend,o=e.DOM,a=e.dom.Event,r=(e.ThemeManager,e.PluginManager,e.explode),s=e.util.Dispatcher,l=0;e.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(e.documentBaseURL)||(e.documentBaseURL+="/"),e.baseURL=new e.util.URI(e.documentBaseURL).toAbsolute(e.baseURL),e.baseURI=new e.util.URI(e.baseURL),e.onBeforeUnload=new s(e),a.add(window,"beforeunload",function(t){e.onBeforeUnload.dispatch(e,t)}),e.onAddEditor=new s(e),e.onRemoveEditor=new s(e),e.EditorManager=n(e,{editors:[],i18n:{},activeEditor:null,init:function(t){function n(e){var t=e.id;return t||(t=e.name,t=t&&!o.get(t)?e.name:o.uniqueId(),e.setAttribute("id",t)),t}function s(t,i,n){var o=t[i];if(o)return e.is(o,"string")&&(n=o.replace(/\.\w+$/,""),n=n?e.resolve(n):0,o=e.resolve(o)),o.apply(n||this,Array.prototype.slice.call(arguments,2))}function c(e,t){return t.constructor===RegExp?t.test(e.className):o.hasClass(e,t)}var u,d=this,h=(e.ScriptLoader,[]);d.settings=t,a.bind(window,"ready",function(){var a,d;switch(s(t,"onpageload"),t.mode){case"exact":a=t.elements||"",a.length>0&&i(r(a),function(n){o.get(n)?(u=new e.Editor(n,t),h.push(u),u.render(1)):i(document.forms,function(a){i(a.elements,function(i){i.name===n&&(n="mce_editor_"+l++,o.setAttrib(i,"id",n),u=new e.Editor(n,t),h.push(u),u.render(1))})})});break;case"textareas":case"specific_textareas":i(o.select("textarea"),function(i){t.editor_deselector&&c(i,t.editor_deselector)||(!t.editor_selector||c(i,t.editor_selector))&&(u=new e.Editor(n(i),t),h.push(u),u.render(1))});break;default:t.types?i(t.types,function(a){i(o.select(a.selector),function(i){var o=new e.Editor(n(i),e.extend({},t,a));h.push(o),o.render(1)})}):t.selector&&i(o.select(t.selector),function(i){var o=new e.Editor(n(i),t);h.push(o),o.render(1)})}t.oninit&&(a=d=0,i(h,function(e){d++,e.initialized?a++:e.onInit.add(function(){a++,a==d&&s(t,"oninit")}),a==d&&s(t,"oninit")}))})},get:function(e){return e===t?this.editors:this.editors.hasOwnProperty(e)?this.editors[e]:t},getInstanceById:function(e){return this.get(e)},add:function(e){var t=this,i=t.editors;return i[e.id]=e,i.push(e),t._setActive(e),t.onAddEditor.dispatch(t,e),e},remove:function(e){var t,i=this,n=i.editors;if(!n[e.id])return null;for(delete n[e.id],t=0;t<n.length;t++)if(n[t]==e){n.splice(t,1);break}return i.activeEditor==e&&i._setActive(n[0]),e.destroy(),i.onRemoveEditor.dispatch(i,e),e},execCommand:function(t,i,n){function o(){s.destroy(),a.detachEvent("onunload",o),a=a.tinyMCE=a.tinymce=null}var a,r=this,s=r.get(n);switch(t){case"mceFocus":return s.focus(),!0;case"mceAddEditor":case"mceAddControl":return r.get(n)||new e.Editor(n,r.settings).render(),!0;case"mceAddFrameControl":return a=n.window,a.tinyMCE=tinyMCE,a.tinymce=e,e.DOM.doc=a.document,e.DOM.win=a,s=new e.Editor(n.element_id,n),s.render(),e.isIE&&!e.isIE11&&a.attachEvent("onunload",o),n.page_window=null,!0;case"mceRemoveEditor":case"mceRemoveControl":return s&&s.remove(),!0;case"mceToggleEditor":return s?(s.isHidden()?s.show():s.hide(),!0):(r.execCommand("mceAddControl",0,n),!0)}return r.activeEditor?r.activeEditor.execCommand(t,i,n):!1},execInstanceCommand:function(e,t,i,n){var o=this.get(e);return o?o.execCommand(t,i,n):!1},triggerSave:function(){i(this.editors,function(e){e.save()})},addI18n:function(t,n){var o=this.i18n;e.is(t,"string")?i(n,function(e,i){o[t+"."+i]=e}):i(t,function(e,t){i(e,function(e,n){i(e,function(e,i){"common"===n?o[t+"."+i]=e:o[t+"."+n+"."+i]=e})})})},_setActive:function(e){this.selectedInstance=this.activeEditor=e}})}(tinymce),function(e){var t=e.DOM,i=e.dom.Event,n=e.extend,o=e.each,a=e.isGecko,r=e.isIE,s=(e.isWebKit,e.is),l=e.ThemeManager,c=e.PluginManager,u=e.explode;e.create("tinymce.Editor",{Editor:function(t,i){var o=this,a=!0;o.settings=i=n({id:t,language:"en",theme:"advanced",skin:"default",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:e.documentBaseURL,add_form_submit_trigger:a,submit_patch:a,add_unload_trigger:a,convert_urls:a,relative_urls:a,remove_script_host:a,table_inline_editing:!1,object_resizing:a,accessibility_focus:a,doctype:e.isIE6?'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">':"<!DOCTYPE>",visual:a,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",apply_source_formatting:a,directionality:"ltr",forced_root_block:"p",hidden_input:a,padd_empty_editor:a,render_ui:a,indentation:"30px",fix_table_elements:a,inline_styles:a,convert_fonts_to_spans:a,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",validate:a,entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o,ie7_compat:a},i),o.id=o.editorId=t,o.isNotDirty=!1,o.plugins={},o.documentBaseURI=new e.util.URI(i.document_base_url||e.documentBaseURL,{base_uri:tinyMCE.baseURI}),o.baseURI=e.baseURI,o.contentCSS=[],o.contentStyles=[],o.setupEvents(),o.execCommands={},o.queryStateCommands={},o.queryValueCommands={},o.execCallback("setup",o)},render:function(){function n(){r.language&&r.language_load!==!1&&d.add(e.baseURL+"/langs/"+r.language+".js"),r.theme&&"function"!=typeof r.theme&&"-"!=r.theme.charAt(0)&&!l.urls[r.theme]&&l.load(r.theme,"themes/"+r.theme+"/editor_template"+e.suffix+".js"),o(u(r.plugins),function(t){if(t&&!c.urls[t])if("-"==t.charAt(0)){t=t.substr(1,t.length);var i=c.dependencies(t);o(i,function(t){var i={prefix:"plugins/",resource:t,suffix:"/editor_plugin"+e.suffix+".js"};t=c.createUrl(i,t),c.load(t.resource,t)})}else{if("safari"==t)return;c.load(t,{prefix:"plugins/",resource:t,suffix:"/editor_plugin"+e.suffix+".js"})}}),d.loadQueue(function(){a.removed||a.init()})}var a=this,r=a.settings,s=a.id,d=e.ScriptLoader;return i.domLoaded?(tinyMCE.settings=r,a.getElement()&&(!e.isIDevice||e.isIOS5)&&(!/TEXTAREA|INPUT/i.test(a.getElement().nodeName)&&r.hidden_input&&t.getParent(s,"form")&&t.insertAfter(t.create("input",{type:"hidden",name:s}),s),r.content_editable||(a.orgVisibility=a.getElement().style.visibility,a.getElement().style.visibility="hidden"),e.WindowManager&&(a.windowManager=new e.WindowManager(a)),"xml"==r.encoding&&a.onGetContent.add(function(e,i){i.save&&(i.content=t.encode(i.content))}),r.add_form_submit_trigger&&a.onSubmit.addToTop(function(){a.initialized&&(a.save(),a.isNotDirty=1)}),r.add_unload_trigger&&(a._beforeUnload=tinyMCE.onBeforeUnload.add(function(){!a.initialized||a.destroyed||a.isHidden()||a.save({format:"raw",no_events:!0})})),e.addUnload(a.destroy,a),r.submit_patch&&a.onBeforeRenderUI.add(function(){var t=a.getElement().form;t&&(t._mceOldSubmit||(t.submit.nodeType||t.submit.length||(a.formElement=t,t._mceOldSubmit=t.submit,t.submit=function(){return e.triggerSave(),a.isNotDirty=1,a.formElement._mceOldSubmit(a.formElement)}),t=null))}),n()),void 0):(i.add(window,"ready",function(){a.render()}),void 0)},init:function(){function i(t){var n,a=c.get(t),r=c.urls[t]||e.documentBaseURL.replace(/\/$/,"");a&&-1===e.inArray(w,t)&&(o(c.dependencies(t),function(e){i(e)}),n=new a(b,r),b.plugins[t]=n,n.init&&(n.init(b,r),w.push(t)))}var n,a,s,d,h,p,f,m,g,v,b=this,y=b.settings,_=b.getElement(),w=[];if(e.add(b),y.aria_label=y.aria_label||t.getAttrib(_,"aria-label",b.getLang("aria.rich_text_area")),y.theme&&("function"!=typeof y.theme?(y.theme=y.theme.replace(/-/,""),h=l.get(y.theme),b.theme=new h,b.theme.init&&b.theme.init(b,l.urls[y.theme]||e.documentBaseURL.replace(/\/$/,""))):b.theme=y.theme),o(u(y.plugins.replace(/\-/g,"")),i),y.popup_css!==!1&&(y.popup_css=y.popup_css?b.documentBaseURI.toAbsolute(y.popup_css):b.baseURI.toAbsolute("themes/"+y.theme+"/skins/"+y.skin+"/dialog.css")),y.popup_css_add&&(y.popup_css+=","+b.documentBaseURI.toAbsolute(y.popup_css_add)),b.controlManager=new e.ControlManager(b),b.onBeforeRenderUI.dispatch(b,b.controlManager),y.render_ui&&b.theme&&(b.orgDisplay=_.style.display,"function"!=typeof y.theme?(a=y.width||_.style.width||_.offsetWidth,s=y.height||_.style.height||_.offsetHeight,d=y.min_height||100,g=/^[0-9\.]+(|px)$/i,g.test(""+a)&&(a=Math.max(parseInt(a,10)+(h.deltaWidth||0),100)),g.test(""+s)&&(s=Math.max(parseInt(s,10)+(h.deltaHeight||0),d)),h=b.theme.renderUI({targetNode:_,width:a,height:s,deltaWidth:y.delta_width,deltaHeight:y.delta_height}),t.setStyles(h.sizeContainer||h.editorContainer,{width:a,height:s}),s=(h.iframeHeight||s)+("number"==typeof s?h.deltaHeight||0:""),d>s&&(s=d)):(h=y.theme(b,_),h.editorContainer.nodeType&&(h.editorContainer=h.editorContainer.id=h.editorContainer.id||b.id+"_parent"),h.iframeContainer.nodeType&&(h.iframeContainer=h.iframeContainer.id=h.iframeContainer.id||b.id+"_iframecontainer"),s=h.iframeHeight||_.offsetHeight,r&&(b.onInit.add(function(e){e.dom.bind(e.getBody(),"beforedeactivate keydown keyup",function(){e.bookmark=e.selection.getBookmark(1)})}),b.onNodeChange.add(function(e){document.activeElement.id==e.id+"_ifr"&&(e.bookmark=e.selection.getBookmark(1))}))),b.editorContainer=h.editorContainer),y.content_css&&o(u(y.content_css),function(e){b.contentCSS.push(b.documentBaseURI.toAbsolute(e))}),y.content_style&&b.contentStyles.push(y.content_style),y.content_editable)return _=n=h=null,b.initContentBody();for(document.domain&&location.hostname!=document.domain&&(e.relaxedDomain=document.domain),b.iframeHTML=y.doctype+'<html><head xmlns="http://www.w3.org/1999/xhtml">',y.document_base_url!=e.documentBaseURL&&(b.iframeHTML+='<base href="'+b.documentBaseURI.getURI()+'" />'),e.isIE8&&(b.iframeHTML+=y.ie7_compat?'<meta http-equiv="X-UA-Compatible" content="IE=7" />':'<meta http-equiv="X-UA-Compatible" content="IE=edge" />'),b.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',v=0;v<b.contentCSS.length;v++)b.iframeHTML+='<link type="text/css" rel="stylesheet" href="'+b.contentCSS[v]+'" />';b.contentCSS=[],f=y.body_id||"tinymce",-1!=f.indexOf("=")&&(f=b.getParam("body_id","","hash"),f=f[b.id]||f),m=y.body_class||"",-1!=m.indexOf("=")&&(m=b.getParam("body_class","","hash"),m=m[b.id]||""),b.iframeHTML+='</head><body id="'+f+'" class="mceContentBody '+m+'" onload="window.parent.tinyMCE.get(\''+b.id+"').onLoad.dispatch();\"><br></body></html>",e.relaxedDomain&&(r||e.isOpera&&parseFloat(opera.version())<11)&&(p='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinyMCE.get("'+b.id+'");document.write(ed.iframeHTML);document.close();ed.initContentBody();})()'),n=t.add(h.iframeContainer,"iframe",{id:b.id+"_ifr",src:p||'javascript:""',frameBorder:"0",allowTransparency:"true",title:y.aria_label,style:{width:"100%",height:s,display:"block"}}),b.contentAreaContainer=h.iframeContainer,h.editorContainer&&(t.get(h.editorContainer).style.display=b.orgDisplay),_.style.visibility=b.orgVisibility,t.get(b.id).style.display="none",t.setAttrib(b.id,"aria-hidden",!0),e.relaxedDomain&&p||b.initContentBody(),_=n=h=null},initContentBody:function(){var i,n,a=this,s=a.settings,l=t.get(a.id),c=a.getDoc();r&&e.relaxedDomain||s.content_editable||(c.open(),c.write(a.iframeHTML),c.close(),e.relaxedDomain&&(c.domain=e.relaxedDomain)),s.content_editable&&(t.addClass(l,"mceContentBody"),a.contentDocument=c=s.content_document||document,a.contentWindow=s.content_window||window,a.bodyElement=l,s.content_document=s.content_window=null),i=a.getBody(),i.disabled=!0,s.readonly||(i.contentEditable=a.getParam("content_editable_state",!0)),i.disabled=!1,a.schema=new e.html.Schema(s),a.dom=new e.dom.DOMUtils(c,{keep_values:!0,url_converter:a.convertURL,url_converter_scope:a,hex_colors:s.force_hex_style_colors,class_filter:s.class_filter,update_styles:!0,root_element:s.content_editable?a.id:null,schema:a.schema}),a.parser=new e.html.DomParser(s,a.schema),a.parser.addAttributeFilter("src,href,style",function(e,t){for(var i,n,o,r=e.length,s=a.dom;r--;)i=e[r],n=i.attr(t),o="data-mce-"+t,i.attributes.map[o]||("style"===t?i.attr(o,s.serializeStyle(s.parseStyle(n),i.name)):i.attr(o,a.convertURL(n,t,i.name)))}),a.parser.addNodeFilter("script",function(e){for(var t,i=e.length;i--;)t=e[i],t.attr("type","mce-"+(t.attr("type")||"text/javascript"))}),a.parser.addNodeFilter("#cdata",function(e){for(var t,i=e.length;i--;)t=e[i],t.type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"}),a.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(t){for(var i,n=t.length,o=a.schema.getNonEmptyElements();n--;)i=t[n],i.isEmpty(o)&&(i.empty().append(new e.html.Node("br",1)).shortEnded=!0)}),a.serializer=new e.dom.Serializer(s,a.dom,a.schema),a.selection=new e.dom.Selection(a.dom,a.getWin(),a.serializer,a),a.formatter=new e.Formatter(a),a.undoManager=new e.UndoManager(a),a.forceBlocks=new e.ForceBlocks(a),a.enterKey=new e.EnterKey(a),a.editorCommands=new e.EditorCommands(a),a.onExecCommand.add(function(e,t){/^(FontName|FontSize)$/.test(t)||a.nodeChanged()}),a.serializer.onPreProcess.add(function(e,t){return a.onPreProcess.dispatch(a,t,e)}),a.serializer.onPostProcess.add(function(e,t){return a.onPostProcess.dispatch(a,t,e)}),a.onPreInit.dispatch(a),s.browser_spellcheck||s.gecko_spellcheck||(c.body.spellcheck=!1),s.readonly||a.bindNativeEvents(),a.controlManager.onPostRender.dispatch(a,a.controlManager),a.onPostRender.dispatch(a),a.quirks=e.util.Quirks(a),s.directionality&&(i.dir=s.directionality),s.nowrap&&(i.style.whiteSpace="nowrap"),s.protect&&a.onBeforeSetContent.add(function(e,t){o(s.protect,function(e){t.content=t.content.replace(e,function(e){return"<!--mce:protected "+escape(e)+"-->"})})}),a.onSetContent.add(function(){a.addVisual(a.getBody())}),s.padd_empty_editor&&a.onPostProcess.add(function(e,t){t.content=t.content.replace(/^(<p[^>]*>( | |\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/,"")}),a.load({initial:!0,format:"html"}),a.startContent=a.getContent({format:"raw"}),a.initialized=!0,a.onInit.dispatch(a),a.execCallback("setupcontent_callback",a.id,i,c),a.execCallback("init_instance_callback",a),a.focus(!0),a.nodeChanged({initial:!0}),a.contentStyles.length>0&&(n="",o(a.contentStyles,function(e){n+=e+"\r\n"}),a.dom.addStyle(n)),o(a.contentCSS,function(e){a.dom.loadCSS(e)}),s.auto_focus&&setTimeout(function(){var t=e.get(s.auto_focus);t.selection.select(t.getBody(),1),t.selection.collapse(1),t.getBody().focus(),t.getWin().focus()},100),l=c=i=null},focus:function(t){var i,n,o,a,r=this,s=r.selection,l=r.settings.content_editable,c=r.getDoc();t||(r.bookmark&&(s.moveToBookmark(r.bookmark),r.bookmark=null),n=s.getRng(),n.item&&(o=n.item(0)),r._refreshContentEditable(),l||r.getWin().focus(),(e.isGecko||l)&&(a=r.getBody(),a.setActive&&!e.isIE11?a.setActive():a.focus(),l&&s.normalize()),o&&o.ownerDocument==c&&(n=c.body.createControlRange(),n.addElement(o),n.select())),e.activeEditor!=r&&(null!=(i=e.activeEditor)&&i.onDeactivate.dispatch(i,r),r.onActivate.dispatch(r,i)),e._setActive(r)},execCallback:function(t){var i,n=this,o=n.settings[t];if(o)return n.callbackLookup&&(i=n.callbackLookup[t])&&(o=i.func,i=i.scope),s(o,"string")&&(i=o.replace(/\.\w+$/,""),i=i?e.resolve(i):0,o=e.resolve(o),n.callbackLookup=n.callbackLookup||{},n.callbackLookup[t]={func:o,scope:i}),o.apply(i||n,Array.prototype.slice.call(arguments,1))},translate:function(t){var i=this.settings.language||"en",n=e.i18n;return t?n[i+"."+t]||t.replace(/\{\#([^\}]+)\}/g,function(e,t){return n[i+"."+t]||"{#"+t+"}"}):""},getLang:function(t,i){return e.i18n[(this.settings.language||"en")+"."+t]||(s(i)?i:"{#"+t+"}")},getParam:function(t,i,n){var a,r=e.trim,l=s(this.settings[t])?this.settings[t]:i;return"hash"===n?(a={},s(l,"string")?o(l.indexOf("=")>0?l.split(/[;,](?![^=;,]*(?:[;,]|$))/):l.split(","),function(e){e=e.split("="),a[r(e[0])]=e.length>1?r(e[1]):r(e)}):a=l,a):l},nodeChanged:function(e){var t,i=this,n=i.selection;i.initialized&&(e=e||{},t=n.getStart()||i.getBody(),t=r&&t.ownerDocument!=i.getDoc()?i.getBody():t,e.parents=[],i.dom.getParent(t,function(t){return"BODY"==t.nodeName?!0:(e.parents.push(t),void 0)}),i.onNodeChange.dispatch(i,e?e.controlManager||i.controlManager:i.controlManager,t,n.isCollapsed(),e))},addButton:function(e,t){var i=this;i.buttons=i.buttons||{},i.buttons[e]=t},addCommand:function(e,t,i){this.execCommands[e]={func:t,scope:i||this}},addQueryStateHandler:function(e,t,i){this.queryStateCommands[e]={func:t,scope:i||this}},addQueryValueHandler:function(e,t,i){this.queryValueCommands[e]={func:t,scope:i||this}},addShortcut:function(e,t,i,n){var a,r=this;return r.settings.custom_shortcuts===!1?!1:(r.shortcuts=r.shortcuts||{},s(i,"string")&&(a=i,i=function(){r.execCommand(a,!1,null)}),s(i,"object")&&(a=i,i=function(){r.execCommand(a[0],a[1],a[2])}),o(u(e),function(e){var a={func:i,scope:n||this,desc:r.translate(t),alt:!1,ctrl:!1,shift:!1};o(u(e,"+"),function(e){switch(e){case"alt":case"ctrl":case"shift":a[e]=!0;break;default:a.charCode=e.charCodeAt(0),a.keyCode=e.toUpperCase().charCodeAt(0)}}),r.shortcuts[(a.ctrl?"ctrl":"")+","+(a.alt?"alt":"")+","+(a.shift?"shift":"")+","+a.keyCode]=a}),!0)},execCommand:function(e,t,i,a){var r,s,l=this,c=0;return/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(e)||a&&a.skip_focus||l.focus(),a=n({},a),l.onBeforeExecCommand.dispatch(l,e,t,i,a),a.terminate?!1:l.execCallback("execcommand_callback",l.id,l.selection.getNode(),e,t,i)?(l.onExecCommand.dispatch(l,e,t,i,a),!0):(r=l.execCommands[e])&&(s=r.func.call(r.scope,t,i),s!==!0)?(l.onExecCommand.dispatch(l,e,t,i,a),s):(o(l.plugins,function(n){return n.execCommand&&n.execCommand(e,t,i)?(l.onExecCommand.dispatch(l,e,t,i,a),c=1,!1):void 0}),c?!0:l.theme&&l.theme.execCommand&&l.theme.execCommand(e,t,i)?(l.onExecCommand.dispatch(l,e,t,i,a),!0):l.editorCommands.execCommand(e,t,i)?(l.onExecCommand.dispatch(l,e,t,i,a),!0):(l.getDoc().execCommand(e,t,i),l.onExecCommand.dispatch(l,e,t,i,a),void 0))},queryCommandState:function(e){var t,i,n=this;if(!n._isHidden()){if((t=n.queryStateCommands[e])&&(i=t.func.call(t.scope),i!==!0))return i;if(t=n.editorCommands.queryCommandState(e),-1!==t)return t;try{return this.getDoc().queryCommandState(e)}catch(o){}}},queryCommandValue:function(e){var t,i,n=this;if(!n._isHidden()){if((t=n.queryValueCommands[e])&&(i=t.func.call(t.scope),i!==!0))return i;if(t=n.editorCommands.queryCommandValue(e),s(t))return t;try{return this.getDoc().queryCommandValue(e)}catch(o){}}},show:function(){var e=this;t.show(e.getContainer()),t.hide(e.id),e.load()},hide:function(){var e=this,i=e.getDoc();r&&i&&i.execCommand("SelectAll"),e.save(),t.hide(e.getContainer()),t.setStyle(e.id,"display",e.orgDisplay)},isHidden:function(){return!t.isHidden(this.id)},setProgressState:function(e,t,i){return this.onSetProgressState.dispatch(this,e,t,i),e},load:function(e){var t,i=this,n=i.getElement();return n?(e=e||{},e.load=!0,t=i.setContent(s(n.value)?n.value:n.innerHTML,e),e.element=n,e.no_events||i.onLoadContent.dispatch(i,e),e.element=n=null,t):void 0},save:function(e){var i,n,a=this,r=a.getElement();if(r&&a.initialized)return e=e||{},e.save=!0,e.element=r,i=e.content=a.getContent(e),e.no_events||a.onSaveContent.dispatch(a,e),i=e.content,/TEXTAREA|INPUT/i.test(r.nodeName)?r.value=i:(r.innerHTML=i,(n=t.getParent(a.id,"form"))&&o(n.elements,function(e){return e.name==a.id?(e.value=i,!1):void 0})),e.element=r=null,i},setContent:function(t,i){var n,o=this,a=o.getBody();return i=i||{},i.format=i.format||"html",i.set=!0,i.content=t,i.no_events||o.onBeforeSetContent.dispatch(o,i),t=i.content,e.isIE||0!==t.length&&!/^\s+$/.test(t)?("raw"!==i.format&&(t=new e.html.Serializer({},o.schema).serialize(o.parser.parse(t))),i.content=e.trim(t),o.dom.setHTML(a,i.content),i.no_events||o.onSetContent.dispatch(o,i),o.settings.content_editable&&document.activeElement!==o.getBody()||o.selection.normalize(),i.content):(n=o.settings.forced_root_block,t=n?"<"+n+'><br data-mce-bogus="1"></'+n+">":'<br data-mce-bogus="1">',a.innerHTML=t,o.selection.select(a,!0),o.selection.collapse(!0),void 0)},getContent:function(t){var i,n=this,o=n.getBody();return t=t||{},t.format=t.format||"html",t.get=!0,t.getInner=!0,t.no_events||n.onBeforeGetContent.dispatch(n,t),i="raw"==t.format?o.innerHTML:"text"==t.format?o.innerText||o.textContent:n.serializer.serialize(o,t),t.content="text"!=t.format?e.trim(i):i,t.no_events||n.onGetContent.dispatch(n,t),t.content},isDirty:function(){var t=this;return e.trim(t.startContent)!=e.trim(t.getContent({format:"raw",no_events:1}))&&!t.isNotDirty},getContainer:function(){var e=this;return e.container||(e.container=t.get(e.editorContainer||e.id+"_parent")),e.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return t.get(this.settings.content_element||this.id)},getWin:function(){var e,i=this;return i.contentWindow||(e=t.get(i.id+"_ifr"),e&&(i.contentWindow=e.contentWindow)),i.contentWindow},getDoc:function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(e,t,i){var n=this,o=n.settings;return o.urlconverter_callback?n.execCallback("urlconverter_callback",e,i,!0,t):!o.convert_urls||i&&"LINK"==i.nodeName||0===e.indexOf("file:")?e:o.relative_urls?n.documentBaseURI.toRelative(e):e=n.documentBaseURI.toAbsolute(e,o.remove_script_host)},addVisual:function(e){var t,i=this,n=i.settings,a=i.dom;e=e||i.getBody(),s(i.hasVisual)||(i.hasVisual=n.visual),o(a.select("table,a",e),function(e){var o;switch(e.nodeName){case"TABLE":return t=n.visual_table_class||"mceItemTable",o=a.getAttrib(e,"border"),o&&"0"!=o||(i.hasVisual?a.addClass(e,t):a.removeClass(e,t)),void 0;case"A":return a.getAttrib(e,"href",!1)||(o=a.getAttrib(e,"name")||e.id,t="mceItemAnchor",o&&(i.hasVisual?a.addClass(e,t):a.removeClass(e,t))),void 0}}),i.onVisualAid.dispatch(i,e,i.hasVisual)},remove:function(){var n=this,o=n.getContainer(),a=n.getDoc();n.removed||(n.removed=1,r&&a&&a.execCommand("SelectAll"),n.save(),t.setStyle(n.id,"display",n.orgDisplay),n.settings.content_editable||(i.unbind(n.getWin()),i.unbind(n.getDoc())),i.unbind(n.getBody()),i.clear(o),n.execCallback("remove_instance_callback",n),n.onRemove.dispatch(n),n.onExecCommand.listeners=[],e.remove(n),t.remove(o))},destroy:function(t){var n=this;n.destroyed||(a&&(i.unbind(n.getDoc()),i.unbind(n.getWin()),i.unbind(n.getBody())),t||(e.removeUnload(n.destroy),tinyMCE.onBeforeUnload.remove(n._beforeUnload),n.theme&&n.theme.destroy&&n.theme.destroy(),n.controlManager.destroy(),n.selection.destroy(),n.dom.destroy()),n.formElement&&(n.formElement.submit=n.formElement._mceOldSubmit,n.formElement._mceOldSubmit=null),n.contentAreaContainer=n.formElement=n.container=n.settings.content_element=n.bodyElement=n.contentDocument=n.contentWindow=null,n.selection&&(n.selection=n.selection.win=n.selection.dom=n.selection.dom.doc=null),n.destroyed=1)},_refreshContentEditable:function(){var e,t,i=this;i._isHidden()&&(e=i.getBody(),t=e.parentNode,t.removeChild(e),t.appendChild(e),e.focus())},_isHidden:function(){var e;return a?(e=this.selection.getSel(),!e||!e.rangeCount||0===e.rangeCount):0}})}(tinymce),function(e){var t=e.each;e.Editor.prototype.setupEvents=function(){var i=this,n=i.settings;t(["onPreInit","onBeforeRenderUI","onPostRender","onLoad","onInit","onRemove","onActivate","onDeactivate","onClick","onEvent","onMouseUp","onMouseDown","onDblClick","onKeyDown","onKeyUp","onKeyPress","onContextMenu","onSubmit","onReset","onPaste","onPreProcess","onPostProcess","onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent","onLoadContent","onSaveContent","onNodeChange","onChange","onBeforeExecCommand","onExecCommand","onUndo","onRedo","onVisualAid","onSetProgressState","onSetAttrib"],function(t){i[t]=new e.util.Dispatcher(i)}),n.cleanup_callback&&(i.onBeforeSetContent.add(function(e,t){t.content=e.execCallback("cleanup_callback","insert_to_editor",t.content,t)}),i.onPreProcess.add(function(e,t){t.set&&e.execCallback("cleanup_callback","insert_to_editor_dom",t.node,t),t.get&&e.execCallback("cleanup_callback","get_from_editor_dom",t.node,t)}),i.onPostProcess.add(function(e,t){t.set&&(t.content=e.execCallback("cleanup_callback","insert_to_editor",t.content,t)),t.get&&(t.content=e.execCallback("cleanup_callback","get_from_editor",t.content,t))})),n.save_callback&&i.onGetContent.add(function(e,t){t.save&&(t.content=e.execCallback("save_callback",e.id,t.content,e.getBody()))}),n.handle_event_callback&&i.onEvent.add(function(e,t,n){i.execCallback("handle_event_callback",t,e,n)===!1&&(t.preventDefault(),t.stopPropagation())}),n.handle_node_change_callback&&i.onNodeChange.add(function(e,t,i){e.execCallback("handle_node_change_callback",e.id,i,-1,-1,!0,e.selection.isCollapsed())}),n.save_callback&&i.onSaveContent.add(function(e,t){var i=e.execCallback("save_callback",e.id,t.content,e.getBody());i&&(t.content=i)}),n.onchange_callback&&i.onChange.add(function(e,t){e.execCallback("onchange_callback",e,t)})},e.Editor.prototype.bindNativeEvents=function(){function i(e,t){e.type;s.removed||s.onEvent.dispatch(s,e,t)!==!1&&s[r[e.fakeType||e.type]].dispatch(s,e,t)}function n(){s.focus(!0)}function o(t,i){65==i.keyCode&&e.VK.metaKeyPressed(i)||s.selection.normalize(),s.nodeChanged()}function a(i,n){(i.altKey||i.ctrlKey||i.metaKey)&&t(s.shortcuts,function(t){var o=e.isMac?i.metaKey:i.ctrlKey;if(t.ctrl==o&&t.alt==i.altKey&&t.shift==i.shiftKey)return i.keyCode==t.keyCode||i.charCode&&i.charCode==t.charCode?(i.preventDefault(),n&&t.func.call(t.scope),!0):void 0})}var r,s=this,l=s.settings,c=s.dom;r={mouseup:"onMouseUp",mousedown:"onMouseDown",click:"onClick",keyup:"onKeyUp",keydown:"onKeyDown",keypress:"onKeyPress",submit:"onSubmit",reset:"onReset",contextmenu:"onContextMenu",dblclick:"onDblClick",paste:"onPaste"},t(r,function(t,n){var o=l.content_editable?s.getBody():s.getDoc();switch(n){case"contextmenu":c.bind(o,n,i);break;case"paste":c.bind(s.getBody(),n,i);break;case"submit":case"reset":c.bind(s.getElement().form||e.DOM.getParent(s.id,"form"),n,i);break;default:c.bind(o,n,i)}}),c.bind(l.content_editable?s.getBody():e.isGecko?s.getDoc():s.getWin(),"focus",function(){s.focus(!0)}),l.content_editable&&e.isOpera&&(c.bind(s.getBody(),"click",n),c.bind(s.getBody(),"keydown",n)),s.onMouseUp.add(o),s.onKeyUp.add(function(t,i){var n=i.keyCode;(n>=33&&36>=n||n>=37&&40>=n||13==n||45==n||46==n||8==n||e.isMac&&(91==n||93==n)||i.ctrlKey)&&o(t,i)}),s.onReset.add(function(){s.setContent(s.startContent,{format:"raw"})}),s.onKeyUp.add(function(e,t){a(t)}),s.onKeyPress.add(function(e,t){a(t)}),s.onKeyDown.add(function(e,t){a(t,!0)}),e.isOpera&&s.onClick.add(function(e,t){t.preventDefault()})}}(tinymce),function(e){var t,i=e.each,n=!0,o=!1;e.EditorCommands=function(a){function r(e,t,i){var a;return e=e.toLowerCase(),(a=b.exec[e])?(a(e,t,i),n):o}function s(e){var t;return e=e.toLowerCase(),(t=b.state[e])?t(e):-1}function l(e){var t;return e=e.toLowerCase(),(t=b.value[e])?t(e):o}function c(e,t){t=t||"exec",i(e,function(e,n){i(n.toLowerCase().split(","),function(i){b[t][i]=e})})}function u(e,i,n){return i===t&&(i=o),n===t&&(n=null),a.getDoc().execCommand(e,i,n)}function d(e){return _.match(e)}function h(e,i){_.toggle(e,i?{value:i}:t)}function p(e){m=v.getBookmark(e)}function f(){v.moveToBookmark(m)}var m,g=a.dom,v=a.selection,b={state:{},exec:{},value:{}},y=a.settings,_=a.formatter;e.extend(this,{execCommand:r,queryCommandState:s,queryCommandValue:l,addCommands:c}),c({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){a.undoManager.add()},"Cut,Copy,Paste":function(t){var i,o=a.getDoc();try{u(t)}catch(r){i=n}(i||!o.queryCommandSupported(t))&&(e.isGecko?a.windowManager.confirm(a.getLang("clipboard_msg"),function(e){e&&open("http://www.mozilla.org/editor/midasdemo/securityprefs.html","_blank")}):a.windowManager.alert(a.getLang("clipboard_no_support")))},unlink:function(e){v.isCollapsed()&&v.select(v.getNode()),u(e),v.collapse(o)},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(e){var t=e.substring(7);i("left,center,right,full".split(","),function(e){t!=e&&_.remove("align"+e)}),h("align"+t),r("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(e){var t,i;u(e),t=g.getParent(v.getNode(),"ol,ul"),t&&(i=t.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(i.nodeName)&&(p(),g.split(i,t),f()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){h(e)},"ForeColor,HiliteColor,FontName":function(e,t,i){h(e,i)},FontSize:function(t,i,n){var o,a;n>=1&&7>=n&&(a=e.explode(y.font_size_style_values),o=e.explode(y.font_size_classes),n=o?o[n-1]||n:a[n-1]||n),h(t,n)},RemoveFormat:function(e){_.remove(e)},mceBlockQuote:function(){h("blockquote")},FormatBlock:function(e,t,i){return h(i||"p")},mceCleanup:function(){var e=v.getBookmark();a.setContent(a.getContent({cleanup:n}),{cleanup:n}),v.moveToBookmark(e)},mceRemoveNode:function(e,t,i){var o=i||v.getNode();o!=a.getBody()&&(p(),a.dom.remove(o,n),f())},mceSelectNodeDepth:function(e,t,i){var n=0;g.getParent(v.getNode(),function(e){return 1==e.nodeType&&n++==i?(v.select(e),o):void 0},a.getBody())},mceSelectNode:function(e,t,i){v.select(i)},mceInsertContent:function(t,i,n){var o,r,s,l,c,u,d,h,p,f,m,b,y,_;if(o=a.parser,r=new e.html.Serializer({},a.schema),y='<span id="mce_marker" data-mce-type="bookmark"></span>',u={content:n,format:"html"},v.onBeforeSetContent.dispatch(v,u),n=u.content,-1==n.indexOf("{$caret}")&&(n+="{$caret}"),n=n.replace(/\{\$caret\}/,y),v.isCollapsed()||a.getDoc().execCommand("Delete",!1,null),s=v.getNode(),u={context:s.nodeName.toLowerCase()},c=o.parse(n,u),m=c.lastChild,"mce_marker"==m.attr("id"))for(d=m,m=m.prev;m;m=m.walk(!0))if(3==m.type||!g.isBlock(m.name)){m.parent.insert(d,m,"br"===m.name);break}if(u.invalid){for(v.setContent(y),s=v.getNode(),l=a.getBody(),9==s.nodeType?s=m=l:m=s;m!==l;)s=m,m=m.parentNode;n=s==l?l.innerHTML:g.getOuterHTML(s),n=r.serialize(o.parse(n.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return r.serialize(c)}))),s==l?g.setHTML(l,n):g.setOuterHTML(s,n)}else n=r.serialize(c),m=s.firstChild,b=s.lastChild,!m||m===b&&"BR"===m.nodeName?g.setHTML(s,n):v.setContent(n);d=g.get("mce_marker"),h=g.getRect(d),p=g.getViewPort(a.getWin()),(h.y+h.h>p.y+p.h||h.y<p.y||h.x>p.x+p.w||h.x<p.x)&&(_=e.isIE?a.getDoc().documentElement:a.getBody(),_.scrollLeft=h.x,_.scrollTop=h.y-p.h+25),f=g.createRng(),m=d.previousSibling,m&&3==m.nodeType?f.setStart(m,m.nodeValue.length):(f.setStartBefore(d),f.setEndBefore(d)),g.remove(d),v.setRng(f),v.onSetContent.dispatch(v,u),a.addVisual()},mceInsertRawHTML:function(e,t,i){v.setContent("tiny_mce_marker"),a.setContent(a.getContent().replace(/tiny_mce_marker/g,function(){return i}))},mceToggleFormat:function(e,t,i){h(i)},mceSetContent:function(e,t,i){a.setContent(i)},"Indent,Outdent":function(e){var t,n,o;t=y.indentation,n=/[a-z%]+$/i.exec(t),t=parseInt(t),s("InsertUnorderedList")||s("InsertOrderedList")?u(e):(y.forced_root_block||g.getParent(v.getNode(),g.isBlock)||_.apply("div"),i(v.getSelectedBlocks(),function(i){"outdent"==e?(o=Math.max(0,parseInt(i.style.paddingLeft||0)-t),g.setStyle(i,"paddingLeft",o?o+n:"")):g.setStyle(i,"paddingLeft",parseInt(i.style.paddingLeft||0)+t+n)}))},mceRepaint:function(){if(e.isGecko)try{p(n),v.getSel()&&v.getSel().selectAllChildren(a.getBody()),v.collapse(n),f()}catch(t){}},mceToggleFormat:function(e,t,i){_.toggle(i)},InsertHorizontalRule:function(){a.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){a.hasVisual=!a.hasVisual,a.addVisual()},mceReplaceContent:function(e,t,i){a.execCommand("mceInsertContent",!1,i.replace(/\{\$selection\}/g,v.getContent({format:"text"})))},mceInsertLink:function(e,t,i){var n;"string"==typeof i&&(i={href:i}),n=g.getParent(v.getNode(),"a"),i.href=i.href.replace(" ","%20"),n&&i.href||_.remove("link"),i.href&&_.apply("link",i,n)
|
81
|
+
},selectAll:function(){var e=g.getRoot(),t=g.createRng();v.getRng().setStart?(t.setStart(e,0),t.setEnd(e,e.childNodes.length),v.setRng(t)):u("SelectAll")}}),c({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(t){var i="align"+t.substring(7),o=v.isCollapsed()?[g.getParent(v.getNode(),g.isBlock)]:v.getSelectedBlocks(),a=e.map(o,function(e){return!!_.matchNode(e,i)});return-1!==e.inArray(a,n)},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return d(e)},mceBlockQuote:function(){return d("blockquote")},Outdent:function(){var e;if(y.inline_styles){if((e=g.getParent(v.getStart(),g.isBlock))&&parseInt(e.style.paddingLeft)>0)return n;if((e=g.getParent(v.getEnd(),g.isBlock))&&parseInt(e.style.paddingLeft)>0)return n}return s("InsertUnorderedList")||s("InsertOrderedList")||!y.inline_styles&&!!g.getParent(v.getNode(),"BLOCKQUOTE")},"InsertUnorderedList,InsertOrderedList":function(e){var t=g.getParent(v.getNode(),"ul,ol");return t&&("insertunorderedlist"===e&&"UL"===t.tagName||"insertorderedlist"===e&&"OL"===t.tagName)}},"state"),c({"FontSize,FontName":function(e){var t,i=0;return(t=g.getParent(v.getNode(),"span"))&&(i="fontsize"==e?t.style.fontSize:t.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()),i}},"value"),c({Undo:function(){a.undoManager.undo()},Redo:function(){a.undoManager.redo()}})}}(tinymce),function(e){var t=e.util.Dispatcher;e.UndoManager=function(i){function n(){return e.trim(i.getContent({format:"raw",no_events:1}).replace(/<span[^>]+data-mce-bogus[^>]+>[\u200B\uFEFF]+<\/span>/g,""))}function o(){a.typing=!1,a.add()}var a,r,s,l,c,u=0,d=[];return onBeforeAdd=new t(a),s=new t(a),l=new t(a),c=new t(a),s.add(function(e,t){return e.hasUndo()?i.onChange.dispatch(i,t,e):void 0}),l.add(function(e,t){return i.onUndo.dispatch(i,t,e)}),c.add(function(e,t){return i.onRedo.dispatch(i,t,e)}),i.onInit.add(function(){a.add()}),i.onBeforeExecCommand.add(function(e,t,i,n,o){"Undo"==t||"Redo"==t||"mceRepaint"==t||o&&o.skip_undo||a.beforeChange()}),i.onExecCommand.add(function(e,t,i,n,o){"Undo"==t||"Redo"==t||"mceRepaint"==t||o&&o.skip_undo||a.add()}),i.onSaveContent.add(o),i.dom.bind(i.dom.getRoot(),"dragend",o),i.dom.bind(i.getBody(),"focusout",function(){!i.removed&&a.typing&&o()}),i.onKeyUp.add(function(e,t){var i=t.keyCode;(i>=33&&36>=i||i>=37&&40>=i||45==i||13==i||t.ctrlKey)&&o()}),i.onKeyDown.add(function(e,t){var i=t.keyCode;return i>=33&&36>=i||i>=37&&40>=i||45==i?(a.typing&&o(),void 0):((16>i||i>20)&&224!=i&&91!=i&&!a.typing&&(a.beforeChange(),a.typing=!0,a.add()),void 0)}),i.onMouseDown.add(function(){a.typing&&o()}),i.addShortcut("ctrl+z","undo_desc","Undo"),i.addShortcut("ctrl+y","redo_desc","Redo"),a={data:d,typing:!1,onBeforeAdd:onBeforeAdd,onAdd:s,onUndo:l,onRedo:c,beforeChange:function(){r=i.selection.getBookmark(2,!0)},add:function(e){var t,o,s=i.settings;if(e=e||{},e.content=n(),a.onBeforeAdd.dispatch(a,e),o=d[u],o&&o.content==e.content)return null;if(d[u]&&(d[u].beforeBookmark=r),s.custom_undo_redo_levels&&d.length>s.custom_undo_redo_levels){for(t=0;t<d.length-1;t++)d[t]=d[t+1];d.length--,u=d.length}return e.bookmark=i.selection.getBookmark(2,!0),u<d.length-1&&(d.length=u+1),d.push(e),u=d.length-1,a.onAdd.dispatch(a,e),i.isNotDirty=0,e},undo:function(){var e;return a.typing&&(a.add(),a.typing=!1),u>0&&(e=d[--u],i.setContent(e.content,{format:"raw"}),i.selection.moveToBookmark(e.beforeBookmark),a.onUndo.dispatch(a,e)),e},redo:function(){var e;return u<d.length-1&&(e=d[++u],i.setContent(e.content,{format:"raw"}),i.selection.moveToBookmark(e.bookmark),a.onRedo.dispatch(a,e)),e},clear:function(){d=[],u=0,a.typing=!1},hasUndo:function(){return u>0||this.typing},hasRedo:function(){return u<d.length-1&&!this.typing}}}}(tinymce),tinymce.ForceBlocks=function(e){function t(){var t,r,s,l,c,u,d,h,p,f=o.getStart(),m=e.getBody(),g=-16777215;if(f&&1===f.nodeType&&i.forced_root_block){for(;f&&f!=m;){if(a[f.nodeName])return;f=f.parentNode}for(t=o.getRng(),t.setStart?(r=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset):(t.item&&(f=t.item(0),t=e.getDoc().body.createTextRange(),t.moveToElementText(f)),p=t.parentElement().ownerDocument===e.getDoc(),tmpRng=t.duplicate(),tmpRng.collapse(!0),s=-1*tmpRng.move("character",g),tmpRng.collapsed||(tmpRng=t.duplicate(),tmpRng.collapse(!1),c=-1*tmpRng.move("character",g)-s)),f=m.firstChild;f;)if(3===f.nodeType||1==f.nodeType&&!a[f.nodeName]){if(3===f.nodeType&&0==f.nodeValue.length){d=f,f=f.nextSibling,n.remove(d);continue}u||(u=n.create(i.forced_root_block),f.parentNode.insertBefore(u,f),h=!0),d=f,f=f.nextSibling,u.appendChild(d)}else u=null,f=f.nextSibling;if(h){if(t.setStart)t.setStart(r,s),t.setEnd(l,c),o.setRng(t);else if(p)try{t=e.getDoc().body.createTextRange(),t.moveToElementText(m),t.collapse(!0),t.moveStart("character",s),c>0&&t.moveEnd("character",c),t.select()}catch(v){}e.nodeChanged()}}}var i=e.settings,n=e.dom,o=e.selection,a=e.schema.getBlockElements();i.forced_root_block&&(e.onKeyUp.add(t),e.onNodeChange.add(t))},function(e){var t=(e.DOM,e.dom.Event),i=e.each,n=e.extend;e.create("tinymce.ControlManager",{ControlManager:function(t,n){var o=this;n=n||{},o.editor=t,o.controls={},o.onAdd=new e.util.Dispatcher(o),o.onPostRender=new e.util.Dispatcher(o),o.prefix=n.prefix||t.id+"_",o._cls={},o.onPostRender.add(function(){i(o.controls,function(e){e.postRender()})})},get:function(e){return this.controls[this.prefix+e]||this.controls[e]},setActive:function(e,t){var i=null;return(i=this.get(e))&&i.setActive(t),i},setDisabled:function(e,t){var i=null;return(i=this.get(e))&&i.setDisabled(t),i},add:function(e){var t=this;return e&&(t.controls[e.id]=e,t.onAdd.dispatch(e,t)),e},createControl:function(e){var t,n,o,a,r=this,s=r.editor;for(r.controlFactories||(r.controlFactories=[],i(s.plugins,function(e){e.createControl&&r.controlFactories.push(e)})),a=r.controlFactories,n=0,o=a.length;o>n;n++)if(t=a[n].createControl(e,r))return r.add(t);return"|"===e||"separator"===e?r.createSeparator():s.buttons&&(t=s.buttons[e])?r.createButton(e,t):r.add(t)},createDropMenu:function(t,i,o){var a,r,s,l,c=this,u=c.editor;return i=n({"class":"mceDropDown",constrain:u.settings.constrain_menus},i),i["class"]=i["class"]+" "+u.getParam("skin")+"Skin",(s=u.getParam("skin_variant"))&&(i["class"]+=" "+u.getParam("skin")+"Skin"+s.substring(0,1).toUpperCase()+s.substring(1)),i["class"]+="rtl"==u.settings.directionality?" mceRtl":"",t=c.prefix+t,l=o||c._cls.dropmenu||e.ui.DropMenu,a=c.controls[t]=new l(t,i),a.onAddItem.add(function(e,t){var i=t.settings;i.title=u.getLang(i.title,i.title),i.onclick||(i.onclick=function(){i.cmd&&u.execCommand(i.cmd,i.ui||!1,i.value)})}),u.onRemove.add(function(){a.destroy()}),e.isIE&&(a.onShowMenu.add(function(){u.focus(),r=u.selection.getBookmark(1)}),a.onHideMenu.add(function(){r&&(u.selection.moveToBookmark(r),r=0)})),c.add(a)},createListBox:function(i,o,a){function r(t){return t.settings.use_accessible_selects&&!e.isGecko}var s,l,c=this,u=c.editor;return c.get(i)?null:(o.title=u.translate(o.title),o.scope=o.scope||u,o.onselect||(o.onselect=function(e){u.execCommand(o.cmd,o.ui||!1,e||o.value)}),o=n({title:o.title,"class":"mce_"+i,scope:o.scope,control_manager:c},o),i=c.prefix+i,u.settings.use_native_selects||r(u)?s=new e.ui.NativeListBox(i,o):(l=a||c._cls.listbox||e.ui.ListBox,s=new l(i,o,u)),c.controls[i]=s,e.isWebKit&&s.onPostRender.add(function(e,i){t.add(i,"mousedown",function(){u.bookmark=u.selection.getBookmark(1)}),t.add(i,"focus",function(){u.selection.moveToBookmark(u.bookmark),u.bookmark=null})}),s.hideMenu&&u.onMouseDown.add(s.hideMenu,s),c.add(s))},createButton:function(t,i,o){var a,r,s=this,l=s.editor;return s.get(t)?null:(i.title=l.translate(i.title),i.label=l.translate(i.label),i.scope=i.scope||l,i.onclick||i.menu_button||(i.onclick=function(){l.execCommand(i.cmd,i.ui||!1,i.value)}),i=n({title:i.title,"class":"mce_"+t,unavailable_prefix:l.getLang("unavailable",""),scope:i.scope,control_manager:s},i),t=s.prefix+t,i.menu_button?(r=o||s._cls.menubutton||e.ui.MenuButton,a=new r(t,i,l),l.onMouseDown.add(a.hideMenu,a)):(r=s._cls.button||e.ui.Button,a=new r(t,i,l)),s.add(a))},createMenuButton:function(e,t,i){return t=t||{},t.menu_button=1,this.createButton(e,t,i)},createSplitButton:function(t,i,o){var a,r,s=this,l=s.editor;return s.get(t)?null:(i.title=l.translate(i.title),i.scope=i.scope||l,i.onclick||(i.onclick=function(e){l.execCommand(i.cmd,i.ui||!1,e||i.value)}),i.onselect||(i.onselect=function(e){l.execCommand(i.cmd,i.ui||!1,e||i.value)}),i=n({title:i.title,"class":"mce_"+t,scope:i.scope,control_manager:s},i),t=s.prefix+t,r=o||s._cls.splitbutton||e.ui.SplitButton,a=s.add(new r(t,i,l)),l.onMouseDown.add(a.hideMenu,a),a)},createColorSplitButton:function(t,i,o){var a,r,s,l=this,c=l.editor;return l.get(t)?null:(i.title=c.translate(i.title),i.scope=i.scope||c,i.onclick||(i.onclick=function(t){e.isIE&&(s=c.selection.getBookmark(1)),c.execCommand(i.cmd,i.ui||!1,t||i.value)}),i.onselect||(i.onselect=function(e){c.execCommand(i.cmd,i.ui||!1,e||i.value)}),i=n({title:i.title,"class":"mce_"+t,menu_class:c.getParam("skin")+"Skin",scope:i.scope,more_colors_title:c.getLang("more_colors")},i),t=l.prefix+t,r=o||l._cls.colorsplitbutton||e.ui.ColorSplitButton,a=new r(t,i,c),c.onMouseDown.add(a.hideMenu,a),c.onRemove.add(function(){a.destroy()}),e.isIE&&(a.onShowMenu.add(function(){c.focus(),s=c.selection.getBookmark(1)}),a.onHideMenu.add(function(){s&&(c.selection.moveToBookmark(s),s=0)})),l.add(a))},createToolbar:function(t,i,n){var o,a,r=this;return t=r.prefix+t,a=n||r._cls.toolbar||e.ui.Toolbar,o=new a(t,i,r.editor),r.get(t)?null:r.add(o)},createToolbarGroup:function(t,i,n){var o,a,r=this;return t=r.prefix+t,a=n||this._cls.toolbarGroup||e.ui.ToolbarGroup,o=new a(t,i,r.editor),r.get(t)?null:r.add(o)},createSeparator:function(t){var i=t||this._cls.separator||e.ui.Separator;return new i},setControlType:function(e,t){return this._cls[e.toLowerCase()]=t},destroy:function(){i(this.controls,function(e){e.destroy()}),this.controls=null}})}(tinymce),function(e){var t=e.util.Dispatcher,i=e.each,n=e.isIE,o=e.isOpera;e.create("tinymce.WindowManager",{WindowManager:function(e){var i=this;i.editor=e,i.onOpen=new t(i),i.onClose=new t(i),i.params={},i.features={}},open:function(t,a){var r,s,l,c,u=this,d="",h="modal"==u.editor.settings.dialog_type,p=e.DOM.getViewPort();t=t||{},a=a||{},s=o?p.w:screen.width,l=o?p.h:screen.height,t.name=t.name||"mc_"+(new Date).getTime(),t.width=parseInt(t.width||320),t.height=parseInt(t.height||240),t.resizable=!0,t.left=t.left||parseInt(s/2)-t.width/2,t.top=t.top||parseInt(l/2)-t.height/2,a.inline=!1,a.mce_width=t.width,a.mce_height=t.height,a.mce_auto_focus=t.auto_focus,h&&n&&(t.center=!0,t.help=!1,t.dialogWidth=t.width+"px",t.dialogHeight=t.height+"px",t.scroll=t.scrollbars||!1),i(t,function(t,i){e.is(t,"boolean")&&(t=t?"yes":"no"),/^(name|url)$/.test(i)||(d+=n&&h?(d?";":"")+i+":"+t:(d?",":"")+i+"="+t)}),u.features=t,u.params=a,u.onOpen.dispatch(u,t,a),c=t.url||t.file,c=e._addVer(c);try{n&&h?(r=1,window.showModalDialog(c,window,d)):r=window.open(c,t.name,d)}catch(f){}r||alert(u.editor.getLang("popup_blocked"))},close:function(e){e.close(),this.onClose.dispatch(this)},createInstance:function(t,i,n,o,a,r){var s=e.resolve(t);return new s(i,n,o,a,r)},confirm:function(e,t,i,n){n=n||window,t.call(i||this,n.confirm(this._decode(this.editor.getLang(e,e))))},alert:function(e,t,i,n){var o=this;n=n||window,n.alert(o._decode(o.editor.getLang(e,e))),t&&t.call(i||o)},resizeBy:function(e,t,i){i.resizeBy(e,t)},_decode:function(t){return e.DOM.decode(t).replace(/\\n/g,"\n")}})}(tinymce),function(e){e.Formatter=function(t){function i(e){return e.nodeType&&(e=e.nodeName),!!t.schema.getTextBlockElements()[e.toLowerCase()]}function n(e,t){return O.getParents(e,t,O.getRoot())}function o(e){return 1===e.nodeType&&"_mce_caret"===e.id}function a(){l({alignleft:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"},defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{"float":"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"},defaultBlock:"div"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"},defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{"float":"right"}}],alignfull:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"justify"},defaultBlock:"div"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},wrap_links:!1},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},wrap_links:!1},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(e,t,i){B(i,function(t,i){O.setAttrib(e,i,t)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]}),B("p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp".split(/\s/),function(e){l(e,{block:e,remove:"all"})}),l(t.settings.formats)}function r(){t.addShortcut("ctrl+b","bold_desc","Bold"),t.addShortcut("ctrl+i","italic_desc","Italic"),t.addShortcut("ctrl+u","underline_desc","Underline");for(var e=1;6>=e;e++)t.addShortcut("ctrl+"+e,"",["FormatBlock",!1,"h"+e]);t.addShortcut("ctrl+7","",["FormatBlock",!1,"p"]),t.addShortcut("ctrl+8","",["FormatBlock",!1,"div"]),t.addShortcut("ctrl+9","",["FormatBlock",!1,"address"])}function s(e){return e?H[e]:H}function l(e,t){e&&("string"!=typeof e?B(e,function(e,t){l(t,e)}):(t=t.length?t:[t],B(t,function(e){e.deep===I&&(e.deep=!e.selector),e.split===I&&(e.split=!e.selector||e.inline),e.remove===I&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),H[e]=t))}function c(n,a,r){function l(e,t){t=t||y,e&&(t.onformat&&t.onformat(e,t,a,r),B(t.styles,function(t,i){O.setStyle(e,i,_(t,a))}),B(t.attributes,function(t,i){O.setAttrib(e,i,_(t,a))}),B(t.classes,function(t){t=_(t,a),O.hasClass(e,t)||O.addClass(e,t)}))}function u(){function e(e,t){var i=new L(t);for(r=i.current();r;r=i.prev())if(r.childNodes.length>1||r==e||"BR"==r.tagName)return r}var i=t.selection.getRng(),n=i.startContainer,o=i.endContainer;if(n!=o&&0===i.endOffset){var a=e(n,o),s=3==a.nodeType?a.length:a.childNodes.length;i.setEnd(a,s)}return i}function d(t,i,n,o,a){var r,s,l=[],c=-1,u=-1,d=-1;return B(t.childNodes,function(e,t){return"UL"===e.nodeName||"OL"===e.nodeName?(c=t,r=e,!1):void 0}),B(t.childNodes,function(e,t){"SPAN"===e.nodeName&&"bookmark"==O.getAttrib(e,"data-mce-type")&&(e.id==i.id+"_start"?u=t:e.id==i.id+"_end"&&(d=t))}),0>=c||c>u&&d>c?(B(e.grep(t.childNodes),a),0):(s=O.clone(n,V),B(e.grep(t.childNodes),function(e,t){(c>u&&c>t||u>c&&t>c)&&(l.push(e),e.parentNode.removeChild(e))}),c>u?t.insertBefore(s,r):u>c&&t.insertBefore(s,r.nextSibling),o.push(s),B(l,function(e){s.appendChild(e)}),s)}function p(t,r,s){var c,u,p=[],f=!0;c=y.inline||y.block,u=O.create(c),l(u),j.walk(t,function(t){function m(t){var _,w,C,k,T;return T=f,_=t.nodeName.toLowerCase(),w=t.parentNode.nodeName.toLowerCase(),1===t.nodeType&&Y(t)&&(T=f,f="true"===Y(t),k=!0),b(_,"br")?(v=0,y.block&&O.remove(t),void 0):y.wrapper&&h(t,n,a)?(v=0,void 0):f&&!k&&y.block&&!y.wrapper&&i(_)?(t=O.rename(t,c),l(t),p.push(t),v=0,void 0):y.selector&&(B(g,function(e){"collapsed"in e&&e.collapsed!==x||O.is(t,e.selector)&&!o(t)&&(l(t,e),C=!0)}),!y.inline||C)?(v=0,void 0):(!f||k||!F(c,_)||!F(w,c)||!s&&3===t.nodeType&&1===t.nodeValue.length&&65279===t.nodeValue.charCodeAt(0)||o(t)||y.inline&&z(t)?"li"==_&&r?v=d(t,r,u,p,m):(v=0,B(e.grep(t.childNodes),m),k&&(f=T),v=0):(v||(v=O.clone(u,V),t.parentNode.insertBefore(v,t),p.push(v)),v.appendChild(t)),void 0)}var v;B(t,m)}),y.wrap_links===!1&&B(p,function(t){function i(t){var n,o,a;if("A"===t.nodeName){for(o=O.clone(u,V),p.push(o),a=e.grep(t.childNodes),n=0;n<a.length;n++)o.appendChild(a[n]);t.appendChild(o)}B(e.grep(t.childNodes),i)}i(t)}),B(p,function(e){function t(e){var t=0;return B(e.childNodes,function(e){w(e)||S(e)||t++}),t}function i(e){var t,i;return B(e.childNodes,function(e){return 1!=e.nodeType||S(e)||o(e)?void 0:(t=e,V)}),t&&v(t,y)&&(i=O.clone(t,V),l(i),O.replace(i,e,K),O.remove(t,1)),i||e}var r;if(r=t(e),(p.length>1||!z(e))&&0===r)return O.remove(e,1),void 0;if(y.inline||y.wrapper){if(y.exact||1!==r||(e=i(e)),B(g,function(t){B(O.select(t.inline,e),function(e){var i;if(t.wrap_links===!1){i=e.parentNode;do if("A"===i.nodeName)return;while(i=i.parentNode)}k(t,a,e,t.exact?e:null)})}),h(e.parentNode,n,a))return O.remove(e,1),e=0,K;y.merge_with_parents&&O.getParent(e.parentNode,function(t){return h(t,n,a)?(O.remove(e,1),e=0,K):void 0}),e&&y.merge_siblings!==!1&&(e=E(D(e),e),e=E(e,D(e,K)))}})}var f,m,g=s(n),y=g[0],x=R.isCollapsed();if(y)if(r)r.nodeType?(m=O.createRng(),m.setStartBefore(r),m.setEndAfter(r),p(C(m,g),null,!0)):p(r,null,!0);else if(x&&y.inline&&!O.select("td.mceSelected,th.mceSelected").length)A("apply",n,a);else{var T=t.selection.getNode();$||!g[0].defaultBlock||O.getParent(T,O.isBlock)||c(g[0].defaultBlock),t.selection.setRng(u()),f=R.getBookmark(),p(C(R.getRng(K),g),f),y.styles&&(y.styles.color||y.styles.textDecoration)&&(e.walk(T,G,"childNodes"),G(T)),R.moveToBookmark(f),P(R.getRng(K)),t.nodeChanged()}}function u(i,o,a){function r(t){var i,n,a,s,l;if(3!==t.nodeType){if(1===t.nodeType&&Y(t)&&(s=y,y="true"===Y(t),l=!0),i=e.grep(t.childNodes),y&&!l)for(n=0,a=v.length;a>n&&!k(v[n],o,t,t);n++);if(b.deep&&i.length){for(n=0,a=i.length;a>n;n++)r(i[n]);l&&(y=s)}}}function l(e){var t;return B(n(e.parentNode).reverse(),function(e){var n;t||"_start"==e.id||"_end"==e.id||(n=h(e,i,o),n&&n.split!==!1&&(t=e))}),t}function c(e,t,i,n){var a,r,s,l,c,u;if(e){for(u=e.parentNode,a=t.parentNode;a&&a!=u;a=a.parentNode){for(r=O.clone(a,V),c=0;c<v.length;c++)if(k(v[c],o,r,r)){r=0;break}r&&(s&&r.appendChild(s),l||(l=r),s=r)}!n||b.mixed&&z(e)||(t=O.split(e,t)),s&&(i.parentNode.insertBefore(s,i),l.appendChild(i))}return t}function u(e){return c(l(e),e,e,!0)}function d(e){var t=O.get(e?"_start":"_end"),i=t[e?"firstChild":"lastChild"];return S(i)&&(i=i[e?"firstChild":"lastChild"]),O.remove(t,!0),i}function f(e){var i,n;e=C(e,v,K),b.split&&(i=N(e,K),n=N(e),i!=n?(/^(TR|TD)$/.test(i.nodeName)&&i.firstChild&&(i=("TD"==i.nodeName?i.firstChild:i.firstChild.firstChild)||i),i=x(i,"span",{id:"_start","data-mce-type":"bookmark"}),n=x(n,"span",{id:"_end","data-mce-type":"bookmark"}),u(i),u(n),i=d(K),n=d()):i=n=u(i),e.startContainer=i.parentNode,e.startOffset=q(i),e.endContainer=n.parentNode,e.endOffset=q(n)+1),j.walk(e,function(e){B(e,function(e){r(e),1===e.nodeType&&"underline"===t.dom.getStyle(e,"text-decoration")&&e.parentNode&&"underline"===X(e.parentNode)&&k({deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,e)})})}var m,g,v=s(i),b=v[0],y=!0;return a?(a.nodeType?(g=O.createRng(),g.setStartBefore(a),g.setEndAfter(a),f(g)):f(a),void 0):(R.isCollapsed()&&b.inline&&!O.select("td.mceSelected,th.mceSelected").length?A("remove",i,o):(m=R.getBookmark(),f(R.getRng(K)),R.moveToBookmark(m),b.inline&&p(i,o,R.getStart())&&P(R.getRng(!0)),t.nodeChanged()),void 0)}function d(e,t,i){var n=s(e);!p(e,t,i)||"toggle"in n[0]&&!n[0].toggle?c(e,t,i):u(e,t,i)}function h(e,t,i,n){function o(e,t,o){var a,r,s,l=t[o];if(t.onmatch)return t.onmatch(e,t,o);if(l)if(l.length===I){for(a in l)if(l.hasOwnProperty(a)){if(r="attributes"===o?O.getAttrib(e,a):y(e,a),n&&!r&&!t.exact)return;if((!n||t.exact)&&!b(r,_(l[a],i)))return}}else for(s=0;s<l.length;s++)if("attributes"===o?O.getAttrib(e,l[s]):y(e,l[s]))return t;return t}var a,r,l,c=s(t);if(c&&e)for(r=0;r<c.length;r++)if(a=c[r],v(e,a)&&o(e,a,"attributes")&&o(e,a,"styles")){if(l=a.classes)for(r=0;r<l.length;r++)if(!O.hasClass(e,l[r]))return;return a}}function p(e,t,i){function n(i){return i=O.getParent(i,function(i){return!!h(i,e,t,!0)}),h(i,e,t)}var o;return i?n(i):(i=R.getNode(),n(i)?K:(o=R.getStart(),o!=i&&n(o)?K:V))}function f(e,t){var i,n=[],o={};return i=R.getStart(),O.getParent(i,function(i){var a,r;for(a=0;a<e.length;a++)r=e[a],!o[r]&&h(i,r,t)&&(o[r]=!0,n.push(r))},O.getRoot()),n}function m(e){var t,i,o,a,r,l=s(e);if(l)for(t=R.getStart(),i=n(t),a=l.length-1;a>=0;a--){if(r=l[a].selector,!r)return K;for(o=i.length-1;o>=0;o--)if(O.is(i[o],r))return K}return V}function g(e,i,o){var a;return M||(M={},a={},t.onNodeChange.addToTop(function(e,t,i){var o=n(i),r={};B(M,function(e,t){B(o,function(i){return h(i,t,{},e.similar)?(a[t]||(B(e,function(e){e(!0,{node:i,format:t,parents:o})}),a[t]=e),r[t]=e,!1):void 0})}),B(a,function(e,t){r[t]||(delete a[t],B(e,function(e){e(!1,{node:i,format:t,parents:o})}))})})),B(e.split(","),function(e){M[e]||(M[e]=[],M[e].similar=o),M[e].push(i)}),this}function v(e,t){return b(e,t.inline)?K:b(e,t.block)?K:t.selector?O.is(e,t.selector):void 0}function b(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()==t.toLowerCase()}function y(e,t){var i=O.getStyle(e,t);return("color"==t||"backgroundColor"==t)&&(i=O.toHex(i)),"fontWeight"==t&&700==i&&(i="bold"),""+i}function _(e,t){return"string"!=typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,function(e,i){return t[i]||e})),e}function w(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)}function x(e,t,i){var n=O.create(t,i);return e.parentNode.insertBefore(n,e),n.appendChild(e),n}function C(e,o,a){function r(e){function t(e){return"BR"==e.nodeName&&e.getAttribute("data-mce-bogus")&&!e.nextSibling}var i,n,a,r,s;if(i=n=e?m:v,r=e?"previousSibling":"nextSibling",s=O.getRoot(),3==i.nodeType&&!w(i)&&(e?g>0:y<i.nodeValue.length))return i;for(;;){if(!o[0].block_expand&&z(n))return n;for(a=n[r];a;a=a[r])if(!S(a)&&!w(a)&&!t(a))return n;if(n.parentNode==s){i=n;break}n=n.parentNode}return i}function s(e,t){for(t===I&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)e=e.childNodes[t],e&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}}function l(e){for(var t=e;t;){if(1===t.nodeType&&Y(t))return"false"===Y(t)?t:e;t=t.parentNode}return e}function c(e,i,n){function o(e,t){var i,o,r=e.nodeValue;return"undefined"==typeof t&&(t=n?r.length:0),n?(i=r.lastIndexOf(" ",t),o=r.lastIndexOf(" ",t),i=i>o?i:o,-1===i||a||i++):(i=r.indexOf(" ",t),o=r.indexOf(" ",t),i=-1!==i&&(-1===o||o>i)?i:o),i}var r,s,l,c;if(3===e.nodeType){if(l=o(e,i),-1!==l)return{container:e,offset:l};c=e}for(r=new L(e,O.getParent(e,z)||t.getBody());s=r[n?"prev":"next"]();)if(3===s.nodeType){if(c=s,l=o(s),-1!==l)return{container:s,offset:l}}else if(z(s))break;return c?(i=n?0:c.length,{container:c,offset:i}):void 0}function u(t,i){var a,r,s,l;for(3==t.nodeType&&0===t.nodeValue.length&&t[i]&&(t=t[i]),a=n(t),r=0;r<a.length;r++)for(s=0;s<o.length;s++)if(l=o[s],!("collapsed"in l&&l.collapsed!==e.collapsed)&&O.is(a[r],l.selector))return a[r];return t}function d(e,t){var a;if(o[0].wrapper||(a=O.getParent(e,o[0].block)),a||(a=O.getParent(3==e.nodeType?e.parentNode:e,i)),a&&o[0].wrapper&&(a=n(a,"ul,ol").reverse()[0]||a),!a)for(a=e;a[t]&&!z(a[t])&&(a=a[t],!b(a,"br")););return a||e}var h,p,f,m=e.startContainer,g=e.startOffset,v=e.endContainer,y=e.endOffset;if(1==m.nodeType&&m.hasChildNodes()&&(h=m.childNodes.length-1,m=m.childNodes[g>h?h:g],3==m.nodeType&&(g=0)),1==v.nodeType&&v.hasChildNodes()&&(h=v.childNodes.length-1,v=v.childNodes[y>h?h:y-1],3==v.nodeType&&(y=v.nodeValue.length)),m=l(m),v=l(v),(S(m.parentNode)||S(m))&&(m=S(m)?m:m.parentNode,m=m.nextSibling||m,3==m.nodeType&&(g=0)),(S(v.parentNode)||S(v))&&(v=S(v)?v:v.parentNode,v=v.previousSibling||v,3==v.nodeType&&(y=v.length)),o[0].inline&&(e.collapsed&&(f=c(m,g,!0),f&&(m=f.container,g=f.offset),f=c(v,y),f&&(v=f.container,y=f.offset)),p=s(v,y),p.node)){for(;p.node&&0===p.offset&&p.node.previousSibling;)p=s(p.node.previousSibling);p.node&&p.offset>0&&3===p.node.nodeType&&" "===p.node.nodeValue.charAt(p.offset-1)&&p.offset>1&&(v=p.node,v.splitText(p.offset-1))}return(o[0].inline||o[0].block_expand)&&(o[0].inline&&3==m.nodeType&&0!==g||(m=r(!0)),o[0].inline&&3==v.nodeType&&y!==v.nodeValue.length||(v=r())),o[0].selector&&o[0].expand!==V&&!o[0].inline&&(m=u(m,"previousSibling"),v=u(v,"nextSibling")),(o[0].block||o[0].selector)&&(m=d(m,"previousSibling"),v=d(v,"nextSibling"),o[0].block&&(z(m)||(m=r(!0)),z(v)||(v=r()))),1==m.nodeType&&(g=q(m),m=m.parentNode),1==v.nodeType&&(y=q(v)+1,v=v.parentNode),{startContainer:m,startOffset:g,endContainer:v,endOffset:y}}function k(e,t,i,n){var o,a,r;if(!v(i,e))return V;if("all"!=e.remove)for(B(e.styles,function(e,o){e=_(e,t),"number"==typeof o&&(o=e,n=0),(!n||b(y(n,o),e))&&O.setStyle(i,o,""),r=1}),r&&""==O.getAttrib(i,"style")&&(i.removeAttribute("style"),i.removeAttribute("data-mce-style")),B(e.attributes,function(e,o){var a;if(e=_(e,t),"number"==typeof o&&(o=e,n=0),!n||b(O.getAttrib(n,o),e)){if("class"==o&&(e=O.getAttrib(i,o),e&&(a="",B(e.split(/\s+/),function(e){/mce\w+/.test(e)&&(a+=(a?" ":"")+e)}),a)))return O.setAttrib(i,o,a),void 0;"class"==o&&i.removeAttribute("className"),U.test(o)&&i.removeAttribute("data-mce-"+o),i.removeAttribute(o)}}),B(e.classes,function(e){e=_(e,t),(!n||O.hasClass(n,e))&&O.removeClass(i,e)}),a=O.getAttribs(i),o=0;o<a.length;o++)if(0!==a[o].nodeName.indexOf("_"))return V;return"none"!=e.remove?(T(i,e),K):void 0}function T(t,i){function n(e,t,i){return e=D(e,t,i),!e||"BR"==e.nodeName||z(e)}var o,a=t.parentNode;i.block&&($?a==O.getRoot()&&(i.list_block&&b(t,i.list_block)||B(e.grep(t.childNodes),function(e){F($,e.nodeName.toLowerCase())?o?o.appendChild(e):o=x(e,$):o=0})):z(t)&&!z(a)&&(n(t,V)||n(t.firstChild,K,1)||t.insertBefore(O.create("br"),t.firstChild),n(t,K)||n(t.lastChild,V,1)||t.appendChild(O.create("br")))),i.selector&&i.inline&&!b(i.inline,t)||O.remove(t,1)}function D(e,t,i){if(e)for(t=t?"nextSibling":"previousSibling",e=i?e:e[t];e;e=e[t])if(1==e.nodeType||!w(e))return e}function S(e){return e&&1==e.nodeType&&"bookmark"==e.getAttribute("data-mce-type")}function E(t,i){function n(e,t){function i(e){var t={};return B(O.getAttribs(e),function(i){var n=i.nodeName.toLowerCase();0!==n.indexOf("_")&&"style"!==n&&(t[n]=O.getAttrib(e,n))}),t}function n(e,t){var i,n;for(n in e)if(e.hasOwnProperty(n)){if(i=t[n],i===I)return V;if(e[n]!=i)return V;delete t[n]}for(n in t)if(t.hasOwnProperty(n))return V;return K}return e.nodeName!=t.nodeName?V:n(i(e),i(t))?n(O.parseStyle(O.getAttrib(e,"style")),O.parseStyle(O.getAttrib(t,"style")))?K:V:V}function o(e,t){for(a=e;a;a=a[t]){if(3==a.nodeType&&0!==a.nodeValue.length)return e;if(1==a.nodeType&&!S(a))return a}return e}var a,r;if(t&&i&&(t=o(t,"previousSibling"),i=o(i,"nextSibling"),n(t,i))){for(a=t.nextSibling;a&&a!=i;)r=a,a=a.nextSibling,t.appendChild(r);return O.remove(i),B(e.grep(i.childNodes),function(e){t.appendChild(e)}),t}return i}function N(e,i){var n,o,a;return n=e[i?"startContainer":"endContainer"],o=e[i?"startOffset":"endOffset"],1==n.nodeType&&(a=n.childNodes.length-1,!i&&o&&o--,n=n.childNodes[o>a?a:o]),3===n.nodeType&&i&&o>=n.nodeValue.length&&(n=new L(n,t.getBody()).next()||n),3!==n.nodeType||i||0!==o||(n=new L(n,t.getBody()).prev()||n),n}function A(n,o,a){function r(e){var i=O.create("span",{id:b,"data-mce-bogus":!0,style:y?"color:red":""});return e&&i.appendChild(t.getDoc().createTextNode(W)),i}function l(e,t){for(;e;){if(3===e.nodeType&&e.nodeValue!==W||e.childNodes.length>1)return!1;t&&1===e.nodeType&&t.push(e),e=e.firstChild}return!0}function d(e){for(;e;){if(e.id===b)return e;e=e.parentNode}}function p(e){var t;if(e)for(t=new L(e,e),e=t.current();e;e=t.next())if(3===e.nodeType)return e}function f(e,t){var i,n;if(e)n=R.getRng(!0),l(e)?(t!==!1&&(n.setStartBefore(e),n.setEndBefore(e)),O.remove(e)):(i=p(e),i.nodeValue.charAt(0)===W&&(i=i.deleteData(0,1)),O.remove(e,1)),R.setRng(n);else if(e=d(R.getStart()),!e)for(;e=O.get(b);)f(e,!1)}function m(){var e,t,i,n,l,u,h;e=R.getRng(!0),n=e.startOffset,u=e.startContainer,h=u.nodeValue,t=d(R.getStart()),t&&(i=p(t)),h&&n>0&&n<h.length&&/\w/.test(h.charAt(n))&&/\w/.test(h.charAt(n-1))?(l=R.getBookmark(),e.collapse(!0),e=C(e,s(o)),e=j.split(e),c(o,a,e),R.moveToBookmark(l)):(t&&i.nodeValue===W?c(o,a,t):(t=r(!0),i=t.firstChild,e.insertNode(t),n=1,c(o,a,t)),R.setCursorLocation(i,n))}function g(){var e,t,n,l,c,d,p,f,m=R.getRng(!0),g=[];for(e=m.startContainer,t=m.startOffset,c=e,3==e.nodeType&&((t!=e.nodeValue.length||e.nodeValue===W)&&(l=!0),c=c.parentNode);c;){if(h(c,o,a)){d=c;break}c.nextSibling&&(l=!0),g.push(c),c=c.parentNode}if(d)if(l)n=R.getBookmark(),m.collapse(!0),m=C(m,s(o),!0),m=j.split(m),u(o,a,m),R.moveToBookmark(n);else{for(f=r(),c=f,p=g.length-1;p>=0;p--)c.appendChild(O.clone(g[p],!1)),c=c.firstChild;c.appendChild(O.doc.createTextNode(W)),c=c.firstChild;var v=O.getParent(d,i);v&&O.isEmpty(v)?d.parentNode.replaceChild(f,d):O.insertAfter(f,d),R.setCursorLocation(c,1),O.isEmpty(d)&&O.remove(d)}}function v(){var t;t=d(R.getStart()),t&&!O.isEmpty(t)&&e.walk(t,function(e){1!=e.nodeType||e.id===b||O.isEmpty(e)||O.setAttrib(e,"data-mce-bogus",null)},"childNodes")}var b="_mce_caret",y=t.settings.caret_debug;self._hasCaretEvents||(t.onBeforeGetContent.addToTop(function(){var e,t=[];if(l(d(R.getStart()),t))for(e=t.length;e--;)O.setAttrib(t[e],"data-mce-bogus","1")}),e.each("onMouseUp onKeyUp".split(" "),function(e){t[e].addToTop(function(){f(),v()})}),t.onKeyDown.addToTop(function(e,t){var i=t.keyCode;(8==i||37==i||39==i)&&f(d(R.getStart())),v()}),R.onSetContent.add(v),self._hasCaretEvents=!0),"apply"==n?m():g()}function P(e){var t,i,n,o,a,r=e.startContainer,s=e.startOffset;if(3==r.nodeType&&s>=r.nodeValue.length&&(s=q(r),r=r.parentNode,t=!0),1==r.nodeType)for(o=r.childNodes,r=o[Math.min(s,o.length-1)],i=new L(r,O.getParent(r,O.isBlock)),(s>o.length-1||t)&&i.next(),n=i.current();n;n=i.next())if(3==n.nodeType&&!w(n))return a=O.create("a",null,W),n.parentNode.insertBefore(a,n),e.setStart(n,0),R.setRng(e),O.remove(a),void 0}var M,I,H={},B=e.each,O=t.dom,R=t.selection,L=e.dom.TreeWalker,j=new e.dom.RangeUtils(O),F=t.schema.isValidChild,z=(e.isArray,O.isBlock),$=t.settings.forced_root_block,q=O.nodeIndex,W="",U=/^(src|href|style)$/,V=!1,K=!0,Y=O.getContentEditable,X=function(e){var i;return t.dom.getParent(e,function(e){return i=t.dom.getStyle(e,"text-decoration"),i&&"none"!==i}),i},G=function(e){var i;1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType&&(i=X(e.parentNode),t.dom.getStyle(e,"color")&&i?t.dom.setStyle(e,"text-decoration",i):t.dom.getStyle(e,"textdecoration")===i&&t.dom.setStyle(e,"text-decoration",null))};e.extend(this,{get:s,register:l,apply:c,remove:u,toggle:d,match:p,matchAll:f,matchNode:h,canApply:m,formatChanged:g}),a(),r()}}(tinymce),tinymce.onAddEditor.add(function(e,t){function i(t,i){e.each(i,function(e,i){e&&r.setStyle(t,i,e)}),r.rename(t,"span")}function n(i,n){r=i.dom,s.convert_fonts_to_spans&&e.each(r.select("font,u,strike",n.node),function(e){o[e.nodeName.toLowerCase()](t.dom,e)})}var o,a,r,s=t.settings;s.inline_styles&&(a=e.explode(s.font_size_legacy_values),o={font:function(e,t){i(t,{backgroundColor:t.style.backgroundColor,color:t.color,fontFamily:t.face,fontSize:a[parseInt(t.size,10)-1]})},u:function(e,t){i(t,{textDecoration:"underline"})},strike:function(e,t){i(t,{textDecoration:"line-through"})}},t.onPreProcess.add(n),t.onSetContent.add(n),t.onInit.add(function(){t.selection.onSetContent.add(n)}))}),function(e){var t=e.dom.TreeWalker;e.EnterKey=function(i){function n(n){function c(e){return e&&o.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&!/^(fixed|absolute)/i.test(e.style.position)&&"true"!==o.getContentEditable(e)}function u(t){var i;e.isIE&&!e.isIE11&&o.isBlock(t)&&(i=a.getRng(),t.appendChild(o.create("span",null," ")),a.select(t),t.lastChild.outerHTML="",a.setRng(i))}function d(e){for(var t,i=e,n=[];i=i.firstChild;){if(o.isBlock(i))return;1!=i.nodeType||l[i.nodeName.toLowerCase()]||n.push(i)
|
82
|
+
}for(t=n.length;t--;)i=n[t],!i.hasChildNodes()||i.firstChild==i.lastChild&&""===i.firstChild.nodeValue?o.remove(i):"A"==i.nodeName&&" "===(i.innerText||i.textContent)&&o.remove(i)}function h(e){var n,r,s,c,u,d,h=e;if(s=o.createRng(),e.hasChildNodes()){for(n=new t(e,e);r=n.current();){if(3==r.nodeType){s.setStart(r,0),s.setEnd(r,0);break}if(l[r.nodeName.toLowerCase()]){s.setStartBefore(r),s.setEndBefore(r);break}h=r,r=n.next()}r||(s.setStart(h,0),s.setEnd(h,0))}else"BR"==e.nodeName?e.nextSibling&&o.isBlock(e.nextSibling)?((!S||9>S)&&(d=o.create("br"),e.parentNode.insertBefore(d,e)),s.setStartBefore(e),s.setEndBefore(e)):(s.setStartAfter(e),s.setEndAfter(e)):(s.setStart(e,0),s.setEnd(e,0));a.setRng(s),o.remove(d),u=o.getViewPort(i.getWin()),c=o.getPos(e).y,(c<u.y||c+25>u.y+u.h)&&i.getWin().scrollTo(0,c<u.y?c:c-u.h+25)}function p(t){var i,n,a,s=k;if(i=t||"TABLE"==M?o.create(t||H):D.cloneNode(!1),a=i,r.keep_styles!==!1)do if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(s.nodeName)){if("_mce_caret"==s.id)continue;n=s.cloneNode(!1),o.setAttrib(n,"id",""),i.hasChildNodes()?(n.appendChild(i.firstChild),i.appendChild(n)):(a=n,i.appendChild(n))}while(s=s.parentNode);return(!e.isIE||e.isIE11)&&(a.innerHTML='<br data-mce-bogus="1">'),i}function f(e){var i,n,o;if(3==k.nodeType&&(e?T>0:T<k.nodeValue.length))return!1;if(k.parentNode==D&&B&&!e)return!0;if(e&&1==k.nodeType&&k==D.firstChild)return!0;if("TABLE"===k.nodeName||k.previousSibling&&"TABLE"==k.previousSibling.nodeName)return B&&!e||!B&&e;for(i=new t(k,D),3==k.nodeType&&(e&&0==T?i.prev():e||T!=k.nodeValue.length||i.next());n=i.current();){if(1===n.nodeType){if(!n.getAttribute("data-mce-bogus")&&(o=n.nodeName.toLowerCase(),l[o]&&"br"!==o))return!1}else if(3===n.nodeType&&!/^[ \t\r\n]*$/.test(n.nodeValue))return!1;e?i.prev():i.next()}return!0}function m(e,t){var i,n,a,r,s,l=H||"P";if(n=o.getParent(e,o.isBlock),!n||!c(n)){if(n=n||C,!n.hasChildNodes())return i=o.create(l),n.appendChild(i),O.setStart(i,0),O.setEnd(i,0),i;for(r=e;r.parentNode!=n;)r=r.parentNode;for(;r&&!o.isBlock(r);)a=r,r=r.previousSibling;if(a){for(i=o.create(l),a.parentNode.insertBefore(i,a),r=a;r&&!o.isBlock(r);)s=r.nextSibling,i.appendChild(r),r=s;O.setStart(e,t),O.setEnd(e,t)}}return e}function g(){function e(e){for(var t=P[e?"firstChild":"lastChild"];t&&1!=t.nodeType;)t=t[e?"nextSibling":"previousSibling"];return t===D}N=H?p(H):o.create("BR"),e(!0)&&e()?o.replace(N,P):e(!0)?P.parentNode.insertBefore(N,P):e()?(o.insertAfter(N,P),u(N)):(x=O.cloneRange(),x.setStartAfter(D),x.setEndAfter(P),A=x.extractContents(),o.insertAfter(A,P),o.insertAfter(N,P)),o.remove(D),h(N),s.add()}function v(){for(var e,i=new t(k,D);e=i.next();)if(l[e.nodeName.toLowerCase()]||e.length>0)return!0}function b(){var t,i,n;k&&3==k.nodeType&&T>=k.nodeValue.length&&(e.isIE&&!e.isIE11||v()||(t=o.create("br"),O.insertNode(t),O.setStartAfter(t),O.setEndAfter(t),i=!0)),t=o.create("br"),O.insertNode(t),e.isIE&&!e.isIE11&&"PRE"==M&&(!S||8>S)&&t.parentNode.insertBefore(o.doc.createTextNode("\r"),t),n=o.create("span",{}," "),t.parentNode.insertBefore(n,t),a.scrollIntoView(n),o.remove(n),i?(O.setStartBefore(t),O.setEndBefore(t)):(O.setStartAfter(t),O.setEndAfter(t)),a.setRng(O),s.add()}function y(e){do 3===e.nodeType&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;while(e)}function _(e){var t,i,n=o.getRoot();for(t=e;t!==n&&"false"!==o.getContentEditable(t);)"true"===o.getContentEditable(t)&&(i=t),t=t.parentNode;return t!==n?i:n}function w(t){var i;(!e.isIE||e.isIE11)&&(t.normalize(),i=t.lastChild,(!i||/^(left|right)$/gi.test(o.getStyle(i,"float",!0)))&&o.add(t,"br"))}var x,C,k,T,D,S,E,N,A,P,M,I,H,B,O=a.getRng(!0);if(!O.collapsed)return i.execCommand("Delete"),void 0;if(!n.isDefaultPrevented()&&(k=O.startContainer,T=O.startOffset,H=(r.force_p_newlines?"p":"")||r.forced_root_block,H=H?H.toUpperCase():"",S=o.doc.documentMode,E=n.shiftKey,1==k.nodeType&&k.hasChildNodes()&&(B=T>k.childNodes.length-1,k=k.childNodes[Math.min(T,k.childNodes.length-1)]||k,T=B&&3==k.nodeType?k.nodeValue.length:0),C=_(k))){if(s.beforeChange(),!o.isBlock(C)&&C!=o.getRoot())return(!H||E)&&b(),void 0;if((H&&!E||!H&&E)&&(k=m(k,T)),D=o.getParent(k,o.isBlock),P=D?o.getParent(D.parentNode,o.isBlock):null,M=D?D.nodeName.toUpperCase():"",I=P?P.nodeName.toUpperCase():"","LI"!=I||n.ctrlKey||(D=P,M=I),"LI"==M){if(!H&&E)return b(),void 0;if(o.isEmpty(D))return/^(UL|OL|LI)$/.test(P.parentNode.nodeName)?!1:(g(),void 0)}if("PRE"==M&&r.br_in_pre!==!1){if(!E)return b(),void 0}else if(!H&&!E&&"LI"!=M||H&&E)return b(),void 0;H=H||"P",f()?(N=/^(H[1-6]|PRE)$/.test(M)&&"HGROUP"!=I?p(H):p(),r.end_container_on_empty_block&&c(P)&&o.isEmpty(D)?N=o.split(P,D):o.insertAfter(N,D),h(N)):f(!0)?(N=D.parentNode.insertBefore(p(),D),u(N)):(x=O.cloneRange(),x.setEndAfter(D),A=x.extractContents(),y(A),N=A.firstChild,o.insertAfter(A,D),d(N),w(D),h(N)),o.setAttrib(N,"id",""),s.add()}}var o=i.dom,a=i.selection,r=i.settings,s=i.undoManager,l=i.schema.getNonEmptyElements();i.onKeyDown.add(function(e,t){13==t.keyCode&&n(t)!==!1&&t.preventDefault()})}}(tinymce),function(){var e,t,i,n,o,a,r;window.wagn||(window.wagn={}),$.extend(wagn,{editorContentFunctionMap:{".tinymce-textarea":function(){return tinyMCE.get(this[0].id).getContent()},".pointer-select":function(){return o(this.val())},".pointer-multiselect":function(){return o(this.val())},".pointer-radio-list":function(){return o(this.find("input:checked").val())},".pointer-list-ul":function(){return o(this.find("input").map(function(){return $(this).val()}))},".pointer-checkbox-list":function(){return o(this.find("input:checked").map(function(){return $(this).val()}))},".perm-editor":function(){return n(this)},".wikirate-topic-tree":function(){return o(this.find(".jstree-clicked").map(function(){return $.trim($(this).text())}))}},editorInitFunctionMap:{".date-editor":function(){return this.datepicker({dateFormat:"yy-mm-dd"})},textarea:function(){return $(this).autosize()},".tinymce-textarea":function(){return wagn.initTinyMCE(this[0].id)},".pointer-list-editor":function(){return this.sortable(),wagn.initPointerList(this.find("input"))},".file-upload":function(){return this.fileupload({add:wagn.chooseFile})},".etherpad-textarea":function(){return $(this).closest("form").find(".edit-submit-button").attr("class","etherpad-submit-button")},".wikirate-topic-tree":function(){return $(this).jstree({plugins:["themes","html_data","ui","crrm"],ui:{select_multiple_modifier:"on",initially_select:$(this).closest(".editor").find(".initial-content").text().split("|"),selected_parent_close:!1},themes:{icons:!1}})}},initPointerList:function(e){var t;return t=e.closest("ul").attr("options-card"),e.autocomplete({source:wagn.prepUrl(wagn.rootPath+"/"+t+".json?view=name_complete")})},setTinyMCEConfig:function(e){var t;return t=function(){try{return $.parseJSON(e)}catch(t){return{}}},wagn.tinyMCEConfig=t()},initTinyMCE:function(e){var t,i,n;return t={plugins:"autoresize",autoresize_max_height:500},n=null!=wagn.tinyMCEConfig?wagn.tinyMCEConfig:{},i={mode:"exact",elements:e,content_css:wagn.cssPath,entity_encoding:"raw"},$.extend(t,n,i),tinyMCE.init(t)},chooseFile:function(e,t){var i,n,o,a;return o=t.files[0],$(this).closest("form").data("file-data",t),(a=$(this).slot().find(".name-editor input"))&&a[0]&&""===a.val()&&a.val(o.name.replace(/\..*$/,"").replace(/_/g," ")),n=$(this).closest(".card-editor"),n.find(".choose-file").hide(),n.find(".chosen-filename").text(o.name),n.find(".chosen-file").show(),i=this.name.replace(/attach\]$/,"content]"),n.append('<input type="hidden" value="CHOSEN" class="upload-card-content" name="'+i+'">')},openMenu:function(e,t){var i,n;return n=$(e),i=n.data("menu"),null==i&&(i=wagn.generateMenu(n.slot(),n.data("menu-vars")),n.data("menu",i),i.menu({position:{my:"right top",at:"left-2 top-3"},icons:{submenu:"ui-icon-carat-1-w"}})),t&&i.addClass("card-menu-tappable"),i.show(),i.position({my:"right top",at:"right+2 top+2",of:e})},closeMenu:function(e){return $(e).hide(),$(e).menu("collapseAll",null,!0)},generateMenu:function(e,t){var i,n,o;return o=$.extend(!0,{},wagn.menu_template),i=wagn.generateMenuItems(o,t),n=$('<ul class="card-menu">'+i.join("\n")+"</ul>"),e.append(n),n},generateMenuItems:function(e,t){var i;return i=[],$.each(e,function(e,n){var o,a,r,s;return n["if"]&&!t[n["if"]]?!0:(n.text&&(n.text=n.text.replace(/\%\{([^}]*)\}/,function(e,i){return t[i]}),n.text=$("<div/>").text(n.text).html()),o=n.link?t[n.link]:n.plain?"<a>"+n.plain+"</a>":n.page?(r=t[n.page]||n.page,s=n.text||r,'<a href="'+wagn.rootPath+"/"+wagn.linkname(r)+'">'+s+" ↵</a>"):wagn.generateStandardMenuItem(n,t),o?(n.list&&(a=wagn.generateListTemplate(n.list,t))&&a.length>0&&(n.sub=a),n.sub&&(o+="<ul>"+wagn.generateMenuItems(n.sub,t).join("\n")+"</ul>"),i.push("<li>"+o+"</li>")):void 0)}),i},linkname:function(e){return e.replace(/[^\w\*\+]/g," ").replace(/\s+/g,"_")},generateListTemplate:function(e,t){var i,n;return i=[],(n=t[e.name])&&$.each(n,function(t,n){var o;return o=$.extend({},e.template),$.map(o,function(e,t){return o[t]=n[o[t]]||o[t]}),i.push(o)}),e.append&&(i=i.concat(e.append)),i},generateStandardMenuItem:function(e,t){var i,n,o,a;return i=wagn.linkname(t.self),n=e.path_opts||{},e.related&&(e.view="related",n.related="object"==typeof e.related?$.extend({},e.related,{name:t[e.related.name]}):(e.text||(e.text=e.related),{name:"+*"+e.related})),e.view?("home"!==e.view&&(n.view=e.view),o=wagn.rootPath+"/"+i,$.isEmptyObject(n)||(o+="?"+$.param(n)),a=e.text||e.view,'<a href="'+o+'" data-remote="true" class="slotter">'+a+"</a>"):void 0}}),$(window).ready(function(){var i;return $("body").on("click",".cancel-upload",function(){var e,t;return t=$(this).closest(".card-editor"),t.find(".chosen-file").hide(),t.find(".choose-file").show(),$(this).closest("form").data("file-data",null),e=t.find(".upload-card-content").remove()}),$(".navbox").autocomplete({html:"html",source:e,select:t}),$("body").on("mouseenter",".card-menu-link",function(){return wagn.openMenu(this,!1)}),$("body").on("mouseleave",".card-menu",function(){return wagn.closeMenu(this)}),$(document).on("tap",".card-header",function(e){var t;return t=$(this).find(".card-menu-link"),!t[0]||t.data("menu")||e.pageX-$(this).offset().left<$(this).width()/2?void 0:(wagn.openMenu(t,!0),e.preventDefault())}),$(document).on("tap","body",function(e){return $(e.target).closest(".card-header")[0]||$(e.target).closest(".card-menu-link")[0]?void 0:$(".card-menu").hide()}),$(document).on("tap",".ui-menu-icon",function(e){return $(this).closest("li").trigger("mouseenter"),e.preventDefault()}),$("body").on("click",".pointer-item-add",function(e){var t,i,n;return i=$(this).closest(".content-editor").find(".pointer-li:last"),n=i.clone(),t=n.find("input"),t.val(""),i.after(n),wagn.initPointerList(t),e.preventDefault()}),$("body").on("click",".pointer-item-delete",function(){var e;return e=$(this).closest("li"),e.closest("ul").find(".pointer-li").length>1?e.remove():e.find("input").val(""),event.preventDefault()}),$("body").on("click",".perm-vals input",function(){return $(this).slot().find("#inherit").attr("checked",!1)}),$("body").on("click",".perm-editor #inherit",function(){var e;return e=$(this).slot(),e.find(".perm-group input:checked").attr("checked",!1),e.find(".perm-indiv input").val("")}),$("body").on("click",".rule-submit-button",function(){var e;return e=$(this).closest("form"),e.find(".set-editor input:checked").val()?!0:(e.find(".set-editor").addClass("attention"),$(this).notify("To what Set of cards does this Rule apply?"),!1)}),$("body").on("click",".etherpad-submit-button",function(){var e,t;return wagn.padform=$(this).closest("form"),e=$(wagn.padform).find("iframe")[0].src,-1!==(t=e.indexOf("?"))&&(e=e.slice(0,t)),$.get(e+"/export/html",function(e){return $(wagn.padform).find(".etherpad-textarea")[0].value=e,$(wagn.padform)[0].submit()}),!1}),$("body").on("click",".shade-view h1",function(){var e;return e=$(this).slot().find(".shade-content").is(":hidden"),r($(this).closest(".pointer-list").find(".shade-content:visible").parent()),e?r($(this).slot()):void 0}),(i=$(".shade-view h1")[0])&&$(i).trigger("click"),$("body").on("mouseenter","#wikirate-nav > a",function(){var e,t;return t=$(this).find("ul"),t[0]?t.css("display","inline-block"):(e=$(this),$.ajax(e.attr("href"),{data:{view:"navdrop",layout:"none",index:$("#wikirate-nav > a").index(e)},success:function(t){return wagn.d=t,e.prepend($(t).menu())}}))}),$("body").on("mouseleave","#wikirate-nav ul",function(){return $(this).hide()}),$("body").on("change",".go-to-selected select",function(){var e;return e=$(this).val(),""!==e?window.location=wagn.rootPath+escape(e):void 0})}),$(document).bind("mobileinit",function(){return $.mobile.autoInitializePage=!1,$.mobile.ajaxEnabled=!1}),r=function(e){return e.find(".shade-content").slideToggle(1e3),e.find(".ui-icon").toggleClass("ui-icon-triangle-1-e ui-icon-triangle-1-s")},n=function(e){var t,i;return e.find("#inherit").attr("checked")?"_left":(t=e.find(".perm-group input:checked").map(function(){return $(this).val()}),i=e.find(".perm-indiv input").map(function(){return $(this).val()}),o($.makeArray(t).concat($.makeArray(i))))},o=function(e){var t;return t=$.map($.makeArray(e),function(e){return e?"[["+e+"]]":void 0}),$.makeArray(t).join("\n")},a=0,e=function(e,t){var n,o;return n=this.element.closest("form"),o=n.serialize()+"&view=complete",this.xhr=$.ajax({url:wagn.prepUrl(wagn.rootPath+"/:search.json"),data:o,dataType:"json",wagReq:++a,success:function(n){return this.wagReq===a?t(i(e.term,n)):void 0},error:function(){return this.wagReq===a?t([]):void 0}})},i=function(e,t){var i;return i=[],$.each(["search","add","new"],function(n,o){var a,r;return(r=t[o])?(a={value:e,prefix:o,icon:"plus",label:'<strong class="highlight">'+e+"</strong>"},"search"===o?(a.icon=o,a.term=e):"add"===o?a.href="/card/new?card[name]="+encodeURIComponent(r):"new"===o&&(a.type="add",a.href="/new/"+r[1]),i.push(a)):void 0}),$.each(t["goto"],function(e,t){return i.push({icon:"arrowreturnthick-1-e",prefix:"go to",value:t[0],label:t[1],href:"/"+t[2]})}),$.each(i,function(e,t){return t.label='<span class="navbox-item-label"><a class="ui-icon ui-icon-'+t.icon+'"></a>'+t.prefix+':</span> <span class="navbox-item-value">'+t.label+"</span>"}),i},t=function(e,t){return t.item.term?$(this).closest("form").submit():window.location=wagn.rootPath+t.item.href,$(this).attr("disabled","disabled")}}.call(this),function(){var e,t,i;$.extend(wagn,{initializeEditors:function(e,t){return null==t&&(t=wagn.editorInitFunctionMap),$.each(t,function(t,i){return $.each(e.find(t),function(){return i.call($(this))})})},prepUrl:function(e,t){var i,n,o;return o={},i=$("#main").children(".card-slot").data("cardName"),null!=i&&(o.main=i),t&&(t.isMain()&&(o.is_main=!0),n=t.data("slot"),null!=n&&wagn.slotParams(n,o,"slot")),e+((e.match(/\?/)?"&":"?")+$.param(o))},slotParams:function(e,i,n){return $.each(e,function(e,o){var a;return a=n+"["+t(e)+"]","items"===e?wagn.slotParams(o,i,a):i[a]=o})},pingName:function(e,t){return $.getJSON(wagn.rootPath+"/",{format:"json",view:"status","card[name]":e},t)}}),jQuery.fn.extend({slot:function(){return this.closest(".card-slot")},setSlotContent:function(e){var t,i,n;return t=this.slot(),n=$(e),n[0]?(i=t.attr("data-slot"))&&null!=i&&n.attr("data-slot",i):n=e,t.replaceWith(n),n},notify:function(e){var t,i,n;return n=this.slot(),i=n.find(".card-notice"),i[0]||(i=$('<div class="card-notice"></div>'),t=n.find(".card-form"),t[0]?$(t[0]).append(i):n.append(i)),i.html(e),i.show("blind")},report:function(e){var t;return t=this.slot().find(".card-report"),t[0]?(t.hide(),t.html(e),t.show("drop",750),setTimeout(function(){return t.hide("drop",750)},3e3)):!1},isMain:function(){return this.slot().parent("#main")[0]},loadCaptcha:function(){return Recaptcha.create(wagn.recaptchaKey,this[0])},autosave:function(){var e,t,i,n;if(n=this.slot(),!this.attr("no-autosave")){if(t=this.closest("fieldset"),t[0]){if(!(e=t.data("cardId")))return;i=": "+t.data("cardName")}else e=n.data("cardId"),i="";return $.ajax(wagn.rootPath+"/card/save_draft/~"+e,{data:{"card[content]":this.val()},type:"POST",success:function(){return n.report("draft saved"+i)}})}},setContentFieldsFromMap:function(e){var t;return null==e&&(e=wagn.editorContentFunctionMap),t=$(this),$.each(e,function(e,i){return t.setContentFields(e,i)})},setContentFields:function(e,t){return $.each(this.find(e),function(){return $(this).setContentField(t)})},setContentField:function(e){var t,i,n;return t=this.closest(".card-editor").find(".card-content"),i=t.val(),n=e.call(this),t.val(n),i!==n?t.change():void 0}}),setInterval(function(){return $(".card-form").setContentFieldsFromMap()},2e4),$(window).ready(function(){return $.ajaxSetup({cache:!1}),setTimeout(function(){return wagn.initializeEditors($("body"))},10),$("body").on("ajax:success",".slotter",function(e,t){var i,n;return t.redirect?window.location=t.redirect:(n=$(this).attr("notify-success"),i=$(this).setSlotContent(t),i.jquery&&(wagn.initializeEditors(i),null!=n)?i.notify(n):void 0)}),$("body").on("ajax:error",".slotter",function(e,t){var i,n;return i=t.responseText,403===t.status?$(this).setSlotContent(i):($(this).notify(i),n=$(this).slot(),409===t.status?n.find(".current_revision_id").val(n.find(".new-current-revision-id").text()):449===t.status?n.find(".recaptcha-box").loadCaptcha():void 0)}),$("body").on("click","button.slotter",function(){return $.rails.allowAction($(this))?$.rails.handleRemote($(this)):!1}),$("body").on("ajax:beforeSend",".slotter",function(t,i,n){var o,a,r,s,l;if(!n.skip_before_send&&(n.url.match(/home_view/)||(n.url=wagn.prepUrl(n.url,$(this).slot())),$(this).is("form"))){if(wagn.recaptchaKey&&"on"===$(this).attr("recaptcha")&&!$(this).find(".recaptcha-box")[0])return e(this),!1;if(a=$(this).data("file-data"))return s=$(this).find(".file-upload"),s[1]?($(this).notify("Wagn does not yet support multiple files in a single form."),!1):(l=s.data("fileupload"),l._isXHRUpload(l.options)||($(this).find("[name=success]").val("_self"),n.url+="&simulate_xhr=true",r=function(e){return e.find("body").html()},n.dataFilter=r),o=$.extend(n,l._getAJAXSettings(a),{url:n.url}),o.skip_before_send=!0,$.ajax(o),!1)}}),$("body").on("submit",".card-form",function(){return $(this).setContentFieldsFromMap(),$(this).find(".card-content").attr("no-autosave","true"),!0}),$("body").on("click",".submitter",function(){return $(this).closest("form").submit()}),$("body").on("click",".renamer-updater",function(){return $(this).closest("form").find(".update_referencers").val("true")}),$("body").on("submit",".card-name-form",function(){var e;return e=$(this).find(".confirm-rename"),e.is(":hidden")?($(this).find("#referers").val()>0&&$(this).find(".renamer-updater").show(),e.show("blind"),!1):void 0}),$("body").on("click","button.redirecter",function(){return window.location=$(this).attr("href")}),wagn.noDoubleClick||$("body").on("dblclick",".card-slot",function(){var e;return e=$(this),e.find(".card-editor")[0]?!1:e.closest(".card-header")[0]?!1:e.data("cardId")?(e.addClass("slotter"),e.attr("href",wagn.rootPath+"/card/edit/~"+e.data("cardId")),$.rails.handleRemote(e),!1):!1}),$("body").on("dblclick",".nodblclick",function(){return!1}),$("body").on("submit","form.slotter",function(){var e,t;return(t=$(this).attr("main-success"))&&$(this).isMain()&&(e=$(this).find("[name=success]"),e&&!e.val().match(/^REDIRECT/))?e.val("REDIRECT"===t?t+": "+e.val():t):void 0}),$(".card-slot").on("click",".standard-delete",function(){var e;if("true"!==$(this).attr("success-ready"))return e=$(this).isMain()?"REDIRECT: *previous":"TEXT:"+$(this).slot().data("cardName")+" removed",$(this).attr("href",$(this).attr("href")+"?success="+encodeURIComponent(e)),$(this).attr("success-ready","true")}),$("body").on("change",".live-type-field",function(){return $(this).data("params",$(this).closest("form").serialize()),$(this).data("url",$(this).attr("href"))}),$("body").on("change",".edit-type-field",function(){return $(this).closest("form").submit()}),$("body").on("change",".autosave .card-content",function(){var e;return e=$(this),setTimeout(function(){return e.autosave()},500)}),$("body").on("mouseenter","[hover_content]",function(){return $(this).attr("hover_restore",$(this).html()),$(this).html($(this).attr("hover_content"))}),$("body").on("mouseleave","[hover_content]",function(){return $(this).html($(this).attr("hover_restore"))}),$("body").on("keyup",".name-editor input",function(){var e,t;return e=$(this),t=e.val(),wagn.pingName(t,function(i){var n,o,a,r,s,l,c;return e.val()!==t?null:(c=i.status,c?(n=e.parent(),o=e.closest("fieldset").find("legend"),r=o.find(".name-messages"),r[0]||(r=$('<span class="name-messages"></span>'),o.append(r)),n.removeClass("real-name virtual-name known-name"),l=e.slot().data("cardId"),"unknown"===c||l&&parseInt(l)===i.id?r.html(""):(n.addClass(c+"-name known-name"),a=s="virtual"===c?"in virtual":"already in",r.html('"<a href="'+wagn.rootPath+"/"+i.url_key+'">'+t+'</a>" '+s+" use"))):void 0)})}),$("body").on("click",".render-error-link",function(e){var t;return t=$(this).closest(".render-error").find(".render-error-message"),t.show(),e.preventDefault()})}),e=function(e){var t,i;return i="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js",t=$('<div class="recaptcha-box"></div>'),$(e).children().last().after(t),$.getScript(i,function(){return t.loadCaptcha()})},t=function(e){return e.replace(/([a-z])([A-Z])/g,function(e){return e[0]+"_"+e[1].toLowerCase()})},i=function(e){return"undefined"!=typeof console&&null!==console?console.log(e):void 0}}.call(this),wagn.menu_template=[{text:"edit",view:"edit","if":"edit",sub:[{text:"content",view:"edit"},{text:"name",view:"edit_name"},{text:"type: %{type}",view:"edit_type"},{text:"structure",related:{name:"structure",view:"edit"},"if":"structure"},{link:"delete","if":"delete"}]},{text:"view",view:"home",sub:[{text:"refresh",view:"home"},{text:"page",page:"self"},{text:"type: %{type}",page:"type"},{text:"history",view:"history","if":"edit"},{text:"structure",related:{name:"structure"},"if":"structure"}]},{text:"discuss",related:{name:"+discussion"},"if":"discuss"},{text:"advanced",view:"options",sub:[{text:"rules",view:"options",list:{name:"related_sets",template:{view:"options",text:"text",path_opts:"path_opts"}}},{plain:"related",list:{name:"piecenames",template:{page:"item"},append:[{related:"children","if":"creator"},{related:"mates"}]}},{related:"referred to by","if":"creator",sub:[{text:"all",related:"referred to by"},{text:"links",related:"linked to by"},{text:"inclusions",related:"included by"}]},{related:"refers to","if":"creator",sub:[{text:"all",related:"refers to"},{text:"links",related:"links to"},{text:"inclusions",related:"includes"}]},{related:"editors","if":"creator",sub:[{text:"all editors",related:"editors"},{text:"creator: %{creator}",page:"creator"},{text:"last editor: %{updater}",page:"updater"}]}]},{link:"watch","if":"watch"},{view:"account","if":"account",sub:[{view:"account",text:"details"},{related:"roles"},{related:"created"},{related:"edited"}]}],/*
|
83
|
+
* jQuery Mobile Framework Git Build: SHA1: 07a30fb0138f34a880ca7c9c9427319d1f976eda <> Date: Mon Jul 16 01:56:11 2012 +0200
|
84
|
+
* http://jquerymobile.com
|
85
|
+
*
|
86
|
+
* Copyright 2012 jQuery Foundation and other contributors
|
87
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
88
|
+
* http://jquery.org/license
|
89
|
+
*
|
90
|
+
*/
|
91
|
+
function(e,t,i){"function"==typeof define&&define.amd?define(["jquery"],function(n){return i(n,e,t),n.mobile}):i(e.jQuery,e,t)}(this,document,function(e,t,i,n){!function(e,t){var n={};e.mobile=e.extend({},{version:"1.2.0-pre",ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:250,touchOverflowEnabled:!1,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"e",autoInitializePage:!0,pushStateEnabled:!0,ignoreContentEnabled:!1,orientationChangeEnabled:!0,buttonMarkup:{hoverDelay:200},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(n){"number"!==e.type(n)&&(n=e.mobile.defaultHomeScroll),e.event.special.scrollstart.enabled=!1,setTimeout(function(){t.scrollTo(0,n),e(i).trigger("silentscroll",{x:0,y:n})},20),setTimeout(function(){e.event.special.scrollstart.enabled=!0},150)},nsNormalizeDict:n,nsNormalize:function(t){return t?n[t]||(n[t]=e.camelCase(e.mobile.ns+t)):void 0},getInheritedTheme:function(e,t){for(var i,n,o=e[0],a="",r=/ui-(bar|body|overlay)-([a-z])\b/;o&&(i=o.className||"",!(i&&(n=r.exec(i))&&(a=n[2])));)o=o.parentNode;return a||t||"a"},closestPageData:function(e){return e.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")},enhanceable:function(e){return this.haveParents(e,"enhance")},hijackable:function(e){return this.haveParents(e,"ajax")},haveParents:function(t,i){if(!e.mobile.ignoreContentEnabled)return t;for(var n,o,a,r=t.length,s=e(),l=0;r>l;l++){for(o=t.eq(l),a=!1,n=t[l];n;){var c=n.getAttribute?n.getAttribute("data-"+e.mobile.ns+i):"";if("false"===c){a=!0;break}n=n.parentNode}a||(s=s.add(o))}return s},getScreenHeight:function(){return t.innerHeight||e(t).height()}},e.mobile),e.fn.jqmData=function(t,i){var n;return"undefined"!=typeof t&&(t&&(t=e.mobile.nsNormalize(t)),n=this.data.apply(this,arguments.length<2?[t]:[t,i])),n},e.jqmData=function(t,i,n){var o;return"undefined"!=typeof i&&(o=e.data(t,i?e.mobile.nsNormalize(i):i,n)),o},e.fn.jqmRemoveData=function(t){return this.removeData(e.mobile.nsNormalize(t))},e.jqmRemoveData=function(t,i){return e.removeData(t,e.mobile.nsNormalize(i))},e.fn.removeWithDependents=function(){e.removeWithDependents(this)},e.removeWithDependents=function(t){var i=e(t);(i.jqmData("dependents")||e()).remove(),i.remove()},e.fn.addDependents=function(t){e.addDependents(e(this),t)},e.addDependents=function(t,i){var n=e(t).jqmData("dependents")||e();e(t).jqmData("dependents",e.merge(n,i))},e.fn.getEncodedText=function(){return e("<div/>").text(e(this).text()).html()},e.fn.jqmEnhanceable=function(){return e.mobile.enhanceable(this)},e.fn.jqmHijackable=function(){return e.mobile.hijackable(this)};var o=e.find,a=/:jqmData\(([^)]*)\)/g;e.find=function(t,i,n,r){return t=t.replace(a,"[data-"+(e.mobile.ns||"")+"$1]"),o.call(this,t,i,n,r)},e.extend(e.find,o),e.find.matches=function(t,i){return e.find(t,null,null,i)},e.find.matchesSelector=function(t,i){return e.find(i,null,null,[t]).length>0}}(e,this),/*!
|
92
|
+
* jQuery UI Widget @VERSION
|
93
|
+
*
|
94
|
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
95
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
96
|
+
* http://jquery.org/license
|
97
|
+
*
|
98
|
+
* http://docs.jquery.com/UI/Widget
|
99
|
+
*/
|
100
|
+
function(t,i){var n=Array.prototype.slice,o=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(a){}o(e)},t.widget=function(e,i,n){var o,a,r,s,l=e.split(".")[0];e=e.split(".")[1],o=l+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][o]=function(e){return!!t.data(e,o)},t[l]=t[l]||{},a=t[l][e],r=t[l][e]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new r(e,t)},t.extend(r,a,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),s=new i,s.options=t.widget.extend({},s.options),t.each(n,function(e,o){t.isFunction(o)&&(n[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},n=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,a=this._superApply;return this._super=t,this._superApply=n,e=o.apply(this,arguments),this._super=i,this._superApply=a,e}}())}),r.prototype=t.widget.extend(s,{widgetEventPrefix:e},n,{constructor:r,namespace:l,widgetName:e,widgetBaseClass:o,widgetFullName:o}),a?(t.each(a._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete a._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r)},t.widget.extend=function(e){for(var o,a,r=n.call(arguments,1),s=0,l=r.length;l>s;s++)for(o in r[s])a=r[s][o],r[s].hasOwnProperty(o)&&a!==i&&(e[o]=t.isPlainObject(a)?t.widget.extend({},e[o],a):a);return e},t.widget.bridge=function(e,o){var a=o.prototype.widgetFullName;t.fn[e]=function(r){var s="string"==typeof r,l=n.call(arguments,1),c=this;return r=!s&&l.length?t.widget.extend.apply(null,[r].concat(l)):r,s?this.each(function(){var n=t.data(this,a);if(!n)return t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'");if(!t.isFunction(n[r])||"_"===r.charAt(0))return t.error("no such method '"+r+"' for "+e+" widget instance");var o=n[r].apply(n,l);return o!==n&&o!==i?(c=o&&o.jquery?c.pushStack(o.get()):o,!1):void 0}):this.each(function(){var e=t.data(this,a);e?e.option(r||{})._init():new o(r,this)}),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetName,this),t.data(i,this.widgetFullName,this),this._bind({remove:"destroy"}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind("."+this.widgetName).removeData(this.widgetName).removeData(this.widgetFullName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind("."+this.widgetName),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var o,a,r,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},o=e.split("."),e=o.shift(),o.length){for(a=s[e]=t.widget.extend({},this.options[e]),r=0;r<o.length-1;r++)a[o[r]]=a[o[r]]||{},a=a[o[r]];if(e=o.pop(),n===i)return a[e]===i?null:a[e];a[e]=n}else{if(n===i)return this.options[e]===i?null:this.options[e];s[e]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_bind:function(i,n){n?(i=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element);var o=this;t.each(n,function(n,a){function r(){return o.options.disabled===!0||t(this).hasClass("ui-state-disabled")?void 0:("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||e.guid++);var s=n.match(/^(\w+)\s*(.*)$/),l=s[1]+"."+o.widgetName,c=s[2];c?o.widget().delegate(c,l,r):i.bind(l,r)})},_delay:function(e,t){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._bind(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._bind(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var o,a,r=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(o in a)o in i||(i[o]=a[o]);return this.element.trigger(i,n),!(t.isFunction(r)&&r.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,o,a){"string"==typeof o&&(o={effect:o});var r,s=o?o===!0||"number"==typeof o?i:o.effect||i:e;o=o||{},"number"==typeof o&&(o={duration:o}),r=!t.isEmptyObject(o),o.complete=a,o.delay&&n.delay(o.delay),r&&t.effects&&(t.effects.effect[s]||t.uiBackCompat!==!1&&t.effects[s])?n[e](o):s!==e&&n[s]?n[s](o.duration,o.easing,a):n.queue(function(i){t(this)[e](),a&&a.call(n[0]),i()})}}),t.uiBackCompat!==!1&&(t.Widget.prototype._getCreateOptions=function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]})}(e),function(e,t){e.widget("mobile.widget",{_createWidget:function(){e.Widget.prototype._createWidget.apply(this,arguments),this._trigger("init")},_getCreateOptions:function(){var i=this.element,n={};return e.each(this.options,function(e){var o=i.jqmData(e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}));o!==t&&(n[e]=o)}),n},enhanceWithin:function(t,i){this.enhance(e(this.options.initSelector,e(t)),i)},enhance:function(t,i){var n,o,a=e(t);a=e.mobile.enhanceable(a),i&&a.length&&(n=e.mobile.closestPageData(a),o=n&&n.keepNativeSelector()||"",a=a.not(o)),a[this.widgetName]()},raise:function(e){throw"Widget ["+this.widgetName+"]: "+e}})}(e),function(e,t){e.extend(e.mobile,{loadingMessageTextVisible:n,loadingMessageTheme:n,loadingMessage:n,showPageLoadingMsg:function(t,i,n){e.mobile.loading("show",t,i,n)},hidePageLoadingMsg:function(){e.mobile.loading("hide")},loading:function(){this.loaderWidget.loader.apply(this.loaderWidget,arguments)}});var i="ui-loader",o=e("html"),a=e(t);e.widget("mobile.loader",{options:{theme:"a",textVisible:!1,html:"",text:"loading"},defaultHtml:"<div class='"+i+"'><span class='ui-icon ui-icon-loading'></span><h1></h1></div>",fakeFixLoader:function(){var t=e("."+e.mobile.activeBtnClass).first();this.element.css({top:e.support.scrollTop&&a.scrollTop()+a.height()/2||t.length&&t.offset().top||100})},checkLoaderPosition:function(){var t=this.element.offset(),i=a.scrollTop(),n=e.mobile.getScreenHeight();(t.top<i||t.top-i>n)&&(this.element.addClass("ui-loader-fakefix"),this.fakeFixLoader(),a.unbind("scroll",this.checkLoaderPosition).bind("scroll",this.fakeFixLoader))},resetHtml:function(){this.element.html(e(this.defaultHtml).html())},show:function(t,r,s){var l,c,u;this.resetHtml(),"object"===e.type(t)?(u=e.extend({},this.options,t),t=u.theme||e.mobile.loadingMessageTheme):(u=this.options,t=t||e.mobile.loadingMessageTheme||u.theme),c=r||e.mobile.loadingMessage||u.text,o.addClass("ui-loading"),(e.mobile.loadingMessage!==!1||u.html)&&(l=e.mobile.loadingMessageTextVisible!==n?e.mobile.loadingMessageTextVisible:u.textVisible,this.element.attr("class",i+" ui-corner-all ui-body-"+t+" ui-loader-"+(l||r||t.text?"verbose":"default")+(u.textonly||s?" ui-loader-textonly":"")),u.html?this.element.html(u.html):this.element.find("h1").text(c),this.element.appendTo(e.mobile.pageContainer),this.checkLoaderPosition(),a.bind("scroll",e.proxy(this.checkLoaderPosition,this)))},hide:function(){o.removeClass("ui-loading"),e.mobile.loadingMessage&&this.element.removeClass("ui-loader-fakefix"),e(t).unbind("scroll",e.proxy(this.fakeFixLoader,this)),e(t).unbind("scroll",e.proxy(this.checkLoaderPosition,this))}}),a.bind("pagecontainercreate",function(){e.mobile.loaderWidget=e.mobile.loaderWidget||e(e.mobile.loader.prototype.defaultHtml).loader()})}(e,this),function(e,t,i,n){function o(e){for(;e&&"undefined"!=typeof e.originalEvent;)e=e.originalEvent;return e}function a(t,i){var a,r,s,l,c,u,d,h,p,f=t.type;if(t=e.Event(t),t.type=i,a=t.originalEvent,r=e.event.props,f.search(/^(mouse|click)/)>-1&&(r=N),a)for(d=r.length,l;d;)l=r[--d],t[l]=a[l];if(f.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),-1!==f.search(/^touch/)&&(s=o(a),f=s.touches,c=s.changedTouches,u=f&&f.length?f[0]:c&&c.length?c[0]:n))for(h=0,p=S.length;p>h;h++)l=S[h],t[l]=u[l];return t}function r(t){for(var i,n,o={};t;){i=e.data(t,k);for(n in i)i[n]&&(o[n]=o.hasVirtualBinding=!0);t=t.parentNode}return o}function s(t,i){for(var n;t;){if(n=e.data(t,k),n&&(!i||n[i]))return t;t=t.parentNode}return null}function l(){R=!1}function c(){R=!0}function u(){z=0,B.length=0,O=!1,c()}function d(){l()}function h(){p(),P=setTimeout(function(){P=0,u()},e.vmouse.resetTimerDuration)}function p(){P&&(clearTimeout(P),P=0)}function f(t,i,n){var o;return(n&&n[t]||!n&&s(i.target,t))&&(o=a(i,t),e(i.target).trigger(o)),o}function m(t){var i=e.data(t.target,T);if(!(O||z&&z===i)){var n=f("v"+t.type,t);n&&(n.isDefaultPrevented()&&t.preventDefault(),n.isPropagationStopped()&&t.stopPropagation(),n.isImmediatePropagationStopped()&&t.stopImmediatePropagation())}}function g(t){var i,n,a=o(t).touches;if(a&&1===a.length&&(i=t.target,n=r(i),n.hasVirtualBinding)){z=F++,e.data(i,T,z),p(),d(),H=!1;var s=o(t).touches[0];M=s.pageX,I=s.pageY,f("vmouseover",t,n),f("vmousedown",t,n)}}function v(e){R||(H||f("vmousecancel",e,r(e.target)),H=!0,h())}function b(t){if(!R){var i=o(t).touches[0],n=H,a=e.vmouse.moveDistanceThreshold,s=r(t.target);H=H||Math.abs(i.pageX-M)>a||Math.abs(i.pageY-I)>a,H&&!n&&f("vmousecancel",t,s),f("vmousemove",t,s),h()}}function y(e){if(!R){c();var t,i=r(e.target);if(f("vmouseup",e,i),!H){var n=f("vclick",e,i);n&&n.isDefaultPrevented()&&(t=o(e).changedTouches[0],B.push({touchID:z,x:t.clientX,y:t.clientY}),O=!0)}f("vmouseout",e,i),H=!1,h()}}function _(t){var i,n=e.data(t,k);if(n)for(i in n)if(n[i])return!0;return!1}function w(){}function x(t){var i=t.substr(1);return{setup:function(){_(this)||e.data(this,k,{});var n=e.data(this,k);n[t]=!0,A[t]=(A[t]||0)+1,1===A[t]&&j.bind(i,m),e(this).bind(i,w),L&&(A.touchstart=(A.touchstart||0)+1,1===A.touchstart&&j.bind("touchstart",g).bind("touchend",y).bind("touchmove",b).bind("scroll",v))},teardown:function(){--A[t],A[t]||j.unbind(i,m),L&&(--A.touchstart,A.touchstart||j.unbind("touchstart",g).unbind("touchmove",b).unbind("touchend",y).unbind("scroll",v));var n=e(this),o=e.data(this,k);o&&(o[t]=!1),n.unbind(i,w),_(this)||n.removeData(k)}}}var C,k="virtualMouseBindings",T="virtualTouchID",D="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),S="clientX clientY pageX pageY screenX screenY".split(" "),E=e.event.mouseHooks?e.event.mouseHooks.props:[],N=e.event.props.concat(E),A={},P=0,M=0,I=0,H=!1,B=[],O=!1,R=!1,L="addEventListener"in i,j=e(i),F=1,z=0;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var $=0;$<D.length;$++)e.event.special[D[$]]=x(D[$]);L&&i.addEventListener("click",function(t){var i,n,o,a,r,s,l=B.length,c=t.target;if(l)for(i=t.clientX,n=t.clientY,C=e.vmouse.clickDistanceThreshold,o=c;o;){for(a=0;l>a;a++)if(r=B[a],s=0,o===c&&Math.abs(r.x-i)<C&&Math.abs(r.y-n)<C||e.data(o,T)===r.touchID)return t.preventDefault(),t.stopPropagation(),void 0;o=o.parentNode}},!0)}(e,t,i),function(e,t,n){function o(t,i,n){var o=n.type;n.type=i,e.event.handle.call(t,n),n.type=o}e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,i){e.fn[i]=function(e){return e?this.bind(i,e):this.trigger(i)},e.attrFn[i]=!0});var a="ontouchend"in i,r="touchmove scroll",s=a?"touchstart":"mousedown",l=a?"touchend":"mouseup",c=a?"touchmove":"mousemove";e.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){i=t,o(a,i?"scrollstart":"scrollstop",e)}var i,n,a=this,s=e(a);s.bind(r,function(o){e.event.special.scrollstart.enabled&&(i||t(o,!0),clearTimeout(n),n=setTimeout(function(){t(o,!1)},50))})}},e.event.special.tap={tapholdThreshold:750,setup:function(){var t=this,n=e(t);n.bind("vmousedown",function(a){function r(){clearTimeout(c)}function s(){r(),n.unbind("vclick",l).unbind("vmouseup",r),e(i).unbind("vmousecancel",s)}function l(e){s(),u===e.target&&o(t,"tap",e)}if(a.which&&1!==a.which)return!1;{var c,u=a.target;a.originalEvent}n.bind("vmouseup",r).bind("vclick",l),e(i).bind("vmousecancel",s),c=setTimeout(function(){o(t,"taphold",e.Event("taphold",{target:u}))},e.event.special.tap.tapholdThreshold)})}},e.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var t=this,i=e(t);i.bind(s,function(t){function o(t){if(s){var i=t.originalEvent.touches?t.originalEvent.touches[0]:t;a={time:(new Date).getTime(),coords:[i.pageX,i.pageY]},Math.abs(s.coords[0]-a.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()}}var a,r=t.originalEvent.touches?t.originalEvent.touches[0]:t,s={time:(new Date).getTime(),coords:[r.pageX,r.pageY],origin:e(t.target)};i.bind(c,o).one(l,function(){i.unbind(c,o),s&&a&&a.time-s.time<e.event.special.swipe.durationThreshold&&Math.abs(s.coords[0]-a.coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(s.coords[1]-a.coords[1])<e.event.special.swipe.verticalDistanceThreshold&&s.origin.trigger("swipe").trigger(s.coords[0]>a.coords[0]?"swipeleft":"swiperight"),s=a=n})})}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(t,i){e.event.special[t]={setup:function(){e(this).bind(i,e.noop)}}})}(e,this),function(e){e.extend(e.support,{orientation:"orientation"in t&&"onorientationchange"in t})}(e),function(e){e.event.special.throttledresize={setup:function(){e(this).bind("resize",a)},teardown:function(){e(this).unbind("resize",a)}};var t,i,n,o=250,a=function(){i=(new Date).getTime(),n=i-r,n>=o?(r=i,e(this).trigger("throttledresize")):(t&&clearTimeout(t),t=setTimeout(a,o-n))},r=0}(e),function(e,t){function n(){var e=o();e!==a&&(a=e,l.trigger(c))}var o,a,r,s,l=e(t),c="orientationchange",u={0:!0,180:!0};if(e.support.orientation){var d=t.innerWidth||e(t).width(),h=t.innerHeight||e(t).height(),p=50;r=d>h&&d-h>p,s=u[t.orientation],(r&&s||!r&&!s)&&(u={"-90":!0,90:!0})}e.event.special.orientationchange=e.extend({},e.event.special.orientationchange,{setup:function(){return e.support.orientation&&!e.event.special.orientationchange.disabled?!1:(a=o(),l.bind("throttledresize",n),void 0)},teardown:function(){return e.support.orientation&&!e.event.special.orientationchange.disabled?!1:(l.unbind("throttledresize",n),void 0)},add:function(e){var t=e.handler;e.handler=function(e){return e.orientation=o(),t.apply(this,arguments)}}}),e.event.special.orientationchange.orientation=o=function(){var n=!0,o=i.documentElement;return n=e.support.orientation?u[t.orientation]:o&&o.clientWidth/o.clientHeight<1.1,n?"portrait":"landscape"},e.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)},e.attrFn[c]=!0}(e,this),function(e){var n=(e(t),e("html"));e.mobile.media=function(){var t={},o=e("<div id='jquery-mediatest'></div>"),a=e("<body>").append(o);return function(e){if(!(e in t)){var r=i.createElement("style"),s="@media "+e+" { #jquery-mediatest { position:absolute; } }";r.type="text/css",r.styleSheet?r.styleSheet.cssText=s:r.appendChild(i.createTextNode(s)),n.prepend(a).prepend(r),t[e]="absolute"===o.css("position"),a.add(r).remove()}return t[e]}}()}(e),function(e,n){function o(e){var t=e.charAt(0).toUpperCase()+e.substr(1),i=(e+" "+d.join(t+" ")+t).split(" ");for(var o in i)if(u[i[o]]!==n)return!0}function a(e,t,n){for(var o,a=i.createElement("div"),r=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},s=function(e){return"-"+e.charAt(0).toLowerCase()+e.substr(1)+"-"},l=function(i){var n=s(i)+e+": "+t+";",l=r(i),c=l+r(e);a.setAttribute("style",n),a.style[c]&&(o=!0)},c=n?[n]:d,u=0;u<c.length;u++)l(c[u]);return!!o}function r(){var t="transform-3d";return a("perspective","10px","moz")||e.mobile.media("(-"+d.join("-"+t+"),(-")+"-"+t+"),("+t+")")}function s(){var t,i,n=location.protocol+"//"+location.host+location.pathname+"ui-dir/",o=e("head base"),a=null,r="";return o.length?r=o.attr("href"):o=a=e("<base>",{href:n}).appendTo("head"),t=e("<a href='testurl' />").prependTo(c),i=t[0].href,o[0].href=r||location.pathname,a&&a.remove(),0===i.indexOf(n)}function l(){var e,n=i.createElement("x"),o=i.documentElement,a=t.getComputedStyle;return"pointerEvents"in n.style?(n.style.pointerEvents="auto",n.style.pointerEvents="x",o.appendChild(n),e=a&&"auto"===a(n,"").pointerEvents,o.removeChild(n),!!e):!1}var c=e("<body>").prependTo("html"),u=c[0].style,d=["Webkit","Moz","O"],h="palmGetResource"in t,p=t.opera,f=t.operamini&&"[object OperaMini]"==={}.toString.call(t.operamini),m=t.blackberry;e.extend(e.mobile,{browser:{}}),e.mobile.browser.ie=function(){var e=3,t=i.createElement("div"),n=t.all||[];do t.innerHTML="<!--[if gt IE "+ ++e+"]><br><![endif]-->";while(n[0]);return e>4?e:!e}(),e.extend(e.support,{cssTransitions:"WebKitTransitionEvent"in t||a("transition","height 100ms linear")&&!p,pushState:"pushState"in history&&"replaceState"in history,mediaquery:e.mobile.media("only all"),cssPseudoElement:!!o("content"),touchOverflow:!!o("overflowScrolling"),cssTransform3d:r(),boxShadow:!!o("boxShadow")&&!m,scrollTop:("pageXOffset"in t||"scrollTop"in i.documentElement||"scrollTop"in c[0])&&!h&&!f,dynamicBaseTag:s(),cssPointerEvents:l()}),c.remove();var g=function(){var e=t.navigator.userAgent;return e.indexOf("Nokia")>-1&&(e.indexOf("Symbian/3")>-1||e.indexOf("Series60/5")>-1)&&e.indexOf("AppleWebKit")>-1&&e.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();e.mobile.gradeA=function(){return e.support.mediaquery||e.mobile.browser.ie&&e.mobile.browser.ie>=7},e.mobile.ajaxBlacklist=t.blackberry&&!t.WebKitPoint||f||g,g&&e(function(){e("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")}),e.support.boxShadow||e("html").addClass("ui-mobile-nosupport-boxshadow")}(e),function(e){e.widget("mobile.page",e.mobile.widget,{options:{theme:"c",domCache:!1,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){var e=this;return e._trigger("beforecreate")===!1?!1:(e.element.attr("tabindex","0").addClass("ui-page ui-body-"+e.options.theme).bind("pagebeforehide",function(){e.removeContainerBackground()}).bind("pagebeforeshow",function(){e.setContainerBackground()}),void 0)},removeContainerBackground:function(){e.mobile.pageContainer.removeClass("ui-overlay-"+e.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(t){this.options.theme&&e.mobile.pageContainer.addClass("ui-overlay-"+(t||this.options.theme))},keepNativeSelector:function(){var t=this.options,i=t.keepNative&&e.trim(t.keepNative);return i&&t.keepNative!==t.keepNativeDefault?[t.keepNative,t.keepNativeDefault].join(", "):t.keepNativeDefault}})}(e),// Copyright (c) 2010 "Cowboy" Ben Alman,
|
101
|
+
function(e,t,n){function o(e){return e=e||location.href,"#"+e.replace(/^[^#]*#?(.*)$/,"$1")}var a,r="hashchange",s=i,l=e.event.special,c=s.documentMode,u="on"+r in t&&(c===n||c>7);e.fn[r]=function(e){return e?this.bind(r,e):this.trigger(r)},e.fn[r].delay=50,l[r]=e.extend(l[r],{setup:function(){return u?!1:(e(a.start),void 0)},teardown:function(){return u?!1:(e(a.stop),void 0)}}),a=function(){function i(){var n=o(),s=p(c);n!==c?(h(c=n,s),e(t).trigger(r)):s!==c&&(location.href=location.href.replace(/#.*/,"")+s),a=setTimeout(i,e.fn[r].delay)}var a,l={},c=o(),d=function(e){return e},h=d,p=d;return l.start=function(){a||i()},l.stop=function(){a&&clearTimeout(a),a=n},e.browser.msie&&!u&&function(){var t,n;l.start=function(){t||(n=e.fn[r].src,n=n&&n+o(),t=e('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){n||h(o()),i()}).attr("src",n||"javascript:0").insertAfter("body")[0].contentWindow,s.onpropertychange=function(){try{"title"===event.propertyName&&(t.document.title=s.title)}catch(e){}})},l.stop=d,p=function(){return o(t.location.href)},h=function(i,n){var o=t.document,a=e.fn[r].domain;i!==n&&(o.title=s.title,o.open(),a&&o.write('<script>document.domain="'+a+'"</script>'),o.close(),t.location.hash=i)}}(),l}()}(e,this),function(e,t,i){var n=function(n){return n===i&&(n=!0),function(i,o,a,r){var s=new e.Deferred,l=o?" reverse":"",c=e.mobile.urlHistory.getActive(),u=c.lastScroll||e.mobile.defaultHomeScroll,d=e.mobile.getScreenHeight(),h=e.mobile.maxTransitionWidth!==!1&&e(t).width()>e.mobile.maxTransitionWidth,p=!e.support.cssTransitions||h||!i||"none"===i||Math.max(e(t).scrollTop(),u)>e.mobile.getMaxScrollForTransition(),f=" ui-page-pre-in",m=function(){e.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-"+i)},g=function(){e.event.special.scrollstart.enabled=!1,t.scrollTo(0,u),setTimeout(function(){e.event.special.scrollstart.enabled=!0},150)},v=function(){r.removeClass(e.mobile.activePageClass+" out in reverse "+i).height("")},b=function(){n?r.animationComplete(y):y(),r.height(d+e(t).scrollTop()).addClass(i+" out"+l)},y=function(){r&&n&&v(),_()},_=function(){a.css("z-index",-10),a.addClass(e.mobile.activePageClass+f),e.mobile.focusPage(a),a.height(d+u),g(),a.css("z-index",""),p||a.animationComplete(w),a.removeClass(f).addClass(i+" in"+l),p&&w()},w=function(){n||r&&v(),a.removeClass("out in reverse "+i).height(""),m(),e(t).scrollTop()!==u&&g(),s.resolve(i,o,a,r,!0)};return m(),r&&!p?b():y(),s.promise()}},o=n(),a=n(!1),r=function(){return 3*e.mobile.getScreenHeight()};e.mobile.defaultTransitionHandler=o,e.mobile.transitionHandlers={"default":e.mobile.defaultTransitionHandler,sequential:o,simultaneous:a},e.mobile.transitionFallbacks={},e.mobile._maybeDegradeTransition=function(t){return t&&!e.support.cssTransform3d&&e.mobile.transitionFallbacks[t]&&(t=e.mobile.transitionFallbacks[t]),t},e.mobile.getMaxScrollForTransition=e.mobile.getMaxScrollForTransition||r}(e,this),function(e,n){function o(t){!f||f.closest("."+e.mobile.activePageClass).length&&!t||f.removeClass(e.mobile.activeBtnClass),f=null}function a(){v=!1,g.length>0&&e.mobile.changePage.apply(null,g.pop())}function r(t,i,n,o){i&&i.data("page")._trigger("beforehide",null,{nextPage:t}),t.data("page")._trigger("beforeshow",null,{prevPage:i||e("")}),e.mobile.hidePageLoadingMsg(),n=e.mobile._maybeDegradeTransition(n);var a=e.mobile.transitionHandlers[n||"default"]||e.mobile.defaultTransitionHandler,r=a(n,o,t,i);return r.done(function(){i&&i.data("page")._trigger("hide",null,{nextPage:t}),t.data("page")._trigger("show",null,{prevPage:i||e("")})}),r}function s(){var t=e("."+e.mobile.activePageClass),i=parseFloat(t.css("padding-top")),n=parseFloat(t.css("padding-bottom")),o=parseFloat(t.css("border-top-width")),a=parseFloat(t.css("border-bottom-width"));t.css("min-height",C()-i-n-o-a)}function l(t,i){i&&t.attr("data-"+e.mobile.ns+"role",i),t.page()}function c(e){for(;e&&("string"!=typeof e.nodeName||"a"!==e.nodeName.toLowerCase());)e=e.parentNode;return e}function u(t){var i=e(t).closest(".ui-page").jqmData("url"),n=w.hrefNoHash;return i&&p.isPath(i)||(i=n),p.makeUrlAbsolute(i,n)}var d=e(t),h=(e("html"),e("head")),p={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(t){if("object"===e.type(t))return t;var i=p.urlParseRE.exec(t||"")||[];return{href:i[0]||"",hrefNoHash:i[1]||"",hrefNoSearch:i[2]||"",domain:i[3]||"",protocol:i[4]||"",doubleSlash:i[5]||"",authority:i[6]||"",username:i[8]||"",password:i[9]||"",host:i[10]||"",hostname:i[11]||"",port:i[12]||"",pathname:i[13]||"",directory:i[14]||"",filename:i[15]||"",search:i[16]||"",hash:i[17]||""}},makePathAbsolute:function(e,t){if(e&&"/"===e.charAt(0))return e;e=e||"",t=t?t.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";for(var i=t?t.split("/"):[],n=e.split("/"),o=0;o<n.length;o++){var a=n[o];switch(a){case".":break;case"..":i.length&&i.pop();break;default:i.push(a)}}return"/"+i.join("/")},isSameDomain:function(e,t){return p.parseUrl(e).domain===p.parseUrl(t).domain},isRelativeUrl:function(e){return""===p.parseUrl(e).protocol},isAbsoluteUrl:function(e){return""!==p.parseUrl(e).protocol},makeUrlAbsolute:function(e,t){if(!p.isRelativeUrl(e))return e;t===n&&(t=w);var i=p.parseUrl(e),o=p.parseUrl(t),a=i.protocol||o.protocol,r=i.protocol?i.doubleSlash:i.doubleSlash||o.doubleSlash,s=i.authority||o.authority,l=""!==i.pathname,c=p.makePathAbsolute(i.pathname||o.filename,o.pathname),u=i.search||!l&&o.search||"",d=i.hash;return a+r+s+c+u+d},addSearchParams:function(t,i){var n=p.parseUrl(t),o="object"==typeof i?e.param(i):i,a=n.search||"?";return n.hrefNoSearch+a+("?"!==a.charAt(a.length-1)?"&":"")+o+(n.hash||"")},convertUrlToDataUrl:function(e){var i=p.parseUrl(e);return p.isEmbeddedPage(i)?i.hash.split(b)[0].replace(/^#/,""):p.isSameDomain(i,w)?i.hrefNoHash.replace(w.domain,"").split(b)[0]:t.decodeURIComponent(e)},get:function(e){return e===n&&(e=location.hash),p.stripHash(e).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(t){var i="&"+e.mobile.subPageUrlKey;return t&&t.split(i)[0].split(b)[0]},set:function(e){location.hash=e},isPath:function(e){return/\//.test(e)},clean:function(e){return e.replace(w.domain,"")},stripHash:function(e){return e.replace(/^#/,"")},cleanHash:function(e){return p.stripHash(e.replace(/\?.*$/,"").replace(b,""))},isHashValid:function(e){return/^#[^#]+$/.test(e)},isExternal:function(e){var t=p.parseUrl(e);return t.protocol&&t.domain!==_.domain?!0:!1},hasProtocol:function(e){return/^(:?\w+:)/.test(e)},isFirstPageUrl:function(t){var i=p.parseUrl(p.makeUrlAbsolute(t,w)),o=i.hrefNoHash===_.hrefNoHash||x&&i.hrefNoHash===w.hrefNoHash,a=e.mobile.firstPage,r=a&&a[0]?a[0].id:n;return o&&(!i.hash||"#"===i.hash||r&&i.hash.replace(/^#/,"")===r)},isEmbeddedPage:function(e){var t=p.parseUrl(e);return""!==t.protocol?t.hash&&(t.hrefNoHash===_.hrefNoHash||x&&t.hrefNoHash===w.hrefNoHash):/^#/.test(t.href)},isPermittedCrossDomainRequest:function(t,i){return e.mobile.allowCrossDomainPages&&"file:"===t.protocol&&-1!==i.search(/^https?:/)}},f=null,m={stack:[],activeIndex:0,getActive:function(){return m.stack[m.activeIndex]},getPrev:function(){return m.stack[m.activeIndex-1]},getNext:function(){return m.stack[m.activeIndex+1]},addNew:function(e,t,i,n,o){m.getNext()&&m.clearForward(),m.stack.push({url:e,transition:t,title:i,pageUrl:n,role:o}),m.activeIndex=m.stack.length-1},clearForward:function(){m.stack=m.stack.slice(0,m.activeIndex+1)},directHashChange:function(t){{var i,o,a;this.getActive()}e.each(m.stack,function(e,n){decodeURIComponent(t.currentUrl)===decodeURIComponent(n.url)&&(i=e<m.activeIndex,o=!i,a=e)}),this.activeIndex=a!==n?a:this.activeIndex,i?(t.either||t.isBack)(!0):o&&(t.either||t.isForward)(!1)},ignoreNextHashChange:!1},g=[],v=!1,b="&ui-state=dialog",y=h.children("base"),_=p.parseUrl(location.href),w=y.length?p.parseUrl(p.makeUrlAbsolute(y.attr("href"),_.href)):_,x=_.hrefNoHash!==w.hrefNoHash,C=e.mobile.getScreenHeight,k=e.support.dynamicBaseTag?{element:y.length?y:e("<base>",{href:w.hrefNoHash}).prependTo(h),set:function(e){k.element.attr("href",p.makeUrlAbsolute(e,w))},reset:function(){k.element.attr("href",w.hrefNoHash)}}:n;e.mobile.focusPage=function(e){var t=e.find("[autofocus]"),i=e.find(".ui-title:eq(0)");return t.length?(t.focus(),void 0):(i.length?i.focus():e.focus(),void 0)};var T,D,S=!0;T=function(){if(S){var t=e.mobile.urlHistory.getActive();if(t){var i=d.scrollTop();t.lastScroll=i<e.mobile.minScrollBack?e.mobile.defaultHomeScroll:i}}},D=function(){setTimeout(T,100)},d.bind(e.support.pushState?"popstate":"hashchange",function(){S=!1}),d.one(e.support.pushState?"popstate":"hashchange",function(){S=!0}),d.one("pagecontainercreate",function(){e.mobile.pageContainer.bind("pagechange",function(){S=!0,d.unbind("scrollstop",D),d.bind("scrollstop",D)})}),d.bind("scrollstop",D),e.mobile._maybeDegradeTransition=e.mobile._maybeDegradeTransition||function(e){return e},e.fn.animationComplete=function(t){return e.support.cssTransitions?e(this).one("webkitAnimationEnd animationend",t):(setTimeout(t,0),e(this))},e.mobile.path=p,e.mobile.base=k,e.mobile.urlHistory=m,e.mobile.dialogHashKey=b,e.mobile.allowCrossDomainPages=!1,e.mobile.getDocumentUrl=function(t){return t?e.extend({},_):_.href},e.mobile.getDocumentBase=function(t){return t?e.extend({},w):w.href},e.mobile._bindPageRemove=function(){var t=e(this);!t.data("page").options.domCache&&t.is(":jqmData(external-page='true')")&&t.bind("pagehide.remove",function(){var t=e(this),i=new e.Event("pageremove");t.trigger(i),i.isDefaultPrevented()||t.removeWithDependents()})},e.mobile.loadPage=function(t,i){var o=e.Deferred(),a=e.extend({},e.mobile.loadPage.defaults,i),r=null,s=null,c=function(){var t=e.mobile.activePage&&u(e.mobile.activePage);return t||w.hrefNoHash},d=p.makeUrlAbsolute(t,c());a.data&&"get"===a.type&&(d=p.addSearchParams(d,a.data),a.data=n),a.data&&"post"===a.type&&(a.reloadPage=!0);var h=p.getFilePath(d),f=p.convertUrlToDataUrl(d);if(a.pageContainer=a.pageContainer||e.mobile.pageContainer,r=a.pageContainer.children(":jqmData(url='"+f+"')"),0===r.length&&f&&!p.isPath(f)&&(r=a.pageContainer.children("#"+f).attr("data-"+e.mobile.ns+"url",f).jqmData("url",f)),0===r.length)if(e.mobile.firstPage&&p.isFirstPageUrl(h))e.mobile.firstPage.parent().length&&(r=e(e.mobile.firstPage));else if(p.isEmbeddedPage(h))return o.reject(d,i),o.promise();if(k&&k.reset(),r.length){if(!a.reloadPage)return l(r,a.role),o.resolve(d,i,r),o.promise();s=r}var m=a.pageContainer,g=new e.Event("pagebeforeload"),v={url:t,absUrl:d,dataUrl:f,deferred:o,options:a};if(m.trigger(g,v),g.isDefaultPrevented())return o.promise();if(a.showLoadMsg)var b=setTimeout(function(){e.mobile.showPageLoadingMsg()},a.loadMsgDelay),y=function(){clearTimeout(b),e.mobile.hidePageLoadingMsg()};return e.mobile.allowCrossDomainPages||p.isSameDomain(_,d)?e.ajax({url:h,type:a.type,data:a.data,dataType:"html",success:function(n,c,u){var m=e("<div></div>"),g=n.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,b=new RegExp("(<[^>]+\\bdata-"+e.mobile.ns+"role=[\"']?page[\"']?[^>]*>)"),_=new RegExp("\\bdata-"+e.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");if(b.test(n)&&RegExp.$1&&_.test(RegExp.$1)&&RegExp.$1&&(t=h=p.getFilePath(e("<div>"+RegExp.$1+"</div>").text())),k&&k.set(h),m.get(0).innerHTML=n,r=m.find(":jqmData(role='page'), :jqmData(role='dialog')").first(),r.length||(r=e("<div data-"+e.mobile.ns+"role='page'>"+n.split(/<\/?body[^>]*>/gim)[1]+"</div>")),g&&!r.jqmData("title")&&(~g.indexOf("&")&&(g=e("<div>"+g+"</div>").text()),r.jqmData("title",g)),!e.support.dynamicBaseTag){var w=p.get(h);r.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var t=e(this).is("[href]")?"href":e(this).is("[src]")?"src":"action",i=e(this).attr(t);i=i.replace(location.protocol+"//"+location.host+location.pathname,""),/^(\w+:|#|\/)/.test(i)||e(this).attr(t,w+i)})}r.attr("data-"+e.mobile.ns+"url",p.convertUrlToDataUrl(h)).attr("data-"+e.mobile.ns+"external-page",!0).appendTo(a.pageContainer),r.one("pagecreate",e.mobile._bindPageRemove),l(r,a.role),d.indexOf("&"+e.mobile.subPageUrlKey)>-1&&(r=a.pageContainer.children(":jqmData(url='"+f+"')")),a.showLoadMsg&&y(),v.xhr=u,v.textStatus=c,v.page=r,a.pageContainer.trigger("pageload",v),o.resolve(d,i,r,s)},error:function(t,n,r){k&&k.set(p.get()),v.xhr=t,v.textStatus=n,v.errorThrown=r;var s=new e.Event("pageloadfailed");a.pageContainer.trigger(s,v),s.isDefaultPrevented()||(a.showLoadMsg&&(y(),e.mobile.showPageLoadingMsg(e.mobile.pageLoadErrorMessageTheme,e.mobile.pageLoadErrorMessage,!0),setTimeout(e.mobile.hidePageLoadingMsg,1500)),o.reject(d,i))}}):o.reject(d,i),o.promise()},e.mobile.loadPage.defaults={type:"get",data:n,reloadPage:!1,role:n,showLoadMsg:!1,pageContainer:n,loadMsgDelay:50},e.mobile.changePage=function(t,s){if(v)return g.unshift(arguments),void 0;var c=e.extend({},e.mobile.changePage.defaults,s);c.pageContainer=c.pageContainer||e.mobile.pageContainer,c.fromPage=c.fromPage||e.mobile.activePage;var u=c.pageContainer,d=new e.Event("pagebeforechange"),h={toPage:t,options:c};if(u.trigger(d,h),!d.isDefaultPrevented()){if(t=h.toPage,v=!0,"string"==typeof t)return e.mobile.loadPage(t,c).done(function(t,i,n,o){v=!1,i.duplicateCachedPage=o,e.mobile.changePage(n,i)}).fail(function(){v=!1,o(!0),a(),c.pageContainer.trigger("pagechangefailed",h)}),void 0;t[0]!==e.mobile.firstPage[0]||c.dataUrl||(c.dataUrl=_.hrefNoHash);var f=c.fromPage,y=c.dataUrl&&p.convertUrlToDataUrl(c.dataUrl)||t.jqmData("url"),w=y,x=(p.getFilePath(y),m.getActive()),C=0===m.activeIndex,k=0,T=i.title,D="dialog"===c.role||"dialog"===t.jqmData("role");if(f&&f[0]===t[0]&&!c.allowSamePageTransition)return v=!1,u.trigger("pagechange",h),c.fromHashChange&&m.directHashChange({currentUrl:y,isBack:function(){},isForward:function(){}}),void 0;l(t,c.role),c.fromHashChange&&m.directHashChange({currentUrl:y,isBack:function(){k=-1},isForward:function(){k=1}});try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()?e(i.activeElement).blur():e("input:focus, textarea:focus, select:focus").blur()}catch(S){}var E=!1;D&&x&&(x.url.indexOf(b)>-1&&!e.mobile.activePage.is(".ui-dialog")&&(c.changeHash=!1,E=!0),y=(x.url||"")+b,0===m.activeIndex&&y===m.initialDst&&(y+=b)),c.changeHash!==!1&&y&&(m.ignoreNextHashChange=!0,p.set(y));var N=x?t.jqmData("title")||t.children(":jqmData(role='header')").find(".ui-title").getEncodedText():T;N&&T===i.title&&(T=N),t.jqmData("title")||t.jqmData("title",T),c.transition=c.transition||(k&&!C?x.transition:n)||(D?e.mobile.defaultDialogTransition:e.mobile.defaultPageTransition),k||E||m.addNew(y,c.transition,T,w,c.role),i.title=m.getActive().title,e.mobile.activePage=t,c.reverse=c.reverse||0>k,r(t,f,c.transition,c.reverse).done(function(i,n,r,s,l){o(),c.duplicateCachedPage&&c.duplicateCachedPage.remove(),l||e.mobile.focusPage(t),a(),u.trigger("pagechange",h)})}},e.mobile.changePage.defaults={transition:n,reverse:!1,changeHash:!0,fromHashChange:!1,role:n,duplicateCachedPage:n,pageContainer:n,showLoadMsg:!0,dataUrl:n,fromPage:n,allowSamePageTransition:!1},e.mobile.navreadyDeferred=e.Deferred(),e.mobile.navreadyDeferred.done(function(){e(i).delegate("form","submit",function(t){var i=e(this);if(e.mobile.ajaxEnabled&&!i.is(":jqmData(ajax='false')")&&i.jqmHijackable().length){var n=i.attr("method"),o=i.attr("target"),a=i.attr("action");a||(a=u(i),a===w.hrefNoHash&&(a=_.hrefNoSearch)),a=p.makeUrlAbsolute(a,u(i)),p.isExternal(a)&&!p.isPermittedCrossDomainRequest(_,a)||o||(e.mobile.changePage(a,{type:n&&n.length&&n.toLowerCase()||"get",data:i.serialize(),transition:i.jqmData("transition"),reverse:"reverse"===i.jqmData("direction"),reloadPage:!0}),t.preventDefault())}}),e(i).bind("vclick",function(t){if(!(t.which>1)&&e.mobile.linkBindingEnabled){var i=c(t.target);e(i).jqmHijackable().length&&i&&"#"!==p.parseUrl(i.getAttribute("href")||"#").hash&&(o(!0),f=e(i).closest(".ui-btn").not(".ui-disabled"),f.addClass(e.mobile.activeBtnClass))}}),e(i).bind("click",function(i){if(e.mobile.linkBindingEnabled){var a,r=c(i.target),s=e(r);if(r&&!(i.which>1)&&s.jqmHijackable().length){if(a=function(){t.setTimeout(function(){o(!0)},200)},s.is(":jqmData(rel='back')"))return t.history.back(),!1;var l=u(s),d=p.makeUrlAbsolute(s.attr("href")||"#",l);if(!e.mobile.ajaxEnabled&&!p.isEmbeddedPage(d))return a(),void 0;if(-1!==d.search("#")){if(d=d.replace(/[^#]*#/,""),!d)return i.preventDefault(),void 0;d=p.isPath(d)?p.makeUrlAbsolute(d,l):p.makeUrlAbsolute("#"+d,_.hrefNoHash)}var h=s.is("[rel='external']")||s.is(":jqmData(ajax='false')")||s.is("[target]"),f=h||p.isExternal(d)&&!p.isPermittedCrossDomainRequest(_,d);if(f)return a(),void 0;var m=s.jqmData("transition"),g="reverse"===s.jqmData("direction")||s.jqmData("back"),v=s.attr("data-"+e.mobile.ns+"rel")||n;e.mobile.changePage(d,{transition:m,reverse:g,role:v,link:s}),i.preventDefault()}}}),e(i).delegate(".ui-page","pageshow.prefetch",function(){var t=[];e(this).find("a:jqmData(prefetch)").each(function(){var i=e(this),n=i.attr("href");n&&-1===e.inArray(n,t)&&(t.push(n),e.mobile.loadPage(n,{role:i.attr("data-"+e.mobile.ns+"rel")}))})}),e.mobile._handleHashChange=function(i){var o=p.stripHash(i),a=0===e.mobile.urlHistory.stack.length?"none":n,r=new e.Event("navigate"),s={transition:a,changeHash:!1,fromHashChange:!0};if(0===m.stack.length&&(m.initialDst=o),e.mobile.pageContainer.trigger(r),!r.isDefaultPrevented()){if(!e.mobile.hashListeningEnabled||m.ignoreNextHashChange)return m.ignoreNextHashChange=!1,void 0;if(m.stack.length>1&&o.indexOf(b)>-1&&m.initialDst!==o){if(!e.mobile.activePage.is(".ui-dialog"))return m.directHashChange({currentUrl:o,isBack:function(){t.history.back()},isForward:function(){t.history.forward()}}),void 0;m.directHashChange({currentUrl:o,either:function(t){var i=e.mobile.urlHistory.getActive();o=i.pageUrl,e.extend(s,{role:i.role,transition:i.transition,reverse:t})}})}o?(o="string"!=typeof o||p.isPath(o)?o:p.makeUrlAbsolute("#"+o,w),e.mobile.changePage(o,s)):e.mobile.changePage(e.mobile.firstPage,s)}},d.bind("hashchange",function(){e.mobile._handleHashChange(location.hash)}),e(i).bind("pageshow",s),e(t).bind("throttledresize",s)})}(e),function(e,t){var o={},a=o,r=e(t),s=e.mobile.path.parseUrl(location.href),l=e.Deferred(),c=e.Deferred();e(i).ready(e.proxy(c,"resolve")),e(i).one("mobileinit",e.proxy(l,"resolve")),e.extend(o,{initialFilePath:function(){return s.pathname+s.search}(),hashChangeTimeout:200,hashChangeEnableTimer:n,initialHref:s.hrefNoHash,state:function(){return{hash:location.hash||"#"+a.initialFilePath,title:i.title,initialHref:a.initialHref}},resetUIKeys:function(t){var i=e.mobile.dialogHashKey,n="&"+e.mobile.subPageUrlKey,o=t.indexOf(i);return o>-1?t=t.slice(0,o)+"#"+t.slice(o):t.indexOf(n)>-1&&(t=t.split(n).join("#"+n)),t},nextHashChangePrevented:function(t){e.mobile.urlHistory.ignoreNextHashChange=t,a.onHashChangeDisabled=t},onHashChange:function(){if(!a.onHashChangeDisabled){var t,n,o=location.hash,r=e.mobile.path.isPath(o),s=r?location.href:e.mobile.getDocumentUrl();o=r?o.replace("#",""):o,n=a.state(),t=e.mobile.path.makeUrlAbsolute(o,s),r&&(t=a.resetUIKeys(t)),history.replaceState(n,i.title,t)}},onPopState:function(t){var i=t.originalEvent.state;i&&(clearTimeout(a.hashChangeEnableTimer),a.nextHashChangePrevented(!1),e.mobile._handleHashChange(i.hash),a.nextHashChangePrevented(!0),a.hashChangeEnableTimer=setTimeout(function(){a.nextHashChangePrevented(!1)},a.hashChangeTimeout))},init:function(){r.bind("hashchange",a.onHashChange),r.bind("popstate",a.onPopState),""===location.hash&&history.replaceState(a.state(),i.title,location.href)}}),e.when(c,l,e.mobile.navreadyDeferred).done(function(){e.mobile.pushStateEnabled&&e.support.pushState&&o.init()})}(e,this),function(e){e.mobile.transitionFallbacks.flip="fade"}(e,this),function(e){e.mobile.transitionFallbacks.flow="fade"}(e,this),function(e){e.mobile.transitionFallbacks.pop="fade"}(e,this),function(e){e.mobile.transitionHandlers.slide=e.mobile.transitionHandlers.simultaneous,e.mobile.transitionFallbacks.slide="fade"}(e,this),function(e){e.mobile.transitionFallbacks.slidedown="fade"}(e,this),function(e){e.mobile.transitionFallbacks.slidefade="fade"}(e,this),function(e){e.mobile.transitionFallbacks.slideup="fade"}(e,this),function(e){e.mobile.transitionFallbacks.turn="fade"}(e,this),function(e){e.mobile.page.prototype.options.degradeInputs={color:!1,date:!1,datetime:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:"number",search:"text",tel:!1,time:!1,url:!1,week:!1},e(i).bind("pagecreate create",function(t){var i,n=e.mobile.closestPageData(e(t.target));n&&(i=n.options,e(t.target).find("input").not(n.keepNativeSelector()).each(function(){var t=e(this),n=this.getAttribute("type"),o=i.degradeInputs[n]||"text";if(i.degradeInputs[n]){var a=e("<div>").html(t.clone()).html(),r=a.indexOf(" type=")>-1,s=r?/\s+type=["']?\w+['"]?/:/\/?>/,l=' type="'+o+'" data-'+e.mobile.ns+'type="'+n+'"'+(r?"":">");t.replaceWith(a.replace(s,l))}}))})}(e),function(e,t){e.widget("mobile.dialog",e.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var t=this,i=this.element,n=e("<a href='#' data-"+e.mobile.ns+"icon='delete' data-"+e.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>"),o=e("<div/>",{role:"dialog","class":"ui-dialog-contain ui-corner-all ui-overlay-shadow"});i.addClass("ui-dialog ui-overlay-"+this.options.overlayTheme),i.wrapInner(o).children().find(":jqmData(role='header')").prepend(n).end().children(":first-child").addClass("ui-corner-top").end().children(":last-child").addClass("ui-corner-bottom"),n.bind("click",function(){t.close()}),i.bind("vclick submit",function(t){var i,n=e(t.target).closest("vclick"===t.type?"a":"form");n.length&&!n.jqmData("transition")&&(i=e.mobile.urlHistory.getActive()||{},n.attr("data-"+e.mobile.ns+"transition",i.transition||e.mobile.defaultDialogTransition).attr("data-"+e.mobile.ns+"direction","reverse"))}).bind("pagehide",function(){t._isClosed=!1,e(this).find("."+e.mobile.activeBtnClass).not(".ui-slider-bg").removeClass(e.mobile.activeBtnClass)}).bind("pagebeforeshow",function(){t.options.overlayTheme&&t.element.page("removeContainerBackground").page("setContainerBackground",t.options.overlayTheme)})},close:function(){var i;this._isClosed||(this._isClosed=!0,e.mobile.hashListeningEnabled?t.history.back():(i=e.mobile.urlHistory.getPrev().url,e.mobile.path.isPath(i)||(i=e.mobile.path.makeUrlAbsolute("#"+i)),e.mobile.changePage(i,{changeHash:!1,fromHashChange:!0})))}}),e(i).delegate(e.mobile.dialog.prototype.options.initSelector,"pagecreate",function(){e.mobile.dialog.prototype.enhance(this)})}(e,this),function(e){e.mobile.page.prototype.options.backBtnText="Back",e.mobile.page.prototype.options.addBackBtn=!1,e.mobile.page.prototype.options.backBtnTheme=null,e.mobile.page.prototype.options.headerTheme="a",e.mobile.page.prototype.options.footerTheme="a",e.mobile.page.prototype.options.contentTheme=null,e(i).bind("pagecreate",function(t){var i=e(t.target),n=i.data("page").options,o=i.jqmData("role"),a=n.theme;e(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",i).jqmEnhanceable().each(function(){var t,r,s,l,c=e(this),u=c.jqmData("role"),d=c.jqmData("theme"),h=d||n.contentTheme||"dialog"===o&&a;if(c.addClass("ui-"+u),"header"===u||"footer"===u){var p=d||("header"===u?n.headerTheme:n.footerTheme)||a;c.addClass("ui-bar-"+p).attr("role","header"===u?"banner":"contentinfo"),"header"===u&&(t=c.children("a, button"),r=t.hasClass("ui-btn-left"),s=t.hasClass("ui-btn-right"),r=r||t.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length,s=s||t.eq(1).addClass("ui-btn-right").length),n.addBackBtn&&"header"===u&&e(".ui-page").length>1&&i.jqmData("url")!==e.mobile.path.stripHash(location.hash)&&!r&&(l=e("<a href='javascript:void(0);' class='ui-btn-left' data-"+e.mobile.ns+"rel='back' data-"+e.mobile.ns+"icon='arrow-l'>"+n.backBtnText+"</a>").attr("data-"+e.mobile.ns+"theme",n.backBtnTheme||p).prependTo(c)),c.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({role:"heading","aria-level":"1"})}else"content"===u&&(h&&c.addClass("ui-body-"+h),c.attr("role","main"))})})}(e),function(e){e.fn.fieldcontain=function(){return this.addClass("ui-field-contain ui-body ui-br").contents().filter(function(){return 3===this.nodeType&&!/\S/.test(this.nodeValue)}).remove()},e(i).bind("pagecreate create",function(t){e(":jqmData(role='fieldcontain')",t.target).jqmEnhanceable().fieldcontain()})}(e),function(e){e.fn.grid=function(t){return this.each(function(){var i,n=e(this),o=e.extend({grid:null},t),a=n.children(),r={solo:1,a:2,b:3,c:4,d:5},s=o.grid;if(!s)if(a.length<=5)for(var l in r)r[l]===a.length&&(s=l);else s="a",n.addClass("ui-grid-duo");i=r[s],n.addClass("ui-grid-"+s),a.filter(":nth-child("+i+"n+1)").addClass("ui-block-a"),i>1&&a.filter(":nth-child("+i+"n+2)").addClass("ui-block-b"),i>2&&a.filter(":nth-child(3n+3)").addClass("ui-block-c"),i>3&&a.filter(":nth-child(4n+4)").addClass("ui-block-d"),i>4&&a.filter(":nth-child(5n+5)").addClass("ui-block-e")})}}(e),function(e){e(i).bind("pagecreate create",function(t){e(":jqmData(role='nojs')",t.target).addClass("ui-nojs")})}(e),function(e,t){function n(e){for(var t;e&&(t="string"==typeof e.className&&e.className+" ",!(t&&t.indexOf("ui-btn ")>-1&&t.indexOf("ui-disabled ")<0));)e=e.parentNode;return e}e.fn.buttonMarkup=function(n){var a=this,r=function(t,i){m.setAttribute("data-"+e.mobile.ns+t,i),f.jqmData(t,i)};n=n&&"object"===e.type(n)?n:{};for(var s=0;s<a.length;s++){var l,c,u,d,h,p,f=a.eq(s),m=f[0],g=e.extend({},e.fn.buttonMarkup.defaults,{icon:n.icon!==t?n.icon:f.jqmData("icon"),iconpos:n.iconpos!==t?n.iconpos:f.jqmData("iconpos"),theme:n.theme!==t?n.theme:f.jqmData("theme")||e.mobile.getInheritedTheme(f,"c"),inline:n.inline!==t?n.inline:f.jqmData("inline"),shadow:n.shadow!==t?n.shadow:f.jqmData("shadow"),corners:n.corners!==t?n.corners:f.jqmData("corners"),iconshadow:n.iconshadow!==t?n.iconshadow:f.jqmData("iconshadow"),mini:n.mini!==t?n.mini:f.jqmData("mini")},n),v="ui-btn-inner",b="ui-btn-text";for(e.each(g,r),"popup"===f.jqmData("rel")&&f.attr("href")&&(m.setAttribute("aria-haspopup",!0),m.setAttribute("aria-owns",m.getAttribute("href"))),p=e.data("INPUT"===m.tagName||"BUTTON"===m.tagName?m.parentNode:m,"buttonElements"),p?(m=p.outer,f=e(m),u=p.inner,d=p.text,e(p.icon).remove(),p.icon=null):(u=i.createElement(g.wrapperEls),d=i.createElement(g.wrapperEls)),h=g.icon?i.createElement("span"):null,o&&!p&&o(),g.theme||(g.theme=e.mobile.getInheritedTheme(f,"c")),l="ui-btn ui-btn-up-"+g.theme,l+=g.shadow?" ui-shadow":"",l+=g.corners?" ui-btn-corner-all":"",g.mini!==t&&(l+=g.mini===!0?" ui-mini":" ui-fullsize"),g.inline!==t&&(l+=g.inline===!0?" ui-btn-inline":" ui-btn-block"),g.icon&&(g.icon="ui-icon-"+g.icon,g.iconpos=g.iconpos||"left",c="ui-icon "+g.icon,g.iconshadow&&(c+=" ui-icon-shadow")),g.iconpos&&(l+=" ui-btn-icon-"+g.iconpos,"notext"!==g.iconpos||f.attr("title")||f.attr("title",f.getEncodedText())),v+=g.corners?" ui-btn-corner-all":"",g.iconpos&&"notext"===g.iconpos&&!f.attr("title")&&f.attr("title",f.getEncodedText()),p&&f.removeClass(p.bcls||""),f.removeClass("ui-link").addClass(l),u.className=v,d.className=b,p||u.appendChild(d),h&&(h.className=c,p&&p.icon||(h.appendChild(i.createTextNode(" ")),u.appendChild(h)));m.firstChild&&!p;)d.appendChild(m.firstChild);p||m.appendChild(u),p={bcls:l,outer:m,inner:u,text:d,icon:h},e.data(m,"buttonElements",p),e.data(u,"buttonElements",p),e.data(d,"buttonElements",p),h&&e.data(h,"buttonElements",p)}return this},e.fn.buttonMarkup.defaults={corners:!0,shadow:!0,iconshadow:!0,wrapperEls:"span"};var o=function(){var t,a,r=e.mobile.buttonMarkup.hoverDelay;e(i).bind({"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart":function(i){var o,s=e(n(i.target)),l=i.originalEvent&&/^touch/.test(i.originalEvent.type),c=i.type;s.length&&(o=s.attr("data-"+e.mobile.ns+"theme"),"vmousedown"===c?l?t=setTimeout(function(){s.removeClass("ui-btn-up-"+o).addClass("ui-btn-down-"+o)},r):s.removeClass("ui-btn-up-"+o).addClass("ui-btn-down-"+o):"vmousecancel"===c||"vmouseup"===c?s.removeClass("ui-btn-down-"+o).addClass("ui-btn-up-"+o):"vmouseover"===c||"focus"===c?l?a=setTimeout(function(){s.removeClass("ui-btn-up-"+o).addClass("ui-btn-hover-"+o)},r):s.removeClass("ui-btn-up-"+o).addClass("ui-btn-hover-"+o):("vmouseout"===c||"blur"===c||"scrollstart"===c)&&(s.removeClass("ui-btn-hover-"+o+" ui-btn-down-"+o).addClass("ui-btn-up-"+o),t&&clearTimeout(t),a&&clearTimeout(a)))},"focusin focus":function(t){e(n(t.target)).addClass(e.mobile.focusClass)},"focusout blur":function(t){e(n(t.target)).removeClass(e.mobile.focusClass)}}),o=null};e(i).bind("pagecreate create",function(t){e(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",t.target).jqmEnhanceable().not("button, input, .ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})}(e),function(e){e.widget("mobile.collapsible",e.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:!0,heading:"h1,h2,h3,h4,h5,h6,legend",theme:null,contentTheme:null,mini:!1,initSelector:":jqmData(role='collapsible')"},_create:function(){var t=this.element,i=this.options,n=t.addClass("ui-collapsible"),o=t.children(i.heading).first(),a=t.jqmData("collapsed-icon")||i.collapsedIcon,r=t.jqmData("expanded-icon")||i.expandedIcon,s=n.wrapInner("<div class='ui-collapsible-content'></div>").children(".ui-collapsible-content"),l=t.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set");o.is("legend")&&(o=e("<div role='heading'>"+o.html()+"</div>").insertBefore(o),o.next().remove()),l.length&&(i.theme||(i.theme=l.jqmData("theme")||e.mobile.getInheritedTheme(l,"c")),i.contentTheme||(i.contentTheme=l.jqmData("content-theme")),i.collapsedIcon||(i.collapsedIcon=l.jqmData("collapsed-icon")),i.expandedIcon||(i.expandedIcon=l.jqmData("expanded-icon")),i.iconPos||(i.iconPos=l.jqmData("iconpos")),i.mini||(i.mini=l.jqmData("mini"))),s.addClass(i.contentTheme?"ui-body-"+i.contentTheme:""),a=t.jqmData("collapsed-icon")||i.collapsedIcon||"plus",r=t.jqmData("expanded-icon")||i.expandedIcon||"minus",o.insertBefore(s).addClass("ui-collapsible-heading").append("<span class='ui-collapsible-heading-status'></span>").wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().buttonMarkup({shadow:!1,corners:!1,iconpos:t.jqmData("iconpos")||i.iconPos||"left",icon:a,mini:i.mini,theme:i.theme}).add(".ui-btn-inner",t).addClass("ui-corner-top ui-corner-bottom"),n.bind("expand collapse",function(t){if(!t.isDefaultPrevented()){var c=e(this),u="collapse"===t.type,d=i.contentTheme;t.preventDefault(),o.toggleClass("ui-collapsible-heading-collapsed",u).find(".ui-collapsible-heading-status").text(u?i.expandCueText:i.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-"+r,!u).toggleClass("ui-icon-"+a,u).end().find("a").first().removeClass(e.mobile.activeBtnClass),c.toggleClass("ui-collapsible-collapsed",u),s.toggleClass("ui-collapsible-content-collapsed",u).attr("aria-hidden",u),!d||l.length&&!n.jqmData("collapsible-last")||(o.find("a").first().add(o.find(".ui-btn-inner")).toggleClass("ui-corner-bottom",u),s.toggleClass("ui-corner-bottom",!u)),s.trigger("updatelayout")}}).trigger(i.collapsed?"collapse":"expand"),o.bind("tap",function(){o.find("a").first().addClass(e.mobile.activeBtnClass)}).bind("click",function(e){var t=o.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";n.trigger(t),e.preventDefault(),e.stopPropagation()})}}),e(i).bind("pagecreate create",function(t){e.mobile.collapsible.prototype.enhanceWithin(t.target)})}(e),function(e,t){e.widget("mobile.collapsibleset",e.mobile.widget,{options:{initSelector:":jqmData(role='collapsible-set')"},_create:function(){var i=this.element.addClass("ui-collapsible-set"),n=this.options;n.theme||(n.theme=e.mobile.getInheritedTheme(i,"c")),n.contentTheme||(n.contentTheme=i.jqmData("content-theme")),n.corners||(n.corners=i.jqmData("corners")===t?!0:!1),i.jqmData("collapsiblebound")||i.jqmData("collapsiblebound",!0).bind("expand collapse",function(t){var i="collapse"===t.type,n=e(t.target).closest(".ui-collapsible"),o=n.data("collapsible");n.jqmData("collapsible-last")&&(n.find(o.options.heading).first().find("a").first().toggleClass("ui-corner-bottom",i).find(".ui-btn-inner").toggleClass("ui-corner-bottom",i),n.find(".ui-collapsible-content").toggleClass("ui-corner-bottom",!i))}).bind("expand",function(t){var i=e(t.target).closest(".ui-collapsible");i.parent().is(":jqmData(role='collapsible-set')")&&i.siblings(".ui-collapsible").trigger("collapse")
|
102
|
+
})},_init:function(){var e=this.element,t=e.children(":jqmData(role='collapsible')"),i=t.filter(":jqmData(collapsed='false')");this.refresh(),i.trigger("expand")},refresh:function(){var t=this.element,i=this.options,n=t.children(":jqmData(role='collapsible')");e.mobile.collapsible.prototype.enhance(n.not(".ui-collapsible")),n.each(function(){e(this).jqmRemoveData("collapsible-last").find(e.mobile.collapsible.prototype.options.heading).find("a").first().removeClass("ui-corner-top ui-corner-bottom").find(".ui-btn-inner").removeClass("ui-corner-top ui-corner-bottom")}),n.first().find("a").first().addClass(i.corners?"ui-corner-top":"").find(".ui-btn-inner").addClass("ui-corner-top"),n.last().jqmData("collapsible-last",!0).find("a").first().addClass(i.corners?"ui-corner-bottom":"").find(".ui-btn-inner").addClass("ui-corner-bottom")}}),e(i).bind("pagecreate create",function(t){e.mobile.collapsibleset.prototype.enhanceWithin(t.target)})}(e),function(e,t){e.widget("mobile.navbar",e.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},_create:function(){var i=this.element,n=i.find("a"),o=n.filter(":jqmData(icon)").length?this.options.iconpos:t;i.addClass("ui-navbar ui-mini").attr("role","navigation").find("ul").jqmEnhanceable().grid({grid:this.options.grid}),n.buttonMarkup({corners:!1,shadow:!1,inline:!0,iconpos:o}),i.delegate("a","vclick",function(t){e(t.target).hasClass("ui-disabled")||(n.removeClass(e.mobile.activeBtnClass),e(this).addClass(e.mobile.activeBtnClass))}),i.closest(".ui-page").bind("pagebeforeshow",function(){n.filter(".ui-state-persist").addClass(e.mobile.activeBtnClass)})}}),e(i).bind("pagecreate create",function(t){e.mobile.navbar.prototype.enhanceWithin(t.target)})}(e),function(e){var t={};e.widget("mobile.listview",e.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:!1,initSelector:":jqmData(role='listview')"},_create:function(){var e=this,t="";t+=e.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"",e.element.addClass(function(e,i){return i+" ui-listview "+t}),e.refresh(!0)},_removeCorners:function(e,t){var i="ui-corner-top ui-corner-tr ui-corner-tl",n="ui-corner-bottom ui-corner-br ui-corner-bl";e=e.add(e.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")),"top"===t?e.removeClass(i):"bottom"===t?e.removeClass(n):e.removeClass(i+" "+n)},_refreshCorners:function(e){var t,i,n,o;t=this.element.children("li"),i=e||0===t.filter(":visible").length?t.not(".ui-screen-hidden"):t.filter(":visible"),t.filter(".ui-li-last").removeClass("ui-li-last"),this.options.inset?(this._removeCorners(t),n=i.first().addClass("ui-corner-top"),n.add(n.find(".ui-btn-inner").not(".ui-li-link-alt span:first-child")).addClass("ui-corner-top").end().find(".ui-li-link-alt, .ui-li-link-alt span:first-child").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl"),o=i.last().addClass("ui-corner-bottom ui-li-last"),o.add(o.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl")):i.last().addClass("ui-li-last"),e||this.element.trigger("updatelayout")},_findFirstElementByTagName:function(e,t,i,n){var o={};for(o[i]=o[n]=!0;e;){if(o[e.nodeName])return e;e=e[t]}return null},_getChildrenByTagName:function(t,i,n){var o=[],a={};for(a[i]=a[n]=!0,t=t.firstChild;t;)a[t.nodeName]&&o.push(t),t=t.nextSibling;return e(o)},_addThumbClasses:function(t){var i,n,o=t.length;for(i=0;o>i;i++)n=e(this._findFirstElementByTagName(t[i].firstChild,"nextSibling","img","IMG")),n.length&&(n.addClass("ui-li-thumb"),e(this._findFirstElementByTagName(n[0].parentNode,"parentNode","li","LI")).addClass(n.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb"))},refresh:function(t){this.parentPage=this.element.closest(".ui-page"),this._createSubPages();var n,o,a,r,s,l,c,u,d,h,p,f,m=this.options,g=this.element,v=(g.jqmData("icon")||m.icon,g.jqmData("dividertheme")||m.dividerTheme),b=g.jqmData("splittheme"),y=g.jqmData("spliticon"),_=this._getChildrenByTagName(g[0],"li","LI"),w=!!e.nodeName(g[0],"ol"),x=!e.support.cssPseudoElement,C=g.attr("start"),k={};w&&x&&g.find(".ui-li-dec").remove(),w&&(C||0===C?x?c=parseFloat(C):(u=parseFloat(C)-1,g.css("counter-reset","listnumbering "+u)):x&&(c=1)),m.theme||(m.theme=e.mobile.getInheritedTheme(this.element,"c"));for(var T=0,D=_.length;D>T;T++){if(n=_.eq(T),o="ui-li",t||!n.hasClass("ui-li")){a=n.jqmData("theme")||m.theme,r=this._getChildrenByTagName(n[0],"a","A");var S="list-divider"===n.jqmData("role");r.length&&!S?(p=n.jqmData("icon"),n.buttonMarkup({wrapperEls:"div",shadow:!1,corners:!1,iconpos:"right",icon:r.length>1||p===!1?!1:p||"arrow-r",theme:a}),p!==!1&&1===r.length&&n.addClass("ui-li-has-arrow"),r.first().removeClass("ui-link").addClass("ui-link-inherit"),r.length>1&&(o+=" ui-li-has-alt",s=r.last(),l=b||s.jqmData("theme")||m.splitTheme,f=s.jqmData("icon"),s.appendTo(n).attr("title",s.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:!1,corners:!1,theme:a,icon:!1,iconpos:"notext"}).find(".ui-btn-inner").append(e(i.createElement("span")).buttonMarkup({shadow:!0,corners:!0,theme:l,iconpos:"notext",icon:f||p||y||m.splitIcon})))):S?(o+=" ui-li-divider ui-bar-"+v,n.attr("role","heading"),w&&(C||0===C?x?c=parseFloat(C):(d=parseFloat(C)-1,n.css("counter-reset","listnumbering "+d)):x&&(c=1))):o+=" ui-li-static ui-btn-up-"+a}w&&x&&o.indexOf("ui-li-divider")<0&&(h=o.indexOf("ui-li-static")>0?n:n.find(".ui-link-inherit"),h.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+c++ +". </span>")),k[o]||(k[o]=[]),k[o].push(n[0])}for(o in k)e(k[o]).addClass(o).children(".ui-btn-inner").addClass(o);g.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var t=e(this);t.prependTo(t.parent())}).end().find(".ui-li-count").each(function(){e(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+(g.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all"),this._addThumbClasses(_),this._addThumbClasses(g.find(".ui-link-inherit")),this._refreshCorners(t),this._trigger("afterrefresh")},_idStringEscape:function(e){return e.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var i,n=this.element,o=n.closest(".ui-page"),a=o.jqmData("url"),r=a||o[0][e.expando],s=n.attr("id"),l=this.options,c="data-"+e.mobile.ns,u=this,d=o.find(":jqmData(role='footer')").jqmData("id");if("undefined"==typeof t[r]&&(t[r]=-1),s=s||++t[r],e(n.find("li>ul, li>ol").toArray().reverse()).each(function(t){var o,r,u=e(this),h=u.attr("id")||s+"-"+t,p=u.parent(),f=e(u.prevAll().toArray().reverse()),m=f.length?f:e("<span>"+e.trim(p.contents()[0].nodeValue)+"</span>"),g=m.first().getEncodedText(),v=(a||"")+"&"+e.mobile.subPageUrlKey+"="+h,b=u.jqmData("theme")||l.theme,y=u.jqmData("counttheme")||n.jqmData("counttheme")||l.countTheme;i=!0,o=u.detach().wrap("<div "+c+"role='page' "+c+"url='"+v+"' "+c+"theme='"+b+"' "+c+"count-theme='"+y+"'><div "+c+"role='content'></div></div>").parent().before("<div "+c+"role='header' "+c+"theme='"+l.headerTheme+"'><div class='ui-title'>"+g+"</div></div>").after(d?e("<div "+c+"role='footer' "+c+"id='"+d+"'>"):"").parent().appendTo(e.mobile.pageContainer),o.page(),r=p.find("a:first"),r.length||(r=e("<a/>").html(m||g).prependTo(p.empty())),r.attr("href","#"+v)}).listview(),i&&o.is(":jqmData(external-page='true')")&&o.data("page").options.domCache===!1){var h=function(t,i){var n,r=i.nextPage,s=new e.Event("pageremove");i.nextPage&&(n=r.jqmData("url"),0!==n.indexOf(a+"&"+e.mobile.subPageUrlKey)&&(u.childPages().remove(),o.trigger(s),s.isDefaultPrevented()||o.removeWithDependents()))};o.unbind("pagehide.remove").bind("pagehide.remove",h)}},childPages:function(){var t=this.parentPage.jqmData("url");return e(":jqmData(url^='"+t+"&"+e.mobile.subPageUrlKey+"')")}}),e(i).bind("pagecreate create",function(t){e.mobile.listview.prototype.enhanceWithin(t.target)})}(e),function(e){e.mobile.listview.prototype.options.autodividers=!1,e.mobile.listview.prototype.options.autodividersSelector=function(e){var t=e.find("a").text()||e.text()||null;return t?t=t.slice(0,1).toUpperCase():null},e(i).delegate("ul,ol","listviewcreate",function(){var t=e(this),n=t.data("listview");if(n.options.autodividers){var o=function(){t.find("li:jqmData(role='list-divider')").remove();for(var o,a,r=t.find("li"),s=null,l=0;l<r.length;l++){if(o=r[l],a=n.options.autodividersSelector(e(o)),a&&s!==a){var c=i.createElement("li");c.appendChild(i.createTextNode(a)),c.setAttribute("data-"+e.mobile.ns+"role","list-divider"),o.parentNode.insertBefore(c,o)}s=a}},a=function(){t.unbind("listviewafterrefresh",a),o(),n.refresh(),t.bind("listviewafterrefresh",a)};a()}})}(e),function(e,t){e.widget("mobile.checkboxradio",e.mobile.widget,{options:{theme:null,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var n=this,o=this.element,a=function(e,t){return e.jqmData(t)||e.closest("form,fieldset").jqmData(t)},r=e(o).closest("label"),s=r.length?r:e(o).closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')").find("label").filter("[for='"+o[0].id+"']"),l=o[0].type,c=a(o,"mini"),u=l+"-on",d=l+"-off",h=o.parents(":jqmData(type='horizontal')").length?t:d,p=a(o,"iconpos"),f=h?"":" "+e.mobile.activeBtnClass,m="ui-"+u+f,g="ui-"+d,v="ui-icon-"+u,b="ui-icon-"+d;if("checkbox"===l||"radio"===l){e.extend(this,{label:s,inputtype:l,checkedClass:m,uncheckedClass:g,checkedicon:v,uncheckedicon:b}),this.options.theme||(this.options.theme=e.mobile.getInheritedTheme(this.element,"c")),s.buttonMarkup({theme:this.options.theme,icon:h,shadow:!1,mini:c,iconpos:p});var y=i.createElement("div");y.className="ui-"+l,o.add(s).wrapAll(y),s.bind({vmouseover:function(t){e(this).parent().is(".ui-disabled")&&t.stopPropagation()},vclick:function(e){return o.is(":disabled")?(e.preventDefault(),void 0):(n._cacheVals(),o.prop("checked","radio"===l&&!0||!o.prop("checked")),o.triggerHandler("click"),n._getInputSet().not(o).prop("checked",!1),n._updateAll(),!1)}}),o.bind({vmousedown:function(){n._cacheVals()},vclick:function(){var t=e(this);t.is(":checked")?(t.prop("checked",!0),n._getInputSet().not(t).prop("checked",!1)):t.prop("checked",!1),n._updateAll()},focus:function(){s.addClass(e.mobile.focusClass)},blur:function(){s.removeClass(e.mobile.focusClass)}}),this.refresh()}},_cacheVals:function(){this._getInputSet().each(function(){e(this).jqmData("cacheVal",this.checked)})},_getInputSet:function(){return"checkbox"===this.inputtype?this.element:this.element.closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')").find("input[name='"+this.element[0].name+"'][type='"+this.inputtype+"']")},_updateAll:function(){var t=this;this._getInputSet().each(function(){var i=e(this);(this.checked||"checkbox"===t.inputtype)&&i.trigger("change")}).checkboxradio("refresh")},refresh:function(){var e=this.element[0],t=this.label,i=t.find(".ui-icon");e.checked?(t.addClass(this.checkedClass).removeClass(this.uncheckedClass),i.addClass(this.checkedicon).removeClass(this.uncheckedicon)):(t.removeClass(this.checkedClass).addClass(this.uncheckedClass),i.removeClass(this.checkedicon).addClass(this.uncheckedicon)),e.disabled?this.disable():this.enable()},disable:function(){this.element.prop("disabled",!0).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",!1).parent().removeClass("ui-disabled")}}),e(i).bind("pagecreate create",function(t){e.mobile.checkboxradio.prototype.enhanceWithin(t.target,!0)})}(e),function(e,t){e.widget("mobile.button",e.mobile.widget,{options:{theme:null,icon:null,iconpos:null,corners:!0,shadow:!0,iconshadow:!0,initSelector:"button, [type='button'], [type='submit'], [type='reset']"},_create:function(){var n,o,a,r,s=this.element,l=this.options,c=l.inline||s.jqmData("inline"),u=l.mini||s.jqmData("mini"),d="";return"A"===s[0].tagName?(s.hasClass("ui-btn")||s.buttonMarkup(),void 0):(this.options.theme||(this.options.theme=e.mobile.getInheritedTheme(this.element,"c")),~s[0].className.indexOf("ui-btn-left")&&(d="ui-btn-left"),~s[0].className.indexOf("ui-btn-right")&&(d="ui-btn-right"),("submit"===s.attr("type")||"reset"===s.attr("type"))&&(d?d+=" ui-submit":d="ui-submit"),e("label[for='"+s.attr("id")+"']").addClass("ui-submit"),this.button=e("<div></div>")[s.html()?"html":"text"](s.html()||s.val()).insertBefore(s).buttonMarkup({theme:l.theme,icon:l.icon,iconpos:l.iconpos,inline:c,corners:l.corners,shadow:l.shadow,iconshadow:l.iconshadow,mini:u}).addClass(d).append(s.addClass("ui-btn-hidden")),n=this.button,o=s.attr("type"),a=s.attr("name"),"button"!==o&&"reset"!==o&&a&&s.bind("vclick",function(){r===t&&(r=e("<input>",{type:"hidden",name:s.attr("name"),value:s.attr("value")}).insertBefore(s),e(i).one("submit",function(){r.remove(),r=t}))}),s.bind({focus:function(){n.addClass(e.mobile.focusClass)},blur:function(){n.removeClass(e.mobile.focusClass)}}),this.refresh(),void 0)},enable:function(){return this.element.attr("disabled",!1),this.button.removeClass("ui-disabled").attr("aria-disabled",!1),this._setOption("disabled",!1)},disable:function(){return this.element.attr("disabled",!0),this.button.addClass("ui-disabled").attr("aria-disabled",!0),this._setOption("disabled",!0)},refresh:function(){var t=this.element;t.prop("disabled")?this.disable():this.enable(),e(this.button.data("buttonElements").text)[t.html()?"html":"text"](t.html()||t.val())}}),e(i).bind("pagecreate create",function(t){e.mobile.button.prototype.enhanceWithin(t.target,!0)})}(e),function(e){e.fn.controlgroup=function(t){function i(e,t){e.removeClass("ui-btn-corner-all ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-controlgroup-last ui-shadow").eq(0).addClass(t[0]).end().last().addClass(t[1]).addClass("ui-controlgroup-last")}return this.each(function(){{var n=e(this),o=e.extend({direction:n.jqmData("type")||"vertical",shadow:!1,excludeInvisible:!0,mini:n.jqmData("mini")},t),a=n.children("legend"),r="horizontal"===o.direction?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"];n.find("input").first().attr("type")}n.wrapInner("<div class='ui-controlgroup-controls'></div>"),a.length&&(e("<div role='heading' class='ui-controlgroup-label'>"+a.html()+"</div>").insertBefore(n.children(0)),a.remove()),n.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+o.direction),i(n.find(".ui-btn"+(o.excludeInvisible?":visible":"")).not(".ui-slider-handle"),r),i(n.find(".ui-btn-inner"),r),o.shadow&&n.addClass("ui-shadow"),o.mini&&n.addClass("ui-mini")})}}(e),function(e){e(i).bind("pagecreate create",function(t){e(t.target).find("a").jqmEnhanceable().not(".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link")})}(e),function(e,n){function o(e,t,i,n){var o=n;return o=t>e?i+(e-t)/2:Math.min(Math.max(i,n-t/2),i+e-t)}e.widget("mobile.popup",e.mobile.widget,{options:{theme:null,overlayTheme:null,shadow:!0,corners:!0,transition:"none",positionTo:"origin",initSelector:":jqmData(role='popup')"},_create:function(){var i={screen:e("<div class='ui-screen-hidden ui-popup-screen fade'></div>"),placeholder:e("<div style='display: none;'><!-- placeholder --></div>"),container:e("<div class='ui-popup-container ui-selectmenu-hidden'></div>")},o=function(e){e.preventDefault(),e.stopImmediatePropagation(),s.close()},a=this.element.closest(".ui-page"),r=this.element.attr("id"),s=this;0===a.length&&(a=e("body")),a.append(i.screen),i.container.insertAfter(i.screen),i.placeholder.insertAfter(this.element),r&&i.placeholder.html("<!-- placeholder for "+r+" -->"),i.container.append(this.element),this.element.addClass("ui-popup"),e.extend(this,{_page:a,_ui:i,_fallbackTransition:"",_currentTransition:!1,_prereqs:null,_isOpen:!1,_globalHandlers:[{src:e(t),handler:{resize:function(){s._isOpen&&s._resizeScreen()},keyup:function(t){s._isOpen&&t.keyCode===e.mobile.keyCode.ESCAPE&&o(t)}}}]}),e.each(this.options,function(e,t){s.options[e]=n,s._setOption(e,t,!0)}),i.screen.bind("vclick",function(e){o(e)}),e.each(this._globalHandlers,function(e,t){t.src.bind(t.handler)})},_resizeScreen:function(){this._ui.screen.height(Math.max(e(t).height(),e(i).height()))},_applyTheme:function(e,t){for(var i,n=(e.attr("class")||"").split(" "),o=null,a=String(t);n.length>0;){if(o=n.pop(),i=o.match(/^ui-body-([a-z])$/),i&&i.length>1){o=i[1];break}o=null}t!==o&&(e.removeClass("ui-body-"+o),null!==t&&"none"!==t&&e.addClass("ui-body-"+a))},_setTheme:function(e){this._applyTheme(this._ui.container,e)},_setOverlayTheme:function(t){this._applyTheme(this._ui.screen,t),e.mobile.browser.ie&&this._ui.screen.toggleClass("ui-popup-screen-background-hack","transparent"===this._ui.screen.css("background-color")&&"none"===this._ui.screen.css("background-image")&&this._ui.screen.css("background")===n)},_setShadow:function(e){this._ui.container.toggleClass("ui-overlay-shadow",e)},_setCorners:function(e){this._ui.container.toggleClass("ui-corner-all",e)},_applyTransition:function(t){this._ui.container.removeClass(this._fallbackTransition),t&&"none"!==t&&(this._fallbackTransition=e.mobile._maybeDegradeTransition(t),this._ui.container.addClass(this._fallbackTransition))},_setTransition:function(e){this._currentTransition||this._applyTransition(e)},_setOption:function(t,i){var o="_set"+t.replace(/^[a-z]/,function(e){return e.toUpperCase()});this[o]!==n&&this[o](i),"initSelector"!==t&&(e.mobile.widget.prototype._setOption.apply(this,arguments),this.element.attr("data-"+(e.mobile.ns||"")+t.replace(/([A-Z])/,"-$1").toLowerCase(),i))},_placementCoords:function(n){var a,r,s={l:15,t:30,r:15,b:30},l={l:s.l,t:e(t).scrollTop()+s.t,cx:e(t).width()-s.l-s.r,cy:e(t).height()-s.t-s.b};return this._ui.container.css("max-width",l.cx),a={cx:this._ui.container.outerWidth(!0),cy:this._ui.container.outerHeight(!0)},r={x:o(l.cx,a.cx,l.l,n.x),y:o(l.cy,a.cy,l.t,n.y)},r.y=Math.max(0,r.y),r.y-=Math.min(r.y,Math.max(0,r.y+a.cy-e(i).height())),r},_immediate:function(){this._prereqs&&e.each(this._prereqs,function(e,t){t.resolve()})},_createPrereqs:function(t,i,n){var o,a=this;o={screen:e.Deferred(function(e){e.then(function(){o===a._prereqs&&t()})}),container:e.Deferred(function(e){e.then(function(){o===a._prereqs&&i()})})},e.when(o.screen,o.container).done(function(){o===a._prereqs&&(a._prereqs=null,n())}),a._prereqs=o},_animate:function(e){var t=this;t.options.overlayTheme&&e.additionalCondition?t._ui.screen.removeClass(e.classToRemove).addClass(e.screenClassToAdd).animationComplete(function(){e.prereqs.screen.resolve()}):e.prereqs.screen.resolve(),e.transition&&"none"!==e.transition?(e.applyTransition&&t._applyTransition(e.transition),t._ui.container.addClass(e.containerClassToAdd).removeClass(e.classToRemove).animationComplete(function(){e.prereqs.container.resolve()})):e.prereqs.container.resolve()},_desiredCoords:function(i){var n,o=null,a=e(t);if(this.options.positionTo&&"origin"!==this.options.positionTo)if("window"===this.options.positionTo)i={x:a.width()/2+a.scrollLeft(),y:a.height()/2+a.scrollTop()};else{try{o=e(this.options.positionTo)}catch(r){o=null}o&&(o.filter(":visible"),0===o.length&&(o=null))}return o&&(n=o.offset(),i={x:n.left+o.outerWidth()/2,y:n.top+o.outerHeight()/2}),"number"!==e.type(i.x)&&(i.x=a.width()/2+a.scrollLeft()),"number"!==e.type(i.y)&&(i.y=a.height()/2+a.scrollTop()),i},_open:function(t,i,n){var o,a=this;this.element.trigger("popupbeforeopen"),o=a._placementCoords(a._desiredCoords({x:t,y:i})),a._createPrereqs(e.noop,function(){a._applyTransition("none"),a._ui.container.removeClass("in"),a._resizeScreen()},function(){a._isOpen=!0,a._ui.container.attr("tabindex","0").focus(),a.element.trigger("popupafteropen")}),n?(a._currentTransition=n,a._applyTransition(n)):n=a.options.transition,a.options.theme||a._setTheme(a._page.jqmData("theme")||e.mobile.getInheritedTheme(a._page,"c")),a._resizeScreen(),a._ui.screen.removeClass("ui-screen-hidden"),a._ui.container.removeClass("ui-selectmenu-hidden").offset({left:o.x,top:o.y}),a._animate({additionalCondition:!0,transition:n,classToRemove:"",screenClassToAdd:"in",containerClassToAdd:"in",applyTransition:!1,prereqs:a._prereqs})},_close:function(){var e=this,t=e._currentTransition?e._currentTransition:e.options.transition;this._isOpen=!1,e._createPrereqs(function(){e._ui.screen.removeClass("out").addClass("ui-screen-hidden")},function(){e._ui.container.removeClass("reverse out").addClass("ui-selectmenu-hidden").removeAttr("style")},function(){e._ui.container.removeAttr("tabindex"),e.element.trigger("popupafterclose")}),e._animate({additionalCondition:e._ui.screen.hasClass("in"),transition:t,classToRemove:"in",screenClassToAdd:"out",containerClassToAdd:"reverse out",applyTransition:!0,prereqs:e._prereqs})},_destroy:function(){this.element.insertAfter(this._ui.placeholder).removeClass("ui-popup"),this._ui.screen.remove(),this._ui.container.remove(),this._ui.placeholder.remove(),e.each(this._globalHandlers,function(t,i){e.each(i.handler,function(e,t){i.src.unbind(e,t)})})},open:function(){e.mobile.popup.popupManager.push(this,arguments)},close:function(){e.mobile.popup.popupManager.pop(this)}}),e.mobile.popup.popupManager={_currentlyOpenPopup:null,_popupIsOpening:!1,_popupIsClosing:!1,_abort:!1,_navHook:function(i){function n(){e(t).one("navigate.popup",function(){a._onHashChange()}),i()}var o,a=this;if(a._myUrl=e.mobile.activePage.jqmData("url"),e.mobile.pageContainer.one("pagebeforechange.popup",function(t,i){var n,o;n="string"==typeof i.toPage?i.toPage:i.toPage.jqmData("url"),n=e.mobile.path.parseUrl(n),o=n.pathname+n.search+n.hash,a._myUrl!==o&&a._onHashChange(!0)}),e.mobile.hashListeningEnabled){var r,s=e.mobile.urlHistory.getActive(),l=e.mobile.activePage.is(".ui-dialog"),c=s.url.indexOf(e.mobile.dialogHashKey)>-1&&!l;r=0===e.mobile.urlHistory.activeIndex?e.mobile.defaultDialogTransition:s.transition,c?n():(e(t).one("navigate.popupBinder",function(){n()}),o=s.url+e.mobile.dialogHashKey,0===e.mobile.urlHistory.activeIndex&&o===e.mobile.urlHistory.initialDst&&(o+=e.mobile.dialogHashKey),e.mobile.urlHistory.ignoreNextHashChange=l,e.mobile.path.set(o),e.mobile.urlHistory.addNew(o,r,s.title,s.pageUrl,s.role))}else i()},_navUnhook:function(i){i&&e(t).unbind("navigate.popupBinder navigate.popup"),e.mobile.hashListeningEnabled&&!i?t.history.back():this._onHashChange(),e.mobile.activePage.unbind("pagebeforechange.popup")},push:function(e,t){var i=this;i._currentlyOpenPopup||(i._currentlyOpenPopup=e,i._navHook(function(){i._popupIsOpening=!0,i._currentlyOpenPopup.element.one("popupafteropen",function(){i._popupIsOpening=!1}),i._currentlyOpenPopup._open.apply(i._currentlyOpenPopup,t),!i._popupIsOpening&&i._abort&&i._currentlyOpenPopup._immediate()}))},pop:function(t){var i=this;t!==i._currentlyOpenPopup||i._popupIsClosing||(i._popupIsClosing=!0,i._popupIsOpening?i._currentlyOpenPopup.element.one("popupafteropen",e.proxy(i,"_navUnhook")):i._navUnhook())},_onHashChange:function(t){var i=this;i._abort=t,i._currentlyOpenPopup&&(t&&i._popupIsOpening&&i._currentlyOpenPopup._immediate(),i._popupIsClosing=!0,i._currentlyOpenPopup.element.one("popupafterclose",function(){i._popupIsClosing=!1,i._currentlyOpenPopup=null,e(i).trigger("done")}),i._currentlyOpenPopup._close(),t&&i._currentlyOpenPopup&&i._currentlyOpenPopup._immediate())}},e.mobile.popup.handleLink=function(t){var i,n=t.closest(":jqmData(role='page')"),o=0===n.length?e("body"):n,a=e(t.attr("href"),o[0]);a.data("popup")&&(i=t.offset(),a.popup("open",i.left+t.outerWidth()/2,i.top+t.outerHeight()/2,t.jqmData("transition")),0===t.parents(".ui-popup-container").length&&e(e.mobile.popup.popupManager).one("done",function(){t.focus()})),setTimeout(function(){t.removeClass(e.mobile.activeBtnClass)},300)},e(i).bind("pagebeforechange",function(t,i){"popup"===i.options.role&&(e.mobile.popup.handleLink(i.options.link),t.preventDefault())}),e(i).bind("pagecreate create",function(t){e.mobile.popup.prototype.enhanceWithin(t.target,!0)})}(e),function(e){var t=e("meta[name=viewport]"),i=t.attr("content"),n=i+",maximum-scale=1, user-scalable=no",o=i+",maximum-scale=10, user-scalable=yes",a=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(i);e.mobile.zoom=e.extend({},{enabled:!a,locked:!1,disable:function(i){a||e.mobile.zoom.locked||(t.attr("content",n),e.mobile.zoom.enabled=!1,e.mobile.zoom.locked=i||!1)},enable:function(i){a||e.mobile.zoom.locked&&i!==!0||(t.attr("content",o),e.mobile.zoom.enabled=!0,e.mobile.zoom.locked=!1)},restore:function(){a||(t.attr("content",i),e.mobile.zoom.enabled=!0)}})}(e),function(e){e.widget("mobile.textinput",e.mobile.widget,{options:{theme:null,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",clearSearchButtonText:"clear text",disabled:!1},_create:function(){function n(){setTimeout(function(){a.toggleClass("ui-input-clear-hidden",!r.val())},0)}var o,a,r=this.element,s=this.options,l=s.theme||e.mobile.getInheritedTheme(this.element,"c"),c=" ui-body-"+l,u=r.jqmData("mini")===!0,d=u?" ui-mini":"";if(e("label[for='"+r.attr("id")+"']").addClass("ui-input-text"),o=r.addClass("ui-input-text ui-body-"+l),"undefined"==typeof r[0].autocorrect||e.support.touchOverflow||(r[0].setAttribute("autocorrect","off"),r[0].setAttribute("autocomplete","off")),r.is("[type='search'],:jqmData(type='search')")?(o=r.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+c+d+"'></div>").parent(),a=e("<a href='#' class='ui-input-clear' title='"+s.clearSearchButtonText+"'>"+s.clearSearchButtonText+"</a>").bind("click",function(e){r.val("").focus().trigger("change"),a.addClass("ui-input-clear-hidden"),e.preventDefault()}).appendTo(o).buttonMarkup({icon:"delete",iconpos:"notext",corners:!0,shadow:!0,mini:u}),n(),r.bind("paste cut keyup focus change blur",n)):r.addClass("ui-corner-all ui-shadow-inset"+c+d),r.focus(function(){o.addClass(e.mobile.focusClass)}).blur(function(){o.removeClass(e.mobile.focusClass)}).bind("focus",function(){s.preventFocusZoom&&e.mobile.zoom.disable(!0)}).bind("blur",function(){s.preventFocusZoom&&e.mobile.zoom.enable(!0)}),r.is("textarea")){var h,p=15,f=100,m=function(){var e=r[0].scrollHeight,t=r[0].clientHeight;e>t&&r.height(e+p)};r.keyup(function(){clearTimeout(h),h=setTimeout(m,f)}),e(i).one("pagechange",m),e.trim(r.val())&&e(t).load(m)}r.attr("disabled")&&this.disable()},disable:function(){var e;return e=this.element.attr("disabled",!0).is("[type='search'], :jqmData(type='search')")?this.element.parent():this.element,e.addClass("ui-disabled"),this._setOption("disabled",!0)},enable:function(){var e;return e=this.element.attr("disabled",!1).is("[type='search'], :jqmData(type='search')")?this.element.parent():this.element,e.removeClass("ui-disabled"),this._setOption("disabled",!1)}}),e(i).bind("pagecreate create",function(t){e.mobile.textinput.prototype.enhanceWithin(t.target,!0)})}(e),function(e){e.mobile.listview.prototype.options.filter=!1,e.mobile.listview.prototype.options.filterPlaceholder="Filter items...",e.mobile.listview.prototype.options.filterTheme="c",e.mobile.listview.prototype.options.filterCallback=function(e,t){return-1===e.toString().toLowerCase().indexOf(t)},e(i).delegate(":jqmData(role='listview')","listviewcreate",function(){var t=e(this),i=t.data("listview");if(i.options.filter){{var n=e("<form>",{"class":"ui-listview-filter ui-bar-"+i.options.filterTheme,role:"search"});e("<input>",{placeholder:i.options.filterPlaceholder}).attr("data-"+e.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var n,o=e(this),a=this.value.toLowerCase(),r=null,s=o.jqmData("lastval")+"",l=!1,c="";if(o.jqmData("lastval",a),r=a.length<s.length||0!==a.indexOf(s)?t.children():t.children(":not(.ui-screen-hidden)"),a){for(var u=r.length-1;u>=0;u--)n=e(r[u]),c=n.jqmData("filtertext")||n.text(),n.is("li:jqmData(role=list-divider)")?(n.toggleClass("ui-filter-hidequeue",!l),l=!1):i.options.filterCallback(c,a,n)?n.toggleClass("ui-filter-hidequeue",!0):l=!0;r.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",!1),r.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",!0).toggleClass("ui-filter-hidequeue",!1)}else r.toggleClass("ui-screen-hidden",!1);i._refreshCorners()}).appendTo(n).textinput()}i.options.inset&&n.addClass("ui-listview-filter-inset"),n.bind("submit",function(){return!1}).insertBefore(t)}})}(e),function(e,n){e.widget("mobile.slider",e.mobile.widget,{options:{theme:null,trackTheme:null,disabled:!1,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",mini:!1},_create:function(){var o,a=this,r=this.element,s=e.mobile.getInheritedTheme(r,"c"),l=this.options.theme||s,c=this.options.trackTheme||s,u=r[0].nodeName.toLowerCase(),d="select"===u?"ui-slider-switch":"",h=r.attr("id"),p=e("[for='"+h+"']"),f=p.attr("id")||h+"-label",m=p.attr("id",f),g=function(){return"input"===u?parseFloat(r.val()):r[0].selectedIndex},v="input"===u?parseFloat(r.attr("min")):0,b="input"===u?parseFloat(r.attr("max")):r.find("option").length-1,y=t.parseFloat(r.attr("step")||1),_=this.options.inline||r.jqmData("inline")===!0?" ui-slider-inline":"",w=this.options.mini||r.jqmData("mini")?" ui-slider-mini":"",x=i.createElement("a"),C=e(x),k=i.createElement("div"),T=e(k),D=r.jqmData("highlight")&&"select"!==u?function(){var t=i.createElement("div");return t.className="ui-slider-bg "+e.mobile.activeBtnClass+" ui-btn-corner-all",e(t).prependTo(T)}():!1;if(x.setAttribute("href","#"),k.setAttribute("role","application"),k.className=["ui-slider ",d," ui-btn-down-",c," ui-btn-corner-all",_,w].join(""),x.className="ui-slider-handle",k.appendChild(x),C.buttonMarkup({corners:!0,theme:l,shadow:!0}).attr({role:"slider","aria-valuemin":v,"aria-valuemax":b,"aria-valuenow":g(),"aria-valuetext":g(),title:g(),"aria-labelledby":f}),e.extend(this,{slider:T,handle:C,valuebg:D,dragging:!1,beforeStart:null,userModified:!1,mouseMoved:!1}),"select"===u){var S=i.createElement("div");S.className="ui-slider-inneroffset";for(var E=0,N=k.childNodes.length;N>E;E++)S.appendChild(k.childNodes[E]);k.appendChild(S),C.addClass("ui-slider-handle-snapping"),o=r.find("option");for(var A=0,P=o.length;P>A;A++){var M=A?"a":"b",I=A?" "+e.mobile.activeBtnClass:" ui-btn-down-"+c,H=(i.createElement("div"),i.createElement("span"));H.className=["ui-slider-label ui-slider-label-",M,I," ui-btn-corner-all"].join(""),H.setAttribute("role","img"),H.appendChild(i.createTextNode(o[A].innerHTML)),e(H).prependTo(T)}a._labels=e(".ui-slider-label",T)}m.addClass("ui-slider"),r.addClass("input"===u?"ui-slider-input":"ui-slider-switch").change(function(){a.mouseMoved||a.refresh(g(),!0)}).keyup(function(){a.refresh(g(),!0,!0)}).blur(function(){a.refresh(g(),!0)}),e(i).bind("vmousemove",function(e){return a.dragging?(a.mouseMoved=!0,"select"===u&&C.removeClass("ui-slider-handle-snapping"),a.refresh(e),a.userModified=a.beforeStart!==r[0].selectedIndex,!1):void 0}),T.bind("vmousedown",function(e){return a.dragging=!0,a.userModified=!1,a.mouseMoved=!1,"select"===u&&(a.beforeStart=r[0].selectedIndex),a.refresh(e),!1}).bind("vclick",!1),T.add(i).bind("vmouseup",function(){return a.dragging?(a.dragging=!1,"select"===u&&(C.addClass("ui-slider-handle-snapping"),a.mouseMoved?a.userModified?a.refresh(0===a.beforeStart?1:0):a.refresh(a.beforeStart):a.refresh(0===a.beforeStart?1:0)),a.mouseMoved=!1,!1):void 0}),T.insertAfter(r),"select"===u&&this.handle.bind({focus:function(){T.addClass(e.mobile.focusClass)},blur:function(){T.removeClass(e.mobile.focusClass)}}),this.handle.bind({vmousedown:function(){e(this).focus()},vclick:!1,keydown:function(t){var i=g();if(!a.options.disabled){switch(t.keyCode){case e.mobile.keyCode.HOME:case e.mobile.keyCode.END:case e.mobile.keyCode.PAGE_UP:case e.mobile.keyCode.PAGE_DOWN:case e.mobile.keyCode.UP:case e.mobile.keyCode.RIGHT:case e.mobile.keyCode.DOWN:case e.mobile.keyCode.LEFT:t.preventDefault(),a._keySliding||(a._keySliding=!0,e(this).addClass("ui-state-active"))}switch(t.keyCode){case e.mobile.keyCode.HOME:a.refresh(v);break;case e.mobile.keyCode.END:a.refresh(b);break;case e.mobile.keyCode.PAGE_UP:case e.mobile.keyCode.UP:case e.mobile.keyCode.RIGHT:a.refresh(i+y);break;case e.mobile.keyCode.PAGE_DOWN:case e.mobile.keyCode.DOWN:case e.mobile.keyCode.LEFT:a.refresh(i-y)
|
103
|
+
}}},keyup:function(){a._keySliding&&(a._keySliding=!1,e(this).removeClass("ui-state-active"))}}),this.refresh(n,n,!0)},refresh:function(t,i,n){(this.options.disabled||this.element.attr("disabled"))&&this.disable();var o,a=this.element,r=a[0].nodeName.toLowerCase(),s="input"===r?parseFloat(a.attr("min")):0,l="input"===r?parseFloat(a.attr("max")):a.find("option").length-1,c="input"===r&&parseFloat(a.attr("step"))>0?parseFloat(a.attr("step")):1;if("object"==typeof t){var u=t,d=8;if(!this.dragging||u.pageX<this.slider.offset().left-d||u.pageX>this.slider.offset().left+this.slider.width()+d)return;o=Math.round((u.pageX-this.slider.offset().left)/this.slider.width()*100)}else null==t&&(t="input"===r?parseFloat(a.val()||0):a[0].selectedIndex),o=(parseFloat(t)-s)/(l-s)*100;if(!isNaN(o)){0>o&&(o=0),o>100&&(o=100);var h=o/100*(l-s)+s,p=(h-s)%c,f=h-p;if(2*Math.abs(p)>=c&&(f+=p>0?c:-c),h=parseFloat(f.toFixed(5)),s>h&&(h=s),h>l&&(h=l),this.handle.css("left",o+"%"),this.handle.attr({"aria-valuenow":"input"===r?h:a.find("option").eq(h).attr("value"),"aria-valuetext":"input"===r?h:a.find("option").eq(h).getEncodedText(),title:"input"===r?h:a.find("option").eq(h).getEncodedText()}),this.valuebg&&this.valuebg.css("width",o+"%"),this._labels){var m=this.handle.width()/this.slider.width()*100,g=o&&m+(100-m)*o/100,v=100===o?0:Math.min(m+100-g,100);this._labels.each(function(){var t=e(this).is(".ui-slider-label-a");e(this).width((t?g:v)+"%")})}if(!n){var b=!1;"input"===r?(b=a.val()!==h,a.val(h)):(b=a[0].selectedIndex!==h,a[0].selectedIndex=h),!i&&b&&a.trigger("change")}}},enable:function(){return this.element.attr("disabled",!1),this.slider.removeClass("ui-disabled").attr("aria-disabled",!1),this._setOption("disabled",!1)},disable:function(){return this.element.attr("disabled",!0),this.slider.addClass("ui-disabled").attr("aria-disabled",!0),this._setOption("disabled",!0)}}),e(i).bind("pagecreate create",function(t){e.mobile.slider.prototype.enhanceWithin(t.target,!0)})}(e),function(e){e.widget("mobile.selectmenu",e.mobile.widget,{options:{theme:null,disabled:!1,icon:"arrow-d",iconpos:"right",inline:!1,corners:!0,shadow:!0,iconshadow:!0,overlayTheme:"a",hidePlaceholderMenuItems:!0,closeText:"Close",nativeMenu:!0,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"select:not( :jqmData(role='slider') )",mini:!1},_button:function(){return e("<div/>")},_setDisabled:function(e){return this.element.attr("disabled",e),this.button.attr("aria-disabled",e),this._setOption("disabled",e)},_focusButton:function(){var e=this;setTimeout(function(){e.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){var t="";~this.element[0].className.indexOf("ui-btn-left")&&(t=" ui-btn-left"),~this.element[0].className.indexOf("ui-btn-right")&&(t=" ui-btn-right"),this.select=this.element.wrap("<div class='ui-select"+t+"'>"),this.selectID=this.select.attr("id"),this.label=e("label[for='"+this.selectID+"']").addClass("ui-select"),this.isMultiple=this.select[0].multiple,this.options.theme||(this.options.theme=e.mobile.getInheritedTheme(this.select,"c"))},_create:function(){this._preExtension(),this._trigger("beforeCreate"),this.button=this._button();var i=this,n=this.options,o=n.inline||this.select.jqmData("inline"),a=n.mini||this.select.jqmData("mini"),r=n.icon?n.iconpos||this.select.jqmData("iconpos"):!1,s=(-1===this.select[0].selectedIndex?0:this.select[0].selectedIndex,this.button.insertBefore(this.select).buttonMarkup({theme:n.theme,icon:n.icon,iconpos:r,inline:o,corners:n.corners,shadow:n.shadow,iconshadow:n.iconshadow,mini:a}));this.setButtonText(),n.nativeMenu&&t.opera&&t.opera.version&&s.addClass("ui-select-nativeonly"),this.isMultiple&&(this.buttonCount=e("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(s.addClass("ui-li-has-count"))),(n.disabled||this.element.attr("disabled"))&&this.disable(),this.select.change(function(){i.refresh()}),this.build()},build:function(){var t=this;this.select.appendTo(t.button).bind("vmousedown",function(){t.button.addClass(e.mobile.activeBtnClass)}).bind("focus",function(){t.button.addClass(e.mobile.focusClass)}).bind("blur",function(){t.button.removeClass(e.mobile.focusClass)}).bind("focus vmouseover",function(){t.button.trigger("vmouseover")}).bind("vmousemove",function(){t.button.removeClass(e.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){t.button.trigger("vmouseout").removeClass(e.mobile.activeBtnClass)}).bind("change blur",function(){t.button.removeClass("ui-btn-down-"+t.options.theme)}),t.button.bind("vmousedown",function(){t.options.preventFocusZoom&&e.mobile.zoom.disable(!0)}).bind("mouseup",function(){t.options.preventFocusZoom&&e.mobile.zoom.enable(!0)})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var e=this;return this.selected().map(function(){return e._selectOptions().index(this)}).get()},setButtonText:function(){var t=this,n=this.selected(),o=this.placeholder,a=e(i.createElement("span"));this.button.find(".ui-btn-text").html(function(){return o=n.length?n.map(function(){return e(this).text()}).get().join(", "):t.placeholder,a.text(o).addClass(t.select.attr("class")).addClass(n.attr("class"))})},setButtonCount:function(){var e=this.selected();this.isMultiple&&this.buttonCount[e.length>1?"show":"hide"]().text(e.length)},refresh:function(){this.setButtonText(),this.setButtonCount()},open:e.noop,close:e.noop,disable:function(){this._setDisabled(!0),this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(!1),this.button.removeClass("ui-disabled")}}),e(i).bind("pagecreate create",function(t){e.mobile.selectmenu.prototype.enhanceWithin(t.target,!0)})}(e),function(e){var n=function(n){var o,a,r,s=(n.select,n.selectID),l=n.label,c=n.select.closest(".ui-page"),u=n._selectOptions(),d=n.isMultiple=n.select[0].multiple,h=s+"-button",p=s+"-menu",f=e("<div data-"+e.mobile.ns+"role='dialog' data-"+e.mobile.ns+"theme='"+n.options.theme+"' data-"+e.mobile.ns+"overlay-theme='"+n.options.overlayTheme+"'><div data-"+e.mobile.ns+"role='header'><div class='ui-title'>"+l.getEncodedText()+"</div></div><div data-"+e.mobile.ns+"role='content'></div></div>"),m=e("<div>",{"class":"ui-selectmenu"}).insertAfter(n.select).popup({theme:"a"}),g=e("<ul>",{"class":"ui-selectmenu-list",id:p,role:"listbox","aria-labelledby":h}).attr("data-"+e.mobile.ns+"theme",n.options.theme).appendTo(m),v=e("<div>",{"class":"ui-header ui-bar-"+n.options.theme}).prependTo(m),b=e("<h1>",{"class":"ui-title"}).appendTo(v);n.isMultiple&&(r=e("<a>",{text:n.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+e.mobile.ns+"iconpos","notext").attr("data-"+e.mobile.ns+"icon","delete").appendTo(v).buttonMarkup()),e.extend(n,{select:n.select,selectID:s,buttonId:h,menuId:p,thisPage:c,menuPage:f,label:l,selectOptions:u,isMultiple:d,theme:n.options.theme,listbox:m,list:g,header:v,headerTitle:b,headerClose:r,menuPageContent:o,menuPageClose:a,placeholder:"",build:function(){var t=this;t.refresh(),t.select.attr("tabindex","-1").focus(function(){e(this).blur(),t.button.focus()}),t.button.bind("vclick keydown",function(i){("vclick"===i.type||i.keyCode&&(i.keyCode===e.mobile.keyCode.ENTER||i.keyCode===e.mobile.keyCode.SPACE))&&(t.open(),i.preventDefault())}),t.list.attr("role","listbox").bind("focusin",function(t){e(t.target).attr("tabindex","0").trigger("vmouseover")}).bind("focusout",function(t){e(t.target).attr("tabindex","-1").trigger("vmouseout")}).delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(i){var o=t.select[0].selectedIndex,a=t.list.find("li:not(.ui-li-divider)").index(this),r=t._selectOptions().eq(a)[0];r.selected=t.isMultiple?!r.selected:!0,t.isMultiple&&e(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",r.selected).toggleClass("ui-icon-checkbox-off",!r.selected),(t.isMultiple||o!==a)&&t.select.trigger("change"),t.isMultiple?t.list.find("li:not(.ui-li-divider)").eq(a).addClass("ui-btn-down-"+n.options.theme).find("a").first().focus():t.close(),i.preventDefault()}).keydown(function(t){var i,o,a=e(t.target),r=a.closest("li");switch(t.keyCode){case 38:return i=r.prev().not(".ui-selectmenu-placeholder"),i.is(".ui-li-divider")&&(i=i.prev()),i.length&&(a.blur().attr("tabindex","-1"),i.addClass("ui-btn-down-"+n.options.theme).find("a").first().focus()),!1;case 40:return o=r.next(),o.is(".ui-li-divider")&&(o=o.next()),o.length&&(a.blur().attr("tabindex","-1"),o.addClass("ui-btn-down-"+n.options.theme).find("a").first().focus()),!1;case 13:case 32:return a.trigger("click"),!1}}),t.menuPage.bind("pagehide",function(){t.list.appendTo(t.listbox),t._focusButton(),e.mobile._bindPageRemove.call(t.thisPage)}),t.listbox.bind("popupafterclose",function(){t.close()}),t.isMultiple&&t.headerClose.click(function(){return"overlay"===t.menuType?(t.close(),!1):void 0}),t.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var e=this.list.find("li"),t=this._selectOptions();return t.text()!==e.text()},selected:function(){return this._selectOptions().filter(":selected:not( :jqmData(placeholder='true') )")},refresh:function(t){{var i,n=this;this.element,this.isMultiple}(t||this._isRebuildRequired())&&n._buildList(),i=this.selectedIndices(),n.setButtonText(),n.setButtonCount(),n.list.find("li:not(.ui-li-divider)").removeClass(e.mobile.activeBtnClass).attr("aria-selected",!1).each(function(t){if(e.inArray(t,i)>-1){var o=e(this);o.attr("aria-selected",!0),n.isMultiple?o.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on"):o.is(".ui-selectmenu-placeholder")?o.next().addClass(e.mobile.activeBtnClass):o.addClass(e.mobile.activeBtnClass)}})},close:function(){if(!this.options.disabled&&this.isOpen){var e=this;"page"===e.menuType?t.history.back():(e.listbox.popup("close"),e.list.appendTo(e.listbox),e._focusButton()),e.isOpen=!1}},open:function(){function i(){var t=o.list.find("."+e.mobile.activeBtnClass+" a");0===t.length&&(t=o.list.find("li.ui-btn:not( :jqmData(placeholder='true') ) a")),t.first().focus().closest("li").addClass("ui-btn-down-"+n.options.theme)}if(!this.options.disabled){{var o=this,a=e(t),r=o.list.parent(),s=r.outerHeight(),l=(r.outerWidth(),e("."+e.mobile.activePageClass),a.scrollTop()),c=o.button.offset().top,u=a.height();a.width()}o.button.addClass(e.mobile.activeBtnClass),setTimeout(function(){o.button.removeClass(e.mobile.activeBtnClass)},300),s>u-80||!e.support.scrollTop?(o.menuPage.appendTo(e.mobile.pageContainer).page(),o.menuPageContent=f.find(".ui-content"),o.menuPageClose=f.find(".ui-header a"),o.thisPage.unbind("pagehide.remove"),0===l&&c>u&&o.thisPage.one("pagehide",function(){e(this).jqmData("lastScroll",c)}),o.menuPage.one("pageshow",function(){i(),o.isOpen=!0}),o.menuType="page",o.menuPageContent.append(o.list),o.menuPage.find("div .ui-title").text(o.label.text()),e.mobile.changePage(o.menuPage,{transition:e.mobile.defaultDialogTransition})):(o.menuType="overlay",o.listbox.one("popupafteropen",i).popup("open",o.button.offset().left+o.button.outerWidth()/2,o.button.offset().top+o.button.outerHeight()/2),o.isOpen=!0)}},_buildList:function(){var t=this,n=this.options,o=this.placeholder,a=!0,r=t.isMultiple?"checkbox-off":"false";t.list.empty().filter(".ui-listview").listview("destroy");for(var s,l=t.select.find("option"),c=l.length,u=this.select[0],d="data-"+e.mobile.ns,h=d+"option-index",p=d+"icon",f=d+"role",m=d+"placeholder",g=i.createDocumentFragment(),v=!1,b=0;c>b;b++,v=!1){var y=l[b],_=e(y),w=y.parentNode,x=_.text(),C=i.createElement("a"),k=[];if(C.setAttribute("href","#"),C.appendChild(i.createTextNode(x)),w!==u&&"optgroup"===w.nodeName.toLowerCase()){var T=w.getAttribute("label");if(T!==s){var D=i.createElement("li");D.setAttribute(f,"list-divider"),D.setAttribute("role","option"),D.setAttribute("tabindex","-1"),D.appendChild(i.createTextNode(T)),g.appendChild(D),s=T}}!a||y.getAttribute("value")&&0!==x.length&&!_.jqmData("placeholder")||(a=!1,v=!0,y.setAttribute(m,!0),n.hidePlaceholderMenuItems&&k.push("ui-selectmenu-placeholder"),o||(o=t.placeholder=x));var S=i.createElement("li");y.disabled&&(k.push("ui-disabled"),S.setAttribute("aria-disabled",!0)),S.setAttribute(h,b),S.setAttribute(p,r),v&&S.setAttribute(m,!0),S.className=k.join(" "),S.setAttribute("role","option"),C.setAttribute("tabindex","-1"),S.appendChild(C),g.appendChild(S)}t.list[0].appendChild(g),this.isMultiple||o.length?this.headerTitle.text(this.placeholder):this.header.hide(),t.list.listview()},_button:function(){return e("<a>",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})}})};e(i).bind("selectmenubeforecreate",function(t){var i=e(t.target).data("selectmenu");i.options.nativeMenu||0!==i.element.parents(":jqmData(role='popup')").length||n(i)})}(e),function(e){e.widget("mobile.fixedtoolbar",e.mobile.widget,{options:{visibleOnPageShow:!0,disablePageZoom:!0,transition:"slide",fullscreen:!1,tapToggle:!0,tapToggleBlacklist:"a, button, input, select, textarea, .ui-header-fixed, .ui-footer-fixed",hideDuringFocus:"input, textarea, select",updatePagePadding:!0,trackPersistentToolbars:!0,supportBlacklist:function(){var e=t,i=navigator.userAgent,n=navigator.platform,o=i.match(/AppleWebKit\/([0-9]+)/),a=!!o&&o[1],r=i.match(/Fennec\/([0-9]+)/),s=!!r&&r[1],l=i.match(/Opera Mobi\/([0-9]+)/),c=!!l&&l[1];return(n.indexOf("iPhone")>-1||n.indexOf("iPad")>-1||n.indexOf("iPod")>-1)&&a&&534>a||e.operamini&&"[object OperaMini]"==={}.toString.call(e.operamini)||l&&7458>c||i.indexOf("Android")>-1&&a&&533>a||s&&6>s||"palmGetResource"in t&&a&&534>a||i.indexOf("MeeGo")>-1&&i.indexOf("NokiaBrowser/8.5.0")>-1?!0:!1},initSelector:":jqmData(position='fixed')"},_create:function(){var e=this,t=e.options,i=e.element,n=i.is(":jqmData(role='header')")?"header":"footer",o=i.closest(".ui-page");return t.supportBlacklist()?(e.destroy(),void 0):(i.addClass("ui-"+n+"-fixed"),t.fullscreen?(i.addClass("ui-"+n+"-fullscreen"),o.addClass("ui-page-"+n+"-fullscreen")):o.addClass("ui-page-"+n+"-fixed"),e._addTransitionClass(),e._bindPageEvents(),e._bindToggleHandlers(),void 0)},_addTransitionClass:function(){var e=this.options.transition;e&&"none"!==e&&("slide"===e&&(e=this.element.is(".ui-header")?"slidedown":"slideup"),this.element.addClass(e))},_bindPageEvents:function(){var i=this,n=i.options,o=i.element;o.closest(".ui-page").bind("pagebeforeshow",function(){n.disablePageZoom&&e.mobile.zoom.disable(!0),n.visibleOnPageShow||i.hide(!0)}).bind("webkitAnimationStart animationstart updatelayout",function(){var e=this;n.updatePagePadding&&i.updatePagePadding(e)}).bind("pageshow",function(){var o=this;i.updatePagePadding(o),n.updatePagePadding&&e(t).bind("throttledresize."+i.widgetName,function(){i.updatePagePadding(o)})}).bind("pagebeforehide",function(o,a){if(n.disablePageZoom&&e.mobile.zoom.enable(!0),n.updatePagePadding&&e(t).unbind("throttledresize."+i.widgetName),n.trackPersistentToolbars){var r=e(".ui-footer-fixed:jqmData(id)",this),s=e(".ui-header-fixed:jqmData(id)",this),l=r.length&&a.nextPage&&e(".ui-footer-fixed:jqmData(id='"+r.jqmData("id")+"')",a.nextPage),c=s.length&&a.nextPage&&e(".ui-header-fixed:jqmData(id='"+s.jqmData("id")+"')",a.nextPage);l=l||e(),(l.length||c.length)&&(l.add(c).appendTo(e.mobile.pageContainer),a.nextPage.one("pageshow",function(){l.add(c).appendTo(this)}))}})},_visible:!0,updatePagePadding:function(t){var i=this.element,n=i.is(".ui-header");this.options.fullscreen||(t=t||i.closest(".ui-page"),e(t).css("padding-"+(n?"top":"bottom"),i.outerHeight()))},_useTransition:function(i){var n=e(t),o=this.element,a=n.scrollTop(),r=o.height(),s=o.closest(".ui-page").height(),l=e.mobile.getScreenHeight(),c=o.is(":jqmData(role='header')")?"header":"footer";return!i&&(this.options.transition&&"none"!==this.options.transition&&("header"===c&&!this.options.fullscreen&&a>r||"footer"===c&&!this.options.fullscreen&&s-r>a+l)||this.options.fullscreen)},show:function(e){var t="ui-fixed-hidden",i=this.element;this._useTransition(e)?i.removeClass("out "+t).addClass("in"):i.removeClass(t),this._visible=!0},hide:function(e){var t="ui-fixed-hidden",i=this.element,n="out"+("slide"===this.options.transition?" reverse":"");this._useTransition(e)?i.addClass(n).removeClass("in").animationComplete(function(){i.addClass(t).removeClass(n)}):i.addClass(t).removeClass(n),this._visible=!1},toggle:function(){this[this._visible?"hide":"show"]()},_bindToggleHandlers:function(){var t=this,i=t.options,n=t.element;n.closest(".ui-page").bind("vclick",function(n){i.tapToggle&&!e(n.target).closest(i.tapToggleBlacklist).length&&t.toggle()}).bind("focusin focusout",function(n){screen.width<500&&e(n.target).is(i.hideDuringFocus)&&!e(n.target).closest(".ui-header-fixed, .ui-footer-fixed").length&&t["focusin"===n.type&&t._visible?"hide":"show"]()})},destroy:function(){this.element.removeClass("ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden"),this.element.closest(".ui-page").removeClass("ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen")}}),e(i).bind("pagecreate create",function(t){e(t.target).jqmData("fullscreen")&&e(e.mobile.fixedtoolbar.prototype.options.initSelector,t.target).not(":jqmData(fullscreen)").jqmData("fullscreen",!0),e.mobile.fixedtoolbar.prototype.enhanceWithin(t.target)})}(e),function(e,t){function i(e){n=e.originalEvent,s=n.accelerationIncludingGravity,o=Math.abs(s.x),a=Math.abs(s.y),r=Math.abs(s.z),!t.orientation&&(o>7||(r>6&&8>a||8>r&&a>6)&&o>5)?l.enabled&&l.disable():l.enabled||l.enable()}if(/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1){var n,o,a,r,s,l=e.mobile.zoom;e(t).bind("orientationchange.iosorientationfix",l.enable).bind("devicemotion.iosorientationfix",i)}}(e,this),function(e,t){function n(){o.removeClass("ui-mobile-rendering")}var o=e("html"),a=(e("head"),e(t));e(t.document).trigger("mobileinit"),e.mobile.gradeA()&&(e.mobile.ajaxBlacklist&&(e.mobile.ajaxEnabled=!1),o.addClass("ui-mobile ui-mobile-rendering"),setTimeout(n,5e3),e.extend(e.mobile,{initializePage:function(){var t=e(":jqmData(role='page'), :jqmData(role='dialog')");t.length||(t=e("body").wrapInner("<div data-"+e.mobile.ns+"role='page'></div>").children(0)),t.each(function(){var t=e(this);t.jqmData("url")||t.attr("data-"+e.mobile.ns+"url",t.attr("id")||location.pathname+location.search)}),e.mobile.firstPage=t.first(),e.mobile.pageContainer=t.first().parent().addClass("ui-mobile-viewport"),a.trigger("pagecontainercreate"),e.mobile.showPageLoadingMsg(),n(),e.mobile.hashListeningEnabled&&e.mobile.path.isHashValid(location.hash)&&(e(location.hash+':jqmData(role="page")').length||e.mobile.path.isPath(location.hash))?a.trigger("hashchange",[!0]):e.mobile.changePage(e.mobile.firstPage,{transition:"none",reverse:!0,changeHash:!1,fromHashChange:!0})}}),e.mobile.navreadyDeferred.resolve(),e(function(){t.scrollTo(0,1),e.mobile.defaultHomeScroll=e.support.scrollTop&&1!==e(t).scrollTop()?1:0,e.fn.controlgroup&&e(i).bind("pagecreate create",function(t){e(":jqmData(role='controlgroup')",t.target).jqmEnhanceable().controlgroup({excludeInvisible:!1})}),e.mobile.autoInitializePage&&e.mobile.initializePage(),a.load(e.mobile.silentScroll),e.support.cssPointerEvents||e(i).delegate(".ui-disabled","vclick",function(e){e.preventDefault(),e.stopImmediatePropagation()})}))}(e,this)});
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=T.elements;return"string"==typeof e?e.split(" "):e}function a(e){var t=N[e[b]];return t||(t={},S++,e[b]=S,N[S]=t),t}function o(e,n,r){if(n||(n=t),p)return n.createElement(e);r||(r=a(n));var o;return o=r.cache[e]?r.cache[e].cloneNode():E.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),o.canHaveChildren&&!y.test(e)?r.frag.appendChild(o):o}function i(e,n){if(e||(e=t),p)return e.createDocumentFragment();n=n||a(e);for(var o=n.frag.cloneNode(),i=0,c=r(),l=c.length;l>i;i++)o.createElement(c[i]);return o}function c(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return T.shivMethods?o(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/\w+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(T,t.frag)}function l(e){e||(e=t);var r=a(e);return!T.shivCSS||h||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),p||c(e,r),e}function u(e){for(var t,n=e.getElementsByTagName("*"),a=n.length,o=RegExp("^(?:"+r().join("|")+")$","i"),i=[];a--;)t=n[a],o.test(t.nodeName)&&i.push(t.applyElement(s(t)));return i}function s(e){for(var t,n=e.attributes,r=n.length,a=e.ownerDocument.createElement(x+":"+e.nodeName);r--;)t=n[r],t.specified&&a.setAttribute(t.nodeName,t.nodeValue);return a.style.cssText=e.style.cssText,a}function m(e){for(var t,n=e.split("{"),a=n.length,o=RegExp("(^|[\\s,>+~])("+r().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),i="$1"+x+"\\:$2";a--;)t=n[a]=n[a].split("}"),t[t.length-1]=t[t.length-1].replace(o,i),n[a]=t.join("}");return n.join("{")}function d(e){for(var t=e.length;t--;)e[t].removeNode()}function f(e){function t(){clearTimeout(i._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,o,i=a(e),c=e.namespaces,l=e.parentWindow;return!C||e.printShived?e:("undefined"==typeof c[x]&&c.add(x),l.attachEvent("onbeforeprint",function(){t();for(var a,i,c,l=e.styleSheets,s=[],d=l.length,f=Array(d);d--;)f[d]=l[d];for(;c=f.pop();)if(!c.disabled&&F.test(c.media)){try{a=c.imports,i=a.length}catch(h){i=0}for(d=0;i>d;d++)f.push(a[d]);try{s.push(c.cssText)}catch(h){}}s=m(s.reverse().join("")),o=u(e),r=n(e,s)}),l.attachEvent("onafterprint",function(){d(o),clearTimeout(i._removeSheetTimer),i._removeSheetTimer=setTimeout(t,500)}),e.printShived=!0,e)}var h,p,v="3.6.2",g=e.html5||{},y=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,E=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,b="_html5shiv",S=0,N={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",h="hidden"in e,p=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){h=!0,p=!0}}();var T={elements:g.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:v,shivCSS:g.shivCSS!==!1,supportsUnknownElements:p,shivMethods:g.shivMethods!==!1,type:"default",shivDocument:l,createElement:o,createDocumentFragment:i};e.html5=T,l(t);var F=/^$|\b(?:all|print)\b/,x="html5shiv",C=!p&&function(){var n=t.documentElement;return!("undefined"==typeof t.namespaces||"undefined"==typeof t.parentWindow||"undefined"==typeof n.applyElement||"undefined"==typeof n.removeNode||"undefined"==typeof e.attachEvent)}();T.type+=" print",T.shivPrint=f,f(t)}(this,document);
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=T.elements;return"string"==typeof e?e.split(" "):e}function a(e){var t=N[e[b]];return t||(t={},S++,e[b]=S,N[S]=t),t}function o(e,n,r){if(n||(n=t),p)return n.createElement(e);r||(r=a(n));var o;return o=r.cache[e]?r.cache[e].cloneNode():E.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),o.canHaveChildren&&!y.test(e)?r.frag.appendChild(o):o}function i(e,n){if(e||(e=t),p)return e.createDocumentFragment();n=n||a(e);for(var o=n.frag.cloneNode(),i=0,c=r(),l=c.length;l>i;i++)o.createElement(c[i]);return o}function c(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return T.shivMethods?o(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/\w+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(T,t.frag)}function l(e){e||(e=t);var r=a(e);return!T.shivCSS||h||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),p||c(e,r),e}function u(e){for(var t,n=e.getElementsByTagName("*"),a=n.length,o=RegExp("^(?:"+r().join("|")+")$","i"),i=[];a--;)t=n[a],o.test(t.nodeName)&&i.push(t.applyElement(s(t)));return i}function s(e){for(var t,n=e.attributes,r=n.length,a=e.ownerDocument.createElement(x+":"+e.nodeName);r--;)t=n[r],t.specified&&a.setAttribute(t.nodeName,t.nodeValue);return a.style.cssText=e.style.cssText,a}function m(e){for(var t,n=e.split("{"),a=n.length,o=RegExp("(^|[\\s,>+~])("+r().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),i="$1"+x+"\\:$2";a--;)t=n[a]=n[a].split("}"),t[t.length-1]=t[t.length-1].replace(o,i),n[a]=t.join("}");return n.join("{")}function d(e){for(var t=e.length;t--;)e[t].removeNode()}function f(e){function t(){clearTimeout(i._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,o,i=a(e),c=e.namespaces,l=e.parentWindow;return!C||e.printShived?e:("undefined"==typeof c[x]&&c.add(x),l.attachEvent("onbeforeprint",function(){t();for(var a,i,c,l=e.styleSheets,s=[],d=l.length,f=Array(d);d--;)f[d]=l[d];for(;c=f.pop();)if(!c.disabled&&F.test(c.media)){try{a=c.imports,i=a.length}catch(h){i=0}for(d=0;i>d;d++)f.push(a[d]);try{s.push(c.cssText)}catch(h){}}s=m(s.reverse().join("")),o=u(e),r=n(e,s)}),l.attachEvent("onafterprint",function(){d(o),clearTimeout(i._removeSheetTimer),i._removeSheetTimer=setTimeout(t,500)}),e.printShived=!0,e)}var h,p,v="3.6.2",g=e.html5||{},y=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,E=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,b="_html5shiv",S=0,N={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",h="hidden"in e,p=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){h=!0,p=!0}}();var T={elements:g.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:v,shivCSS:g.shivCSS!==!1,supportsUnknownElements:p,shivMethods:g.shivMethods!==!1,type:"default",shivDocument:l,createElement:o,createDocumentFragment:i};e.html5=T,l(t);var F=/^$|\b(?:all|print)\b/,x="html5shiv",C=!p&&function(){var n=t.documentElement;return!("undefined"==typeof t.namespaces||"undefined"==typeof t.parentWindow||"undefined"==typeof n.applyElement||"undefined"==typeof n.removeNode||"undefined"==typeof e.attachEvent)}();T.type+=" print",T.shivPrint=f,f(t)}(this,document);
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/public/assets/images/ui-bg_highlight-soft_75_cccccc_1x100-cec5c56503b8480f834c3fce35dae8df.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,395 @@
|
|
1
|
+
---
|
2
|
+
body-bg.bmp: body-bg-d031f29b6ba7399a6862382c3552f44c.bmp
|
3
|
+
body-bg/index.bmp: body-bg-d031f29b6ba7399a6862382c3552f44c.bmp
|
4
|
+
body-bg.png: body-bg-660b752b44b87594071f3d0851ac5360.png
|
5
|
+
body-bg/index.png: body-bg-660b752b44b87594071f3d0851ac5360.png
|
6
|
+
external_link.png: external_link-b15ab5051b4ec6f32892ed80019405b5.png
|
7
|
+
external_link/index.png: external_link-b15ab5051b4ec6f32892ed80019405b5.png
|
8
|
+
images/ui-bg_flat_0_aaaaaa_40x100.png: images/ui-bg_flat_0_aaaaaa_40x100-7d1197a52442bc56fcad60d0390f4b32.png
|
9
|
+
images/ui-bg_flat_0_aaaaaa_40x100/index.png: images/ui-bg_flat_0_aaaaaa_40x100-7d1197a52442bc56fcad60d0390f4b32.png
|
10
|
+
images/ui-bg_flat_75_ffffff_40x100.png: images/ui-bg_flat_75_ffffff_40x100-3c4b974defa5e8bdaf8a603034c4435e.png
|
11
|
+
images/ui-bg_flat_75_ffffff_40x100/index.png: images/ui-bg_flat_75_ffffff_40x100-3c4b974defa5e8bdaf8a603034c4435e.png
|
12
|
+
images/ui-bg_glass_55_fbf9ee_1x400.png: images/ui-bg_glass_55_fbf9ee_1x400-38c2dea4d046fd3f56cc3996e2e6018b.png
|
13
|
+
images/ui-bg_glass_55_fbf9ee_1x400/index.png: images/ui-bg_glass_55_fbf9ee_1x400-38c2dea4d046fd3f56cc3996e2e6018b.png
|
14
|
+
images/ui-bg_glass_65_ffffff_1x400.png: images/ui-bg_glass_65_ffffff_1x400-ddb7ee7527bff283054406c50e597e1e.png
|
15
|
+
images/ui-bg_glass_65_ffffff_1x400/index.png: images/ui-bg_glass_65_ffffff_1x400-ddb7ee7527bff283054406c50e597e1e.png
|
16
|
+
images/ui-bg_glass_75_dadada_1x400.png: images/ui-bg_glass_75_dadada_1x400-d618461418b1ebc6b7996979f4c3dc92.png
|
17
|
+
images/ui-bg_glass_75_dadada_1x400/index.png: images/ui-bg_glass_75_dadada_1x400-d618461418b1ebc6b7996979f4c3dc92.png
|
18
|
+
images/ui-bg_glass_75_e6e6e6_1x400.png: images/ui-bg_glass_75_e6e6e6_1x400-48d8d545f708e5870a965ce9df8b0e38.png
|
19
|
+
images/ui-bg_glass_75_e6e6e6_1x400/index.png: images/ui-bg_glass_75_e6e6e6_1x400-48d8d545f708e5870a965ce9df8b0e38.png
|
20
|
+
images/ui-bg_glass_95_fef1ec_1x400.png: images/ui-bg_glass_95_fef1ec_1x400-f3526b8f82249928f0a6baf044204b15.png
|
21
|
+
images/ui-bg_glass_95_fef1ec_1x400/index.png: images/ui-bg_glass_95_fef1ec_1x400-f3526b8f82249928f0a6baf044204b15.png
|
22
|
+
images/ui-bg_highlight-soft_75_cccccc_1x100.png: images/ui-bg_highlight-soft_75_cccccc_1x100-cec5c56503b8480f834c3fce35dae8df.png
|
23
|
+
images/ui-bg_highlight-soft_75_cccccc_1x100/index.png: images/ui-bg_highlight-soft_75_cccccc_1x100-cec5c56503b8480f834c3fce35dae8df.png
|
24
|
+
images/ui-icons_222222_256x240.png: images/ui-icons_222222_256x240-66e635a2f90b9f90675d402617630b24.png
|
25
|
+
images/ui-icons_222222_256x240/index.png: images/ui-icons_222222_256x240-66e635a2f90b9f90675d402617630b24.png
|
26
|
+
images/ui-icons_2e83ff_256x240.png: images/ui-icons_2e83ff_256x240-2ea4c160a75c1992daa2eeac86255b99.png
|
27
|
+
images/ui-icons_2e83ff_256x240/index.png: images/ui-icons_2e83ff_256x240-2ea4c160a75c1992daa2eeac86255b99.png
|
28
|
+
images/ui-icons_454545_256x240.png: images/ui-icons_454545_256x240-5c7f12676bcead9cb2d4cb8f23f16e95.png
|
29
|
+
images/ui-icons_454545_256x240/index.png: images/ui-icons_454545_256x240-5c7f12676bcead9cb2d4cb8f23f16e95.png
|
30
|
+
images/ui-icons_888888_256x240.png: images/ui-icons_888888_256x240-95fd3047e1f7325d995a21c729b04125.png
|
31
|
+
images/ui-icons_888888_256x240/index.png: images/ui-icons_888888_256x240-95fd3047e1f7325d995a21c729b04125.png
|
32
|
+
images/ui-icons_cd0a0a_256x240.png: images/ui-icons_cd0a0a_256x240-c0c1ec6a8bcf48fec40303e975a4dfa6.png
|
33
|
+
images/ui-icons_cd0a0a_256x240/index.png: images/ui-icons_cd0a0a_256x240-c0c1ec6a8bcf48fec40303e975a4dfa6.png
|
34
|
+
application.js: application-7f1664ac8e65db8af0bfa6539e23c7df.js
|
35
|
+
application/index.js: application-7f1664ac8e65db8af0bfa6539e23c7df.js
|
36
|
+
html5shiv-printshiv.js: html5shiv-printshiv-ad36fc7219f4aeaa275f9a7fe2383413.js
|
37
|
+
html5shiv-printshiv/index.js: html5shiv-printshiv-ad36fc7219f4aeaa275f9a7fe2383413.js
|
38
|
+
tinymce.js: tinymce-22b5a139d9ff7df7643afae9ce205508.js
|
39
|
+
tinymce/license.txt: tinymce/license.txt
|
40
|
+
tinymce/license/index.txt: tinymce/license/index.txt
|
41
|
+
tinymce/plugins/advhr/rule.htm: tinymce/plugins/advhr/rule.htm
|
42
|
+
tinymce/plugins/advhr/rule/index.htm: tinymce/plugins/advhr/rule/index.htm
|
43
|
+
tinymce/plugins/advimage/image.htm: tinymce/plugins/advimage/image.htm
|
44
|
+
tinymce/plugins/advimage/image/index.htm: tinymce/plugins/advimage/image/index.htm
|
45
|
+
tinymce/plugins/advimage/img/sample.gif: tinymce/plugins/advimage/img/sample.gif
|
46
|
+
tinymce/plugins/advimage/img/sample/index.gif: tinymce/plugins/advimage/img/sample/index.gif
|
47
|
+
tinymce/plugins/advlink/link.htm: tinymce/plugins/advlink/link.htm
|
48
|
+
tinymce/plugins/advlink/link/index.htm: tinymce/plugins/advlink/link/index.htm
|
49
|
+
tinymce/plugins/emotions/emotions.htm: tinymce/plugins/emotions/emotions.htm
|
50
|
+
tinymce/plugins/emotions/emotions/index.htm: tinymce/plugins/emotions/emotions/index.htm
|
51
|
+
tinymce/plugins/emotions/img/smiley-cool.gif: tinymce/plugins/emotions/img/smiley-cool.gif
|
52
|
+
tinymce/plugins/emotions/img/smiley-cool/index.gif: tinymce/plugins/emotions/img/smiley-cool/index.gif
|
53
|
+
tinymce/plugins/emotions/img/smiley-cry.gif: tinymce/plugins/emotions/img/smiley-cry.gif
|
54
|
+
tinymce/plugins/emotions/img/smiley-cry/index.gif: tinymce/plugins/emotions/img/smiley-cry/index.gif
|
55
|
+
tinymce/plugins/emotions/img/smiley-embarassed.gif: tinymce/plugins/emotions/img/smiley-embarassed.gif
|
56
|
+
tinymce/plugins/emotions/img/smiley-embarassed/index.gif: tinymce/plugins/emotions/img/smiley-embarassed/index.gif
|
57
|
+
tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif: tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif
|
58
|
+
tinymce/plugins/emotions/img/smiley-foot-in-mouth/index.gif: tinymce/plugins/emotions/img/smiley-foot-in-mouth/index.gif
|
59
|
+
tinymce/plugins/emotions/img/smiley-frown.gif: tinymce/plugins/emotions/img/smiley-frown.gif
|
60
|
+
tinymce/plugins/emotions/img/smiley-frown/index.gif: tinymce/plugins/emotions/img/smiley-frown/index.gif
|
61
|
+
tinymce/plugins/emotions/img/smiley-innocent.gif: tinymce/plugins/emotions/img/smiley-innocent.gif
|
62
|
+
tinymce/plugins/emotions/img/smiley-innocent/index.gif: tinymce/plugins/emotions/img/smiley-innocent/index.gif
|
63
|
+
tinymce/plugins/emotions/img/smiley-kiss.gif: tinymce/plugins/emotions/img/smiley-kiss.gif
|
64
|
+
tinymce/plugins/emotions/img/smiley-kiss/index.gif: tinymce/plugins/emotions/img/smiley-kiss/index.gif
|
65
|
+
tinymce/plugins/emotions/img/smiley-laughing.gif: tinymce/plugins/emotions/img/smiley-laughing.gif
|
66
|
+
tinymce/plugins/emotions/img/smiley-laughing/index.gif: tinymce/plugins/emotions/img/smiley-laughing/index.gif
|
67
|
+
tinymce/plugins/emotions/img/smiley-money-mouth.gif: tinymce/plugins/emotions/img/smiley-money-mouth.gif
|
68
|
+
tinymce/plugins/emotions/img/smiley-money-mouth/index.gif: tinymce/plugins/emotions/img/smiley-money-mouth/index.gif
|
69
|
+
tinymce/plugins/emotions/img/smiley-sealed.gif: tinymce/plugins/emotions/img/smiley-sealed.gif
|
70
|
+
tinymce/plugins/emotions/img/smiley-sealed/index.gif: tinymce/plugins/emotions/img/smiley-sealed/index.gif
|
71
|
+
tinymce/plugins/emotions/img/smiley-smile.gif: tinymce/plugins/emotions/img/smiley-smile.gif
|
72
|
+
tinymce/plugins/emotions/img/smiley-smile/index.gif: tinymce/plugins/emotions/img/smiley-smile/index.gif
|
73
|
+
tinymce/plugins/emotions/img/smiley-surprised.gif: tinymce/plugins/emotions/img/smiley-surprised.gif
|
74
|
+
tinymce/plugins/emotions/img/smiley-surprised/index.gif: tinymce/plugins/emotions/img/smiley-surprised/index.gif
|
75
|
+
tinymce/plugins/emotions/img/smiley-tongue-out.gif: tinymce/plugins/emotions/img/smiley-tongue-out.gif
|
76
|
+
tinymce/plugins/emotions/img/smiley-tongue-out/index.gif: tinymce/plugins/emotions/img/smiley-tongue-out/index.gif
|
77
|
+
tinymce/plugins/emotions/img/smiley-undecided.gif: tinymce/plugins/emotions/img/smiley-undecided.gif
|
78
|
+
tinymce/plugins/emotions/img/smiley-undecided/index.gif: tinymce/plugins/emotions/img/smiley-undecided/index.gif
|
79
|
+
tinymce/plugins/emotions/img/smiley-wink.gif: tinymce/plugins/emotions/img/smiley-wink.gif
|
80
|
+
tinymce/plugins/emotions/img/smiley-wink/index.gif: tinymce/plugins/emotions/img/smiley-wink/index.gif
|
81
|
+
tinymce/plugins/emotions/img/smiley-yell.gif: tinymce/plugins/emotions/img/smiley-yell.gif
|
82
|
+
tinymce/plugins/emotions/img/smiley-yell/index.gif: tinymce/plugins/emotions/img/smiley-yell/index.gif
|
83
|
+
tinymce/plugins/example/dialog.htm: tinymce/plugins/example/dialog.htm
|
84
|
+
tinymce/plugins/example/dialog/index.htm: tinymce/plugins/example/dialog/index.htm
|
85
|
+
tinymce/plugins/example/img/example.gif: tinymce/plugins/example/img/example.gif
|
86
|
+
tinymce/plugins/example/img/example/index.gif: tinymce/plugins/example/img/example/index.gif
|
87
|
+
tinymce/plugins/fullpage/fullpage.htm: tinymce/plugins/fullpage/fullpage.htm
|
88
|
+
tinymce/plugins/fullpage/fullpage/index.htm: tinymce/plugins/fullpage/fullpage/index.htm
|
89
|
+
tinymce/plugins/fullscreen/fullscreen.htm: tinymce/plugins/fullscreen/fullscreen.htm
|
90
|
+
tinymce/plugins/fullscreen/fullscreen/index.htm: tinymce/plugins/fullscreen/fullscreen/index.htm
|
91
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif
|
92
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert/index.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert/index.gif
|
93
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif
|
94
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/button/index.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/button/index.gif
|
95
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif
|
96
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons/index.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons/index.gif
|
97
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif
|
98
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm/index.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm/index.gif
|
99
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif
|
100
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners/index.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners/index.gif
|
101
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif
|
102
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal/index.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal/index.gif
|
103
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif
|
104
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical/index.gif: tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical/index.gif
|
105
|
+
tinymce/plugins/inlinepopups/template.htm: tinymce/plugins/inlinepopups/template.htm
|
106
|
+
tinymce/plugins/inlinepopups/template/index.htm: tinymce/plugins/inlinepopups/template/index.htm
|
107
|
+
tinymce/plugins/media/media.htm: tinymce/plugins/media/media.htm
|
108
|
+
tinymce/plugins/media/media/index.htm: tinymce/plugins/media/media/index.htm
|
109
|
+
tinymce/plugins/media/moxieplayer.swf: tinymce/plugins/media/moxieplayer.swf
|
110
|
+
tinymce/plugins/media/moxieplayer/index.swf: tinymce/plugins/media/moxieplayer/index.swf
|
111
|
+
tinymce/plugins/paste/pastetext.htm: tinymce/plugins/paste/pastetext.htm
|
112
|
+
tinymce/plugins/paste/pastetext/index.htm: tinymce/plugins/paste/pastetext/index.htm
|
113
|
+
tinymce/plugins/paste/pasteword.htm: tinymce/plugins/paste/pasteword.htm
|
114
|
+
tinymce/plugins/paste/pasteword/index.htm: tinymce/plugins/paste/pasteword/index.htm
|
115
|
+
tinymce/plugins/preview/example.html: tinymce/plugins/preview/example.html
|
116
|
+
tinymce/plugins/preview/example/index.html: tinymce/plugins/preview/example/index.html
|
117
|
+
tinymce/plugins/preview/preview.html: tinymce/plugins/preview/preview.html
|
118
|
+
tinymce/plugins/preview/preview/index.html: tinymce/plugins/preview/preview/index.html
|
119
|
+
tinymce/plugins/searchreplace/searchreplace.htm: tinymce/plugins/searchreplace/searchreplace.htm
|
120
|
+
tinymce/plugins/searchreplace/searchreplace/index.htm: tinymce/plugins/searchreplace/searchreplace/index.htm
|
121
|
+
tinymce/plugins/spellchecker/img/wline.gif: tinymce/plugins/spellchecker/img/wline.gif
|
122
|
+
tinymce/plugins/spellchecker/img/wline/index.gif: tinymce/plugins/spellchecker/img/wline/index.gif
|
123
|
+
tinymce/plugins/style/props.htm: tinymce/plugins/style/props.htm
|
124
|
+
tinymce/plugins/style/props/index.htm: tinymce/plugins/style/props/index.htm
|
125
|
+
tinymce/plugins/style/readme.txt: tinymce/plugins/style/readme.txt
|
126
|
+
tinymce/plugins/style/readme/index.txt: tinymce/plugins/style/readme/index.txt
|
127
|
+
tinymce/plugins/table/cell.htm: tinymce/plugins/table/cell.htm
|
128
|
+
tinymce/plugins/table/cell/index.htm: tinymce/plugins/table/cell/index.htm
|
129
|
+
tinymce/plugins/table/merge_cells.htm: tinymce/plugins/table/merge_cells.htm
|
130
|
+
tinymce/plugins/table/merge_cells/index.htm: tinymce/plugins/table/merge_cells/index.htm
|
131
|
+
tinymce/plugins/table/row.htm: tinymce/plugins/table/row.htm
|
132
|
+
tinymce/plugins/table/row/index.htm: tinymce/plugins/table/row/index.htm
|
133
|
+
tinymce/plugins/table/table.htm: tinymce/plugins/table/table.htm
|
134
|
+
tinymce/plugins/table/table/index.htm: tinymce/plugins/table/table/index.htm
|
135
|
+
tinymce/plugins/template/blank.htm: tinymce/plugins/template/blank.htm
|
136
|
+
tinymce/plugins/template/blank/index.htm: tinymce/plugins/template/blank/index.htm
|
137
|
+
tinymce/plugins/template/template.htm: tinymce/plugins/template/template.htm
|
138
|
+
tinymce/plugins/template/template/index.htm: tinymce/plugins/template/template/index.htm
|
139
|
+
tinymce/plugins/xhtmlxtras/abbr.htm: tinymce/plugins/xhtmlxtras/abbr.htm
|
140
|
+
tinymce/plugins/xhtmlxtras/abbr/index.htm: tinymce/plugins/xhtmlxtras/abbr/index.htm
|
141
|
+
tinymce/plugins/xhtmlxtras/acronym.htm: tinymce/plugins/xhtmlxtras/acronym.htm
|
142
|
+
tinymce/plugins/xhtmlxtras/acronym/index.htm: tinymce/plugins/xhtmlxtras/acronym/index.htm
|
143
|
+
tinymce/plugins/xhtmlxtras/attributes.htm: tinymce/plugins/xhtmlxtras/attributes.htm
|
144
|
+
tinymce/plugins/xhtmlxtras/attributes/index.htm: tinymce/plugins/xhtmlxtras/attributes/index.htm
|
145
|
+
tinymce/plugins/xhtmlxtras/cite.htm: tinymce/plugins/xhtmlxtras/cite.htm
|
146
|
+
tinymce/plugins/xhtmlxtras/cite/index.htm: tinymce/plugins/xhtmlxtras/cite/index.htm
|
147
|
+
tinymce/plugins/xhtmlxtras/del.htm: tinymce/plugins/xhtmlxtras/del.htm
|
148
|
+
tinymce/plugins/xhtmlxtras/del/index.htm: tinymce/plugins/xhtmlxtras/del/index.htm
|
149
|
+
tinymce/plugins/xhtmlxtras/ins.htm: tinymce/plugins/xhtmlxtras/ins.htm
|
150
|
+
tinymce/plugins/xhtmlxtras/ins/index.htm: tinymce/plugins/xhtmlxtras/ins/index.htm
|
151
|
+
tinymce/themes/advanced/about.htm: tinymce/themes/advanced/about.htm
|
152
|
+
tinymce/themes/advanced/about/index.htm: tinymce/themes/advanced/about/index.htm
|
153
|
+
tinymce/themes/advanced/anchor.htm: tinymce/themes/advanced/anchor.htm
|
154
|
+
tinymce/themes/advanced/anchor/index.htm: tinymce/themes/advanced/anchor/index.htm
|
155
|
+
tinymce/themes/advanced/charmap.htm: tinymce/themes/advanced/charmap.htm
|
156
|
+
tinymce/themes/advanced/charmap/index.htm: tinymce/themes/advanced/charmap/index.htm
|
157
|
+
tinymce/themes/advanced/color_picker.htm: tinymce/themes/advanced/color_picker.htm
|
158
|
+
tinymce/themes/advanced/color_picker/index.htm: tinymce/themes/advanced/color_picker/index.htm
|
159
|
+
tinymce/themes/advanced/image.htm: tinymce/themes/advanced/image.htm
|
160
|
+
tinymce/themes/advanced/image/index.htm: tinymce/themes/advanced/image/index.htm
|
161
|
+
tinymce/themes/advanced/img/colorpicker.jpg: tinymce/themes/advanced/img/colorpicker.jpg
|
162
|
+
tinymce/themes/advanced/img/colorpicker/index.jpg: tinymce/themes/advanced/img/colorpicker/index.jpg
|
163
|
+
tinymce/themes/advanced/img/flash.gif: tinymce/themes/advanced/img/flash.gif
|
164
|
+
tinymce/themes/advanced/img/flash/index.gif: tinymce/themes/advanced/img/flash/index.gif
|
165
|
+
tinymce/themes/advanced/img/icons.gif: tinymce/themes/advanced/img/icons.gif
|
166
|
+
tinymce/themes/advanced/img/icons/index.gif: tinymce/themes/advanced/img/icons/index.gif
|
167
|
+
tinymce/themes/advanced/img/iframe.gif: tinymce/themes/advanced/img/iframe.gif
|
168
|
+
tinymce/themes/advanced/img/iframe/index.gif: tinymce/themes/advanced/img/iframe/index.gif
|
169
|
+
tinymce/themes/advanced/img/pagebreak.gif: tinymce/themes/advanced/img/pagebreak.gif
|
170
|
+
tinymce/themes/advanced/img/pagebreak/index.gif: tinymce/themes/advanced/img/pagebreak/index.gif
|
171
|
+
tinymce/themes/advanced/img/quicktime.gif: tinymce/themes/advanced/img/quicktime.gif
|
172
|
+
tinymce/themes/advanced/img/quicktime/index.gif: tinymce/themes/advanced/img/quicktime/index.gif
|
173
|
+
tinymce/themes/advanced/img/realmedia.gif: tinymce/themes/advanced/img/realmedia.gif
|
174
|
+
tinymce/themes/advanced/img/realmedia/index.gif: tinymce/themes/advanced/img/realmedia/index.gif
|
175
|
+
tinymce/themes/advanced/img/shockwave.gif: tinymce/themes/advanced/img/shockwave.gif
|
176
|
+
tinymce/themes/advanced/img/shockwave/index.gif: tinymce/themes/advanced/img/shockwave/index.gif
|
177
|
+
tinymce/themes/advanced/img/trans.gif: tinymce/themes/advanced/img/trans.gif
|
178
|
+
tinymce/themes/advanced/img/trans/index.gif: tinymce/themes/advanced/img/trans/index.gif
|
179
|
+
tinymce/themes/advanced/img/video.gif: tinymce/themes/advanced/img/video.gif
|
180
|
+
tinymce/themes/advanced/img/video/index.gif: tinymce/themes/advanced/img/video/index.gif
|
181
|
+
tinymce/themes/advanced/img/windowsmedia.gif: tinymce/themes/advanced/img/windowsmedia.gif
|
182
|
+
tinymce/themes/advanced/img/windowsmedia/index.gif: tinymce/themes/advanced/img/windowsmedia/index.gif
|
183
|
+
tinymce/themes/advanced/link.htm: tinymce/themes/advanced/link.htm
|
184
|
+
tinymce/themes/advanced/link/index.htm: tinymce/themes/advanced/link/index.htm
|
185
|
+
tinymce/themes/advanced/shortcuts.htm: tinymce/themes/advanced/shortcuts.htm
|
186
|
+
tinymce/themes/advanced/shortcuts/index.htm: tinymce/themes/advanced/shortcuts/index.htm
|
187
|
+
tinymce/themes/advanced/skins/default/img/buttons.png: tinymce/themes/advanced/skins/default/img/buttons.png
|
188
|
+
tinymce/themes/advanced/skins/default/img/buttons/index.png: tinymce/themes/advanced/skins/default/img/buttons/index.png
|
189
|
+
tinymce/themes/advanced/skins/default/img/items.gif: tinymce/themes/advanced/skins/default/img/items.gif
|
190
|
+
tinymce/themes/advanced/skins/default/img/items/index.gif: tinymce/themes/advanced/skins/default/img/items/index.gif
|
191
|
+
tinymce/themes/advanced/skins/default/img/menu_arrow.gif: tinymce/themes/advanced/skins/default/img/menu_arrow.gif
|
192
|
+
tinymce/themes/advanced/skins/default/img/menu_arrow/index.gif: tinymce/themes/advanced/skins/default/img/menu_arrow/index.gif
|
193
|
+
tinymce/themes/advanced/skins/default/img/menu_check.gif: tinymce/themes/advanced/skins/default/img/menu_check.gif
|
194
|
+
tinymce/themes/advanced/skins/default/img/menu_check/index.gif: tinymce/themes/advanced/skins/default/img/menu_check/index.gif
|
195
|
+
tinymce/themes/advanced/skins/default/img/progress.gif: tinymce/themes/advanced/skins/default/img/progress.gif
|
196
|
+
tinymce/themes/advanced/skins/default/img/progress/index.gif: tinymce/themes/advanced/skins/default/img/progress/index.gif
|
197
|
+
tinymce/themes/advanced/skins/default/img/tabs.gif: tinymce/themes/advanced/skins/default/img/tabs.gif
|
198
|
+
tinymce/themes/advanced/skins/default/img/tabs/index.gif: tinymce/themes/advanced/skins/default/img/tabs/index.gif
|
199
|
+
tinymce/themes/advanced/skins/o2k7/img/button_bg.png: tinymce/themes/advanced/skins/o2k7/img/button_bg.png
|
200
|
+
tinymce/themes/advanced/skins/o2k7/img/button_bg/index.png: tinymce/themes/advanced/skins/o2k7/img/button_bg/index.png
|
201
|
+
tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png: tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png
|
202
|
+
tinymce/themes/advanced/skins/o2k7/img/button_bg_black/index.png: tinymce/themes/advanced/skins/o2k7/img/button_bg_black/index.png
|
203
|
+
tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png: tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png
|
204
|
+
tinymce/themes/advanced/skins/o2k7/img/button_bg_silver/index.png: tinymce/themes/advanced/skins/o2k7/img/button_bg_silver/index.png
|
205
|
+
tinymce/themes/advanced/source_editor.htm: tinymce/themes/advanced/source_editor.htm
|
206
|
+
tinymce/themes/advanced/source_editor/index.htm: tinymce/themes/advanced/source_editor/index.htm
|
207
|
+
tinymce/themes/simple/img/icons.gif: tinymce/themes/simple/img/icons.gif
|
208
|
+
tinymce/themes/simple/img/icons/index.gif: tinymce/themes/simple/img/icons/index.gif
|
209
|
+
tinymce/themes/simple/skins/o2k7/img/button_bg.png: tinymce/themes/simple/skins/o2k7/img/button_bg.png
|
210
|
+
tinymce/themes/simple/skins/o2k7/img/button_bg/index.png: tinymce/themes/simple/skins/o2k7/img/button_bg/index.png
|
211
|
+
jquerymobile/ajax-loader.gif: jquerymobile/ajax-loader-cad1a448fe000d9643c57860e5493861.gif
|
212
|
+
jquerymobile/ajax-loader/index.gif: jquerymobile/ajax-loader-cad1a448fe000d9643c57860e5493861.gif
|
213
|
+
jquerymobile/ajax-loader.png: jquerymobile/ajax-loader-a8a4bc1c4b502e156ed451507987eed7.png
|
214
|
+
jquerymobile/ajax-loader/index.png: jquerymobile/ajax-loader-a8a4bc1c4b502e156ed451507987eed7.png
|
215
|
+
jquerymobile/icons-18-black.png: jquerymobile/icons-18-black-b6e62647e8518462e73fd052bfe25d6c.png
|
216
|
+
jquerymobile/icons-18-black/index.png: jquerymobile/icons-18-black-b6e62647e8518462e73fd052bfe25d6c.png
|
217
|
+
jquerymobile/icons-18-white.png: jquerymobile/icons-18-white-f4ae730f6acc1e5b1781652e5d6973c7.png
|
218
|
+
jquerymobile/icons-18-white/index.png: jquerymobile/icons-18-white-f4ae730f6acc1e5b1781652e5d6973c7.png
|
219
|
+
jquerymobile/icons-36-black.png: jquerymobile/icons-36-black-13a52024f9a92e59a69dca49014d9292.png
|
220
|
+
jquerymobile/icons-36-black/index.png: jquerymobile/icons-36-black-13a52024f9a92e59a69dca49014d9292.png
|
221
|
+
jquerymobile/icons-36-white.png: jquerymobile/icons-36-white-3b109c0900c418fd2e5468dfb35b3f59.png
|
222
|
+
jquerymobile/icons-36-white/index.png: jquerymobile/icons-36-white-3b109c0900c418fd2e5468dfb35b3f59.png
|
223
|
+
tinymce/jquery.tinymce.js: tinymce/jquery.tinymce.js
|
224
|
+
tinymce/langs/en.js: tinymce/langs/en.js
|
225
|
+
tinymce/plugins/advhr/css/advhr.css: tinymce/plugins/advhr/css/advhr.css
|
226
|
+
tinymce/plugins/advhr/editor_plugin.js: tinymce/plugins/advhr/editor_plugin.js
|
227
|
+
tinymce/plugins/advhr/editor_plugin_src.js: tinymce/plugins/advhr/editor_plugin_src.js
|
228
|
+
tinymce/plugins/advhr/js/rule.js: tinymce/plugins/advhr/js/rule.js
|
229
|
+
tinymce/plugins/advhr/langs/en_dlg.js: tinymce/plugins/advhr/langs/en_dlg.js
|
230
|
+
tinymce/plugins/advimage/css/advimage.css: tinymce/plugins/advimage/css/advimage.css
|
231
|
+
tinymce/plugins/advimage/editor_plugin.js: tinymce/plugins/advimage/editor_plugin.js
|
232
|
+
tinymce/plugins/advimage/editor_plugin_src.js: tinymce/plugins/advimage/editor_plugin_src.js
|
233
|
+
tinymce/plugins/advimage/js/image.js: tinymce/plugins/advimage/js/image.js
|
234
|
+
tinymce/plugins/advimage/langs/en_dlg.js: tinymce/plugins/advimage/langs/en_dlg.js
|
235
|
+
tinymce/plugins/advlink/css/advlink.css: tinymce/plugins/advlink/css/advlink.css
|
236
|
+
tinymce/plugins/advlink/editor_plugin.js: tinymce/plugins/advlink/editor_plugin.js
|
237
|
+
tinymce/plugins/advlink/editor_plugin_src.js: tinymce/plugins/advlink/editor_plugin_src.js
|
238
|
+
tinymce/plugins/advlink/js/advlink.js: tinymce/plugins/advlink/js/advlink.js
|
239
|
+
tinymce/plugins/advlink/langs/en_dlg.js: tinymce/plugins/advlink/langs/en_dlg.js
|
240
|
+
tinymce/plugins/advlist/editor_plugin.js: tinymce/plugins/advlist/editor_plugin.js
|
241
|
+
tinymce/plugins/advlist/editor_plugin_src.js: tinymce/plugins/advlist/editor_plugin_src.js
|
242
|
+
tinymce/plugins/autolink/editor_plugin.js: tinymce/plugins/autolink/editor_plugin.js
|
243
|
+
tinymce/plugins/autolink/editor_plugin_src.js: tinymce/plugins/autolink/editor_plugin_src.js
|
244
|
+
tinymce/plugins/autoresize/editor_plugin.js: tinymce/plugins/autoresize/editor_plugin.js
|
245
|
+
tinymce/plugins/autoresize/editor_plugin_src.js: tinymce/plugins/autoresize/editor_plugin_src.js
|
246
|
+
tinymce/plugins/autosave/editor_plugin.js: tinymce/plugins/autosave/editor_plugin.js
|
247
|
+
tinymce/plugins/autosave/editor_plugin_src.js: tinymce/plugins/autosave/editor_plugin_src.js
|
248
|
+
tinymce/plugins/bbcode/editor_plugin.js: tinymce/plugins/bbcode/editor_plugin.js
|
249
|
+
tinymce/plugins/bbcode/editor_plugin_src.js: tinymce/plugins/bbcode/editor_plugin_src.js
|
250
|
+
tinymce/plugins/contextmenu/editor_plugin.js: tinymce/plugins/contextmenu/editor_plugin.js
|
251
|
+
tinymce/plugins/contextmenu/editor_plugin_src.js: tinymce/plugins/contextmenu/editor_plugin_src.js
|
252
|
+
tinymce/plugins/directionality/editor_plugin.js: tinymce/plugins/directionality/editor_plugin.js
|
253
|
+
tinymce/plugins/directionality/editor_plugin_src.js: tinymce/plugins/directionality/editor_plugin_src.js
|
254
|
+
tinymce/plugins/emotions/editor_plugin.js: tinymce/plugins/emotions/editor_plugin.js
|
255
|
+
tinymce/plugins/emotions/editor_plugin_src.js: tinymce/plugins/emotions/editor_plugin_src.js
|
256
|
+
tinymce/plugins/emotions/js/emotions.js: tinymce/plugins/emotions/js/emotions.js
|
257
|
+
tinymce/plugins/emotions/langs/en_dlg.js: tinymce/plugins/emotions/langs/en_dlg.js
|
258
|
+
tinymce/plugins/example/editor_plugin.js: tinymce/plugins/example/editor_plugin.js
|
259
|
+
tinymce/plugins/example/editor_plugin_src.js: tinymce/plugins/example/editor_plugin_src.js
|
260
|
+
tinymce/plugins/example/js/dialog.js: tinymce/plugins/example/js/dialog.js
|
261
|
+
tinymce/plugins/example/langs/en.js: tinymce/plugins/example/langs/en.js
|
262
|
+
tinymce/plugins/example/langs/en_dlg.js: tinymce/plugins/example/langs/en_dlg.js
|
263
|
+
tinymce/plugins/example_dependency/editor_plugin.js: tinymce/plugins/example_dependency/editor_plugin.js
|
264
|
+
tinymce/plugins/example_dependency/editor_plugin_src.js: tinymce/plugins/example_dependency/editor_plugin_src.js
|
265
|
+
tinymce/plugins/fullpage/css/fullpage.css: tinymce/plugins/fullpage/css/fullpage.css
|
266
|
+
tinymce/plugins/fullpage/editor_plugin.js: tinymce/plugins/fullpage/editor_plugin.js
|
267
|
+
tinymce/plugins/fullpage/editor_plugin_src.js: tinymce/plugins/fullpage/editor_plugin_src.js
|
268
|
+
tinymce/plugins/fullpage/js/fullpage.js: tinymce/plugins/fullpage/js/fullpage.js
|
269
|
+
tinymce/plugins/fullpage/langs/en_dlg.js: tinymce/plugins/fullpage/langs/en_dlg.js
|
270
|
+
tinymce/plugins/fullscreen/editor_plugin.js: tinymce/plugins/fullscreen/editor_plugin.js
|
271
|
+
tinymce/plugins/fullscreen/editor_plugin_src.js: tinymce/plugins/fullscreen/editor_plugin_src.js
|
272
|
+
tinymce/plugins/iespell/editor_plugin.js: tinymce/plugins/iespell/editor_plugin.js
|
273
|
+
tinymce/plugins/iespell/editor_plugin_src.js: tinymce/plugins/iespell/editor_plugin_src.js
|
274
|
+
tinymce/plugins/inlinepopups/editor_plugin.js: tinymce/plugins/inlinepopups/editor_plugin.js
|
275
|
+
tinymce/plugins/inlinepopups/editor_plugin_src.js: tinymce/plugins/inlinepopups/editor_plugin_src.js
|
276
|
+
tinymce/plugins/inlinepopups/skins/clearlooks2/window.css: tinymce/plugins/inlinepopups/skins/clearlooks2/window.css
|
277
|
+
tinymce/plugins/insertdatetime/editor_plugin.js: tinymce/plugins/insertdatetime/editor_plugin.js
|
278
|
+
tinymce/plugins/insertdatetime/editor_plugin_src.js: tinymce/plugins/insertdatetime/editor_plugin_src.js
|
279
|
+
tinymce/plugins/layer/editor_plugin.js: tinymce/plugins/layer/editor_plugin.js
|
280
|
+
tinymce/plugins/layer/editor_plugin_src.js: tinymce/plugins/layer/editor_plugin_src.js
|
281
|
+
tinymce/plugins/legacyoutput/editor_plugin.js: tinymce/plugins/legacyoutput/editor_plugin.js
|
282
|
+
tinymce/plugins/legacyoutput/editor_plugin_src.js: tinymce/plugins/legacyoutput/editor_plugin_src.js
|
283
|
+
tinymce/plugins/lists/editor_plugin.js: tinymce/plugins/lists/editor_plugin.js
|
284
|
+
tinymce/plugins/lists/editor_plugin_src.js: tinymce/plugins/lists/editor_plugin_src.js
|
285
|
+
tinymce/plugins/media/css/media.css: tinymce/plugins/media/css/media.css
|
286
|
+
tinymce/plugins/media/editor_plugin.js: tinymce/plugins/media/editor_plugin.js
|
287
|
+
tinymce/plugins/media/editor_plugin_src.js: tinymce/plugins/media/editor_plugin_src.js
|
288
|
+
tinymce/plugins/media/js/embed.js: tinymce/plugins/media/js/embed.js
|
289
|
+
tinymce/plugins/media/js/media.js: tinymce/plugins/media/js/media.js
|
290
|
+
tinymce/plugins/media/langs/en_dlg.js: tinymce/plugins/media/langs/en_dlg.js
|
291
|
+
tinymce/plugins/nonbreaking/editor_plugin.js: tinymce/plugins/nonbreaking/editor_plugin.js
|
292
|
+
tinymce/plugins/nonbreaking/editor_plugin_src.js: tinymce/plugins/nonbreaking/editor_plugin_src.js
|
293
|
+
tinymce/plugins/noneditable/editor_plugin.js: tinymce/plugins/noneditable/editor_plugin.js
|
294
|
+
tinymce/plugins/noneditable/editor_plugin_src.js: tinymce/plugins/noneditable/editor_plugin_src.js
|
295
|
+
tinymce/plugins/pagebreak/editor_plugin.js: tinymce/plugins/pagebreak/editor_plugin.js
|
296
|
+
tinymce/plugins/pagebreak/editor_plugin_src.js: tinymce/plugins/pagebreak/editor_plugin_src.js
|
297
|
+
tinymce/plugins/paste/editor_plugin.js: tinymce/plugins/paste/editor_plugin.js
|
298
|
+
tinymce/plugins/paste/editor_plugin_src.js: tinymce/plugins/paste/editor_plugin_src.js
|
299
|
+
tinymce/plugins/paste/js/pastetext.js: tinymce/plugins/paste/js/pastetext.js
|
300
|
+
tinymce/plugins/paste/js/pasteword.js: tinymce/plugins/paste/js/pasteword.js
|
301
|
+
tinymce/plugins/paste/langs/en_dlg.js: tinymce/plugins/paste/langs/en_dlg.js
|
302
|
+
tinymce/plugins/preview/editor_plugin.js: tinymce/plugins/preview/editor_plugin.js
|
303
|
+
tinymce/plugins/preview/editor_plugin_src.js: tinymce/plugins/preview/editor_plugin_src.js
|
304
|
+
tinymce/plugins/preview/jscripts/embed.js: tinymce/plugins/preview/jscripts/embed.js
|
305
|
+
tinymce/plugins/print/editor_plugin.js: tinymce/plugins/print/editor_plugin.js
|
306
|
+
tinymce/plugins/print/editor_plugin_src.js: tinymce/plugins/print/editor_plugin_src.js
|
307
|
+
tinymce/plugins/save/editor_plugin.js: tinymce/plugins/save/editor_plugin.js
|
308
|
+
tinymce/plugins/save/editor_plugin_src.js: tinymce/plugins/save/editor_plugin_src.js
|
309
|
+
tinymce/plugins/searchreplace/css/searchreplace.css: tinymce/plugins/searchreplace/css/searchreplace.css
|
310
|
+
tinymce/plugins/searchreplace/editor_plugin.js: tinymce/plugins/searchreplace/editor_plugin.js
|
311
|
+
tinymce/plugins/searchreplace/editor_plugin_src.js: tinymce/plugins/searchreplace/editor_plugin_src.js
|
312
|
+
tinymce/plugins/searchreplace/js/searchreplace.js: tinymce/plugins/searchreplace/js/searchreplace.js
|
313
|
+
tinymce/plugins/searchreplace/langs/en_dlg.js: tinymce/plugins/searchreplace/langs/en_dlg.js
|
314
|
+
tinymce/plugins/spellchecker/css/content.css: tinymce/plugins/spellchecker/css/content.css
|
315
|
+
tinymce/plugins/spellchecker/editor_plugin.js: tinymce/plugins/spellchecker/editor_plugin.js
|
316
|
+
tinymce/plugins/spellchecker/editor_plugin_src.js: tinymce/plugins/spellchecker/editor_plugin_src.js
|
317
|
+
tinymce/plugins/style/css/props.css: tinymce/plugins/style/css/props.css
|
318
|
+
tinymce/plugins/style/editor_plugin.js: tinymce/plugins/style/editor_plugin.js
|
319
|
+
tinymce/plugins/style/editor_plugin_src.js: tinymce/plugins/style/editor_plugin_src.js
|
320
|
+
tinymce/plugins/style/js/props.js: tinymce/plugins/style/js/props.js
|
321
|
+
tinymce/plugins/style/langs/en_dlg.js: tinymce/plugins/style/langs/en_dlg.js
|
322
|
+
tinymce/plugins/tabfocus/editor_plugin.js: tinymce/plugins/tabfocus/editor_plugin.js
|
323
|
+
tinymce/plugins/tabfocus/editor_plugin_src.js: tinymce/plugins/tabfocus/editor_plugin_src.js
|
324
|
+
tinymce/plugins/table/css/cell.css: tinymce/plugins/table/css/cell.css
|
325
|
+
tinymce/plugins/table/css/row.css: tinymce/plugins/table/css/row.css
|
326
|
+
tinymce/plugins/table/css/table.css: tinymce/plugins/table/css/table.css
|
327
|
+
tinymce/plugins/table/editor_plugin.js: tinymce/plugins/table/editor_plugin.js
|
328
|
+
tinymce/plugins/table/editor_plugin_src.js: tinymce/plugins/table/editor_plugin_src.js
|
329
|
+
tinymce/plugins/table/js/cell.js: tinymce/plugins/table/js/cell.js
|
330
|
+
tinymce/plugins/table/js/merge_cells.js: tinymce/plugins/table/js/merge_cells.js
|
331
|
+
tinymce/plugins/table/js/row.js: tinymce/plugins/table/js/row.js
|
332
|
+
tinymce/plugins/table/js/table.js: tinymce/plugins/table/js/table.js
|
333
|
+
tinymce/plugins/table/langs/en_dlg.js: tinymce/plugins/table/langs/en_dlg.js
|
334
|
+
tinymce/plugins/template/css/template.css: tinymce/plugins/template/css/template.css
|
335
|
+
tinymce/plugins/template/editor_plugin.js: tinymce/plugins/template/editor_plugin.js
|
336
|
+
tinymce/plugins/template/editor_plugin_src.js: tinymce/plugins/template/editor_plugin_src.js
|
337
|
+
tinymce/plugins/template/js/template.js: tinymce/plugins/template/js/template.js
|
338
|
+
tinymce/plugins/template/langs/en_dlg.js: tinymce/plugins/template/langs/en_dlg.js
|
339
|
+
tinymce/plugins/visualblocks/css/visualblocks.css: tinymce/plugins/visualblocks/css/visualblocks.css
|
340
|
+
tinymce/plugins/visualblocks/editor_plugin.js: tinymce/plugins/visualblocks/editor_plugin.js
|
341
|
+
tinymce/plugins/visualblocks/editor_plugin_src.js: tinymce/plugins/visualblocks/editor_plugin_src.js
|
342
|
+
tinymce/plugins/visualchars/editor_plugin.js: tinymce/plugins/visualchars/editor_plugin.js
|
343
|
+
tinymce/plugins/visualchars/editor_plugin_src.js: tinymce/plugins/visualchars/editor_plugin_src.js
|
344
|
+
tinymce/plugins/wordcount/editor_plugin.js: tinymce/plugins/wordcount/editor_plugin.js
|
345
|
+
tinymce/plugins/wordcount/editor_plugin_src.js: tinymce/plugins/wordcount/editor_plugin_src.js
|
346
|
+
tinymce/plugins/xhtmlxtras/css/attributes.css: tinymce/plugins/xhtmlxtras/css/attributes.css
|
347
|
+
tinymce/plugins/xhtmlxtras/css/popup.css: tinymce/plugins/xhtmlxtras/css/popup.css
|
348
|
+
tinymce/plugins/xhtmlxtras/editor_plugin.js: tinymce/plugins/xhtmlxtras/editor_plugin.js
|
349
|
+
tinymce/plugins/xhtmlxtras/editor_plugin_src.js: tinymce/plugins/xhtmlxtras/editor_plugin_src.js
|
350
|
+
tinymce/plugins/xhtmlxtras/js/abbr.js: tinymce/plugins/xhtmlxtras/js/abbr.js
|
351
|
+
tinymce/plugins/xhtmlxtras/js/acronym.js: tinymce/plugins/xhtmlxtras/js/acronym.js
|
352
|
+
tinymce/plugins/xhtmlxtras/js/attributes.js: tinymce/plugins/xhtmlxtras/js/attributes.js
|
353
|
+
tinymce/plugins/xhtmlxtras/js/cite.js: tinymce/plugins/xhtmlxtras/js/cite.js
|
354
|
+
tinymce/plugins/xhtmlxtras/js/del.js: tinymce/plugins/xhtmlxtras/js/del.js
|
355
|
+
tinymce/plugins/xhtmlxtras/js/element_common.js: tinymce/plugins/xhtmlxtras/js/element_common.js
|
356
|
+
tinymce/plugins/xhtmlxtras/js/ins.js: tinymce/plugins/xhtmlxtras/js/ins.js
|
357
|
+
tinymce/plugins/xhtmlxtras/langs/en_dlg.js: tinymce/plugins/xhtmlxtras/langs/en_dlg.js
|
358
|
+
tinymce/themes/advanced/editor_template.js: tinymce/themes/advanced/editor_template.js
|
359
|
+
tinymce/themes/advanced/editor_template_src.js: tinymce/themes/advanced/editor_template_src.js
|
360
|
+
tinymce/themes/advanced/js/about.js: tinymce/themes/advanced/js/about.js
|
361
|
+
tinymce/themes/advanced/js/anchor.js: tinymce/themes/advanced/js/anchor.js
|
362
|
+
tinymce/themes/advanced/js/charmap.js: tinymce/themes/advanced/js/charmap.js
|
363
|
+
tinymce/themes/advanced/js/color_picker.js: tinymce/themes/advanced/js/color_picker.js
|
364
|
+
tinymce/themes/advanced/js/image.js: tinymce/themes/advanced/js/image.js
|
365
|
+
tinymce/themes/advanced/js/link.js: tinymce/themes/advanced/js/link.js
|
366
|
+
tinymce/themes/advanced/js/source_editor.js: tinymce/themes/advanced/js/source_editor.js
|
367
|
+
tinymce/themes/advanced/langs/en.js: tinymce/themes/advanced/langs/en.js
|
368
|
+
tinymce/themes/advanced/langs/en_dlg.js: tinymce/themes/advanced/langs/en_dlg.js
|
369
|
+
tinymce/themes/advanced/skins/default/content.css: tinymce/themes/advanced/skins/default/content.css
|
370
|
+
tinymce/themes/advanced/skins/default/dialog.css: tinymce/themes/advanced/skins/default/dialog.css
|
371
|
+
tinymce/themes/advanced/skins/default/ui.css: tinymce/themes/advanced/skins/default/ui.css
|
372
|
+
tinymce/themes/advanced/skins/highcontrast/content.css: tinymce/themes/advanced/skins/highcontrast/content.css
|
373
|
+
tinymce/themes/advanced/skins/highcontrast/dialog.css: tinymce/themes/advanced/skins/highcontrast/dialog.css
|
374
|
+
tinymce/themes/advanced/skins/highcontrast/ui.css: tinymce/themes/advanced/skins/highcontrast/ui.css
|
375
|
+
tinymce/themes/advanced/skins/o2k7/content.css: tinymce/themes/advanced/skins/o2k7/content.css
|
376
|
+
tinymce/themes/advanced/skins/o2k7/dialog.css: tinymce/themes/advanced/skins/o2k7/dialog.css
|
377
|
+
tinymce/themes/advanced/skins/o2k7/ui.css: tinymce/themes/advanced/skins/o2k7/ui.css
|
378
|
+
tinymce/themes/advanced/skins/o2k7/ui_black.css: tinymce/themes/advanced/skins/o2k7/ui_black.css
|
379
|
+
tinymce/themes/advanced/skins/o2k7/ui_silver.css: tinymce/themes/advanced/skins/o2k7/ui_silver.css
|
380
|
+
tinymce/themes/simple/editor_template.js: tinymce/themes/simple/editor_template.js
|
381
|
+
tinymce/themes/simple/editor_template_src.js: tinymce/themes/simple/editor_template_src.js
|
382
|
+
tinymce/themes/simple/langs/en.js: tinymce/themes/simple/langs/en.js
|
383
|
+
tinymce/themes/simple/skins/default/content.css: tinymce/themes/simple/skins/default/content.css
|
384
|
+
tinymce/themes/simple/skins/default/ui.css: tinymce/themes/simple/skins/default/ui.css
|
385
|
+
tinymce/themes/simple/skins/o2k7/content.css: tinymce/themes/simple/skins/o2k7/content.css
|
386
|
+
tinymce/themes/simple/skins/o2k7/ui.css: tinymce/themes/simple/skins/o2k7/ui.css
|
387
|
+
tinymce/tiny_mce.js: tinymce/tiny_mce.js
|
388
|
+
tinymce/tiny_mce_jquery.js: tinymce/tiny_mce_jquery.js
|
389
|
+
tinymce/tiny_mce_jquery_src.js: tinymce/tiny_mce_jquery_src.js
|
390
|
+
tinymce/tiny_mce_popup.js: tinymce/tiny_mce_popup.js
|
391
|
+
tinymce/tiny_mce_src.js: tinymce/tiny_mce_src.js
|
392
|
+
tinymce/utils/editable_selects.js: tinymce/utils/editable_selects.js
|
393
|
+
tinymce/utils/form_utils.js: tinymce/utils/form_utils.js
|
394
|
+
tinymce/utils/mctabs.js: tinymce/utils/mctabs.js
|
395
|
+
tinymce/utils/validate.js: tinymce/utils/validate.js
|