compass-jquery-plugin 0.3.0.0 → 0.3.1.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +69 -13
- data/Rakefile +1 -1
- data/VERSION.yml +2 -2
- data/gem_tasks/jqgrid.rake +119 -0
- data/gem_tasks/jrails.rake +78 -77
- data/gem_tasks/mobile.rake +156 -0
- data/gem_tasks/rubygems.rake +5 -1
- data/gem_tasks/secret_sauce.rake +64 -0
- data/lib/jquery/gridify.rb +42 -0
- data/lib/jquery/gridify/assertions.rb +37 -0
- data/lib/jquery/gridify/grid.rb +210 -0
- data/lib/jquery/gridify/grid_column.rb +134 -0
- data/lib/jquery/gridify/grid_finder.rb +223 -0
- data/lib/jquery/gridify/grid_options.rb +279 -0
- data/lib/jquery/gridify/grid_view.rb +435 -0
- data/lib/jquery/jqgrid.rb +5 -0
- data/lib/jquery/jqgrid/jqgrid.rb +438 -0
- data/lib/jquery/mobile.rb +3 -0
- data/lib/jquery/secret_sauce.rb +9 -0
- data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +14 -0
- data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +18 -0
- data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +6 -0
- data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +118 -0
- data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +226 -0
- data/lib/jquery/secret_sauce/model/find_for_grid.rb +42 -0
- data/templates/dynatree/jquery.dynatree.js +258 -147
- data/templates/dynatree/jquery.dynatree.min.js +81 -79
- data/templates/dynatree/jquery/dynatree/aero.scss +35 -18
- data/templates/dynatree/jquery/dynatree/aero/drop_sibling_here.png +0 -0
- data/templates/dynatree/jquery/dynatree/aqua.scss +36 -19
- data/templates/dynatree/jquery/dynatree/aqua/drop_sibling_here.png +0 -0
- data/templates/dynatree/jquery/dynatree/crystal.scss +38 -21
- data/templates/dynatree/jquery/dynatree/crystal/drop_sibling_here.png +0 -0
- data/templates/dynatree/jquery/dynatree/xp.scss +59 -42
- data/templates/dynatree/jquery/dynatree/xp/drop_sibling_here.png +0 -0
- data/templates/dynatree/manifest.rb +4 -0
- data/templates/jqgrid/config/initializers/jqgrid.rb +4 -0
- data/templates/jqgrid/config/locales/jquery/jqgrid/de.yml +7 -0
- data/templates/jqgrid/config/locales/jquery/jqgrid/en.yml +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +132 -0
- data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +132 -0
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +132 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +5 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +133 -0
- data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-en.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +125 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +130 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +129 -0
- data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +1 -0
- data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +155 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ja.min.js +5 -0
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +149 -0
- data/templates/jqgrid/i18n/jqgrid/locale-nl.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +1 -0
- data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +125 -0
- data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +139 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sk.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sr.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sr.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +11604 -0
- data/templates/jqgrid/jquery.jqGrid.min.js +472 -0
- data/templates/jqgrid/jquery/jqGrid.scss +692 -0
- data/templates/jqgrid/manifest.rb +72 -0
- data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +13 -0
- data/templates/jqtouch/jquery/touch/apple.scss +5 -5
- data/templates/jqtouch/jquery/touch/default.scss +5 -5
- data/templates/jqtouch/jquery/touch/jqt.scss +5 -5
- data/templates/jrails/config/initializers/jrails.rb +3 -0
- data/templates/jrails/jquery-ui.js +45 -62
- data/templates/jrails/jquery-ui.min.js +22 -22
- data/templates/jrails/jquery.js +340 -206
- data/templates/jrails/jquery.min.js +152 -151
- data/templates/jrails/jquery.tmpl.js +489 -0
- data/templates/jrails/jquery.tmpl.min.js +12 -0
- data/templates/jrails/jquery.tmplPlus.js +98 -0
- data/templates/jrails/jquery.tmplPlus.min.js +3 -0
- data/templates/jrails/jquery/ui/_theme.scss +3 -1
- data/templates/jrails/manifest.rb +4 -0
- data/templates/jstree/jquery.jstree.js +4479 -4468
- data/templates/jstree/jquery.jstree.min.js +4 -3
- data/templates/mobile/config/initializers/mobile.rb +6 -0
- data/templates/mobile/glyphish/Read me first - license.txt +14 -0
- data/templates/mobile/glyphish/icons-black/01-refresh.png +0 -0
- data/templates/mobile/glyphish/icons-black/02-redo.png +0 -0
- data/templates/mobile/glyphish/icons-black/03-loopback.png +0 -0
- data/templates/mobile/glyphish/icons-black/04-squiggle.png +0 -0
- data/templates/mobile/glyphish/icons-black/05-shuffle.png +0 -0
- data/templates/mobile/glyphish/icons-black/06-magnifying-glass.png +0 -0
- data/templates/mobile/glyphish/icons-black/07-map-marker.png +0 -0
- data/templates/mobile/glyphish/icons-black/08-chat.png +0 -0
- data/templates/mobile/glyphish/icons-black/09-chat2.png +0 -0
- data/templates/mobile/glyphish/icons-black/10-medical.png +0 -0
- data/templates/mobile/glyphish/icons-black/100-coffee.png +0 -0
- data/templates/mobile/glyphish/icons-black/101-gameplan.png +0 -0
- data/templates/mobile/glyphish/icons-black/102-walk.png +0 -0
- data/templates/mobile/glyphish/icons-black/103-map.png +0 -0
- data/templates/mobile/glyphish/icons-black/104-index-cards.png +0 -0
- data/templates/mobile/glyphish/icons-black/105-piano.png +0 -0
- data/templates/mobile/glyphish/icons-black/106-sliders.png +0 -0
- data/templates/mobile/glyphish/icons-black/107-widescreen.png +0 -0
- data/templates/mobile/glyphish/icons-black/108-badge.png +0 -0
- data/templates/mobile/glyphish/icons-black/109-chicken.png +0 -0
- data/templates/mobile/glyphish/icons-black/11-clock.png +0 -0
- data/templates/mobile/glyphish/icons-black/110-bug.png +0 -0
- data/templates/mobile/glyphish/icons-black/111-user.png +0 -0
- data/templates/mobile/glyphish/icons-black/112-group.png +0 -0
- data/templates/mobile/glyphish/icons-black/113-navigation.png +0 -0
- data/templates/mobile/glyphish/icons-black/114-balloon.png +0 -0
- data/templates/mobile/glyphish/icons-black/115-bow-and-arrow.png +0 -0
- data/templates/mobile/glyphish/icons-black/116-controller.png +0 -0
- data/templates/mobile/glyphish/icons-black/117-todo.png +0 -0
- data/templates/mobile/glyphish/icons-black/118-coathanger.png +0 -0
- data/templates/mobile/glyphish/icons-black/119-piggybank.png +0 -0
- data/templates/mobile/glyphish/icons-black/12-eye.png +0 -0
- data/templates/mobile/glyphish/icons-black/120-headphones.png +0 -0
- data/templates/mobile/glyphish/icons-black/121-lanscape.png +0 -0
- data/templates/mobile/glyphish/icons-black/122-stats.png +0 -0
- data/templates/mobile/glyphish/icons-black/123-id-card.png +0 -0
- data/templates/mobile/glyphish/icons-black/124-bullhorn.png +0 -0
- data/templates/mobile/glyphish/icons-black/125-food.png +0 -0
- data/templates/mobile/glyphish/icons-black/126-moon.png +0 -0
- data/templates/mobile/glyphish/icons-black/127-sock.png +0 -0
- data/templates/mobile/glyphish/icons-black/128-bone.png +0 -0
- data/templates/mobile/glyphish/icons-black/129-golf.png +0 -0
- data/templates/mobile/glyphish/icons-black/13-target.png +0 -0
- data/templates/mobile/glyphish/icons-black/130-dice.png +0 -0
- data/templates/mobile/glyphish/icons-black/14-tag.png +0 -0
- data/templates/mobile/glyphish/icons-black/15-tags.png +0 -0
- data/templates/mobile/glyphish/icons-black/16-line-chart.png +0 -0
- data/templates/mobile/glyphish/icons-black/17-bar-chart.png +0 -0
- data/templates/mobile/glyphish/icons-black/18-envelope.png +0 -0
- data/templates/mobile/glyphish/icons-black/19-gear.png +0 -0
- data/templates/mobile/glyphish/icons-black/20-gear2.png +0 -0
- data/templates/mobile/glyphish/icons-black/21-skull.png +0 -0
- data/templates/mobile/glyphish/icons-black/22-skull-n-crossbones.png +0 -0
- data/templates/mobile/glyphish/icons-black/23-bird.png +0 -0
- data/templates/mobile/glyphish/icons-black/24-gift.png +0 -0
- data/templates/mobile/glyphish/icons-black/25-weather.png +0 -0
- data/templates/mobile/glyphish/icons-black/26-bandaid.png +0 -0
- data/templates/mobile/glyphish/icons-black/27-planet.png +0 -0
- data/templates/mobile/glyphish/icons-black/28-star.png +0 -0
- data/templates/mobile/glyphish/icons-black/29-heart.png +0 -0
- data/templates/mobile/glyphish/icons-black/30-key.png +0 -0
- data/templates/mobile/glyphish/icons-black/31-ipod.png +0 -0
- data/templates/mobile/glyphish/icons-black/32-iphone.png +0 -0
- data/templates/mobile/glyphish/icons-black/33-cabinet.png +0 -0
- data/templates/mobile/glyphish/icons-black/34-coffee.png +0 -0
- data/templates/mobile/glyphish/icons-black/35-shopping-bag.png +0 -0
- data/templates/mobile/glyphish/icons-black/36-toolbox.png +0 -0
- data/templates/mobile/glyphish/icons-black/37-suitcase.png +0 -0
- data/templates/mobile/glyphish/icons-black/38-airplane.png +0 -0
- data/templates/mobile/glyphish/icons-black/39-spraycan.png +0 -0
- data/templates/mobile/glyphish/icons-black/40-inbox.png +0 -0
- data/templates/mobile/glyphish/icons-black/41-picture-frame.png +0 -0
- data/templates/mobile/glyphish/icons-black/42-photos.png +0 -0
- data/templates/mobile/glyphish/icons-black/43-film-roll.png +0 -0
- data/templates/mobile/glyphish/icons-black/44-shoebox.png +0 -0
- data/templates/mobile/glyphish/icons-black/45-movie1.png +0 -0
- data/templates/mobile/glyphish/icons-black/46-movie2.png +0 -0
- data/templates/mobile/glyphish/icons-black/47-fuel.png +0 -0
- data/templates/mobile/glyphish/icons-black/48-fork-and-knife.png +0 -0
- data/templates/mobile/glyphish/icons-black/49-battery.png +0 -0
- data/templates/mobile/glyphish/icons-black/50-beaker.png +0 -0
- data/templates/mobile/glyphish/icons-black/51-outlet.png +0 -0
- data/templates/mobile/glyphish/icons-black/52-pinetree.png +0 -0
- data/templates/mobile/glyphish/icons-black/53-house.png +0 -0
- data/templates/mobile/glyphish/icons-black/54-lock.png +0 -0
- data/templates/mobile/glyphish/icons-black/55-network.png +0 -0
- data/templates/mobile/glyphish/icons-black/56-cloud.png +0 -0
- data/templates/mobile/glyphish/icons-black/57-download.png +0 -0
- data/templates/mobile/glyphish/icons-black/58-bookmark.png +0 -0
- data/templates/mobile/glyphish/icons-black/59-flag.png +0 -0
- data/templates/mobile/glyphish/icons-black/60-signpost.png +0 -0
- data/templates/mobile/glyphish/icons-black/61-brightness.png +0 -0
- data/templates/mobile/glyphish/icons-black/62-contrast.png +0 -0
- data/templates/mobile/glyphish/icons-black/63-runner.png +0 -0
- data/templates/mobile/glyphish/icons-black/64-zap.png +0 -0
- data/templates/mobile/glyphish/icons-black/65-note.png +0 -0
- data/templates/mobile/glyphish/icons-black/66-microphone.png +0 -0
- data/templates/mobile/glyphish/icons-black/67-tshirt.png +0 -0
- data/templates/mobile/glyphish/icons-black/68-paperclip.png +0 -0
- data/templates/mobile/glyphish/icons-black/69-display.png +0 -0
- data/templates/mobile/glyphish/icons-black/70-tv.png +0 -0
- data/templates/mobile/glyphish/icons-black/71-compass.png +0 -0
- data/templates/mobile/glyphish/icons-black/72-pin.png +0 -0
- data/templates/mobile/glyphish/icons-black/73-radar.png +0 -0
- data/templates/mobile/glyphish/icons-black/74-location.png +0 -0
- data/templates/mobile/glyphish/icons-black/75-phone.png +0 -0
- data/templates/mobile/glyphish/icons-black/76-baby.png +0 -0
- data/templates/mobile/glyphish/icons-black/77-ekg.png +0 -0
- data/templates/mobile/glyphish/icons-black/78-stopwatch.png +0 -0
- data/templates/mobile/glyphish/icons-black/79-medical-bag.png +0 -0
- data/templates/mobile/glyphish/icons-black/80-shopping-cart.png +0 -0
- data/templates/mobile/glyphish/icons-black/81-dashboard.png +0 -0
- data/templates/mobile/glyphish/icons-black/82-dogpaw.png +0 -0
- data/templates/mobile/glyphish/icons-black/83-calendar.png +0 -0
- data/templates/mobile/glyphish/icons-black/84-lightbulb.png +0 -0
- data/templates/mobile/glyphish/icons-black/85-trophy.png +0 -0
- data/templates/mobile/glyphish/icons-black/86-camera.png +0 -0
- data/templates/mobile/glyphish/icons-black/87-wineglass.png +0 -0
- data/templates/mobile/glyphish/icons-black/88-beermug.png +0 -0
- data/templates/mobile/glyphish/icons-black/89-dumbbell.png +0 -0
- data/templates/mobile/glyphish/icons-black/90-lifebuoy.png +0 -0
- data/templates/mobile/glyphish/icons-black/91-beaker2.png +0 -0
- data/templates/mobile/glyphish/icons-black/92-testtube.png +0 -0
- data/templates/mobile/glyphish/icons-black/93-thermometer.png +0 -0
- data/templates/mobile/glyphish/icons-black/94-pill.png +0 -0
- data/templates/mobile/glyphish/icons-black/95-equalizer.png +0 -0
- data/templates/mobile/glyphish/icons-black/96-book.png +0 -0
- data/templates/mobile/glyphish/icons-black/97-puzzle.png +0 -0
- data/templates/mobile/glyphish/icons-black/98-palette.png +0 -0
- data/templates/mobile/glyphish/icons-black/99-umbrella.png +0 -0
- data/templates/mobile/glyphish/icons-white/09-chat2.png +0 -0
- data/templates/mobile/glyphish/icons-white/100-coffee.png +0 -0
- data/templates/mobile/glyphish/icons-white/18-envelope.png +0 -0
- data/templates/mobile/glyphish/icons-white/19-gear.png +0 -0
- data/templates/mobile/glyphish/icons-white/21-skull.png +0 -0
- data/templates/mobile/glyphish/icons-white/30-key.png +0 -0
- data/templates/mobile/glyphish/icons-white/34-coffee.png +0 -0
- data/templates/mobile/glyphish/icons-white/88-beermug.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/band-aid.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/chat.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/clock.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/eye.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/flag.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/fork-and-knife.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/gear.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/heart.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/lightning-bolt.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/magnifying-glass.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/map-marker.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/map-pin.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/microphone.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/music-note.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/paw.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/plus.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/puzzle.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/star.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/tag.png +0 -0
- data/templates/mobile/glyphish/mini-icons-black/tshirt.png +0 -0
- data/templates/mobile/jquery.mobile.js +3995 -0
- data/templates/mobile/jquery.mobile.min.js +28 -0
- data/templates/mobile/jquery/mobile/_base.scss +1344 -0
- data/templates/mobile/jquery/mobile/default.scss +745 -0
- data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/icon-search-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia.scss +807 -0
- data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icon-search-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/texture_05.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/texture_075.png +0 -0
- data/templates/mobile/lib/tasks/jquery.mobile.rake +106 -0
- data/templates/mobile/manifest.rb +191 -0
- data/templates/secret_sauce/app/views/shared/_ui_form_error_messages.html.haml +6 -0
- data/templates/secret_sauce/app/views/shared/_ui_grid_for_without_block.js.haml +144 -0
- data/templates/secret_sauce/app/views/shared/_ui_static_dialog.html.haml +6 -0
- data/templates/secret_sauce/config/initializers/secret_sauce.rb +8 -0
- data/templates/secret_sauce/jquery/secret_sauce.scss +33 -0
- data/templates/secret_sauce/manifest.rb +10 -0
- data/templates/secret_sauce/secret_sauce.js +12 -0
- data/templates/secret_sauce/secret_sauce.min.js +1 -0
- metadata +313 -17
- data/.gitignore +0 -22
- data/compass-jquery-plugin.gemspec +0 -1064
@@ -1,151 +1,152 @@
|
|
1
|
-
(function(
|
2
|
-
c=/(opera)(?:.*version)?[ \/]([\w.]+)/,e=/(msie) ([\w.]+)/,b=/(mozilla)(?:.*? rv:([\w.]+))?/,
|
3
|
-
this.length=1;return this}if(typeof
|
4
|
-
!
|
5
|
-
|
6
|
-
arguments),"slice",I.call(arguments).join(","))},map:function(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
return true},error:function(
|
11
|
-
else
|
12
|
-
null?"":
|
13
|
-
grep:function(
|
14
|
-
D,
|
15
|
-
function(
|
16
|
-
|
17
|
-
3,tbody:!
|
18
|
-
true;a.support.optDisabled=!
|
19
|
-
|
20
|
-
var
|
21
|
-
|
22
|
-
|
23
|
-
else if(s)delete
|
24
|
-
|
25
|
-
|
26
|
-
a.queue(this,
|
27
|
-
|
28
|
-
h=0,c=
|
29
|
-
a.trim(
|
30
|
-
|
31
|
-
o[m];if(i.selected&&(a.support.optDisabled?!i.disabled:i.getAttribute("disabled")===null)&&(!i.parentNode.disabled||!a.nodeName(i.parentNode,"optgroup"))){
|
32
|
-
"";else if(a.isArray(b))b=a.map(b,function(g){return g==null?"":g+""});if(a.isArray(b)&&
|
33
|
-
if(
|
34
|
-
|
35
|
-
this.nodeType?"events":"__events__");if(typeof
|
36
|
-
(!
|
37
|
-
b!=="*"?b+".":"")+
|
38
|
-
|
39
|
-
l,z,I)===false)if(b.addEventListener)b.addEventListener(
|
40
|
-
|
41
|
-
I)===false)a.removeEvent(b,p,
|
42
|
-
true}if(!g){b.stopPropagation();a.event.global[p]&&a.each(a.cache,function(){this.events&&this.events[p]&&a.event.trigger(b,
|
43
|
-
|
44
|
-
this;
|
45
|
-
b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}}return b.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
46
|
-
|
47
|
-
null||b.keyCode!=null))b.which=b.charCode!=null?b.charCode:b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==H)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(b){a.event.add(this,
|
48
|
-
g},teardown:function(b,
|
49
|
-
this.originalEvent;if(b)if(b.preventDefault)b.preventDefault();else b.returnValue=false},stopPropagation:function(){this.isPropagationStopped=F;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=F;this.stopPropagation()},isDefaultPrevented:
|
50
|
-
b.data;a.event.handle.apply(this,arguments)}}catch(g){}},
|
51
|
-
b.target,g=
|
52
|
-
|
53
|
-
{filters:{focusout:c,beforedeactivate:c,click:function(b){var
|
54
|
-
b+".specialChange",i[b]);return
|
55
|
-
a.each(["bind","one"],function(b,
|
56
|
-
0;for(var
|
57
|
-
|
58
|
-
|
59
|
-
function(b,
|
60
|
-
b;
|
61
|
-
|
62
|
-
z.shift();p=h(c,p)}else{if(!
|
63
|
-
t.error(
|
64
|
-
e){return
|
65
|
-
d.leftMatch[I].exec(c))!=null&&g[2]){var J,z,
|
66
|
-
c;};var
|
67
|
-
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(c){return c.getAttribute("href")}},relative:{"+":function(c,e){var b=typeof e==="string",
|
68
|
-
c[g]){b=b.parentNode;c[g]=b.nodeName.toLowerCase()===e?b:false}}else{for(;g<
|
69
|
-
c.parentNode?[c]:[]},NAME:function(c,e){if(typeof e.getElementsByName!=="undefined"){for(var b=[],
|
70
|
-
false;return false},ID:function(c){return c[1].replace(/\\/g,"")},TAG:function(c){return c[1].toLowerCase()},CHILD:function(c){if(c[1]==="nth"){var e=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=e[1]+(e[2]||1)-0;c[3]=e[3]-0}c[0]=
|
71
|
-
"").length>1||/^\w/.test(c[3]))c[3]=
|
72
|
-
has:function(c,e,b){return!!
|
73
|
-
"button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)}},setFilters:{first:function(c,e){return e===0},last:function(c,e,b,
|
74
|
-
c.innerText||
|
75
|
-
p=c.parentNode;if(p&&(p.sizcache!==
|
76
|
-
c[b]!=null?c[b]:c.getAttribute(b);var
|
77
|
-
d.leftMatch[
|
78
|
-
function(c,e){if(c===e){
|
79
|
-
return p===b?i(c,
|
80
|
-
g,
|
81
|
-
b.getElementsByTagName(e[1]);if(e[1]==="*"){for(var g=[],
|
82
|
-
g,
|
83
|
-
c.webkitMatchesSelector||c.msMatchesSelector,b=false;try{e.call(
|
84
|
-
0)){c.lastChild.className="e";if(c.getElementsByClassName("e").length!==1){
|
85
|
-
c:0).documentElement)?c.nodeName!=="HTML":false};var h=function(c,e){for(var b,
|
86
|
-
|
87
|
-
this[
|
88
|
-
h=1;if(
|
89
|
-
n;return this.pushStack(
|
90
|
-
|
91
|
-
|
92
|
-
1?a.find.matchesSelector(
|
93
|
-
a.data(
|
94
|
-
|
95
|
-
[1,"div<div>","</div>"];a.fn.extend({text:function(
|
96
|
-
this;i.firstChild&&i.firstChild.nodeType===1;)i=i.firstChild;return i}).append(this)}return this},wrapInner:function(
|
97
|
-
true,function(
|
98
|
-
false,function(
|
99
|
-
return this},clone:function(
|
100
|
-
"string"&&!
|
101
|
-
a(this),h=i.html();i.replaceWith(
|
102
|
-
m,i,true)});if(a.isFunction(
|
103
|
-
this[c]:this[c],c>0||h.cacheable||this.length>1?
|
104
|
-
prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(
|
105
|
-
|
106
|
-
0;--g)a.nodeName(
|
107
|
-
i.appendChild(c[e])}return c},cleanData:function(
|
108
|
-
a.
|
109
|
-
|
110
|
-
b=a.camelCase(
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
e||c;c=h;h=
|
119
|
-
a.extend(
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
h
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
a
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
this
|
138
|
-
a.
|
139
|
-
a(this.elem).hide()
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
s.
|
1
|
+
(function(M,H){var B=M.document,O=function(){function a(){if(!r.isReady){try{B.documentElement.doScroll("left")}catch(l){setTimeout(a,1);return}r.ready()}}var r=function(l,y){return new r.fn.init(l,y)},F=M.jQuery,G=M.$,s,u=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,w=/\S/,v=/^\s+/,f=/\s+$/,j=/\W/,m=/\d/,o=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,x=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,i=/(?:^|:|,)(?:\s*\[)+/g,h=/(webkit)[ \/]([\w.]+)/,
|
2
|
+
c=/(opera)(?:.*version)?[ \/]([\w.]+)/,e=/(msie) ([\w.]+)/,b=/(mozilla)(?:.*? rv:([\w.]+))?/,d=navigator.userAgent,g=false,k=[],p,t=Object.prototype.toString,A=Object.prototype.hasOwnProperty,E=Array.prototype.push,I=Array.prototype.slice,J=String.prototype.trim,z=Array.prototype.indexOf,N={};r.fn=r.prototype={init:function(l,y){var C,D,K;if(!l)return this;if(l.nodeType){this.context=this[0]=l;this.length=1;return this}if(l==="body"&&!y&&B.body){this.context=B;this[0]=B.body;this.selector="body";
|
3
|
+
this.length=1;return this}if(typeof l==="string")if((C=u.exec(l))&&(C[1]||!y))if(C[1]){K=y?y.ownerDocument||y:B;if(D=o.exec(l))if(r.isPlainObject(y)){l=[B.createElement(D[1])];r.fn.attr.call(l,y,true)}else l=[K.createElement(D[1])];else{D=r.buildFragment([C[1]],[K]);l=(D.cacheable?D.fragment.cloneNode(true):D.fragment).childNodes}return r.merge(this,l)}else{if((D=B.getElementById(C[2]))&&D.parentNode){if(D.id!==C[2])return s.find(l);this.length=1;this[0]=D}this.context=B;this.selector=l;return this}else if(!y&&
|
4
|
+
!j.test(l)){this.selector=l;this.context=B;l=B.getElementsByTagName(l);return r.merge(this,l)}else return!y||y.jquery?(y||s).find(l):r(y).find(l);else if(r.isFunction(l))return s.ready(l);if(l.selector!==H){this.selector=l.selector;this.context=l.context}return r.makeArray(l,this)},selector:"",jquery:"@VERSION",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(l){return l==null?this.toArray():l<0?this.slice(l)[0]:this[l]},pushStack:function(l,y,C){var D=
|
5
|
+
r();r.isArray(l)?E.apply(D,l):r.merge(D,l);D.prevObject=this;D.context=this.context;if(y==="find")D.selector=this.selector+(this.selector?" ":"")+C;else if(y)D.selector=this.selector+"."+y+"("+C+")";return D},each:function(l,y){return r.each(this,l,y)},ready:function(l){r.bindReady();if(r.isReady)l.call(B,r);else k&&k.push(l);return this},eq:function(l){return l===-1?this.slice(l):this.slice(l,+l+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,
|
6
|
+
arguments),"slice",I.call(arguments).join(","))},map:function(l){return this.pushStack(r.map(this,function(y,C){return l.call(y,C,y)}))},end:function(){return this.prevObject||r(null)},push:E,sort:[].sort,splice:[].splice};r.fn.init.prototype=r.fn;r.extend=r.fn.extend=function(){var l,y,C,D,K,L=arguments[0]||{},P=1,Q=arguments.length,R=false;if(typeof L==="boolean"){R=L;L=arguments[1]||{};P=2}if(typeof L!=="object"&&!r.isFunction(L))L={};if(Q===P){L=this;--P}for(;P<Q;P++)if((l=arguments[P])!=null)for(y in l){C=
|
7
|
+
L[y];D=l[y];if(L!==D)if(R&&D&&(r.isPlainObject(D)||(K=r.isArray(D)))){if(K){K=false;C=C&&r.isArray(C)?C:[]}else C=C&&r.isPlainObject(C)?C:{};L[y]=r.extend(R,C,D)}else if(D!==H)L[y]=D}return L};r.extend({noConflict:function(l){M.$=G;if(l)M.jQuery=F;return r},isReady:false,readyWait:1,ready:function(l){l===true&&r.readyWait--;if(!r.readyWait||l!==true&&!r.isReady){if(!B.body)return setTimeout(r.ready,1);r.isReady=true;if(!(l!==true&&--r.readyWait>0))if(k){var y=0,C=k;for(k=null;l=C[y++];)l.call(B,r);
|
8
|
+
r.fn.trigger&&r(B).trigger("ready").unbind("ready")}}},bindReady:function(){if(!g){g=true;if(B.readyState==="complete")return setTimeout(r.ready,1);if(B.addEventListener){B.addEventListener("DOMContentLoaded",p,false);M.addEventListener("load",r.ready,false)}else if(B.attachEvent){B.attachEvent("onreadystatechange",p);M.attachEvent("onload",r.ready);var l=false;try{l=M.frameElement==null}catch(y){}B.documentElement.doScroll&&l&&a()}}},isFunction:function(l){return r.type(l)==="function"},isArray:Array.isArray||
|
9
|
+
function(l){return r.type(l)==="array"},isWindow:function(l){return l&&typeof l==="object"&&"setInterval"in l},isNaN:function(l){return l==null||!m.test(l)||isNaN(l)},type:function(l){return l==null?String(l):N[t.call(l)]||"object"},isPlainObject:function(l){if(!l||r.type(l)!=="object"||l.nodeType||r.isWindow(l))return false;if(l.constructor&&!A.call(l,"constructor")&&!A.call(l.constructor.prototype,"isPrototypeOf"))return false;for(var y in l);return y===H||A.call(l,y)},isEmptyObject:function(l){for(var y in l)return false;
|
10
|
+
return true},error:function(l){throw l;},parseJSON:function(l){if(typeof l!=="string"||!l)return null;l=r.trim(l);if(x.test(l.replace(n,"@").replace(q,"]").replace(i,"")))return M.JSON&&M.JSON.parse?M.JSON.parse(l):(new Function("return "+l))();else r.error("Invalid JSON: "+l)},noop:function(){},globalEval:function(l){if(l&&w.test(l)){var y=B.getElementsByTagName("head")[0]||B.documentElement,C=B.createElement("script");C.type="text/javascript";if(r.support.scriptEval)C.appendChild(B.createTextNode(l));
|
11
|
+
else C.text=l;y.insertBefore(C,y.firstChild);y.removeChild(C)}},nodeName:function(l,y){return l.nodeName&&l.nodeName.toUpperCase()===y.toUpperCase()},each:function(l,y,C){var D,K=0,L=l.length,P=L===H||r.isFunction(l);if(C)if(P)for(D in l){if(y.apply(l[D],C)===false)break}else for(;K<L;){if(y.apply(l[K++],C)===false)break}else if(P)for(D in l){if(y.call(l[D],D,l[D])===false)break}else for(C=l[0];K<L&&y.call(C,K,C)!==false;C=l[++K]);return l},trim:J?function(l){return l==null?"":J.call(l)}:function(l){return l==
|
12
|
+
null?"":l.toString().replace(v,"").replace(f,"")},makeArray:function(l,y){var C=y||[];if(l!=null){var D=r.type(l);l.length==null||D==="string"||D==="function"||D==="regexp"||r.isWindow(l)?E.call(C,l):r.merge(C,l)}return C},inArray:function(l,y){if(y.indexOf)return y.indexOf(l);for(var C=0,D=y.length;C<D;C++)if(y[C]===l)return C;return-1},merge:function(l,y){var C=l.length,D=0;if(typeof y.length==="number")for(var K=y.length;D<K;D++)l[C++]=y[D];else for(;y[D]!==H;)l[C++]=y[D++];l.length=C;return l},
|
13
|
+
grep:function(l,y,C){var D=[],K;C=!!C;for(var L=0,P=l.length;L<P;L++){K=!!y(l[L],L);C!==K&&D.push(l[L])}return D},map:function(l,y,C){for(var D=[],K,L=0,P=l.length;L<P;L++){K=y(l[L],L,C);if(K!=null)D[D.length]=K}return D.concat.apply([],D)},guid:1,proxy:function(l,y,C){if(arguments.length===2)if(typeof y==="string"){C=l;l=C[y];y=H}else if(y&&!r.isFunction(y)){C=y;y=H}if(!y&&l)y=function(){return l.apply(C||this,arguments)};if(l)y.guid=l.guid=l.guid||y.guid||r.guid++;return y},access:function(l,y,
|
14
|
+
C,D,K,L){var P=l.length;if(typeof y==="object"){for(var Q in y)r.access(l,Q,y[Q],D,K,C);return l}if(C!==H){D=!L&&D&&r.isFunction(C);for(Q=0;Q<P;Q++)K(l[Q],y,D?C.call(l[Q],Q,K(l[Q],y)):C,L);return l}return P?K(l[0],y):H},now:function(){return(new Date).getTime()},uaMatch:function(l){l=l.toLowerCase();l=h.exec(l)||c.exec(l)||e.exec(l)||l.indexOf("compatible")<0&&b.exec(l)||[];return{browser:l[1]||"",version:l[2]||"0"}},browser:{}});r.each("Boolean Number String Function Array Date RegExp Object".split(" "),
|
15
|
+
function(l,y){N["[object "+y+"]"]=y.toLowerCase()});d=r.uaMatch(d);if(d.browser){r.browser[d.browser]=true;r.browser.version=d.version}if(r.browser.webkit)r.browser.safari=true;if(z)r.inArray=function(l,y){return z.call(y,l)};if(!/\s/.test(" ")){v=/^[\s\xA0]+/;f=/[\s\xA0]+$/}s=r(B);if(B.addEventListener)p=function(){B.removeEventListener("DOMContentLoaded",p,false);r.ready()};else if(B.attachEvent)p=function(){if(B.readyState==="complete"){B.detachEvent("onreadystatechange",p);r.ready()}};return M.jQuery=
|
16
|
+
M.$=r}();(function(a){(function(){a.support={};var r=B.documentElement,F=B.createElement("script"),G=B.createElement("div"),s="script"+a.now();G.style.display="none";G.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var u=G.getElementsByTagName("*"),w=G.getElementsByTagName("a")[0],v=B.createElement("select"),f=v.appendChild(B.createElement("option"));if(!(!u||!u.length||!w)){a.support={leadingWhitespace:G.firstChild.nodeType===
|
17
|
+
3,tbody:!G.getElementsByTagName("tbody").length,htmlSerialize:!!G.getElementsByTagName("link").length,style:/red/.test(w.getAttribute("style")),hrefNormalized:w.getAttribute("href")==="/a",opacity:/^0.55$/.test(w.style.opacity),cssFloat:!!w.style.cssFloat,checkOn:G.getElementsByTagName("input")[0].value==="on",optSelected:f.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};
|
18
|
+
v.disabled=true;a.support.optDisabled=!f.disabled;F.type="text/javascript";try{F.appendChild(B.createTextNode("window."+s+"=1;"))}catch(j){}r.insertBefore(F,r.firstChild);if(M[s]){a.support.scriptEval=true;delete M[s]}try{delete F.test}catch(m){a.support.deleteExpando=false}r.removeChild(F);if(G.attachEvent&&G.fireEvent){G.attachEvent("onclick",function o(){a.support.noCloneEvent=false;G.detachEvent("onclick",o)});G.cloneNode(true).fireEvent("onclick")}G=B.createElement("div");G.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";
|
19
|
+
r=B.createDocumentFragment();r.appendChild(G.firstChild);a.support.checkClone=r.cloneNode(true).cloneNode(true).lastChild.checked;a(function(){var o=B.createElement("div");o.style.width=o.style.paddingLeft="1px";B.body.appendChild(o);a.boxModel=a.support.boxModel=o.offsetWidth===2;if("zoom"in o.style){o.style.display="inline";o.style.zoom=1;a.support.inlineBlockNeedsLayout=o.offsetWidth===2;o.style.display="";o.innerHTML="<div style='width:4px;'></div>";a.support.shrinkWrapBlocks=o.offsetWidth!==
|
20
|
+
2}o.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var x=o.getElementsByTagName("td");a.support.reliableHiddenOffsets=x[0].offsetHeight===0;x[0].style.display="";x[1].style.display="none";a.support.reliableHiddenOffsets=a.support.reliableHiddenOffsets&&x[0].offsetHeight===0;o.innerHTML="";B.body.removeChild(o).style.display="none"});r=function(o){var x=B.createElement("div");o="on"+o;var n=o in x;if(!n){x.setAttribute(o,"return;");n=typeof x[o]==="function"}return n};
|
21
|
+
a.support.submitBubbles=r("submit");a.support.changeBubbles=r("change");r=F=G=u=w=null}})()})(O);(function(a){function r(s,u,w){if(w===H&&s.nodeType===1){w=s.getAttribute("data-"+u);if(typeof w==="string"){try{w=w==="true"?true:w==="false"?false:w==="null"?null:!a.isNaN(w)?parseFloat(w):G.test(w)?a.parseJSON(w):w}catch(v){}a.data(s,u,w)}else w=H}return w}var F={},G=/^(?:\{.*\}|\[.*\])$/;a.extend({cache:{},uuid:0,expando:"jQuery"+a.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
|
22
|
+
applet:true},data:function(s,u,w){if(a.acceptData(s)){s=s==M?F:s;var v=s.nodeType,f=v?s[a.expando]:null,j=a.cache;if(!(v&&!f&&typeof u==="string"&&w===H)){if(v)f||(s[a.expando]=f=++a.uuid);else j=s;if(typeof u==="object")if(v)j[f]=a.extend(j[f],u);else a.extend(j,u);else if(v&&!j[f])j[f]={};s=v?j[f]:j;if(w!==H)s[u]=w;return typeof u==="string"?s[u]:s}}},removeData:function(s,u){if(a.acceptData(s)){s=s==M?F:s;var w=s.nodeType,v=w?s[a.expando]:s,f=a.cache,j=w?f[v]:v;if(u){if(j){delete j[u];w&&a.isEmptyObject(j)&&
|
23
|
+
a.removeData(s)}}else if(w&&a.support.deleteExpando)delete s[a.expando];else if(s.removeAttribute)s.removeAttribute(a.expando);else if(w)delete f[v];else for(var m in s)delete s[m]}},acceptData:function(s){if(s.nodeName){var u=a.noData[s.nodeName.toLowerCase()];if(u)return!(u===true||s.getAttribute("classid")!==u)}return true}});a.fn.extend({data:function(s,u){var w=null;if(typeof s==="undefined"){if(this.length){var v=this[0].attributes,f;w=a.data(this[0]);for(var j=0,m=v.length;j<m;j++){f=v[j].name;
|
24
|
+
if(f.indexOf("data-")===0){f=f.substr(5);r(this[0],f,w[f])}}}return w}else if(typeof s==="object")return this.each(function(){a.data(this,s)});var o=s.split(".");o[1]=o[1]?"."+o[1]:"";if(u===H){w=this.triggerHandler("getData"+o[1]+"!",[o[0]]);if(w===H&&this.length){w=a.data(this[0],s);w=r(this[0],s,w)}return w===H&&o[1]?this.data(o[0]):w}else return this.each(function(){var x=a(this),n=[o[0],u];x.triggerHandler("setData"+o[1]+"!",n);a.data(this,s,u);x.triggerHandler("changeData"+o[1]+"!",n)})},removeData:function(s){return this.each(function(){a.removeData(this,
|
25
|
+
s)})}})})(O);(function(a){a.extend({queue:function(r,F,G){if(r){F=(F||"fx")+"queue";var s=a.data(r,F);if(!G)return s||[];if(!s||a.isArray(G))s=a.data(r,F,a.makeArray(G));else s.push(G);return s}},dequeue:function(r,F){F=F||"fx";var G=a.queue(r,F),s=G.shift();if(s==="inprogress")s=G.shift();if(s){F==="fx"&&G.unshift("inprogress");s.call(r,function(){a.dequeue(r,F)})}}});a.fn.extend({queue:function(r,F){if(typeof r!=="string"){F=r;r="fx"}if(F===H)return a.queue(this[0],r);return this.each(function(){var G=
|
26
|
+
a.queue(this,r,F);r==="fx"&&G[0]!=="inprogress"&&a.dequeue(this,r)})},dequeue:function(r){return this.each(function(){a.dequeue(this,r)})},delay:function(r,F){r=a.fx?a.fx.speeds[r]||r:r;F=F||"fx";return this.queue(F,function(){var G=this;setTimeout(function(){a.dequeue(G,F)},r)})},clearQueue:function(r){return this.queue(r||"fx",[])}})})(O);(function(a){var r=/[\n\t]/g,F=/\s+/,G=/\r/g,s=/^(?:href|src|style)$/,u=/^(?:button|input)$/i,w=/^(?:button|input|object|select|textarea)$/i,v=/^a(?:rea)?$/i,
|
27
|
+
f=/^(?:radio|checkbox)$/i;a.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};a.fn.extend({attr:function(j,m){return a.access(this,j,m,true,a.attr)},removeAttr:function(j){return this.each(function(){a.attr(this,j,"");this.nodeType===1&&this.removeAttribute(j)})},addClass:function(j){if(a.isFunction(j))return this.each(function(e){var b=a(this);
|
28
|
+
b.addClass(j.call(this,e,b.attr("class")))});if(j&&typeof j==="string")for(var m=(j||"").split(F),o=0,x=this.length;o<x;o++){var n=this[o];if(n.nodeType===1)if(n.className){for(var q=" "+n.className+" ",i=n.className,h=0,c=m.length;h<c;h++)if(q.indexOf(" "+m[h]+" ")<0)i+=" "+m[h];n.className=a.trim(i)}else n.className=j}return this},removeClass:function(j){if(a.isFunction(j))return this.each(function(c){var e=a(this);e.removeClass(j.call(this,c,e.attr("class")))});if(j&&typeof j==="string"||j===H)for(var m=
|
29
|
+
(j||"").split(F),o=0,x=this.length;o<x;o++){var n=this[o];if(n.nodeType===1&&n.className)if(j){for(var q=(" "+n.className+" ").replace(r," "),i=0,h=m.length;i<h;i++)q=q.replace(" "+m[i]+" "," ");n.className=a.trim(q)}else n.className=""}return this},toggleClass:function(j,m){var o=typeof j,x=typeof m==="boolean";if(a.isFunction(j))return this.each(function(n){var q=a(this);q.toggleClass(j.call(this,n,q.attr("class"),m),m)});return this.each(function(){if(o==="string")for(var n,q=0,i=a(this),h=m,c=
|
30
|
+
j.split(F);n=c[q++];){h=x?h:!i.hasClass(n);i[h?"addClass":"removeClass"](n)}else if(o==="undefined"||o==="boolean"){this.className&&a.data(this,"__className__",this.className);this.className=this.className||j===false?"":a.data(this,"__className__")||""}})},hasClass:function(j){j=" "+j+" ";for(var m=0,o=this.length;m<o;m++)if((" "+this[m].className+" ").replace(r," ").indexOf(j)>-1)return true;return false},val:function(j){if(!arguments.length){var m=this[0];if(m){if(a.nodeName(m,"option")){var o=
|
31
|
+
m.attributes.value;return!o||o.specified?m.value:m.text}if(a.nodeName(m,"select")){var x=m.selectedIndex;o=[];var n=m.options;m=m.type==="select-one";if(x<0)return null;var q=m?x:0;for(x=m?x+1:n.length;q<x;q++){var i=n[q];if(i.selected&&(a.support.optDisabled?!i.disabled:i.getAttribute("disabled")===null)&&(!i.parentNode.disabled||!a.nodeName(i.parentNode,"optgroup"))){j=a(i).val();if(m)return j;o.push(j)}}return o}if(f.test(m.type)&&!a.support.checkOn)return m.getAttribute("value")===null?"on":m.value;
|
32
|
+
return(m.value||"").replace(G,"")}return H}var h=a.isFunction(j);return this.each(function(c){var e=a(this),b=j;if(this.nodeType===1){if(h)b=j.call(this,c,e.val());if(b==null)b="";else if(typeof b==="number")b+="";else if(a.isArray(b))b=a.map(b,function(g){return g==null?"":g+""});if(a.isArray(b)&&f.test(this.type))this.checked=a.inArray(e.val(),b)>=0;else if(a.nodeName(this,"select")){var d=a.makeArray(b);a("option",this).each(function(){this.selected=a.inArray(a(this).val(),d)>=0});if(!d.length)this.selectedIndex=
|
33
|
+
-1}else this.value=b}})}});a.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(j,m,o,x){if(!j||j.nodeType===3||j.nodeType===8)return H;if(x&&m in a.attrFn)return a(j)[m](o);x=j.nodeType!==1||!a.isXMLDoc(j);var n=o!==H;m=x&&a.props[m]||m;var q=s.test(m);if((m in j||j[m]!==H)&&x&&!q){if(n){m==="type"&&u.test(j.nodeName)&&j.parentNode&&a.error("type property can't be changed");if(o===null)j.nodeType===1&&j.removeAttribute(m);else j[m]=o}if(a.nodeName(j,
|
34
|
+
"form")&&j.getAttributeNode(m))return j.getAttributeNode(m).nodeValue;if(m==="tabIndex")return(m=j.getAttributeNode("tabIndex"))&&m.specified?m.value:w.test(j.nodeName)||v.test(j.nodeName)&&j.href?0:H;return j[m]}if(!a.support.style&&x&&m==="style"){if(n)j.style.cssText=""+o;return j.style.cssText}n&&j.setAttribute(m,""+o);if(!j.attributes[m]&&j.hasAttribute&&!j.hasAttribute(m))return H;j=!a.support.hrefNormalized&&x&&q?j.getAttribute(m,2):j.getAttribute(m);return j===null?H:j}})})(O);(function(a){function r(){return false}
|
35
|
+
function F(){return true}function G(b,d,g){g[0].type=b;return a.event.handle.apply(d,g)}function s(b){var d,g,k,p,t,A,E,I,J,z,N,l=[];p=[];t=a.data(this,this.nodeType?"events":"__events__");if(typeof t==="function")t=t.events;if(!(b.liveFired===this||!t||!t.live||b.button&&b.type==="click")){if(b.namespace)N=RegExp("(^|\\.)"+b.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");b.liveFired=this;var y=t.live.slice(0);for(E=0;E<y.length;E++){t=y[E];t.origType.replace(w,"")===b.type?p.push(t.selector):
|
36
|
+
y.splice(E--,1)}p=a(b.target).closest(p,b.currentTarget);I=0;for(J=p.length;I<J;I++){z=p[I];for(E=0;E<y.length;E++){t=y[E];if(z.selector===t.selector&&(!N||N.test(t.namespace))){A=z.elem;k=null;if(t.preType==="mouseenter"||t.preType==="mouseleave"){b.type=t.preType;k=a(b.relatedTarget).closest(t.selector)[0]}if(!k||k!==A)l.push({elem:A,handleObj:t,level:z.level})}}}I=0;for(J=l.length;I<J;I++){p=l[I];if(g&&p.level>g)break;b.currentTarget=p.elem;b.data=p.handleObj.data;b.handleObj=p.handleObj;N=p.handleObj.origHandler.apply(p.elem,
|
37
|
+
arguments);if(N===false||b.isPropagationStopped()){g=p.level;if(N===false)d=false;if(b.isImmediatePropagationStopped())break}}return d}}function u(b,d){return(b&&b!=="*"?b+".":"")+d.replace(f,"`").replace(j,"&")}var w=/\.(.*)$/,v=/^(?:textarea|input|select)$/i,f=/\./g,j=/ /g,m=/[^\w\s.|`]/g,o=function(b){return b.replace(m,"\\$&")},x={focusin:0,focusout:0};a.event={add:function(b,d,g,k){if(!(b.nodeType===3||b.nodeType===8)){if(a.isWindow(b)&&b!==M&&!b.frameElement)b=M;if(g===false)g=r;else if(!g)return;
|
38
|
+
var p,t;if(g.handler){p=g;g=p.handler}if(!g.guid)g.guid=a.guid++;if(t=a.data(b)){var A=b.nodeType?"events":"__events__",E=t[A],I=t.handle;if(typeof E==="function"){I=E.handle;E=E.events}else if(!E){b.nodeType||(t[A]=t=function(){});t.events=E={}}if(!I)t.handle=I=function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(I.elem,arguments):H};I.elem=b;d=d.split(" ");for(var J=0,z;A=d[J++];){t=p?a.extend({},p):{handler:g,data:k};if(A.indexOf(".")>-1){z=A.split(".");A=z.shift();
|
39
|
+
t.namespace=z.slice(0).sort().join(".")}else{z=[];t.namespace=""}t.type=A;if(!t.guid)t.guid=g.guid;var N=E[A],l=a.event.special[A]||{};if(!N){N=E[A]=[];if(!l.setup||l.setup.call(b,k,z,I)===false)if(b.addEventListener)b.addEventListener(A,I,false);else b.attachEvent&&b.attachEvent("on"+A,I)}if(l.add){l.add.call(b,t);if(!t.handler.guid)t.handler.guid=g.guid}N.push(t);a.event.global[A]=true}b=null}}},global:{},remove:function(b,d,g,k){if(!(b.nodeType===3||b.nodeType===8)){if(g===false)g=r;var p,t,A=
|
40
|
+
0,E,I,J,z,N,l,y=b.nodeType?"events":"__events__",C=a.data(b),D=C&&C[y];if(C&&D){if(typeof D==="function"){C=D;D=D.events}if(d&&d.type){g=d.handler;d=d.type}if(!d||typeof d==="string"&&d.charAt(0)==="."){d=d||"";for(p in D)a.event.remove(b,p+d)}else{for(d=d.split(" ");p=d[A++];){z=p;E=p.indexOf(".")<0;I=[];if(!E){I=p.split(".");p=I.shift();J=RegExp("(^|\\.)"+a.map(I.slice(0).sort(),o).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(N=D[p])if(g){z=a.event.special[p]||{};for(t=k||0;t<N.length;t++){l=N[t];if(g.guid===
|
41
|
+
l.guid){if(E||J.test(l.namespace)){k==null&&N.splice(t--,1);z.remove&&z.remove.call(b,l)}if(k!=null)break}}if(N.length===0||k!=null&&N.length===1){if(!z.teardown||z.teardown.call(b,I)===false)a.removeEvent(b,p,C.handle);delete D[p]}}else for(t=0;t<N.length;t++){l=N[t];if(E||J.test(l.namespace)){a.event.remove(b,z,l.handler,t);N.splice(t--,1)}}}if(a.isEmptyObject(D)){if(d=C.handle)d.elem=null;delete C.events;delete C.handle;if(typeof C==="function")a.removeData(b,y);else a.isEmptyObject(C)&&a.removeData(b)}}}}},
|
42
|
+
trigger:function(b,d,g,k){var p=b.type||b;if(!k){b=typeof b==="object"?b[a.expando]?b:a.extend(a.Event(p),b):a.Event(p);if(p.indexOf("!")>=0){b.type=p=p.slice(0,-1);b.exclusive=true}if(!g){b.stopPropagation();a.event.global[p]&&a.each(a.cache,function(){this.events&&this.events[p]&&a.event.trigger(b,d,this.handle.elem)})}if(!g||g.nodeType===3||g.nodeType===8)return H;b.result=H;b.target=g;d=a.makeArray(d);d.unshift(b)}b.currentTarget=g;(k=g.nodeType?a.data(g,"handle"):(a.data(g,"__events__")||{}).handle)&&
|
43
|
+
k.apply(g,d);k=g.parentNode||g.ownerDocument;try{if(!(g&&g.nodeName&&a.noData[g.nodeName.toLowerCase()]))if(g["on"+p]&&g["on"+p].apply(g,d)===false){b.result=false;b.preventDefault()}}catch(t){}if(!b.isPropagationStopped()&&k)a.event.trigger(b,d,k,true);else if(!b.isDefaultPrevented()){var A;k=b.target;var E=p.replace(w,""),I=a.nodeName(k,"a")&&E==="click",J=a.event.special[E]||{};if((!J._default||J._default.call(g,b)===false)&&!I&&!(k&&k.nodeName&&a.noData[k.nodeName.toLowerCase()])){try{if(k[E]){if(A=
|
44
|
+
k["on"+E])k["on"+E]=null;a.event.triggered=true;k[E]()}}catch(z){}if(A)k["on"+E]=A;a.event.triggered=false}}},handle:function(b){var d,g,k,p;g=[];var t=a.makeArray(arguments);b=t[0]=a.event.fix(b||M.event);b.currentTarget=this;d=b.type.indexOf(".")<0&&!b.exclusive;if(!d){k=b.type.split(".");b.type=k.shift();g=k.slice(0).sort();k=RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)")}b.namespace=b.namespace||g.join(".");p=a.data(this,this.nodeType?"events":"__events__");if(typeof p==="function")p=p.events;
|
45
|
+
g=(p||{})[b.type];if(p&&g){g=g.slice(0);p=0;for(var A=g.length;p<A;p++){var E=g[p];if(d||k.test(E.namespace)){b.handler=E.handler;b.data=E.data;b.handleObj=E;E=E.handler.apply(this,t);if(E!==H){b.result=E;if(E===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}}return b.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
|
46
|
+
fix:function(b){if(b[a.expando])return b;var d=b;b=a.Event(d);for(var g=this.props.length,k;g;){k=this.props[--g];b[k]=d[k]}if(!b.target)b.target=b.srcElement||B;if(b.target.nodeType===3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){d=B.documentElement;g=B.body;b.pageX=b.clientX+(d&&d.scrollLeft||g&&g.scrollLeft||0)-(d&&d.clientLeft||g&&g.clientLeft||0);b.pageY=b.clientY+(d&&d.scrollTop||
|
47
|
+
g&&g.scrollTop||0)-(d&&d.clientTop||g&&g.clientTop||0)}if(b.which==null&&(b.charCode!=null||b.keyCode!=null))b.which=b.charCode!=null?b.charCode:b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==H)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(b){a.event.add(this,u(b.origType,b.selector),a.extend({},b,{handler:s,guid:b.handler.guid}))},remove:function(b){a.event.remove(this,
|
48
|
+
u(b.origType,b.selector),b)}},beforeunload:{setup:function(b,d,g){if(a.isWindow(this))this.onbeforeunload=g},teardown:function(b,d){if(this.onbeforeunload===d)this.onbeforeunload=null}}}};a.removeEvent=B.removeEventListener?function(b,d,g){b.removeEventListener&&b.removeEventListener(d,g,false)}:function(b,d,g){b.detachEvent&&b.detachEvent("on"+d,g)};a.Event=function(b){if(!this.preventDefault)return new a.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=
|
49
|
+
a.now();this[a.expando]=true};a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=F;var b=this.originalEvent;if(b)if(b.preventDefault)b.preventDefault();else b.returnValue=false},stopPropagation:function(){this.isPropagationStopped=F;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=F;this.stopPropagation()},isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r};
|
50
|
+
var n=function(b){var d=b.relatedTarget;try{for(;d&&d!==this;)d=d.parentNode;if(d!==this){b.type=b.data;a.event.handle.apply(this,arguments)}}catch(g){}},q=function(b){b.type=b.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,d){a.event.special[b]={setup:function(g){a.event.add(this,d,g&&g.selector?q:n,b)},teardown:function(g){a.event.remove(this,d,g&&g.selector?q:n)}}});if(!a.support.submitBubbles)a.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
|
51
|
+
"form"){a.event.add(this,"click.specialSubmit",function(b){var d=b.target,g=d.type;if((g==="submit"||g==="image")&&a(d).closest("form").length){b.liveFired=H;return G("submit",this,arguments)}});a.event.add(this,"keypress.specialSubmit",function(b){var d=b.target,g=d.type;if((g==="text"||g==="password")&&a(d).closest("form").length&&b.keyCode===13){b.liveFired=H;return G("submit",this,arguments)}})}else return false},teardown:function(){a.event.remove(this,".specialSubmit")}};if(!a.support.changeBubbles){var i,
|
52
|
+
h=function(b){var d=b.type,g=b.value;if(d==="radio"||d==="checkbox")g=b.checked;else if(d==="select-multiple")g=b.selectedIndex>-1?a.map(b.options,function(k){return k.selected}).join("-"):"";else if(b.nodeName.toLowerCase()==="select")g=b.selectedIndex;return g},c=function(b,d){var g=b.target,k,p;if(!(!v.test(g.nodeName)||g.readOnly)){k=a.data(g,"_change_data");p=h(g);if(b.type!=="focusout"||g.type!=="radio")a.data(g,"_change_data",p);if(!(k===H||p===k))if(k!=null||p){b.type="change";b.liveFired=
|
53
|
+
H;return a.event.trigger(b,d,g)}}};a.event.special.change={filters:{focusout:c,beforedeactivate:c,click:function(b){var d=b.target,g=d.type;if(g==="radio"||g==="checkbox"||d.nodeName.toLowerCase()==="select")return c.call(this,b)},keydown:function(b){var d=b.target,g=d.type;if(b.keyCode===13&&d.nodeName.toLowerCase()!=="textarea"||b.keyCode===32&&(g==="checkbox"||g==="radio")||g==="select-multiple")return c.call(this,b)},beforeactivate:function(b){b=b.target;a.data(b,"_change_data",h(b))}},setup:function(){if(this.type===
|
54
|
+
"file")return false;for(var b in i)a.event.add(this,b+".specialChange",i[b]);return v.test(this.nodeName)},teardown:function(){a.event.remove(this,".specialChange");return v.test(this.nodeName)}};i=a.event.special.change.filters;i.focus=i.beforeactivate}B.addEventListener&&a.each({focus:"focusin",blur:"focusout"},function(b,d){function g(k){k=a.event.fix(k);k.type=d;return a.event.trigger(k,null,k.target)}a.event.special[d]={setup:function(){x[d]++===0&&B.addEventListener(b,g,true)},teardown:function(){--x[d]===
|
55
|
+
0&&B.removeEventListener(b,g,true)}}});a.each(["bind","one"],function(b,d){a.fn[d]=function(g,k,p){if(typeof g==="object"){for(var t in g)this[d](t,k,g[t],p);return this}if(a.isFunction(k)||k===false){p=k;k=H}var A=d==="one"?a.proxy(p,function(I){a(this).unbind(I,A);return p.apply(this,arguments)}):p;if(g==="unload"&&d!=="one")this.one(g,k,p);else{t=0;for(var E=this.length;t<E;t++)a.event.add(this[t],g,A,k)}return this}});a.fn.extend({unbind:function(b,d){if(typeof b==="object"&&!b.preventDefault)for(var g in b)this.unbind(g,
|
56
|
+
b[g]);else{g=0;for(var k=this.length;g<k;g++)a.event.remove(this[g],b,d)}return this},delegate:function(b,d,g,k){return this.live(d,g,k,b)},undelegate:function(b,d,g){return arguments.length===0?this.unbind("live"):this.die(d,null,g,b)},trigger:function(b,d){return this.each(function(){a.event.trigger(b,d,this)})},triggerHandler:function(b,d){if(this[0]){var g=a.Event(b);g.preventDefault();g.stopPropagation();a.event.trigger(g,d,this[0]);return g.result}},toggle:function(b){for(var d=arguments,g=
|
57
|
+
1;g<d.length;)a.proxy(b,d[g++]);return this.click(a.proxy(b,function(k){var p=(a.data(this,"lastToggle"+b.guid)||0)%g;a.data(this,"lastToggle"+b.guid,p+1);k.preventDefault();return d[p].apply(this,arguments)||false}))},hover:function(b,d){return this.mouseenter(b).mouseleave(d||b)}});var e={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(b,d){a.fn[d]=function(g,k,p,t){var A,E=0,I,J,z=t||this.selector;t=t?this:a(this.context);if(typeof g===
|
58
|
+
"object"&&!g.preventDefault){for(A in g)t[d](A,k,g[A],z);return this}if(a.isFunction(k)){p=k;k=H}for(g=(g||"").split(" ");(A=g[E++])!=null;){I=w.exec(A);J="";if(I){J=I[0];A=A.replace(w,"")}if(A==="hover")g.push("mouseenter"+J,"mouseleave"+J);else{I=A;if(A==="focus"||A==="blur"){g.push(e[A]+J);A+=J}else A=(e[A]||A)+J;if(d==="live"){J=0;for(var N=t.length;J<N;J++)a.event.add(t[J],"live."+u(A,z),{data:k,selector:z,handler:p,origType:A,origHandler:p,preType:I})}else t.unbind("live."+u(A,z),p)}}return this}});
|
59
|
+
a.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".split(" "),function(b,d){a.fn[d]=function(g,k){if(k==null){k=g;g=null}return arguments.length>0?this.bind(d,g,k):this.trigger(d)};if(a.attrFn)a.attrFn[d]=true});M.attachEvent&&!M.addEventListener&&a(M).bind("unload",function(){for(var b in a.cache)if(a.cache[b].handle)try{a.event.remove(a.cache[b].handle.elem)}catch(d){}})})(O);
|
60
|
+
(function(){function a(c,e,b,d,g,k){g=0;for(var p=d.length;g<p;g++){var t=d[g];if(t){var A=false;for(t=t[c];t;){if(t.sizcache===b){A=d[t.sizset];break}if(t.nodeType===1&&!k){t.sizcache=b;t.sizset=g}if(t.nodeName.toLowerCase()===e){A=t;break}t=t[c]}d[g]=A}}}function r(c,e,b,d,g,k){g=0;for(var p=d.length;g<p;g++){var t=d[g];if(t){var A=false;for(t=t[c];t;){if(t.sizcache===b){A=d[t.sizset];break}if(t.nodeType===1){if(!k){t.sizcache=b;t.sizset=g}if(typeof e!=="string"){if(t===e){A=true;break}}else if(v.filter(e,
|
61
|
+
[t]).length>0){A=t;break}}t=t[c]}d[g]=A}}}var F=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,G=0,s=Object.prototype.toString,u=false,w=true;[0,0].sort(function(){w=false;return 0});var v=function(c,e,b,d){b=b||[];var g=e=e||B;if(e.nodeType!==1&&e.nodeType!==9)return[];if(!c||typeof c!=="string")return b;var k,p,t,A,E,I=true,J=v.isXML(e),z=[],N=c;do{F.exec("");if(k=F.exec(N)){N=k[3];z.push(k[1]);if(k[2]){A=k[3];
|
62
|
+
break}}}while(k);if(z.length>1&&j.exec(c))if(z.length===2&&f.relative[z[0]])p=h(z[0]+z[1],e);else for(p=f.relative[z[0]]?[e]:v(z.shift(),e);z.length;){c=z.shift();if(f.relative[c])c+=z.shift();p=h(c,p)}else{if(!d&&z.length>1&&e.nodeType===9&&!J&&f.match.ID.test(z[0])&&!f.match.ID.test(z[z.length-1])){k=v.find(z.shift(),e,J);e=k.expr?v.filter(k.expr,k.set)[0]:k.set[0]}if(e){k=d?{expr:z.pop(),set:x(d)}:v.find(z.pop(),z.length===1&&(z[0]==="~"||z[0]==="+")&&e.parentNode?e.parentNode:e,J);p=k.expr?v.filter(k.expr,
|
63
|
+
k.set):k.set;if(z.length>0)t=x(p);else I=false;for(;z.length;){k=E=z.pop();if(f.relative[E])k=z.pop();else E="";if(k==null)k=e;f.relative[E](t,k,J)}}else t=[]}t||(t=p);t||v.error(E||c);if(s.call(t)==="[object Array]")if(I)if(e&&e.nodeType===1)for(c=0;t[c]!=null;c++){if(t[c]&&(t[c]===true||t[c].nodeType===1&&v.contains(e,t[c])))b.push(p[c])}else for(c=0;t[c]!=null;c++)t[c]&&t[c].nodeType===1&&b.push(p[c]);else b.push.apply(b,t);else x(t,b);if(A){v(A,g,b,d);v.uniqueSort(b)}return b};v.uniqueSort=function(c){if(q){u=
|
64
|
+
w;c.sort(q);if(u)for(var e=1;e<c.length;e++)c[e]===c[e-1]&&c.splice(e--,1)}return c};v.matches=function(c,e){return v(c,null,null,e)};v.matchesSelector=function(c,e){return v(e,null,null,[c]).length>0};v.find=function(c,e,b){var d;if(!c)return[];for(var g=0,k=f.order.length;g<k;g++){var p,t=f.order[g];if(p=f.leftMatch[t].exec(c)){var A=p[1];p.splice(1,1);if(A.substr(A.length-1)!=="\\"){p[1]=(p[1]||"").replace(/\\/g,"");d=f.find[t](p,e,b);if(d!=null){c=c.replace(f.match[t],"");break}}}}d||(d=e.getElementsByTagName("*"));
|
65
|
+
return{set:d,expr:c}};v.filter=function(c,e,b,d){for(var g,k,p=c,t=[],A=e,E=e&&e[0]&&v.isXML(e[0]);c&&e.length;){for(var I in f.filter)if((g=f.leftMatch[I].exec(c))!=null&&g[2]){var J,z,N=f.filter[I];z=g[1];k=false;g.splice(1,1);if(z.substr(z.length-1)!=="\\"){if(A===t)t=[];if(f.preFilter[I])if(g=f.preFilter[I](g,A,b,t,d,E)){if(g===true)continue}else k=J=true;if(g)for(var l=0;(z=A[l])!=null;l++)if(z){J=N(z,g,l,A);var y=d^!!J;if(b&&J!=null)if(y)k=true;else A[l]=false;else if(y){t.push(z);k=true}}if(J!==
|
66
|
+
H){b||(A=t);c=c.replace(f.match[I],"");if(!k)return[];break}}}if(c===p)if(k==null)v.error(c);else break;p=c}return A};v.error=function(c){throw"Syntax error, unrecognized expression: "+c;};var f=v.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|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
|
67
|
+
POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(c){return c.getAttribute("href")}},relative:{"+":function(c,e){var b=typeof e==="string",d=b&&!/\W/.test(e);b=b&&!d;if(d)e=e.toLowerCase();d=0;for(var g=c.length,k;d<g;d++)if(k=c[d]){for(;(k=k.previousSibling)&&k.nodeType!==1;);c[d]=b||k&&k.nodeName.toLowerCase()===
|
68
|
+
e?k||false:k===e}b&&v.filter(e,c,true)},">":function(c,e){var b,d=typeof e==="string",g=0,k=c.length;if(d&&!/\W/.test(e))for(e=e.toLowerCase();g<k;g++){if(b=c[g]){b=b.parentNode;c[g]=b.nodeName.toLowerCase()===e?b:false}}else{for(;g<k;g++)if(b=c[g])c[g]=d?b.parentNode:b.parentNode===e;d&&v.filter(e,c,true)}},"":function(c,e,b){var d,g=G++,k=r;if(typeof e==="string"&&!/\W/.test(e)){d=e=e.toLowerCase();k=a}k("parentNode",e,g,c,d,b)},"~":function(c,e,b){var d,g=G++,k=r;if(typeof e==="string"&&!/\W/.test(e)){d=
|
69
|
+
e=e.toLowerCase();k=a}k("previousSibling",e,g,c,d,b)}},find:{ID:function(c,e,b){if(typeof e.getElementById!=="undefined"&&!b)return(c=e.getElementById(c[1]))&&c.parentNode?[c]:[]},NAME:function(c,e){if(typeof e.getElementsByName!=="undefined"){for(var b=[],d=e.getElementsByName(c[1]),g=0,k=d.length;g<k;g++)d[g].getAttribute("name")===c[1]&&b.push(d[g]);return b.length===0?null:b}},TAG:function(c,e){return e.getElementsByTagName(c[1])}},preFilter:{CLASS:function(c,e,b,d,g,k){c=" "+c[1].replace(/\\/g,
|
70
|
+
"")+" ";if(k)return c;k=0;for(var p;(p=e[k])!=null;k++)if(p)if(g^(p.className&&(" "+p.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))b||d.push(p);else if(b)e[k]=false;return false},ID:function(c){return c[1].replace(/\\/g,"")},TAG:function(c){return c[1].toLowerCase()},CHILD:function(c){if(c[1]==="nth"){var e=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=e[1]+(e[2]||1)-0;c[3]=e[3]-0}c[0]=G++;return c},ATTR:function(c,e,b,
|
71
|
+
d,g,k){e=c[1].replace(/\\/g,"");if(!k&&f.attrMap[e])c[1]=f.attrMap[e];if(c[2]==="~=")c[4]=" "+c[4]+" ";return c},PSEUDO:function(c,e,b,d,g){if(c[1]==="not")if((F.exec(c[3])||"").length>1||/^\w/.test(c[3]))c[3]=v(c[3],null,null,e);else{c=v.filter(c[3],e,b,true^g);b||d.push.apply(d,c);return false}else if(f.match.POS.test(c[0])||f.match.CHILD.test(c[0]))return true;return c},POS:function(c){c.unshift(true);return c}},filters:{enabled:function(c){return c.disabled===false&&c.type!=="hidden"},disabled:function(c){return c.disabled===
|
72
|
+
true},checked:function(c){return c.checked===true},selected:function(c){return c.selected===true},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild},has:function(c,e,b){return!!v(b[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){return"text"===c.type},radio:function(c){return"radio"===c.type},checkbox:function(c){return"checkbox"===c.type},file:function(c){return"file"===c.type},password:function(c){return"password"===c.type},submit:function(c){return"submit"===
|
73
|
+
c.type},image:function(c){return"image"===c.type},reset:function(c){return"reset"===c.type},button:function(c){return"button"===c.type||c.nodeName.toLowerCase()==="button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)}},setFilters:{first:function(c,e){return e===0},last:function(c,e,b,d){return e===d.length-1},even:function(c,e){return e%2===0},odd:function(c,e){return e%2===1},lt:function(c,e,b){return e<b[3]-0},gt:function(c,e,b){return e>b[3]-0},nth:function(c,e,b){return b[3]-
|
74
|
+
0===e},eq:function(c,e,b){return b[3]-0===e}},filter:{PSEUDO:function(c,e,b,d){var g=e[1],k=f.filters[g];if(k)return k(c,b,e,d);else if(g==="contains")return(c.textContent||c.innerText||v.getText([c])||"").indexOf(e[3])>=0;else if(g==="not"){e=e[3];b=0;for(d=e.length;b<d;b++)if(e[b]===c)return false;return true}else v.error("Syntax error, unrecognized expression: "+g)},CHILD:function(c,e){var b=e[1],d=c;switch(b){case "only":case "first":for(;d=d.previousSibling;)if(d.nodeType===1)return false;if(b===
|
75
|
+
"first")return true;d=c;case "last":for(;d=d.nextSibling;)if(d.nodeType===1)return false;return true;case "nth":b=e[2];var g=e[3];if(b===1&&g===0)return true;var k=e[0],p=c.parentNode;if(p&&(p.sizcache!==k||!c.nodeIndex)){var t=0;for(d=p.firstChild;d;d=d.nextSibling)if(d.nodeType===1)d.nodeIndex=++t;p.sizcache=k}d=c.nodeIndex-g;return b===0?d===0:d%b===0&&d/b>=0}},ID:function(c,e){return c.nodeType===1&&c.getAttribute("id")===e},TAG:function(c,e){return e==="*"&&c.nodeType===1||c.nodeName.toLowerCase()===
|
76
|
+
e},CLASS:function(c,e){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(c,e){var b=e[1];b=f.attrHandle[b]?f.attrHandle[b](c):c[b]!=null?c[b]:c.getAttribute(b);var d=b+"",g=e[2],k=e[4];return b==null?g==="!=":g==="="?d===k:g==="*="?d.indexOf(k)>=0:g==="~="?(" "+d+" ").indexOf(k)>=0:!k?d&&b!==false:g==="!="?d!==k:g==="^="?d.indexOf(k)===0:g==="$="?d.substr(d.length-k.length)===k:g==="|="?d===k||d.substr(0,k.length+1)===k+"-":false},POS:function(c,e,b,d){var g=f.setFilters[e[2]];
|
77
|
+
if(g)return g(c,b,e,d)}}},j=f.match.POS,m=function(c,e){return"\\"+(e-0+1)},o;for(o in f.match){f.match[o]=RegExp(f.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source);f.leftMatch[o]=RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[o].source.replace(/\\(\d+)/g,m))}var x=function(c,e){c=Array.prototype.slice.call(c,0);if(e){e.push.apply(e,c);return e}return c};try{Array.prototype.slice.call(B.documentElement.childNodes,0)}catch(n){x=function(c,e){var b=0,d=e||[];if(s.call(c)==="[object Array]")Array.prototype.push.apply(d,
|
78
|
+
c);else if(typeof c.length==="number")for(var g=c.length;b<g;b++)d.push(c[b]);else for(;c[b];b++)d.push(c[b]);return d}}var q,i;if(B.documentElement.compareDocumentPosition)q=function(c,e){if(c===e){u=true;return 0}if(!c.compareDocumentPosition||!e.compareDocumentPosition)return c.compareDocumentPosition?-1:1;return c.compareDocumentPosition(e)&4?-1:1};else{q=function(c,e){var b,d,g=[],k=[];b=c.parentNode;d=e.parentNode;var p=b;if(c===e){u=true;return 0}else if(b===d)return i(c,e);else if(b){if(!d)return 1}else return-1;
|
79
|
+
for(;p;){g.unshift(p);p=p.parentNode}for(p=d;p;){k.unshift(p);p=p.parentNode}b=g.length;d=k.length;for(p=0;p<b&&p<d;p++)if(g[p]!==k[p])return i(g[p],k[p]);return p===b?i(c,k[p],-1):i(g[p],e,1)};i=function(c,e,b){if(c===e)return b;for(c=c.nextSibling;c;){if(c===e)return-1;c=c.nextSibling}return 1}}v.getText=function(c){for(var e="",b,d=0;c[d];d++){b=c[d];if(b.nodeType===3||b.nodeType===4)e+=b.nodeValue;else if(b.nodeType!==8)e+=v.getText(b.childNodes)}return e};(function(){var c=B.createElement("div"),
|
80
|
+
e="script"+(new Date).getTime(),b=B.documentElement;c.innerHTML="<a name='"+e+"'/>";b.insertBefore(c,b.firstChild);if(B.getElementById(e)){f.find.ID=function(d,g,k){if(typeof g.getElementById!=="undefined"&&!k)return(g=g.getElementById(d[1]))?g.id===d[1]||typeof g.getAttributeNode!=="undefined"&&g.getAttributeNode("id").nodeValue===d[1]?[g]:H:[]};f.filter.ID=function(d,g){var k=typeof d.getAttributeNode!=="undefined"&&d.getAttributeNode("id");return d.nodeType===1&&k&&k.nodeValue===g}}b.removeChild(c);
|
81
|
+
b=c=null})();(function(){var c=B.createElement("div");c.appendChild(B.createComment(""));if(c.getElementsByTagName("*").length>0)f.find.TAG=function(e,b){var d=b.getElementsByTagName(e[1]);if(e[1]==="*"){for(var g=[],k=0;d[k];k++)d[k].nodeType===1&&g.push(d[k]);d=g}return d};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")f.attrHandle.href=function(e){return e.getAttribute("href",2)};c=null})();B.querySelectorAll&&
|
82
|
+
function(){var c=v,e=B.createElement("div");e.innerHTML="<p class='TEST'></p>";if(!(e.querySelectorAll&&e.querySelectorAll(".TEST").length===0)){v=function(d,g,k,p){g=g||B;d=d.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!p&&!v.isXML(g))if(g.nodeType===9)try{return x(g.querySelectorAll(d),k)}catch(t){}else if(g.nodeType===1&&g.nodeName.toLowerCase()!=="object"){var A=g.getAttribute("id"),E=A||"__sizzle__";A||g.setAttribute("id",E);try{return x(g.querySelectorAll("#"+E+" "+d),k)}catch(I){}finally{A||
|
83
|
+
g.removeAttribute("id")}}return c(d,g,k,p)};for(var b in c)v[b]=c[b];e=null}}();(function(){var c=B.documentElement,e=c.matchesSelector||c.mozMatchesSelector||c.webkitMatchesSelector||c.msMatchesSelector,b=false;try{e.call(B.documentElement,"[test!='']:sizzle")}catch(d){b=true}if(e)v.matchesSelector=function(g,k){k=k.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!v.isXML(g))try{if(b||!f.match.PSEUDO.test(k)&&!/!=/.test(k))return e.call(g,k)}catch(p){}return v(k,null,null,[g]).length>0}})();(function(){var c=
|
84
|
+
B.createElement("div");c.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!c.getElementsByClassName||c.getElementsByClassName("e").length===0)){c.lastChild.className="e";if(c.getElementsByClassName("e").length!==1){f.order.splice(1,0,"CLASS");f.find.CLASS=function(e,b,d){if(typeof b.getElementsByClassName!=="undefined"&&!d)return b.getElementsByClassName(e[1])};c=null}}})();v.contains=B.documentElement.contains?function(c,e){return c!==e&&(c.contains?c.contains(e):true)}:B.documentElement.compareDocumentPosition?
|
85
|
+
function(c,e){return!!(c.compareDocumentPosition(e)&16)}:function(){return false};v.isXML=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":false};var h=function(c,e){for(var b,d=[],g="",k=e.nodeType?[e]:e;b=f.match.PSEUDO.exec(c);){g+=b[0];c=c.replace(f.match.PSEUDO,"")}c=f.relative[c]?c+"*":c;b=0;for(var p=k.length;b<p;b++)v(c,k[b],d);return v.filter(g,d)};O.find=v;O.expr=v.selectors;O.expr[":"]=O.expr.filters;O.unique=v.uniqueSort;O.text=v.getText;O.isXMLDoc=v.isXML;
|
86
|
+
O.contains=v.contains})();(function(a){function r(f,j,m){if(a.isFunction(j))return a.grep(f,function(x,n){return!!j.call(x,n,x)===m});else if(j.nodeType)return a.grep(f,function(x){return x===j===m});else if(typeof j==="string"){var o=a.grep(f,function(x){return x.nodeType===1});if(u.test(j))return a.filter(j,o,!m);else j=a.filter(j,o)}return a.grep(f,function(x){return a.inArray(x,j)>=0===m})}var F=/Until$/,G=/^(?:parents|prevUntil|prevAll)/,s=/,/,u=/^.[^:#\[\.,]*$/,w=Array.prototype.slice,v=a.expr.match.POS;
|
87
|
+
a.fn.extend({find:function(f){for(var j=this.pushStack("","find",f),m=0,o=0,x=this.length;o<x;o++){m=j.length;a.find(f,this[o],j);if(o>0)for(var n=m;n<j.length;n++)for(var q=0;q<m;q++)if(j[q]===j[n]){j.splice(n--,1);break}}return j},has:function(f){var j=a(f);return this.filter(function(){for(var m=0,o=j.length;m<o;m++)if(a.contains(this,j[m]))return true})},not:function(f){return this.pushStack(r(this,f,false),"not",f)},filter:function(f){return this.pushStack(r(this,f,true),"filter",f)},is:function(f){return!!f&&
|
88
|
+
a.filter(f,this).length>0},closest:function(f,j){var m=[],o,x,n=this[0];if(a.isArray(f)){var q,i={},h=1;if(n&&f.length){o=0;for(x=f.length;o<x;o++){q=f[o];i[q]||(i[q]=a.expr.match.POS.test(q)?a(q,j||this.context):q)}for(;n&&n.ownerDocument&&n!==j;){for(q in i){o=i[q];if(o.jquery?o.index(n)>-1:a(n).is(o))m.push({selector:q,elem:n,level:h})}n=n.parentNode;h++}}return m}q=v.test(f)?a(f,j||this.context):null;o=0;for(x=this.length;o<x;o++)for(n=this[o];n;)if(q?q.index(n)>-1:a.find.matchesSelector(n,f)){m.push(n);
|
89
|
+
break}else{n=n.parentNode;if(!n||!n.ownerDocument||n===j)break}m=m.length>1?a.unique(m):m;return this.pushStack(m,"closest",f)},index:function(f){if(!f||typeof f==="string")return a.inArray(this[0],f?a(f):this.parent().children());return a.inArray(f.jquery?f[0]:f,this)},add:function(f,j){var m=typeof f==="string"?a(f,j||this.context):a.makeArray(f),o=a.merge(this.get(),m);return this.pushStack(!m[0]||!m[0].parentNode||m[0].parentNode.nodeType===11||!o[0]||!o[0].parentNode||o[0].parentNode.nodeType===
|
90
|
+
11?o:a.unique(o))},andSelf:function(){return this.add(this.prevObject)}});a.each({parent:function(f){return(f=f.parentNode)&&f.nodeType!==11?f:null},parents:function(f){return a.dir(f,"parentNode")},parentsUntil:function(f,j,m){return a.dir(f,"parentNode",m)},next:function(f){return a.nth(f,2,"nextSibling")},prev:function(f){return a.nth(f,2,"previousSibling")},nextAll:function(f){return a.dir(f,"nextSibling")},prevAll:function(f){return a.dir(f,"previousSibling")},nextUntil:function(f,j,m){return a.dir(f,
|
91
|
+
"nextSibling",m)},prevUntil:function(f,j,m){return a.dir(f,"previousSibling",m)},siblings:function(f){return a.sibling(f.parentNode.firstChild,f)},children:function(f){return a.sibling(f.firstChild)},contents:function(f){return a.nodeName(f,"iframe")?f.contentDocument||f.contentWindow.document:a.makeArray(f.childNodes)}},function(f,j){a.fn[f]=function(m,o){var x=a.map(this,j,m);F.test(f)||(o=m);if(o&&typeof o==="string")x=a.filter(o,x);x=this.length>1?a.unique(x):x;if((this.length>1||s.test(o))&&
|
92
|
+
G.test(f))x=x.reverse();return this.pushStack(x,f,w.call(arguments).join(","))}});a.extend({filter:function(f,j,m){if(m)f=":not("+f+")";return j.length===1?a.find.matchesSelector(j[0],f)?[j[0]]:[]:a.find.matches(f,j)},dir:function(f,j,m){var o=[];for(f=f[j];f&&f.nodeType!==9&&(m===H||f.nodeType!==1||!a(f).is(m));){f.nodeType===1&&o.push(f);f=f[j]}return o},nth:function(f,j,m){j=j||1;for(var o=0;f;f=f[m])if(f.nodeType===1&&++o===j)break;return f},sibling:function(f,j){for(var m=[];f;f=f.nextSibling)f.nodeType===
|
93
|
+
1&&f!==j&&m.push(f);return m}})})(O);(function(a){function r(n,q){var i=0;q.each(function(){if(this.nodeName===(n[i]&&n[i].nodeName)){var h=a.data(n[i++]),c=a.data(this,h);if(h=h&&h.events){delete c.handle;c.events={};for(var e in h)for(var b in h[e])a.event.add(this,e,h[e][b],h[e][b].data)}}})}function F(n,q){q.src?a.ajax({url:q.src,async:false,dataType:"script"}):a.globalEval(q.text||q.textContent||q.innerHTML||"");q.parentNode&&q.parentNode.removeChild(q)}var G=/ jQuery\d+="(?:\d+|null)"/g,s=/^\s+/,
|
94
|
+
u=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,w=/<([\w:]+)/,v=/<tbody/i,f=/<|&#?\w+;/,j=/<(?:script|object|embed|option|style)/i,m=/checked\s*(?:[^=]|=\s*.checked.)/i,o=/\=([^="'>\s]+\/)>/g,x={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>"],
|
95
|
+
area:[1,"<map>","</map>"],_default:[0,"",""]};x.optgroup=x.option;x.tbody=x.tfoot=x.colgroup=x.caption=x.thead;x.th=x.td;if(!a.support.htmlSerialize)x._default=[1,"div<div>","</div>"];a.fn.extend({text:function(n){if(a.isFunction(n))return this.each(function(q){var i=a(this);i.text(n.call(this,q,i.text()))});if(typeof n!=="object"&&n!==H)return this.empty().append((this[0]&&this[0].ownerDocument||B).createTextNode(n));return a.text(this)},wrapAll:function(n){if(a.isFunction(n))return this.each(function(i){a(this).wrapAll(n.call(this,
|
96
|
+
i))});if(this[0]){var q=a(n,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&q.insertBefore(this[0]);q.map(function(){for(var i=this;i.firstChild&&i.firstChild.nodeType===1;)i=i.firstChild;return i}).append(this)}return this},wrapInner:function(n){if(a.isFunction(n))return this.each(function(q){a(this).wrapInner(n.call(this,q))});return this.each(function(){var q=a(this),i=q.contents();i.length?i.wrapAll(n):q.append(n)})},wrap:function(n){return this.each(function(){a(this).wrapAll(n)})},
|
97
|
+
unwrap:function(){return this.parent().each(function(){a.nodeName(this,"body")||a(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,true,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(q){this.parentNode.insertBefore(q,this)});else if(arguments.length){var n=
|
98
|
+
a(arguments[0]);n.push.apply(n,this.toArray());return this.pushStack(n,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(q){this.parentNode.insertBefore(q,this.nextSibling)});else if(arguments.length){var n=this.pushStack(this,"after",arguments);n.push.apply(n,a(arguments[0]).toArray());return n}},remove:function(n,q){for(var i=0,h;(h=this[i])!=null;i++)if(!n||a.filter(n,[h]).length){if(!q&&h.nodeType===1){a.cleanData(h.getElementsByTagName("*"));
|
99
|
+
a.cleanData([h])}h.parentNode&&h.parentNode.removeChild(h)}return this},empty:function(){for(var n=0,q;(q=this[n])!=null;n++)for(q.nodeType===1&&a.cleanData(q.getElementsByTagName("*"));q.firstChild;)q.removeChild(q.firstChild);return this},clone:function(n){var q=this.map(function(){if(!a.support.noCloneEvent&&!a.isXMLDoc(this)){var i=this.outerHTML,h=this.ownerDocument;if(!i){i=h.createElement("div");i.appendChild(this.cloneNode(true));i=i.innerHTML}return a.clean([i.replace(G,"").replace(o,'="$1">').replace(s,
|
100
|
+
"")],h)[0]}else return this.cloneNode(true)});if(n===true){r(this,q);r(this.find("*"),q.find("*"))}return q},html:function(n){if(n===H)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(G,""):null;else if(typeof n==="string"&&!j.test(n)&&(a.support.leadingWhitespace||!s.test(n))&&!x[(w.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(u,"<$1></$2>");try{for(var q=0,i=this.length;q<i;q++)if(this[q].nodeType===1){a.cleanData(this[q].getElementsByTagName("*"));this[q].innerHTML=n}}catch(h){this.empty().append(n)}}else a.isFunction(n)?
|
101
|
+
this.each(function(c){var e=a(this);e.html(n.call(this,c,e.html()))}):this.empty().append(n);return this},replaceWith:function(n){if(this[0]&&this[0].parentNode){if(a.isFunction(n))return this.each(function(q){var i=a(this),h=i.html();i.replaceWith(n.call(this,q,h))});if(typeof n!=="string")n=a(n).detach();return this.each(function(){var q=this.nextSibling,i=this.parentNode;a(this).remove();q?a(q).before(n):a(i).append(n)})}else return this.pushStack(a(a.isFunction(n)?n():n),"replaceWith",n)},detach:function(n){return this.remove(n,
|
102
|
+
true)},domManip:function(n,q,i){var h,c,e,b=n[0],d=[];if(!a.support.checkClone&&arguments.length===3&&typeof b==="string"&&m.test(b))return this.each(function(){a(this).domManip(n,q,i,true)});if(a.isFunction(b))return this.each(function(k){var p=a(this);n[0]=b.call(this,k,q?p.html():H);p.domManip(n,q,i)});if(this[0]){h=b&&b.parentNode;h=a.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?{fragment:h}:a.buildFragment(n,this,d);e=h.fragment;if(c=e.childNodes.length===1?e=e.firstChild:
|
103
|
+
e.firstChild){q=q&&a.nodeName(c,"tr");c=0;for(var g=this.length;c<g;c++)i.call(q?a.nodeName(this[c],"table")?this[c].getElementsByTagName("tbody")[0]||this[c].appendChild(this[c].ownerDocument.createElement("tbody")):this[c]:this[c],c>0||h.cacheable||this.length>1?e.cloneNode(true):e)}d.length&&a.each(d,F)}return this}});a.buildFragment=function(n,q,i){var h,c,e;q=q&&q[0]?q[0].ownerDocument||q[0]:B;if(n.length===1&&typeof n[0]==="string"&&n[0].length<512&&q===B&&!j.test(n[0])&&(a.support.checkClone||
|
104
|
+
!m.test(n[0]))){c=true;if(e=a.fragments[n[0]])if(e!==1)h=e}if(!h){h=q.createDocumentFragment();a.clean(n,q,h,i)}if(c)a.fragments[n[0]]=e?h:1;return{fragment:h,cacheable:c}};a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,q){a.fn[n]=function(i){var h=[];i=a(i);var c=this.length===1&&this[0].parentNode;if(c&&c.nodeType===11&&c.childNodes.length===1&&i.length===1){i[q](this[0]);return this}else{c=0;for(var e=
|
105
|
+
i.length;c<e;c++){var b=(c>0?this.clone(true):this).get();a(i[c])[q](b);h=h.concat(b)}return this.pushStack(h,n,i.selector)}}});a.extend({clean:function(n,q,i,h){q=q||B;if(typeof q.createElement==="undefined")q=q.ownerDocument||q[0]&&q[0].ownerDocument||B;for(var c=[],e=0,b;(b=n[e])!=null;e++){if(typeof b==="number")b+="";if(b){if(typeof b==="string"&&!f.test(b))b=q.createTextNode(b);else if(typeof b==="string"){b=b.replace(u,"<$1></$2>");var d=(w.exec(b)||["",""])[1].toLowerCase(),g=x[d]||x._default,
|
106
|
+
k=g[0],p=q.createElement("div");for(p.innerHTML=g[1]+b+g[2];k--;)p=p.lastChild;if(!a.support.tbody){k=v.test(b);d=d==="table"&&!k?p.firstChild&&p.firstChild.childNodes:g[1]==="<table>"&&!k?p.childNodes:[];for(g=d.length-1;g>=0;--g)a.nodeName(d[g],"tbody")&&!d[g].childNodes.length&&d[g].parentNode.removeChild(d[g])}!a.support.leadingWhitespace&&s.test(b)&&p.insertBefore(q.createTextNode(s.exec(b)[0]),p.firstChild);b=p.childNodes}if(b.nodeType)c.push(b);else c=a.merge(c,b)}}if(i)for(e=0;c[e];e++)if(h&&
|
107
|
+
a.nodeName(c[e],"script")&&(!c[e].type||c[e].type.toLowerCase()==="text/javascript"))h.push(c[e].parentNode?c[e].parentNode.removeChild(c[e]):c[e]);else{c[e].nodeType===1&&c.splice.apply(c,[e+1,0].concat(a.makeArray(c[e].getElementsByTagName("script"))));i.appendChild(c[e])}return c},cleanData:function(n){for(var q,i,h=a.cache,c=a.event.special,e=a.support.deleteExpando,b=0,d;(d=n[b])!=null;b++)if(!(d.nodeName&&a.noData[d.nodeName.toLowerCase()]))if(i=d[a.expando]){if((q=h[i])&&q.events)for(var g in q.events)c[g]?
|
108
|
+
a.event.remove(d,g):a.removeEvent(d,g,q.handle);if(e)delete d[a.expando];else d.removeAttribute&&d.removeAttribute(a.expando);delete h[i]}}})})(O);(function(a){function r(i,h,c){var e=h==="width"?i.offsetWidth:i.offsetHeight;if(c==="border")return e;a.each(h==="width"?j:m,function(){c||(e-=parseFloat(a.css(i,"padding"+this))||0);if(c==="margin")e+=parseFloat(a.css(i,"margin"+this))||0;else e-=parseFloat(a.css(i,"border"+this+"Width"))||0});return e}var F=/alpha\([^)]*\)/i,G=/opacity=([^)]*)/,s=/-([a-z])/ig,
|
109
|
+
u=/([A-Z])/g,w=/^-?\d+(?:px)?$/i,v=/^-?\d/,f={position:"absolute",visibility:"hidden",display:"block"},j=["Left","Right"],m=["Top","Bottom"],o,x,n,q=function(i,h){return h.toUpperCase()};a.fn.css=function(i,h){if(arguments.length===2&&h===H)return this;return a.access(this,i,h,true,function(c,e,b){return b!==H?a.style(c,e,b):a.css(c,e)})};a.extend({cssHooks:{opacity:{get:function(i,h){if(h){var c=o(i,"opacity","opacity");return c===""?"1":c}else return i.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,
|
110
|
+
opacity:true,zoom:true,lineHeight:true},cssProps:{"float":a.support.cssFloat?"cssFloat":"styleFloat"},style:function(i,h,c,e){if(!(!i||i.nodeType===3||i.nodeType===8||!i.style)){var b,d=a.camelCase(h),g=i.style,k=a.cssHooks[d];h=a.cssProps[d]||d;if(c!==H){if(!(typeof c==="number"&&isNaN(c)||c==null)){if(typeof c==="number"&&!a.cssNumber[d])c+="px";if(!k||!("set"in k)||(c=k.set(i,c))!==H)try{g[h]=c}catch(p){}}}else{if(k&&"get"in k&&(b=k.get(i,false,e))!==H)return b;return g[h]}}},css:function(i,h,
|
111
|
+
c){var e,b=a.camelCase(h),d=a.cssHooks[b];h=a.cssProps[b]||b;if(d&&"get"in d&&(e=d.get(i,true,c))!==H)return e;else if(o)return o(i,h,b)},swap:function(i,h,c){var e={},b;for(b in h){e[b]=i.style[b];i.style[b]=h[b]}c.call(i);for(b in h)i.style[b]=e[b]},camelCase:function(i){return i.replace(s,q)}});a.curCSS=a.css;a.each(["height","width"],function(i,h){a.cssHooks[h]={get:function(c,e,b){var d;if(e){if(c.offsetWidth!==0)d=r(c,h,b);else a.swap(c,f,function(){d=r(c,h,b)});if(d<=0){d=o(c,h,h);if(d==="0px"&&
|
112
|
+
n)d=n(c,h,h);if(d!=null)return d===""||d==="auto"?"0px":d}if(d<0||d==null){d=c.style[h];return d===""||d==="auto"?"0px":d}return typeof d==="string"?d:d+"px"}},set:function(c,e){if(w.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!a.support.opacity)a.cssHooks.opacity={get:function(i,h){return G.test((h&&i.currentStyle?i.currentStyle.filter:i.style.filter)||"")?parseFloat(RegExp.$1)/100+"":h?"1":""},set:function(i,h){var c=i.style;c.zoom=1;var e=a.isNaN(h)?"":"alpha(opacity="+
|
113
|
+
h*100+")",b=c.filter||"";c.filter=F.test(b)?b.replace(F,e):c.filter+" "+e}};if(B.defaultView&&B.defaultView.getComputedStyle)x=function(i,h,c){var e;c=c.replace(u,"-$1").toLowerCase();if(!(h=i.ownerDocument.defaultView))return H;if(h=h.getComputedStyle(i,null)){e=h.getPropertyValue(c);if(e===""&&!a.contains(i.ownerDocument.documentElement,i))e=a.style(i,c)}return e};if(B.documentElement.currentStyle)n=function(i,h){var c,e,b=i.currentStyle&&i.currentStyle[h],d=i.style;if(!w.test(b)&&v.test(b)){c=
|
114
|
+
d.left;e=i.runtimeStyle.left;i.runtimeStyle.left=i.currentStyle.left;d.left=h==="fontSize"?"1em":b||0;b=d.pixelLeft+"px";d.left=c;i.runtimeStyle.left=e}return b===""?"auto":b};o=x||n;if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(i){var h=i.offsetHeight;return i.offsetWidth===0&&h===0||!a.support.reliableHiddenOffsets&&(i.style.display||a.css(i,"display"))==="none"};a.expr.filters.visible=function(i){return!a.expr.filters.hidden(i)}}})(O);(function(a){function r(i,h,c,e){if(a.isArray(h)&&
|
115
|
+
h.length)a.each(h,function(b,d){c||v.test(i)?e(i,d):r(i+"["+(typeof d==="object"||a.isArray(d)?b:"")+"]",d,c,e)});else if(!c&&h!=null&&typeof h==="object")a.isEmptyObject(h)?e(i,""):a.each(h,function(b,d){r(i+"["+b+"]",d,c,e)});else e(i,h)}var F=a.now(),G=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,s=/^(?:select|textarea)/i,u=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,w=/^(?:GET|HEAD)$/,v=/\[\]$/,f=/\=\?(&|$)/,j=/\?/,m=/([?&])_=[^&]*/,
|
116
|
+
o=/^(\w+:)?\/\/([^\/?#]+)/,x=/%20/g,n=/#.*$/,q=a.fn.load;a.fn.extend({load:function(i,h,c){if(typeof i!=="string"&&q)return q.apply(this,arguments);else if(!this.length)return this;var e=i.indexOf(" ");if(e>=0){var b=i.slice(e,i.length);i=i.slice(0,e)}e="GET";if(h)if(a.isFunction(h)){c=h;h=null}else if(typeof h==="object"){h=a.param(h,a.ajaxSettings.traditional);e="POST"}var d=this;a.ajax({url:i,type:e,dataType:"html",data:h,complete:function(g,k){if(k==="success"||k==="notmodified")d.html(b?a("<div>").append(g.responseText.replace(G,
|
117
|
+
"")).find(b):g.responseText);c&&d.each(c,[g.responseText,k,g])}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||s.test(this.nodeName)||u.test(this.type))}).map(function(i,h){var c=a(this).val();return c==null?null:a.isArray(c)?a.map(c,function(e){return{name:h.name,value:e}}):{name:h.name,value:c}}).get()}});
|
118
|
+
a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(i,h){a.fn[h]=function(c){return this.bind(h,c)}});a.extend({get:function(i,h,c,e){if(a.isFunction(h)){e=e||c;c=h;h=null}return a.ajax({type:"GET",url:i,data:h,success:c,dataType:e})},getScript:function(i,h){return a.get(i,null,h,"script")},getJSON:function(i,h,c){return a.get(i,h,c,"json")},post:function(i,h,c,e){if(a.isFunction(h)){e=e||c;c=h;h={}}return a.ajax({type:"POST",url:i,data:h,success:c,dataType:e})},
|
119
|
+
ajaxSetup:function(i){a.extend(a.ajaxSettings,i)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new M.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(i){var h=a.extend(true,{},a.ajaxSettings,i),c,e,b,d=h.type.toUpperCase(),g=w.test(d);
|
120
|
+
h.url=h.url.replace(n,"");h.context=i&&i.context!=null?i.context:h;if(h.data&&h.processData&&typeof h.data!=="string")h.data=a.param(h.data,h.traditional);if(h.dataType==="jsonp"){if(d==="GET")f.test(h.url)||(h.url+=(j.test(h.url)?"&":"?")+(h.jsonp||"callback")+"=?");else if(!h.data||!f.test(h.data))h.data=(h.data?h.data+"&":"")+(h.jsonp||"callback")+"=?";h.dataType="json"}if(h.dataType==="json"&&(h.data&&f.test(h.data)||f.test(h.url))){c=h.jsonpCallback||"jsonp"+F++;if(h.data)h.data=(h.data+"").replace(f,
|
121
|
+
"="+c+"$1");h.url=h.url.replace(f,"="+c+"$1");h.dataType="script";var k=M[c];M[c]=function(K){if(a.isFunction(k))k(K);else{M[c]=H;try{delete M[c]}catch(L){}}b=K;a.handleSuccess(h,z,e,b);a.handleComplete(h,z,e,b);A&&A.removeChild(E)}}if(h.dataType==="script"&&h.cache===null)h.cache=false;if(h.cache===false&&g){var p=a.now(),t=h.url.replace(m,"$1_="+p);h.url=t+(t===h.url?(j.test(h.url)?"&":"?")+"_="+p:"")}if(h.data&&g)h.url+=(j.test(h.url)?"&":"?")+h.data;h.global&&a.active++===0&&a.event.trigger("ajaxStart");
|
122
|
+
p=(p=o.exec(h.url))&&(p[1]&&p[1].toLowerCase()!==location.protocol||p[2].toLowerCase()!==location.host);if(h.dataType==="script"&&d==="GET"&&p){var A=B.getElementsByTagName("head")[0]||B.documentElement,E=B.createElement("script");if(h.scriptCharset)E.charset=h.scriptCharset;E.src=h.url;if(!c){var I=false;E.onload=E.onreadystatechange=function(){if(!I&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){I=true;a.handleSuccess(h,z,e,b);a.handleComplete(h,z,e,b);E.onload=E.onreadystatechange=
|
123
|
+
null;A&&E.parentNode&&A.removeChild(E)}}}A.insertBefore(E,A.firstChild);return H}var J=false,z=h.xhr();if(z){h.username?z.open(d,h.url,h.async,h.username,h.password):z.open(d,h.url,h.async);try{if(h.data!=null&&!g||i&&i.contentType)z.setRequestHeader("Content-Type",h.contentType);if(h.ifModified){a.lastModified[h.url]&&z.setRequestHeader("If-Modified-Since",a.lastModified[h.url]);a.etag[h.url]&&z.setRequestHeader("If-None-Match",a.etag[h.url])}p||z.setRequestHeader("X-Requested-With","XMLHttpRequest");
|
124
|
+
z.setRequestHeader("Accept",h.dataType&&h.accepts[h.dataType]?h.accepts[h.dataType]+", */*; q=0.01":h.accepts._default)}catch(N){}if(h.beforeSend&&h.beforeSend.call(h.context,z,h)===false){h.global&&a.active--===1&&a.event.trigger("ajaxStop");z.abort();return false}h.global&&a.triggerGlobal(h,"ajaxSend",[z,h]);var l=z.onreadystatechange=function(K){if(!z||z.readyState===0||K==="abort"){J||a.handleComplete(h,z,e,b);J=true;if(z)z.onreadystatechange=a.noop}else if(!J&&z&&(z.readyState===4||K==="timeout")){J=
|
125
|
+
true;z.onreadystatechange=a.noop;e=K==="timeout"?"timeout":!a.httpSuccess(z)?"error":h.ifModified&&a.httpNotModified(z,h.url)?"notmodified":"success";var L;if(e==="success")try{b=a.httpData(z,h.dataType,h)}catch(P){e="parsererror";L=P}if(e==="success"||e==="notmodified")c||a.handleSuccess(h,z,e,b);else a.handleError(h,z,e,L);c||a.handleComplete(h,z,e,b);K==="timeout"&&z.abort();if(h.async)z=null}};try{var y=z.abort;z.abort=function(){z&&Function.prototype.call.call(y,z);l("abort")}}catch(C){}h.async&&
|
126
|
+
h.timeout>0&&setTimeout(function(){z&&!J&&l("timeout")},h.timeout);try{z.send(g||h.data==null?null:h.data)}catch(D){a.handleError(h,z,null,D);a.handleComplete(h,z,e,b)}h.async||l();return z}},param:function(i,h){var c=[],e=function(d,g){g=a.isFunction(g)?g():g;c[c.length]=encodeURIComponent(d)+"="+encodeURIComponent(g)};if(h===H)h=a.ajaxSettings.traditional;if(a.isArray(i)||i.jquery)a.each(i,function(){e(this.name,this.value)});else for(var b in i)r(b,i[b],h,e);return c.join("&").replace(x,"+")}});
|
127
|
+
a.extend({active:0,lastModified:{},etag:{},handleError:function(i,h,c,e){i.error&&i.error.call(i.context,h,c,e);i.global&&a.triggerGlobal(i,"ajaxError",[h,i,e])},handleSuccess:function(i,h,c,e){i.success&&i.success.call(i.context,e,c,h);i.global&&a.triggerGlobal(i,"ajaxSuccess",[h,i])},handleComplete:function(i,h,c){i.complete&&i.complete.call(i.context,h,c);i.global&&a.triggerGlobal(i,"ajaxComplete",[h,i]);i.global&&a.active--===1&&a.event.trigger("ajaxStop")},triggerGlobal:function(i,h,c){(i.context&&
|
128
|
+
i.context.url==null?a(i.context):a.event).trigger(h,c)},httpSuccess:function(i){try{return!i.status&&location.protocol==="file:"||i.status>=200&&i.status<300||i.status===304||i.status===1223}catch(h){}return false},httpNotModified:function(i,h){var c=i.getResponseHeader("Last-Modified"),e=i.getResponseHeader("Etag");if(c)a.lastModified[h]=c;if(e)a.etag[h]=e;return i.status===304},httpData:function(i,h,c){var e=i.getResponseHeader("content-type")||"",b=h==="xml"||!h&&e.indexOf("xml")>=0;i=b?i.responseXML:
|
129
|
+
i.responseText;b&&i.documentElement.nodeName==="parsererror"&&a.error("parsererror");if(c&&c.dataFilter)i=c.dataFilter(i,h);if(typeof i==="string")if(h==="json"||!h&&e.indexOf("json")>=0)i=a.parseJSON(i);else if(h==="script"||!h&&e.indexOf("javascript")>=0)a.globalEval(i);return i}});if(M.ActiveXObject)a.ajaxSettings.xhr=function(){if(M.location.protocol!=="file:")try{return new M.XMLHttpRequest}catch(i){}try{return new M.ActiveXObject("Microsoft.XMLHTTP")}catch(h){}};a.support.ajax=!!a.ajaxSettings.xhr()})(O);
|
130
|
+
(function(a){function r(f,j){var m={};a.each(v.concat.apply([],v.slice(0,j)),function(){m[this]=f});return m}function F(f){if(!G[f]){var j=a("<"+f+">").appendTo("body"),m=j.css("display");j.remove();if(m==="none"||m==="")m="block";G[f]=m}return G[f]}var G={},s=/^(?:toggle|show|hide)$/,u=/^([+\-]=)?([\d+.\-]+)(.*)$/,w,v=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];a.fn.extend({show:function(f,j,m){if(f||
|
131
|
+
f===0)return this.animate(r("show",3),f,j,m);else{m=0;for(var o=this.length;m<o;m++){f=this[m];j=f.style.display;if(!a.data(f,"olddisplay")&&j==="none")j=f.style.display="";j===""&&a.css(f,"display")==="none"&&a.data(f,"olddisplay",F(f.nodeName))}for(m=0;m<o;m++){f=this[m];j=f.style.display;if(j===""||j==="none")f.style.display=a.data(f,"olddisplay")||""}return this}},hide:function(f,j,m){if(f||f===0)return this.animate(r("hide",3),f,j,m);else{f=0;for(j=this.length;f<j;f++){m=a.css(this[f],"display");
|
132
|
+
m!=="none"&&a.data(this[f],"olddisplay",m)}for(f=0;f<j;f++)this[f].style.display="none";return this}},_toggle:a.fn.toggle,toggle:function(f,j,m){var o=typeof f==="boolean";if(a.isFunction(f)&&a.isFunction(j))this._toggle.apply(this,arguments);else f==null||o?this.each(function(){var x=o?f:a(this).is(":hidden");a(this)[x?"show":"hide"]()}):this.animate(r("toggle",3),f,j,m);return this},fadeTo:function(f,j,m,o){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:j},f,m,o)},
|
133
|
+
animate:function(f,j,m,o){var x=a.speed(j,m,o);if(a.isEmptyObject(f))return this.each(x.complete);return this[x.queue===false?"each":"queue"](function(){var n=a.extend({},x),q,i=this.nodeType===1,h=i&&a(this).is(":hidden"),c=this;for(q in f){var e=a.camelCase(q);if(q!==e){f[e]=f[q];delete f[q];q=e}if(f[q]==="hide"&&h||f[q]==="show"&&!h)return n.complete.call(this);if(i&&(q==="height"||q==="width")){n.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(a.css(this,"display")===
|
134
|
+
"inline"&&a.css(this,"float")==="none")if(a.support.inlineBlockNeedsLayout)if(F(this.nodeName)==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(a.isArray(f[q])){(n.specialEasing=n.specialEasing||{})[q]=f[q][1];f[q]=f[q][0]}}if(n.overflow!=null)this.style.overflow="hidden";n.curAnim=a.extend({},f);a.each(f,function(b,d){var g=new a.fx(c,n,b);if(s.test(d))g[d==="toggle"?h?"show":"hide":d](f);else{var k=u.exec(d),
|
135
|
+
p=g.cur()||0;if(k){var t=parseFloat(k[2]),A=k[3]||"px";if(A!=="px"){a.style(c,b,(t||1)+A);p=(t||1)/g.cur()*p;a.style(c,b,p+A)}if(k[1])t=(k[1]==="-="?-1:1)*t+p;g.custom(p,t,A)}else g.custom(p,d,"")}});return true})},stop:function(f,j){var m=a.timers;f&&this.queue([]);this.each(function(){for(var o=m.length-1;o>=0;o--)if(m[o].elem===this){j&&m[o](true);m.splice(o,1)}});j||this.dequeue();return this}});a.each({slideDown:r("show",1),slideUp:r("hide",1),slideToggle:r("toggle",1),fadeIn:{opacity:"show"},
|
136
|
+
fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(f,j){a.fn[f]=function(m,o,x){return this.animate(j,m,o,x)}});a.extend({speed:function(f,j,m){var o=f&&typeof f==="object"?a.extend({},f):{complete:m||!m&&j||a.isFunction(f)&&f,duration:f,easing:m&&j||j&&!a.isFunction(j)&&j};o.duration=a.fx.off?0:typeof o.duration==="number"?o.duration:o.duration in a.fx.speeds?a.fx.speeds[o.duration]:a.fx.speeds._default;o.old=o.complete;o.complete=function(){o.queue!==false&&a(this).dequeue();a.isFunction(o.old)&&
|
137
|
+
o.old.call(this)};return o},easing:{linear:function(f,j,m,o){return m+o*f},swing:function(f,j,m,o){return(-Math.cos(f*Math.PI)/2+0.5)*o+m}},timers:[],fx:function(f,j,m){this.options=j;this.elem=f;this.prop=m;if(!j.orig)j.orig={}}});a.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(a.fx.step[this.prop]||a.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];
|
138
|
+
var f=parseFloat(a.css(this.elem,this.prop));return f&&f>-1E4?f:0},custom:function(f,j,m){function o(q){return x.step(q)}var x=this,n=a.fx;this.startTime=a.now();this.start=f;this.end=j;this.unit=m||this.unit||"px";this.now=this.start;this.pos=this.state=0;o.elem=this.elem;if(o()&&a.timers.push(o)&&!w)w=setInterval(n.tick,n.interval)},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());
|
139
|
+
a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(f){var j=a.now(),m=true;if(f||j>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var o in this.options.curAnim)if(this.options.curAnim[o]!==true)m=false;if(m){if(this.options.overflow!=null&&!a.support.shrinkWrapBlocks){var x=this.elem,n=this.options;a.each(["",
|
140
|
+
"X","Y"],function(i,h){x.style["overflow"+h]=n.overflow[i]})}this.options.hide&&a(this.elem).hide();if(this.options.hide||this.options.show)for(var q in this.options.curAnim)a.style(this.elem,q,this.options.orig[q]);this.options.complete.call(this.elem)}return false}else{f=j-this.startTime;this.state=f/this.options.duration;j=this.options.easing||(a.easing.swing?"swing":"linear");this.pos=a.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||j](this.state,f,0,1,this.options.duration);
|
141
|
+
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};a.extend(a.fx,{tick:function(){for(var f=a.timers,j=0;j<f.length;j++)f[j]()||f.splice(j--,1);f.length||a.fx.stop()},interval:13,stop:function(){clearInterval(w);w=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(f){a.style(f.elem,"opacity",f.now)},_default:function(f){if(f.elem.style&&f.elem.style[f.prop]!=null)f.elem.style[f.prop]=(f.prop==="width"||f.prop==="height"?Math.max(0,f.now):f.now)+f.unit;
|
142
|
+
else f.elem[f.prop]=f.now}}});if(a.expr&&a.expr.filters)a.expr.filters.animated=function(f){return a.grep(a.timers,function(j){return f===j.elem}).length}})(O);(function(a){function r(s){return a.isWindow(s)?s:s.nodeType===9?s.defaultView||s.parentWindow:false}var F=/^t(?:able|d|h)$/i,G=/^(?:body|html)$/i;a.fn.offset="getBoundingClientRect"in B.documentElement?function(s){var u=this[0],w;if(s)return this.each(function(m){a.offset.setOffset(this,s,m)});if(!u||!u.ownerDocument)return null;if(u===u.ownerDocument.body)return a.offset.bodyOffset(u);
|
143
|
+
try{w=u.getBoundingClientRect()}catch(v){}var f=u.ownerDocument,j=f.documentElement;if(!w||!a.contains(j,u))return w||{top:0,left:0};u=f.body;f=r(f);return{top:w.top+(f.pageYOffset||a.support.boxModel&&j.scrollTop||u.scrollTop)-(j.clientTop||u.clientTop||0),left:w.left+(f.pageXOffset||a.support.boxModel&&j.scrollLeft||u.scrollLeft)-(j.clientLeft||u.clientLeft||0)}}:function(s){var u=this[0];if(s)return this.each(function(n){a.offset.setOffset(this,s,n)});if(!u||!u.ownerDocument)return null;if(u===
|
144
|
+
u.ownerDocument.body)return a.offset.bodyOffset(u);a.offset.initialize();var w,v=u.offsetParent,f=u.ownerDocument,j=f.documentElement,m=f.body;w=(f=f.defaultView)?f.getComputedStyle(u,null):u.currentStyle;for(var o=u.offsetTop,x=u.offsetLeft;(u=u.parentNode)&&u!==m&&u!==j;){if(a.offset.supportsFixedPosition&&w.position==="fixed")break;w=f?f.getComputedStyle(u,null):u.currentStyle;o-=u.scrollTop;x-=u.scrollLeft;if(u===v){o+=u.offsetTop;x+=u.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&
|
145
|
+
F.test(u.nodeName))){o+=parseFloat(w.borderTopWidth)||0;x+=parseFloat(w.borderLeftWidth)||0}v=u.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&w.overflow!=="visible"){o+=parseFloat(w.borderTopWidth)||0;x+=parseFloat(w.borderLeftWidth)||0}w=w}if(w.position==="relative"||w.position==="static"){o+=m.offsetTop;x+=m.offsetLeft}if(a.offset.supportsFixedPosition&&w.position==="fixed"){o+=Math.max(j.scrollTop,m.scrollTop);x+=Math.max(j.scrollLeft,m.scrollLeft)}return{top:o,left:x}};a.offset=
|
146
|
+
{initialize:function(){var s=B.body,u=B.createElement("div"),w,v,f,j=parseFloat(a.css(s,"marginTop"))||0;a.extend(u.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});u.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
|
147
|
+
s.insertBefore(u,s.firstChild);w=u.firstChild;v=w.firstChild;f=w.nextSibling.firstChild.firstChild;this.doesNotAddBorder=v.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;v.style.position="fixed";v.style.top="20px";this.supportsFixedPosition=v.offsetTop===20||v.offsetTop===15;v.style.position=v.style.top="";w.style.overflow="hidden";w.style.position="relative";this.subtractsBorderForOverflowNotVisible=v.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=s.offsetTop!==j;s.removeChild(u);
|
148
|
+
a.offset.initialize=a.noop},bodyOffset:function(s){var u=s.offsetTop,w=s.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){u+=parseFloat(a.css(s,"marginTop"))||0;w+=parseFloat(a.css(s,"marginLeft"))||0}return{top:u,left:w}},setOffset:function(s,u,w){var v=a.css(s,"position");if(v==="static")s.style.position="relative";var f=a(s),j=f.offset(),m=a.css(s,"top"),o=a.css(s,"left"),x=v==="absolute"&&a.inArray("auto",[m,o])>-1;v={};var n={};if(x)n=f.position();m=x?n.top:parseInt(m,
|
149
|
+
10)||0;o=x?n.left:parseInt(o,10)||0;if(a.isFunction(u))u=u.call(s,w,j);if(u.top!=null)v.top=u.top-j.top+m;if(u.left!=null)v.left=u.left-j.left+o;"using"in u?u.using.call(s,v):f.css(v)}};a.fn.extend({position:function(){if(!this[0])return null;var s=this[0],u=this.offsetParent(),w=this.offset(),v=G.test(u[0].nodeName)?{top:0,left:0}:u.offset();w.top-=parseFloat(a.css(s,"marginTop"))||0;w.left-=parseFloat(a.css(s,"marginLeft"))||0;v.top+=parseFloat(a.css(u[0],"borderTopWidth"))||0;v.left+=parseFloat(a.css(u[0],
|
150
|
+
"borderLeftWidth"))||0;return{top:w.top-v.top,left:w.left-v.left}},offsetParent:function(){return this.map(function(){for(var s=this.offsetParent||B.body;s&&!G.test(s.nodeName)&&a.css(s,"position")==="static";)s=s.offsetParent;return s})}});a.each(["Left","Top"],function(s,u){var w="scroll"+u;a.fn[w]=function(v){var f=this[0],j;if(!f)return null;if(v!==H)return this.each(function(){if(j=r(this))j.scrollTo(!s?v:a(j).scrollLeft(),s?v:a(j).scrollTop());else this[w]=v});else return(j=r(f))?"pageXOffset"in
|
151
|
+
j?j[s?"pageYOffset":"pageXOffset"]:a.support.boxModel&&j.document.documentElement[w]||j.document.body[w]:f[w]}})})(O);(function(a){a.each(["Height","Width"],function(r,F){var G=F.toLowerCase();a.fn["inner"+F]=function(){return this[0]?parseFloat(a.css(this[0],G,"padding")):null};a.fn["outer"+F]=function(s){return this[0]?parseFloat(a.css(this[0],G,s?"margin":"border")):null};a.fn[G]=function(s){var u=this[0];if(!u)return s==null?null:this;if(a.isFunction(s))return this.each(function(v){var f=a(this);
|
152
|
+
f[G](s.call(this,v,f[G]()))});if(a.isWindow(u))return u.document.compatMode==="CSS1Compat"&&u.document.documentElement["client"+F]||u.document.body["client"+F];else if(u.nodeType===9)return Math.max(u.documentElement["client"+F],u.body["scroll"+F],u.documentElement["scroll"+F],u.body["offset"+F],u.documentElement["offset"+F]);else if(s===H){u=a.css(u,G);var w=parseFloat(u);return a.isNaN(w)?u:w}else return this.css(G,typeof s==="string"?s:s+"px")}})})(O)})(window);
|
@@ -0,0 +1,489 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery Templates Plugin
|
3
|
+
* http://github.com/jquery/jquery-tmpl
|
4
|
+
*
|
5
|
+
* Copyright Software Freedom Conservancy, Inc.
|
6
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
7
|
+
* http://jquery.org/license
|
8
|
+
*/
|
9
|
+
(function( jQuery, undefined ){
|
10
|
+
var oldManip = jQuery.fn.domManip, tmplItmAtt = "_tmplitem", htmlExpr = /^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,
|
11
|
+
newTmplItems = {}, wrappedItems = {}, appendToTmplItems, topTmplItem = { key: 0, data: {} }, itemKey = 0, cloneIndex = 0, stack = [];
|
12
|
+
|
13
|
+
function newTmplItem( options, parentItem, fn, data ) {
|
14
|
+
// Returns a template item data structure for a new rendered instance of a template (a 'template item').
|
15
|
+
// The content field is a hierarchical array of strings and nested items (to be
|
16
|
+
// removed and replaced by nodes field of dom elements, once inserted in DOM).
|
17
|
+
var newItem = {
|
18
|
+
data: data || (parentItem ? parentItem.data : {}),
|
19
|
+
_wrap: parentItem ? parentItem._wrap : null,
|
20
|
+
tmpl: null,
|
21
|
+
parent: parentItem || null,
|
22
|
+
nodes: [],
|
23
|
+
calls: tiCalls,
|
24
|
+
nest: tiNest,
|
25
|
+
wrap: tiWrap,
|
26
|
+
html: tiHtml,
|
27
|
+
update: tiUpdate
|
28
|
+
};
|
29
|
+
if ( options ) {
|
30
|
+
jQuery.extend( newItem, options, { nodes: [], parent: parentItem } );
|
31
|
+
}
|
32
|
+
if ( fn ) {
|
33
|
+
// Build the hierarchical content to be used during insertion into DOM
|
34
|
+
newItem.tmpl = fn;
|
35
|
+
newItem._ctnt = newItem._ctnt || newItem.tmpl( jQuery, newItem );
|
36
|
+
newItem.key = ++itemKey;
|
37
|
+
// Keep track of new template item, until it is stored as jQuery Data on DOM element
|
38
|
+
(stack.length ? wrappedItems : newTmplItems)[itemKey] = newItem;
|
39
|
+
}
|
40
|
+
return newItem;
|
41
|
+
}
|
42
|
+
|
43
|
+
// Override appendTo etc., in order to provide support for targeting multiple elements. (This code would disappear if integrated in jquery core).
|
44
|
+
jQuery.each({
|
45
|
+
appendTo: "append",
|
46
|
+
prependTo: "prepend",
|
47
|
+
insertBefore: "before",
|
48
|
+
insertAfter: "after",
|
49
|
+
replaceAll: "replaceWith"
|
50
|
+
}, function( name, original ) {
|
51
|
+
jQuery.fn[ name ] = function( selector ) {
|
52
|
+
var ret = [], insert = jQuery( selector ), elems, i, l, tmplItems,
|
53
|
+
parent = this.length === 1 && this[0].parentNode;
|
54
|
+
|
55
|
+
appendToTmplItems = newTmplItems || {};
|
56
|
+
if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
|
57
|
+
insert[ original ]( this[0] );
|
58
|
+
ret = this;
|
59
|
+
} else {
|
60
|
+
for ( i = 0, l = insert.length; i < l; i++ ) {
|
61
|
+
cloneIndex = i;
|
62
|
+
elems = (i > 0 ? this.clone(true) : this).get();
|
63
|
+
jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
|
64
|
+
ret = ret.concat( elems );
|
65
|
+
}
|
66
|
+
cloneIndex = 0;
|
67
|
+
ret = this.pushStack( ret, name, insert.selector );
|
68
|
+
}
|
69
|
+
tmplItems = appendToTmplItems;
|
70
|
+
appendToTmplItems = null;
|
71
|
+
jQuery.tmpl.complete( tmplItems );
|
72
|
+
return ret;
|
73
|
+
};
|
74
|
+
});
|
75
|
+
|
76
|
+
jQuery.fn.extend({
|
77
|
+
// Use first wrapped element as template markup.
|
78
|
+
// Return wrapped set of template items, obtained by rendering template against data.
|
79
|
+
tmpl: function( data, options, parentItem ) {
|
80
|
+
return jQuery.tmpl( this[0], data, options, parentItem );
|
81
|
+
},
|
82
|
+
|
83
|
+
// Find which rendered template item the first wrapped DOM element belongs to
|
84
|
+
tmplItem: function() {
|
85
|
+
return jQuery.tmplItem( this[0] );
|
86
|
+
},
|
87
|
+
|
88
|
+
// Consider the first wrapped element as a template declaration, and get the compiled template or store it as a named template.
|
89
|
+
template: function( name ) {
|
90
|
+
return jQuery.template( name, this[0] );
|
91
|
+
},
|
92
|
+
|
93
|
+
domManip: function( args, table, callback, options ) {
|
94
|
+
// This appears to be a bug in the appendTo, etc. implementation
|
95
|
+
// it should be doing .call() instead of .apply(). See #6227
|
96
|
+
if ( args[0] && args[0].nodeType ) {
|
97
|
+
var dmArgs = jQuery.makeArray( arguments ), argsLength = args.length, i = 0, tmplItem;
|
98
|
+
while ( i < argsLength && !(tmplItem = jQuery.data( args[i++], "tmplItem" ))) {}
|
99
|
+
if ( argsLength > 1 ) {
|
100
|
+
dmArgs[0] = [jQuery.makeArray( args )];
|
101
|
+
}
|
102
|
+
if ( tmplItem && cloneIndex ) {
|
103
|
+
dmArgs[2] = function( fragClone ) {
|
104
|
+
// Handler called by oldManip when rendered template has been inserted into DOM.
|
105
|
+
jQuery.tmpl.afterManip( this, fragClone, callback );
|
106
|
+
};
|
107
|
+
}
|
108
|
+
oldManip.apply( this, dmArgs );
|
109
|
+
} else {
|
110
|
+
oldManip.apply( this, arguments );
|
111
|
+
}
|
112
|
+
cloneIndex = 0;
|
113
|
+
if ( !appendToTmplItems ) {
|
114
|
+
jQuery.tmpl.complete( newTmplItems );
|
115
|
+
}
|
116
|
+
return this;
|
117
|
+
}
|
118
|
+
});
|
119
|
+
|
120
|
+
jQuery.extend({
|
121
|
+
// Return wrapped set of template items, obtained by rendering template against data.
|
122
|
+
tmpl: function( tmpl, data, options, parentItem ) {
|
123
|
+
var ret, topLevel = !parentItem;
|
124
|
+
if ( topLevel ) {
|
125
|
+
// This is a top-level tmpl call (not from a nested template using {{tmpl}})
|
126
|
+
parentItem = topTmplItem;
|
127
|
+
tmpl = jQuery.template[tmpl] || jQuery.template( null, tmpl );
|
128
|
+
wrappedItems = {}; // Any wrapped items will be rebuilt, since this is top level
|
129
|
+
} else if ( !tmpl ) {
|
130
|
+
// The template item is already associated with DOM - this is a refresh.
|
131
|
+
// Re-evaluate rendered template for the parentItem
|
132
|
+
tmpl = parentItem.tmpl;
|
133
|
+
newTmplItems[parentItem.key] = parentItem;
|
134
|
+
parentItem.nodes = [];
|
135
|
+
if ( parentItem.wrapped ) {
|
136
|
+
updateWrapped( parentItem, parentItem.wrapped );
|
137
|
+
}
|
138
|
+
// Rebuild, without creating a new template item
|
139
|
+
return jQuery( build( parentItem, null, parentItem.tmpl( jQuery, parentItem ) ));
|
140
|
+
}
|
141
|
+
if ( !tmpl ) {
|
142
|
+
return []; // Could throw...
|
143
|
+
}
|
144
|
+
if ( typeof data === "function" ) {
|
145
|
+
data = data.call( parentItem || {} );
|
146
|
+
}
|
147
|
+
if ( options && options.wrapped ) {
|
148
|
+
updateWrapped( options, options.wrapped );
|
149
|
+
}
|
150
|
+
ret = jQuery.isArray( data ) ?
|
151
|
+
jQuery.map( data, function( dataItem ) {
|
152
|
+
return dataItem ? newTmplItem( options, parentItem, tmpl, dataItem ) : null;
|
153
|
+
}) :
|
154
|
+
[ newTmplItem( options, parentItem, tmpl, data ) ];
|
155
|
+
return topLevel ? jQuery( build( parentItem, null, ret ) ) : ret;
|
156
|
+
},
|
157
|
+
|
158
|
+
// Return rendered template item for an element.
|
159
|
+
tmplItem: function( elem ) {
|
160
|
+
var tmplItem;
|
161
|
+
if ( elem instanceof jQuery ) {
|
162
|
+
elem = elem[0];
|
163
|
+
}
|
164
|
+
while ( elem && elem.nodeType === 1 && !(tmplItem = jQuery.data( elem, "tmplItem" )) && (elem = elem.parentNode) ) {}
|
165
|
+
return tmplItem || topTmplItem;
|
166
|
+
},
|
167
|
+
|
168
|
+
// Set:
|
169
|
+
// Use $.template( name, tmpl ) to cache a named template,
|
170
|
+
// where tmpl is a template string, a script element or a jQuery instance wrapping a script element, etc.
|
171
|
+
// Use $( "selector" ).template( name ) to provide access by name to a script block template declaration.
|
172
|
+
|
173
|
+
// Get:
|
174
|
+
// Use $.template( name ) to access a cached template.
|
175
|
+
// Also $( selectorToScriptBlock ).template(), or $.template( null, templateString )
|
176
|
+
// will return the compiled template, without adding a name reference.
|
177
|
+
// If templateString includes at least one HTML tag, $.template( templateString ) is equivalent
|
178
|
+
// to $.template( null, templateString )
|
179
|
+
template: function( name, tmpl ) {
|
180
|
+
if (tmpl) {
|
181
|
+
// Compile template and associate with name
|
182
|
+
if ( typeof tmpl === "string" ) {
|
183
|
+
// This is an HTML string being passed directly in.
|
184
|
+
tmpl = buildTmplFn( tmpl )
|
185
|
+
} else if ( tmpl instanceof jQuery ) {
|
186
|
+
tmpl = tmpl[0] || {};
|
187
|
+
}
|
188
|
+
if ( tmpl.nodeType ) {
|
189
|
+
// If this is a template block, use cached copy, or generate tmpl function and cache.
|
190
|
+
tmpl = jQuery.data( tmpl, "tmpl" ) || jQuery.data( tmpl, "tmpl", buildTmplFn( tmpl.innerHTML ));
|
191
|
+
}
|
192
|
+
return typeof name === "string" ? (jQuery.template[name] = tmpl) : tmpl;
|
193
|
+
}
|
194
|
+
// Return named compiled template
|
195
|
+
return name ? (typeof name !== "string" ? jQuery.template( null, name ):
|
196
|
+
(jQuery.template[name] ||
|
197
|
+
// If not in map, treat as a selector. (If integrated with core, use quickExpr.exec)
|
198
|
+
jQuery.template( null, htmlExpr.test( name ) ? name : jQuery( name )))) : null;
|
199
|
+
},
|
200
|
+
|
201
|
+
encode: function( text ) {
|
202
|
+
// Do HTML encoding replacing < > & and ' and " by corresponding entities.
|
203
|
+
return ("" + text).split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'");
|
204
|
+
}
|
205
|
+
});
|
206
|
+
|
207
|
+
jQuery.extend( jQuery.tmpl, {
|
208
|
+
tag: {
|
209
|
+
"tmpl": {
|
210
|
+
_default: { $2: "null" },
|
211
|
+
open: "if($notnull_1){_=_.concat($item.nest($1,$2));}"
|
212
|
+
// tmpl target parameter can be of type function, so use $1, not $1a (so not auto detection of functions)
|
213
|
+
// This means that {{tmpl foo}} treats foo as a template (which IS a function).
|
214
|
+
// Explicit parens can be used if foo is a function that returns a template: {{tmpl foo()}}.
|
215
|
+
},
|
216
|
+
"wrap": {
|
217
|
+
_default: { $2: "null" },
|
218
|
+
open: "$item.calls(_,$1,$2);_=[];",
|
219
|
+
close: "call=$item.calls();_=call._.concat($item.wrap(call,_));"
|
220
|
+
},
|
221
|
+
"each": {
|
222
|
+
_default: { $2: "$index, $value" },
|
223
|
+
open: "if($notnull_1){$.each($1a,function($2){with(this){",
|
224
|
+
close: "}});}"
|
225
|
+
},
|
226
|
+
"if": {
|
227
|
+
open: "if(($notnull_1) && $1a){",
|
228
|
+
close: "}"
|
229
|
+
},
|
230
|
+
"else": {
|
231
|
+
_default: { $1: "true" },
|
232
|
+
open: "}else if(($notnull_1) && $1a){"
|
233
|
+
},
|
234
|
+
"html": {
|
235
|
+
// Unecoded expression evaluation.
|
236
|
+
open: "if($notnull_1){_.push($1a);}"
|
237
|
+
},
|
238
|
+
"=": {
|
239
|
+
// Encoded expression evaluation. Abbreviated form is ${}.
|
240
|
+
_default: { $1: "$data" },
|
241
|
+
open: "if($notnull_1){_.push($.encode($1a));}"
|
242
|
+
},
|
243
|
+
"!": {
|
244
|
+
// Comment tag. Skipped by parser
|
245
|
+
open: ""
|
246
|
+
}
|
247
|
+
},
|
248
|
+
|
249
|
+
// This stub can be overridden, e.g. in jquery.tmplPlus for providing rendered events
|
250
|
+
complete: function( items ) {
|
251
|
+
newTmplItems = {};
|
252
|
+
},
|
253
|
+
|
254
|
+
// Call this from code which overrides domManip, or equivalent
|
255
|
+
// Manage cloning/storing template items etc.
|
256
|
+
afterManip: function afterManip( elem, fragClone, callback ) {
|
257
|
+
// Provides cloned fragment ready for fixup prior to and after insertion into DOM
|
258
|
+
var content = fragClone.nodeType === 11 ?
|
259
|
+
jQuery.makeArray(fragClone.childNodes) :
|
260
|
+
fragClone.nodeType === 1 ? [fragClone] : [];
|
261
|
+
|
262
|
+
// Return fragment to original caller (e.g. append) for DOM insertion
|
263
|
+
callback.call( elem, fragClone );
|
264
|
+
|
265
|
+
// Fragment has been inserted:- Add inserted nodes to tmplItem data structure. Replace inserted element annotations by jQuery.data.
|
266
|
+
storeTmplItems( content );
|
267
|
+
cloneIndex++;
|
268
|
+
}
|
269
|
+
});
|
270
|
+
|
271
|
+
//========================== Private helper functions, used by code above ==========================
|
272
|
+
|
273
|
+
function build( tmplItem, nested, content ) {
|
274
|
+
// Convert hierarchical content into flat string array
|
275
|
+
// and finally return array of fragments ready for DOM insertion
|
276
|
+
var frag, ret = content ? jQuery.map( content, function( item ) {
|
277
|
+
return (typeof item === "string") ?
|
278
|
+
// Insert template item annotations, to be converted to jQuery.data( "tmplItem" ) when elems are inserted into DOM.
|
279
|
+
(tmplItem.key ? item.replace( /(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g, "$1 " + tmplItmAtt + "=\"" + tmplItem.key + "\" $2" ) : item) :
|
280
|
+
// This is a child template item. Build nested template.
|
281
|
+
build( item, tmplItem, item._ctnt );
|
282
|
+
}) :
|
283
|
+
// If content is not defined, insert tmplItem directly. Not a template item. May be a string, or a string array, e.g. from {{html $item.html()}}.
|
284
|
+
tmplItem;
|
285
|
+
if ( nested ) {
|
286
|
+
return ret;
|
287
|
+
}
|
288
|
+
|
289
|
+
// top-level template
|
290
|
+
ret = ret.join("");
|
291
|
+
|
292
|
+
// Support templates which have initial or final text nodes, or consist only of text
|
293
|
+
// Also support HTML entities within the HTML markup.
|
294
|
+
ret.replace( /^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/, function( all, before, middle, after) {
|
295
|
+
frag = jQuery( middle ).get();
|
296
|
+
|
297
|
+
storeTmplItems( frag );
|
298
|
+
if ( before ) {
|
299
|
+
frag = unencode( before ).concat(frag);
|
300
|
+
}
|
301
|
+
if ( after ) {
|
302
|
+
frag = frag.concat(unencode( after ));
|
303
|
+
}
|
304
|
+
});
|
305
|
+
return frag ? frag : unencode( ret );
|
306
|
+
}
|
307
|
+
|
308
|
+
function unencode( text ) {
|
309
|
+
// Use createElement, since createTextNode will not render HTML entities correctly
|
310
|
+
var el = document.createElement( "div" );
|
311
|
+
el.innerHTML = text;
|
312
|
+
return jQuery.makeArray(el.childNodes);
|
313
|
+
}
|
314
|
+
|
315
|
+
// Generate a reusable function that will serve to render a template against data
|
316
|
+
function buildTmplFn( markup ) {
|
317
|
+
return new Function("jQuery","$item",
|
318
|
+
"var $=jQuery,call,_=[],$data=$item.data;" +
|
319
|
+
|
320
|
+
// Introduce the data as local variables using with(){}
|
321
|
+
"with($data){_.push('" +
|
322
|
+
|
323
|
+
// Convert the template into pure JavaScript
|
324
|
+
jQuery.trim(markup)
|
325
|
+
.replace( /([\\'])/g, "\\$1" )
|
326
|
+
.replace( /[\r\t\n]/g, " " )
|
327
|
+
.replace( /\$\{([^\}]*)\}/g, "{{= $1}}" )
|
328
|
+
.replace( /\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,
|
329
|
+
function( all, slash, type, fnargs, target, parens, args ) {
|
330
|
+
var tag = jQuery.tmpl.tag[ type ], def, expr, exprAutoFnDetect;
|
331
|
+
if ( !tag ) {
|
332
|
+
throw "Template command not found: " + type;
|
333
|
+
}
|
334
|
+
def = tag._default || [];
|
335
|
+
if ( parens && !/\w$/.test(target)) {
|
336
|
+
target += parens;
|
337
|
+
parens = "";
|
338
|
+
}
|
339
|
+
if ( target ) {
|
340
|
+
target = unescape( target );
|
341
|
+
args = args ? ("," + unescape( args ) + ")") : (parens ? ")" : "");
|
342
|
+
// Support for target being things like a.toLowerCase();
|
343
|
+
// In that case don't call with template item as 'this' pointer. Just evaluate...
|
344
|
+
expr = parens ? (target.indexOf(".") > -1 ? target + parens : ("(" + target + ").call($item" + args)) : target;
|
345
|
+
exprAutoFnDetect = parens ? expr : "(typeof(" + target + ")==='function'?(" + target + ").call($item):(" + target + "))";
|
346
|
+
} else {
|
347
|
+
exprAutoFnDetect = expr = def.$1 || "null";
|
348
|
+
}
|
349
|
+
fnargs = unescape( fnargs );
|
350
|
+
return "');" +
|
351
|
+
tag[ slash ? "close" : "open" ]
|
352
|
+
.split( "$notnull_1" ).join( target ? "typeof(" + target + ")!=='undefined' && (" + target + ")!=null" : "true" )
|
353
|
+
.split( "$1a" ).join( exprAutoFnDetect )
|
354
|
+
.split( "$1" ).join( expr )
|
355
|
+
.split( "$2" ).join( fnargs ?
|
356
|
+
fnargs.replace( /\s*([^\(]+)\s*(\((.*?)\))?/g, function( all, name, parens, params ) {
|
357
|
+
params = params ? ("," + params + ")") : (parens ? ")" : "");
|
358
|
+
return params ? ("(" + name + ").call($item" + params) : all;
|
359
|
+
})
|
360
|
+
: (def.$2||"")
|
361
|
+
) +
|
362
|
+
"_.push('";
|
363
|
+
}) +
|
364
|
+
"');}return _;"
|
365
|
+
);
|
366
|
+
}
|
367
|
+
function updateWrapped( options, wrapped ) {
|
368
|
+
// Build the wrapped content.
|
369
|
+
options._wrap = build( options, true,
|
370
|
+
// Suport imperative scenario in which options.wrapped can be set to a selector or an HTML string.
|
371
|
+
jQuery.isArray( wrapped ) ? wrapped : [htmlExpr.test( wrapped ) ? wrapped : jQuery( wrapped ).html()]
|
372
|
+
).join("");
|
373
|
+
}
|
374
|
+
|
375
|
+
function unescape( args ) {
|
376
|
+
return args ? args.replace( /\\'/g, "'").replace(/\\\\/g, "\\" ) : null;
|
377
|
+
}
|
378
|
+
function outerHtml( elem ) {
|
379
|
+
var div = document.createElement("div");
|
380
|
+
div.appendChild( elem.cloneNode(true) );
|
381
|
+
return div.innerHTML;
|
382
|
+
}
|
383
|
+
|
384
|
+
// Store template items in jQuery.data(), ensuring a unique tmplItem data data structure for each rendered template instance.
|
385
|
+
function storeTmplItems( content ) {
|
386
|
+
var keySuffix = "_" + cloneIndex, elem, elems, newClonedItems = {}, i, l, m;
|
387
|
+
for ( i = 0, l = content.length; i < l; i++ ) {
|
388
|
+
if ( (elem = content[i]).nodeType !== 1 ) {
|
389
|
+
continue;
|
390
|
+
}
|
391
|
+
elems = elem.getElementsByTagName("*");
|
392
|
+
for ( m = elems.length - 1; m >= 0; m-- ) {
|
393
|
+
processItemKey( elems[m] );
|
394
|
+
}
|
395
|
+
processItemKey( elem );
|
396
|
+
}
|
397
|
+
function processItemKey( el ) {
|
398
|
+
var pntKey, pntNode = el, pntItem, tmplItem, key;
|
399
|
+
// Ensure that each rendered template inserted into the DOM has its own template item,
|
400
|
+
if ( (key = el.getAttribute( tmplItmAtt ))) {
|
401
|
+
while ( pntNode.parentNode && (pntNode = pntNode.parentNode).nodeType === 1 && !(pntKey = pntNode.getAttribute( tmplItmAtt ))) { }
|
402
|
+
if ( pntKey !== key ) {
|
403
|
+
// The next ancestor with a _tmplitem expando is on a different key than this one.
|
404
|
+
// So this is a top-level element within this template item
|
405
|
+
// Set pntNode to the key of the parentNode, or to 0 if pntNode.parentNode is null, or pntNode is a fragment.
|
406
|
+
pntNode = pntNode.parentNode ? (pntNode.nodeType === 11 ? 0 : (pntNode.getAttribute( tmplItmAtt ) || 0)) : 0;
|
407
|
+
if ( !(tmplItem = newTmplItems[key]) ) {
|
408
|
+
// The item is for wrapped content, and was copied from the temporary parent wrappedItem.
|
409
|
+
tmplItem = wrappedItems[key];
|
410
|
+
tmplItem = newTmplItem( tmplItem, newTmplItems[pntNode]||wrappedItems[pntNode], null, true );
|
411
|
+
tmplItem.key = ++itemKey;
|
412
|
+
newTmplItems[itemKey] = tmplItem;
|
413
|
+
}
|
414
|
+
if ( cloneIndex ) {
|
415
|
+
cloneTmplItem( key );
|
416
|
+
}
|
417
|
+
}
|
418
|
+
el.removeAttribute( tmplItmAtt );
|
419
|
+
} else if ( cloneIndex && (tmplItem = jQuery.data( el, "tmplItem" )) ) {
|
420
|
+
// This was a rendered element, cloned during append or appendTo etc.
|
421
|
+
// TmplItem stored in jQuery data has already been cloned in cloneCopyEvent. We must replace it with a fresh cloned tmplItem.
|
422
|
+
cloneTmplItem( tmplItem.key );
|
423
|
+
newTmplItems[tmplItem.key] = tmplItem;
|
424
|
+
pntNode = jQuery.data( el.parentNode, "tmplItem" );
|
425
|
+
pntNode = pntNode ? pntNode.key : 0;
|
426
|
+
}
|
427
|
+
if ( tmplItem ) {
|
428
|
+
pntItem = tmplItem;
|
429
|
+
// Find the template item of the parent element.
|
430
|
+
// (Using !=, not !==, since pntItem.key is number, and pntNode may be a string)
|
431
|
+
while ( pntItem && pntItem.key != pntNode ) {
|
432
|
+
// Add this element as a top-level node for this rendered template item, as well as for any
|
433
|
+
// ancestor items between this item and the item of its parent element
|
434
|
+
pntItem.nodes.push( el );
|
435
|
+
pntItem = pntItem.parent;
|
436
|
+
}
|
437
|
+
// Delete content built during rendering - reduce API surface area and memory use, and avoid exposing of stale data after rendering...
|
438
|
+
delete tmplItem._ctnt;
|
439
|
+
delete tmplItem._wrap;
|
440
|
+
// Store template item as jQuery data on the element
|
441
|
+
jQuery.data( el, "tmplItem", tmplItem );
|
442
|
+
}
|
443
|
+
function cloneTmplItem( key ) {
|
444
|
+
key = key + keySuffix;
|
445
|
+
tmplItem = newClonedItems[key] =
|
446
|
+
(newClonedItems[key] || newTmplItem( tmplItem, newTmplItems[tmplItem.parent.key + keySuffix] || tmplItem.parent, null, true ));
|
447
|
+
}
|
448
|
+
}
|
449
|
+
}
|
450
|
+
|
451
|
+
//---- Helper functions for template item ----
|
452
|
+
|
453
|
+
function tiCalls( content, tmpl, data, options ) {
|
454
|
+
if ( !content ) {
|
455
|
+
return stack.pop();
|
456
|
+
}
|
457
|
+
stack.push({ _: content, tmpl: tmpl, item:this, data: data, options: options });
|
458
|
+
}
|
459
|
+
|
460
|
+
function tiNest( tmpl, data, options ) {
|
461
|
+
// nested template, using {{tmpl}} tag
|
462
|
+
return jQuery.tmpl( jQuery.template( tmpl ), data, options, this );
|
463
|
+
}
|
464
|
+
|
465
|
+
function tiWrap( call, wrapped ) {
|
466
|
+
// nested template, using {{wrap}} tag
|
467
|
+
var options = call.options || {};
|
468
|
+
options.wrapped = wrapped;
|
469
|
+
// Apply the template, which may incorporate wrapped content,
|
470
|
+
return jQuery.tmpl( jQuery.template( call.tmpl ), call.data, options, call.item );
|
471
|
+
}
|
472
|
+
|
473
|
+
function tiHtml( filter, textOnly ) {
|
474
|
+
var wrapped = this._wrap;
|
475
|
+
return jQuery.map(
|
476
|
+
jQuery( jQuery.isArray( wrapped ) ? wrapped.join("") : wrapped ).filter( filter || "*" ),
|
477
|
+
function(e) {
|
478
|
+
return textOnly ?
|
479
|
+
e.innerText || e.textContent :
|
480
|
+
e.outerHTML || outerHtml(e);
|
481
|
+
});
|
482
|
+
}
|
483
|
+
|
484
|
+
function tiUpdate() {
|
485
|
+
var coll = this.nodes;
|
486
|
+
jQuery.tmpl( null, null, null, this).insertBefore( coll[0] );
|
487
|
+
jQuery( coll ).remove();
|
488
|
+
}
|
489
|
+
})( jQuery );
|