├── css ├── 1 ├── fonts │ ├── 1 │ ├── brook.woff │ ├── brook.woff2 │ ├── neue-light.woff │ ├── bold-outline.woff │ ├── bold-regular.woff │ ├── neue-light.woff2 │ ├── bold-outline.woff2 │ └── bold-regular.woff2 ├── mouse.css └── style.css ├── images ├── 1 ├── next.png ├── prev.png ├── city-two.webp ├── favicon.png ├── about-pic.webp ├── city-image-five.webp ├── city-image-four.webp ├── city-image-three.webp ├── forest-image-five.webp ├── forest-image-six.webp ├── forest-image-three.webp ├── forest-image-two.webp ├── header-image-four.webp ├── header-image-one.webp ├── header-image-three.webp ├── header-image-two.webp ├── marine-image-five.webp ├── marine-image-six.webp ├── marine-image-three.webp ├── marine-image-two.webp ├── wildlife-image-six.webp ├── wildlife-image-two.webp ├── wildlife-image-five.webp ├── wildlife-image-four.webp └── wildlife-image-three.webp ├── js ├── 1 ├── bez.js ├── index.js ├── pace.js └── jquery.min.js ├── README.md ├── LICENSE └── index.html /css/1: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /images/1: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /js/1: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /css/fonts/1: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # photography-portfolio 2 | photography-portfolio web-site 3 | -------------------------------------------------------------------------------- /images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/next.png -------------------------------------------------------------------------------- /images/prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/prev.png -------------------------------------------------------------------------------- /css/fonts/brook.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/css/fonts/brook.woff -------------------------------------------------------------------------------- /images/city-two.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/city-two.webp -------------------------------------------------------------------------------- /images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/favicon.png -------------------------------------------------------------------------------- /css/fonts/brook.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/css/fonts/brook.woff2 -------------------------------------------------------------------------------- /images/about-pic.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/about-pic.webp -------------------------------------------------------------------------------- /css/fonts/neue-light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/css/fonts/neue-light.woff -------------------------------------------------------------------------------- /css/fonts/bold-outline.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/css/fonts/bold-outline.woff -------------------------------------------------------------------------------- /css/fonts/bold-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/css/fonts/bold-regular.woff -------------------------------------------------------------------------------- /css/fonts/neue-light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/css/fonts/neue-light.woff2 -------------------------------------------------------------------------------- /images/city-image-five.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/city-image-five.webp -------------------------------------------------------------------------------- /images/city-image-four.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/city-image-four.webp -------------------------------------------------------------------------------- /css/fonts/bold-outline.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/css/fonts/bold-outline.woff2 -------------------------------------------------------------------------------- /css/fonts/bold-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/css/fonts/bold-regular.woff2 -------------------------------------------------------------------------------- /images/city-image-three.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/city-image-three.webp -------------------------------------------------------------------------------- /images/forest-image-five.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/forest-image-five.webp -------------------------------------------------------------------------------- /images/forest-image-six.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/forest-image-six.webp -------------------------------------------------------------------------------- /images/forest-image-three.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/forest-image-three.webp -------------------------------------------------------------------------------- /images/forest-image-two.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/forest-image-two.webp -------------------------------------------------------------------------------- /images/header-image-four.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/header-image-four.webp -------------------------------------------------------------------------------- /images/header-image-one.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/header-image-one.webp -------------------------------------------------------------------------------- /images/header-image-three.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/header-image-three.webp -------------------------------------------------------------------------------- /images/header-image-two.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/header-image-two.webp -------------------------------------------------------------------------------- /images/marine-image-five.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/marine-image-five.webp -------------------------------------------------------------------------------- /images/marine-image-six.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/marine-image-six.webp -------------------------------------------------------------------------------- /images/marine-image-three.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/marine-image-three.webp -------------------------------------------------------------------------------- /images/marine-image-two.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/marine-image-two.webp -------------------------------------------------------------------------------- /images/wildlife-image-six.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/wildlife-image-six.webp -------------------------------------------------------------------------------- /images/wildlife-image-two.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/wildlife-image-two.webp -------------------------------------------------------------------------------- /images/wildlife-image-five.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/wildlife-image-five.webp -------------------------------------------------------------------------------- /images/wildlife-image-four.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/wildlife-image-four.webp -------------------------------------------------------------------------------- /images/wildlife-image-three.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victor0089/photography-portfolio/HEAD/images/wildlife-image-three.webp -------------------------------------------------------------------------------- /css/mouse.css: -------------------------------------------------------------------------------- 1 | .gg-mouse { 2 | box-sizing: border-box; 3 | position: relative; 4 | display: block; 5 | transform: scale(var(--ggs,1)); 6 | width: 16px; 7 | height: 24px; 8 | border: 2px solid; 9 | background: rgb(245,245,245); 10 | border-radius: 10px 11 | } 12 | 13 | .gg-mouse::after { 14 | content: ""; 15 | display: block; 16 | box-sizing: border-box; 17 | position: absolute; 18 | border-radius: 3px; 19 | width: 2px; 20 | height: 6px; 21 | background: rgb(245,245,245); 22 | top: 3px; 23 | left: 5px 24 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Victor Adly 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /js/bez.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bez @VERSION 3 | * http://github.com/rdallasgray/bez 4 | * 5 | * A plugin to convert CSS3 cubic-bezier co-ordinates to jQuery-compatible easing functions 6 | * 7 | * With thanks to Nikolay Nemshilov for clarification on the cubic-bezier maths 8 | * See http://st-on-it.blogspot.com/2011/05/calculating-cubic-bezier-function.html 9 | * 10 | * Copyright @YEAR Robert Dallas Gray. All rights reserved. 11 | * Provided under the FreeBSD license: https://github.com/rdallasgray/bez/blob/master/LICENSE.txt 12 | */ 13 | (function(factory) { 14 | if (typeof exports === "object") { 15 | factory(require("jquery")); 16 | } else if (typeof define === "function" && define.amd) { 17 | define(["jquery"], factory); 18 | } else { 19 | factory(jQuery); 20 | } 21 | }(function($) { 22 | $.extend({ bez: function(encodedFuncName, coOrdArray) { 23 | if ($.isArray(encodedFuncName)) { 24 | coOrdArray = encodedFuncName; 25 | encodedFuncName = 'bez_' + coOrdArray.join('_').replace(/\./g, 'p'); 26 | } 27 | if (typeof $.easing[encodedFuncName] !== "function") { 28 | var polyBez = function(p1, p2) { 29 | var A = [null, null], B = [null, null], C = [null, null], 30 | bezCoOrd = function(t, ax) { 31 | C[ax] = 3 * p1[ax], B[ax] = 3 * (p2[ax] - p1[ax]) - C[ax], A[ax] = 1 - C[ax] - B[ax]; 32 | return t * (C[ax] + t * (B[ax] + t * A[ax])); 33 | }, 34 | xDeriv = function(t) { 35 | return C[0] + t * (2 * B[0] + 3 * A[0] * t); 36 | }, 37 | xForT = function(t) { 38 | var x = t, i = 0, z; 39 | while (++i < 14) { 40 | z = bezCoOrd(x, 0) - t; 41 | if (Math.abs(z) < 1e-3) break; 42 | x -= z / xDeriv(x); 43 | } 44 | return x; 45 | }; 46 | return function(t) { 47 | return bezCoOrd(xForT(t), 1); 48 | } 49 | }; 50 | $.easing[encodedFuncName] = function(x, t, b, c, d) { 51 | return c * polyBez([coOrdArray[0], coOrdArray[1]], [coOrdArray[2], coOrdArray[3]])(t/d) + b; 52 | } 53 | } 54 | return encodedFuncName; 55 | }}); 56 | })); -------------------------------------------------------------------------------- /js/index.js: -------------------------------------------------------------------------------- 1 | //loader 2 | paceOptions = { 3 | ajax: true, 4 | document: true, 5 | eventLag: false 6 | }; 7 | 8 | Pace.on('done', function() { 9 | 10 | $('#preloader').delay(0).animate({top: '-120%'}, 3800, $.bez([0.19,1,0.22,1])); 11 | 12 | 13 | }); 14 | 15 | $(window).on('load',function(){ 16 | $(function(){ 17 | //slideshow 18 | 19 | new Swiper('#projects .swiper-container', { 20 | slidesPerView: 'auto', 21 | speed: 1000, 22 | spaceBetween: 30, 23 | centeredSlides: true, 24 | loop: true, 25 | grabCursor: true, 26 | navigation: { 27 | nextEl: '#next', 28 | prevEl: '#prev' 29 | }, 30 | mousewheel: true, 31 | observer: true, 32 | observeParents: true, 33 | }); 34 | 35 | 36 | 37 | //parallax 38 | $(document).ready(function() { 39 | var parallaxSlider; 40 | var parallaxSliderOptions = { 41 | speed: 1500, 42 | autoplay: { 43 | delay: 4500, 44 | disableOnInteraction: true, 45 | }, 46 | parallax: true, 47 | loop: true, 48 | grabCursor: true, 49 | mousewheel: true, 50 | centeredSlides: true, 51 | 52 | on: { 53 | init: function() { 54 | let swiper = this; 55 | for (let i = 0; i < swiper.slides.length; i++) { 56 | $(swiper.slides[i]) 57 | .find('.img-container') 58 | .attr({ 59 | 'data-swiper-parallax': .75 * swiper.width, 60 | }); 61 | 62 | 63 | } 64 | }, 65 | resize: function() { 66 | this.update(); 67 | } 68 | }, 69 | pagination: { 70 | el: '.swiper-pagination', 71 | type: 'progressbar', 72 | }, 73 | navigation: { 74 | nextEl: '.slider-controls .next-ctrl', 75 | prevEl: '.slider-controls .prev-ctrl' 76 | } 77 | }; 78 | 79 | parallaxSlider = new Swiper('.parallax-slider', parallaxSliderOptions); 80 | $(window).on('resize', function() { 81 | parallaxSlider.destroy(); 82 | parallaxSlider = new Swiper('.parallax-slider', parallaxSliderOptions); 83 | }); 84 | $('.home-link').on('click',function(){ 85 | setTimeout(function(){ 86 | parallaxSlider.destroy(); 87 | parallaxSlider = new Swiper('.parallax-slider', parallaxSliderOptions); 88 | },750) 89 | }) 90 | 91 | $('.navigation-close').on('click',function(){ 92 | setTimeout(function(){ 93 | parallaxSlider.destroy(); 94 | parallaxSlider = new Swiper('.parallax-slider', parallaxSliderOptions); 95 | },750) 96 | }) 97 | 98 | }); 99 | //parallax over 100 | 101 | //cursor 102 | $(function(){ 103 | var body = document.querySelector('body'); 104 | var $cursor = $('.cursor'); 105 | var $cursortwo = $('.cursor-two') 106 | function cursormover(e){ 107 | 108 | gsap.to( $cursor , { 109 | x : e.clientX , 110 | y : e.clientY, 111 | }) 112 | gsap.to( $cursortwo , { 113 | x : e.clientX , 114 | y : e.clientY, 115 | }) 116 | } 117 | function cursorhover(e){ 118 | gsap.to( $cursor,{ 119 | scale:1.5, 120 | opacity:.4, 121 | background:'rgb(235,235,235)', 122 | border:'none', 123 | ease: Expo.easeOut, 124 | }) 125 | gsap.to( $cursortwo,{ 126 | scale:0, 127 | opacity:0 128 | }) 129 | } 130 | function linkhover(e){ 131 | gsap.to( $cursor,{ 132 | scale:1.5, 133 | opacity:1, 134 | background:'rgb(245,245,245)', 135 | border:'none', 136 | innerHTML:'view
project' 137 | }) 138 | gsap.to( $cursortwo,{ 139 | scale:0, 140 | opacity:0 141 | }) 142 | } 143 | function cursor(e){ 144 | gsap.to( $cursor, { 145 | scale:1, 146 | opacity:1, 147 | background:'transparent', 148 | border:'1px solid rgb(235,235,235)', 149 | innerHTML:'' 150 | }) 151 | gsap.to( $cursortwo,{ 152 | scale:1, 153 | opacity:1 154 | }) 155 | } 156 | $(window).on('mousemove',cursormover); 157 | $('a').hover(cursorhover,cursor); 158 | $('.control').hover(cursorhover,cursor); 159 | $('.hover').hover(cursorhover,cursor); 160 | $('.project-link').hover(linkhover,cursor) 161 | 162 | }) 163 | 164 | //cursor over 165 | 166 | 167 | // links-animations 168 | $(function(){ 169 | gsap.from('.opacity',1,{opacity:0,delay:3}); 170 | gsap.from('.scale',1,{opacity:0,delay:3,scale:0,stagger:.5}); 171 | gsap.from('.fade-up',1,{y:120,opacity:0,delay:1.5,stagger:.25}); 172 | gsap.from('.fade-down',1,{y:-100,opacity:0,delay:1.5,stagger:.25}); 173 | gsap.from('.fade-up-two',1,{y:120,opacity:0,delay:2.25,stagger:.25}); 174 | 175 | $('.about-link').on('click',function(){ 176 | gsap.to('#home',.5,{scale:.9}); 177 | gsap.to('#home',0,{width:'100%',height:'100vh',overflow:'hidden'}); 178 | gsap.to('#home',0,{display:'none',delay:.7}); 179 | gsap.to('#about',0,{display:'block',delay:.7}) 180 | gsap.to('#about',.5,{scale:1,delay:1.1}) 181 | gsap.to('#breaker',{display:'block'}) 182 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 183 | gsap.from('.about-opacity',1,{opacity:0,delay:1.8,stagger:.2}) 184 | gsap.from('.about-img',1,{delay:1.8,opacity:0}) 185 | }) 186 | $('.contact-link').on('click',function(){ 187 | gsap.to('#home',.5,{scale:.9}); 188 | gsap.to('#home',0,{width:'100%',height:'100vh',overflow:'hidden'}); 189 | gsap.to('#home',0,{display:'none',delay:.7}); 190 | gsap.to('#contact',0,{display:'block',delay:.7}) 191 | gsap.to('#contact',.5,{scale:1,delay:1.1}) 192 | gsap.to('#breaker',{display:'block'}) 193 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 194 | gsap.from('.contact-opacity',1,{opacity:0,delay:1.6,stagger:.2}) 195 | }) 196 | $('.contact-link-about').on('click',function(){ 197 | gsap.to('#about',.5,{scale:.9}); 198 | gsap.to('#about',0,{width:'100%',height:'100vh',overflow:'hidden'}); 199 | gsap.to('#about',0,{display:'none',delay:.7}); 200 | gsap.to('#contact',0,{display:'block',delay:.7}) 201 | gsap.to('#contact',.5,{scale:1,delay:1.1}) 202 | gsap.to('#breaker',{display:'block'}) 203 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 204 | gsap.from('.contact-opacity',1,{opacity:0,delay:1.6,stagger:.2}) 205 | }) 206 | $('.home-link').on('click',function(){ 207 | gsap.to('.city-project',.5,{scale:.9}); 208 | gsap.to('.city-project',0,{width:'100%',height:'100vh',overflow:'hidden'}); 209 | gsap.to('.city-project',0,{display:'none',delay:.7}); 210 | gsap.to('.wildlife-project',.5,{scale:.9}); 211 | gsap.to('.wildlife-project',0,{width:'100%',height:'100vh',overflow:'hidden'}); 212 | gsap.to('.wildlife-project',0,{display:'none',delay:.7}); 213 | gsap.to('.forest-project',.5,{scale:.9}); 214 | gsap.to('.forest-project',0,{width:'100%',height:'100vh',overflow:'hidden'}); 215 | gsap.to('.forest-project',0,{display:'none',delay:.7}); 216 | gsap.to('.marine-project',.5,{scale:.9}); 217 | gsap.to('.marine-project',0,{width:'100%',height:'100vh',overflow:'hidden'}); 218 | gsap.to('.marine-project',0,{display:'none',delay:.7}); 219 | gsap.to('#about',.5,{scale:.9}); 220 | gsap.to('#about',0,{width:'100%',height:'100vh',overflow:'hidden'}); 221 | gsap.to('#about',0,{display:'none',delay:.7}); 222 | gsap.to('#contact',0,{width:'100%',height:'100vh',overflow:'hidden'}); 223 | gsap.to('#contact',0,{display:'none',delay:.7}); 224 | gsap.to('#home',0,{display:'block',delay:.7}) 225 | gsap.to('#home',.5,{scale:1,delay:1.1}) 226 | gsap.to('#breaker',{display:'block'}) 227 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 228 | }) 229 | $('.marine-project-link').on('click',function(){ 230 | gsap.to('#home',.5,{scale:.9}); 231 | gsap.to('#home',0,{width:'100%',height:'100vh',overflow:'hidden'}); 232 | gsap.to('#home',0,{display:'none',delay:.7}); 233 | gsap.to('.marine-project',0,{display:'block',delay:.7}) 234 | gsap.to('.marine-project',.5,{scale:1,delay:1.1}) 235 | gsap.to('.project-name',.5,{opacity:0,delay:2.5}) 236 | gsap.to('#breaker',{display:'block'}) 237 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 238 | }) 239 | $('.forest-project-link').on('click',function(){ 240 | gsap.to('#home',.5,{scale:.9}); 241 | gsap.to('#home',0,{width:'100%',height:'100vh',overflow:'hidden'}); 242 | gsap.to('#home',0,{display:'none',delay:.7}); 243 | gsap.to('.forest-project',0,{display:'block',delay:.7}) 244 | gsap.to('.forest-project',.5,{scale:1,delay:1.1}) 245 | gsap.to('.project-name',.5,{opacity:0,delay:2.5}) 246 | gsap.to('#breaker',{display:'block'}) 247 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 248 | }) 249 | $('.wildlife-project-link').on('click',function(){ 250 | gsap.to('#home',.5,{scale:.9}); 251 | gsap.to('#home',0,{width:'100%',height:'100vh',overflow:'hidden'}); 252 | gsap.to('#home',0,{display:'none',delay:.7}); 253 | gsap.to('.wildlife-project',0,{display:'block',delay:.7}) 254 | gsap.to('.wildlife-project',.5,{scale:1,delay:1.1}) 255 | gsap.to('.project-name',.5,{opacity:0,delay:2.5}) 256 | gsap.to('#breaker',{display:'block'}) 257 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 258 | }) 259 | $('.city-project-link').on('click',function(){ 260 | gsap.to('#home',.5,{scale:.9}); 261 | gsap.to('#home',0,{width:'100%',height:'100vh',overflow:'hidden'}); 262 | gsap.to('#home',0,{display:'none',delay:.7}); 263 | gsap.to('.city-project',0,{display:'block',delay:.7}) 264 | gsap.to('.city-project',.5,{scale:1,delay:1.1}) 265 | gsap.to('.project-name',.5,{opacity:0,delay:2.5}) 266 | gsap.to('#breaker',{display:'block'}) 267 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 268 | }) 269 | $('.about-close').on('click',function(){ 270 | gsap.to('#about',.5,{scale:.9}); 271 | gsap.to('#about',0,{width:'100%',height:'100vh',overflow:'hidden'}); 272 | gsap.to('#about',0,{display:'none',delay:.7}); 273 | gsap.to('#home',0,{display:'block',delay:.7}) 274 | gsap.to('#home',.5,{scale:1,delay:1.1}) 275 | gsap.to('#breaker',{display:'block'}) 276 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 277 | }) 278 | $('.contact-close').on('click',function(){ 279 | gsap.to('#contact',.5,{scale:.9}); 280 | gsap.to('#contact',0,{width:'100%',height:'100vh',overflow:'hidden'}); 281 | gsap.to('#contact',0,{width:'100%',height:'auto',overflow:'hidden',delay:1.7}); 282 | gsap.to('#contact',0,{display:'none',delay:.7}); 283 | gsap.to('#home',0,{display:'block',delay:.7}) 284 | gsap.to('#home',.5,{scale:1,delay:1.1}) 285 | gsap.to('#breaker',{display:'block'}) 286 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 287 | }) 288 | $('.marine-close').on('click',function(){ 289 | gsap.to('.marine-project',.5,{scale:.9}); 290 | gsap.to('.marine-project',0,{width:'100%',height:'100vh',overflow:'hidden'}); 291 | gsap.to('.marine-project',0,{display:'none',delay:.7}); 292 | gsap.to('#home',0,{display:'block',delay:.7}) 293 | gsap.to('#home',.5,{scale:1,delay:1.1}) 294 | gsap.to('.project-name',.5,{opacity:1,delay:1}) 295 | gsap.to('#breaker',{display:'block'}) 296 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 297 | }) 298 | $('.forest-close').on('click',function(){ 299 | gsap.to('.forest-project',.5,{scale:.9}); 300 | gsap.to('.forest-project',0,{width:'100%',height:'100vh',overflow:'hidden'}); 301 | gsap.to('.forest-project',0,{display:'none',delay:.7}); 302 | gsap.to('#home',0,{display:'block',delay:.7}) 303 | gsap.to('#home',.5,{scale:1,delay:1.1}) 304 | gsap.to('.project-name',.5,{opacity:1,delay:1}) 305 | gsap.to('#breaker',{display:'block'}) 306 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 307 | }) 308 | $('.wildlife-close').on('click',function(){ 309 | gsap.to('.wildlife-project',.5,{scale:.9}); 310 | gsap.to('.wildlife-project',0,{width:'100%',height:'100vh',overflow:'hidden'}); 311 | gsap.to('.wildlife-project',0,{display:'none',delay:.7}); 312 | gsap.to('#home',0,{display:'block',delay:.7}) 313 | gsap.to('#home',.5,{scale:1,delay:1.1}) 314 | gsap.to('.project-name',.5,{opacity:1,delay:1}) 315 | gsap.to('#breaker',{display:'block'}) 316 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 317 | }) 318 | $('.city-close').on('click',function(){ 319 | gsap.to('.city-project',.5,{scale:.9}); 320 | gsap.to('.city-project',0,{width:'100%',height:'100vh',overflow:'hidden'}); 321 | gsap.to('.city-project',0,{display:'none',delay:.7}); 322 | gsap.to('#home',0,{display:'block',delay:.7}) 323 | gsap.to('#home',.5,{scale:1,delay:1.1}) 324 | gsap.to('.project-name',.5,{opacity:1,delay:1}) 325 | gsap.to('#breaker',{display:'block'}) 326 | gsap.to('#breaker',0,{display:'none',delay:1.7}); 327 | }) 328 | }) 329 | }) 330 | 331 | 332 | }) 333 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Wink - Photography portfolio template 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |
22 |
JAMES TYLER
23 |
24 |
25 | 26 |
27 |
28 | 29 |
30 | 31 | 45 | 46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 60 |
61 |
62 | 69 |
70 |
71 | 79 |
80 |
81 | 89 |
90 |
91 | 92 | 93 |
94 |
95 |
96 | prev 97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | next 107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | 117 |
118 | 125 |
126 | 127 | 128 | 129 | 130 |
131 |
132 | 146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 | Hi , I'm a 22 y/o Canadian photographer, 158 | graduated in 2009 159 |
160 |
161 | Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ex debitis, nisi minima tempore repudiandae. 162 |
163 |
164 | similique quis quos, reiciendis dignissimos doloremque sequi eius esse qui. A iste blanditiis fugiat necessitatibus voluptatibus. 165 |
166 |
167 | 168 |
169 |
170 |
171 |
172 |
173 |
174 | 181 |
182 |
183 | 184 | 185 | 186 |
187 | 188 | 189 |
190 | 204 |
205 |
206 |
207 | marine-image 208 |
209 |
210 | marine-image 211 |
212 |
213 | marine-image 214 |
215 |
216 | marine-image 217 |
218 |
219 | marine-image 220 |
221 |
222 | 223 |
224 |
225 | 226 | 227 |
228 |
229 | MARINE 230 |
231 | 238 |
239 | 240 | 241 | 242 |
243 | 257 |
258 |
259 |
260 | marine-image 261 |
262 |
263 | marine-image 264 |
265 |
266 | marine-image 267 |
268 |
269 | marine-image 270 |
271 |
272 | marine-image 273 |
274 |
275 | 276 |
277 |
278 | 279 | 280 |
281 |
282 | FOREST 283 |
284 | 291 |
292 | 293 | 294 | 295 |
296 | 310 |
311 |
312 |
313 | marine-image 314 |
315 |
316 | marine-image 317 |
318 |
319 | marine-image 320 |
321 |
322 | marine-image 323 |
324 |
325 | marine-image 326 |
327 |
328 | marine-image 329 |
330 |
331 | 332 |
333 |
334 | 335 | 336 |
337 |
338 | wildlife 339 |
340 | 347 |
348 | 349 | 350 | 351 |
352 | 366 |
367 |
368 |
369 | city-image 370 |
371 |
372 | city-image 373 |
374 |
375 | city-image 376 |
377 |
378 | city-image 379 |
380 |
381 | city-image 382 |
383 |
384 | 385 |
386 |
387 | 388 | 389 |
390 |
391 | CITY 392 |
393 | 400 |
401 | 402 | 403 | 404 | 405 |
406 | 407 | 408 |
409 | 423 |
424 | getting in touch is easy. 425 |
426 |
427 |
428 | 429 |
430 |
431 |
432 |
433 | 434 | 435 |
436 |
437 | 438 | 439 |
440 | 441 |
442 |
443 |
444 |
445 | 446 |
447 |
448 | 449 | 450 | 451 | 452 | 453 |
454 | 455 | 457 | 458 | 459 | 460 | 461 | 585 | 586 | 587 | 588 | 589 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap'); 2 | @font-face { 3 | font-family: "bold"; 4 | src: url('fonts/bold-regular.woff2') format('woff2'), 5 | url('fonts/bold-regular.woff') format('woff'); 6 | font-weight: normal; 7 | font-style: normal; 8 | } 9 | @font-face { 10 | font-family: "brook"; 11 | src: url('fonts/brook.woff2') format('woff2'), 12 | url('fonts/brook.woff') format('woff'); 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | *{ 17 | padding: 0; 18 | margin: 0; 19 | box-sizing: border-box; 20 | } 21 | body{ 22 | user-select: none; 23 | background: #050505; 24 | } 25 | html{ 26 | background: #050505; 27 | } 28 | #home{ 29 | width: 100%; 30 | height: 100vh; 31 | position: relative; 32 | overflow: hidden; 33 | } 34 | 35 | .parallax-slider .swiper-slide { 36 | position: relative; 37 | overflow: hidden; 38 | } 39 | 40 | .parallax-slider .img-container { 41 | position: absolute; 42 | top: 0; 43 | bottom: 0; 44 | left: 0; 45 | right: 0; 46 | margin: auto; 47 | background-position: center; 48 | background-size: cover; 49 | } 50 | 51 | 52 | .slider-controls{ 53 | position: absolute; 54 | right:5%; 55 | bottom:10%; 56 | height: auto; 57 | width: auto; 58 | display: flex; 59 | flex-direction: row; 60 | } 61 | 62 | .prev-ctrl,.next-ctrl{ 63 | height: auto; 64 | width: auto; 65 | text-align: center; 66 | padding: 10px; 67 | background: transparent; 68 | outline: none; 69 | position: relative; 70 | left:auto; 71 | right:auto; 72 | cursor: pointer; 73 | } 74 | .slider-controls{ 75 | background: rgb(0,0,0,.4); 76 | z-index: 10; 77 | margin-left:10px; 78 | -webkit-backdrop-filter: blur(8px); 79 | backdrop-filter: blur(8px); 80 | border-radius: 8px; 81 | } 82 | 83 | .parallax-slider{ 84 | height:100vh; 85 | width: 100%; 86 | } 87 | 88 | .parallax-slider .img-container.one { 89 | background:url(../images/header-image-one.webp); 90 | background-position: center; 91 | background-size: cover; 92 | } 93 | 94 | .parallax-slider .img-container.two { 95 | background:url(../images/header-image-two.webp); 96 | background-position: center; 97 | background-size: cover; 98 | } 99 | 100 | .parallax-slider .img-container.three { 101 | background:url(../images/header-image-three.webp); 102 | background-position: center; 103 | background-size: cover; 104 | } 105 | .parallax-slider .img-container.four { 106 | background:url(../images/header-image-four.webp); 107 | background-position: center; 108 | background-size: cover; 109 | } 110 | .navigation{ 111 | position: absolute; 112 | left: 0; 113 | top: 0; 114 | z-index:10; 115 | color: rgb(245, 245, 245); 116 | font-family: 'brook', sans-serif; 117 | padding: 20px; 118 | padding-top: 40px; 119 | padding-left: 40px; 120 | font-size: 18px; 121 | width: 100%; 122 | } 123 | .logo{ 124 | display: inline-block; 125 | z-index: 10; 126 | color: rgb(245, 245, 245); 127 | padding:10px; 128 | font-family: brook; 129 | font-size: 18px; 130 | font-weight: 900; 131 | letter-spacing: 1px; 132 | border-radius: 4px; 133 | } 134 | .navigation-links{ 135 | float: right; 136 | padding: 10px; 137 | padding-right: 40px; 138 | } 139 | a{ 140 | color: inherit; 141 | text-decoration: none; 142 | outline: none; 143 | } 144 | a:hover{ 145 | color: inherit; 146 | text-decoration: none; 147 | outline: none; 148 | } 149 | li{ 150 | list-style: none; 151 | padding-left: 40px; 152 | } 153 | .links{ 154 | opacity:.9; 155 | transition: all .4s ease; 156 | } 157 | .links:hover{ 158 | opacity: 1; 159 | } 160 | .cursor{ 161 | height: 50px; 162 | width: 50px; 163 | background: transparent; 164 | border-radius: 50%; 165 | pointer-events: none; 166 | border: 1px solid rgb(245, 245, 245); 167 | position: fixed; 168 | z-index: 10; 169 | top: -25px; 170 | left: -25px; 171 | opacity:1; 172 | overflow: hidden; 173 | font-family: brook; 174 | text-align: center; 175 | color:black; 176 | font-size: 16px; 177 | } 178 | .cursor-two{ 179 | height: 8px; 180 | width: 8px; 181 | background: rgb(245, 245, 245); 182 | border-radius: 50%; 183 | pointer-events: none; 184 | position: fixed; 185 | z-index: 10; 186 | opacity:1; 187 | top: -4px; 188 | left: -4px; 189 | transition: all .05s ease; 190 | } 191 | ul{ 192 | display: flex; 193 | flex-direction: row; 194 | } 195 | .swiper-pagination-container 196 | { 197 | position: relative; 198 | width: 100px; 199 | height:70px; 200 | z-index: 10; 201 | padding:10px 202 | } 203 | .swiper-pagination{ 204 | width:100px; 205 | height:2px; 206 | background: rgb(245, 245, 245,.2); 207 | opacity: 1; 208 | position: absolute; 209 | top: 50%; 210 | left: 50%; 211 | -ms-transform: translate(-50%, -50%); 212 | transform: translate(-50%, -50%); 213 | } 214 | .slider-control-image{ 215 | height:50px; 216 | } 217 | .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{ 218 | background: rgb(245, 245, 245); 219 | } 220 | .about-link{ 221 | padding-left:0px; 222 | } 223 | .slide-text{ 224 | position: absolute; 225 | left: 0; 226 | top: 0; 227 | width: 100%; 228 | height: 100%; 229 | display: flex; 230 | align-items: center; 231 | justify-content: center; 232 | color: rgb(245, 245, 245); 233 | font-size: 90px; 234 | text-align: center; 235 | font-family: bold; 236 | font-weight: 900; 237 | } 238 | #home .social-media-links { 239 | position: absolute; 240 | left:5%; 241 | bottom: 10%; 242 | color: rgb(245, 245, 245); 243 | z-index: 9; 244 | } 245 | .project .social-media-links{ 246 | position: absolute; 247 | left:2%; 248 | bottom: 5%; 249 | color: rgb(245, 245, 245); 250 | z-index: 0; 251 | } 252 | #about .social-media-links { 253 | position: absolute; 254 | right:5%; 255 | bottom: 5%; 256 | color: rgb(245, 245, 245); 257 | z-index: 9; 258 | } 259 | #home .social-media-links ul , #about .social-media-links ul , .project .social-media-links ul{ 260 | display: flex; 261 | flex-direction: row; 262 | font-size: 18px; 263 | } 264 | #home .social-media-links ul li ,#about .social-media-links ul li ,.project .social-media-links ul li{ 265 | font-family: brook; 266 | font-size: 18px; 267 | } 268 | 269 | #about{ 270 | position: relative; 271 | height: 100vh; 272 | width:100%; 273 | z-index:9; 274 | display: none; 275 | transform: scale(.9); 276 | overflow: hidden; 277 | } 278 | #about-color{ 279 | position: absolute; 280 | left:0; 281 | top:0; 282 | width: 100%; 283 | height:100%; 284 | background: #041b4e; 285 | opacity: .5; 286 | } 287 | 288 | #breaker{ 289 | background: #000000; 290 | position: fixed; 291 | height: 150vh; 292 | display: none; 293 | width: 100%; 294 | z-index: 11; 295 | transform: translateY(-100%); 296 | animation: breaker 2.5s ; 297 | } 298 | 299 | @keyframes breaker{ 300 | 0%{ 301 | transform: translateY(-100%); 302 | } 303 | 100%{ 304 | transform: translateY(100%); 305 | } 306 | } 307 | .about-img{ 308 | position: relative; 309 | width: 100%; 310 | height: 100vh; 311 | background: url(../images/about-pic.webp); 312 | background-position: center; 313 | background-size: cover; 314 | } 315 | .navigation-close-line{ 316 | height: 22px; 317 | width: 2px; 318 | border-radius: 10px; 319 | background: rgb(245, 245, 245); 320 | position: absolute; 321 | transform: rotate(-45deg); 322 | } 323 | .navigation-close{ 324 | padding: 20px; 325 | padding-top: 0px; 326 | cursor: pointer; 327 | } 328 | .navigation-close-line:nth-child(2){ 329 | transform: rotate(45deg); 330 | } 331 | .about-text{ 332 | display: flex; 333 | flex-direction: column; 334 | align-items: center; 335 | justify-content: center; 336 | height: 100vh; 337 | width: 100%; 338 | padding:100px; 339 | margin: 20px; 340 | position: relative; 341 | z-index: 5; 342 | color: rgb(245, 245, 245); 343 | font-family: poppins; 344 | } 345 | .about-text-header{ 346 | font-size: 28px; 347 | padding-bottom: 30px; 348 | } 349 | .about-text-button{ 350 | padding-top: 20px; 351 | text-align: left; 352 | margin: 10px; 353 | } 354 | .about-text-paragraph{ 355 | padding-bottom: 10px; 356 | font-size: 16px; 357 | opacity: .9; 358 | font-weight: 400; 359 | } 360 | .contact-button{ 361 | padding:10px 20px; 362 | background: rgb(245, 245, 245); 363 | outline: none; 364 | border: none; 365 | border-radius: 5px; 366 | font-weight: 600; 367 | opacity: .8; 368 | color:#041b4e; 369 | transition: all .4s ease; 370 | } 371 | .contact-button:hover{ 372 | opacity: 1; 373 | transform: scale(1.05); 374 | } 375 | .project{ 376 | height: 100vh; 377 | width: 100%; 378 | overflow: hidden; 379 | overflow: hidden; 380 | background: #050505; 381 | position: relative; 382 | } 383 | .slideshow{ 384 | width:95%; 385 | margin: auto; 386 | overflow: hidden; 387 | height: 80vh; 388 | } 389 | .slides,.forest-slides,.wildlife-slides,.city-slides{ 390 | width: 100%; 391 | height: 100vh; 392 | left: 0; 393 | top: 0; 394 | margin: auto; 395 | display: flex; 396 | justify-content: center; 397 | align-items: center; 398 | transition: all .5s ease; 399 | position: absolute; 400 | } 401 | .controls{ 402 | position: absolute; 403 | right:5%; 404 | bottom:5%; 405 | width: auto; 406 | height: auto; 407 | cursor: pointer; 408 | } 409 | .hover{ 410 | cursor: pointer; 411 | } 412 | .imgs{ 413 | cursor: pointer; 414 | height: 26px; 415 | width: 26px; 416 | transition: all .4s ease; 417 | } 418 | .controls button:hover img{ 419 | transform: scale(1.4); 420 | } 421 | .slides img,.forest-slides img,.wildlife-slides img,.city-slides img{ 422 | width: auto; 423 | max-height: 70vh; 424 | position: absolute; 425 | margin: auto; 426 | pointer-events: none; 427 | border-radius: 6px; 428 | } 429 | .navigation-project{ 430 | position: absolute; 431 | z-index: 2; 432 | } 433 | .controls button{ 434 | padding: 10px 10px; 435 | padding-left: 50px; 436 | background: transparent; 437 | color: rgb(245, 245, 245); 438 | transition: all .4s ease; 439 | outline: none; 440 | border: none; 441 | margin: 5px; 442 | } 443 | .project-link{ 444 | padding:100px; 445 | padding-left: 150px; 446 | padding-right: 150px; 447 | } 448 | .marine-project,.forest-project,.wildlife-project,.city-project{ 449 | display: none; 450 | transform: scale(.9); 451 | overflow: hidden; 452 | } 453 | .project-name{ 454 | font-size: 80px; 455 | font-family: bold; 456 | color: rgb(245, 245, 245); 457 | display: flex; 458 | align-items: center; 459 | justify-content: center; 460 | position: absolute; 461 | left:0; 462 | top:0; 463 | height: 100%; 464 | width: 100%; 465 | background: rgb(0,0,0,.4); 466 | -webkit-backdrop-filter: blur(7px); 467 | backdrop-filter: blur(7px); 468 | pointer-events: none; 469 | font-weight: 900; 470 | z-index: 5; 471 | } 472 | .view-project{ 473 | font-size: 18px; 474 | font-weight: 200; 475 | font-family: brook; 476 | margin-top: -10px; 477 | opacity: .9; 478 | padding: 0; 479 | } 480 | .pace { 481 | pointer-events: none; 482 | user-select: none; 483 | z-index: 2000; 484 | position: fixed; 485 | margin: auto; 486 | top: 0; 487 | left: 0; 488 | right: 0; 489 | bottom: 0; 490 | width: 400px; 491 | border: 0px; 492 | height: 1px; 493 | overflow: hidden; 494 | background:#1b1b1b; 495 | } 496 | 497 | .pace .pace-progress { 498 | box-sizing: border-box; 499 | transform: translate3d(0, 0, 0); 500 | max-width: 400px; 501 | position: fixed; 502 | z-index: 2000; 503 | display: block; 504 | position: absolute; 505 | top: 0; 506 | right: 100%; 507 | height: 100%; 508 | width: 100%; 509 | background: grey; 510 | } 511 | 512 | .pace.pace-inactive { 513 | display: none; 514 | } 515 | 516 | #preloader{ 517 | width:100%; 518 | height:100vh; 519 | background:#050505; 520 | overflow:hidden; 521 | z-index: 1000; 522 | position:fixed; 523 | transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1); 524 | } 525 | 526 | .p { 527 | position: absolute; 528 | top: 40%; 529 | left: 50%; 530 | transform: translate(-50%, -50%); 531 | font-family: bold; 532 | font-size: 30px; 533 | color: rgb(245, 245, 245); 534 | } 535 | #contact{ 536 | min-height: 100vh; 537 | width: 100%; 538 | overflow: hidden; 539 | background: #050505; 540 | position: relative; 541 | z-index: 5; 542 | color: rgb(245, 245, 245); 543 | font-family: brook; 544 | font-weight: 100; 545 | display: none; 546 | transform: scale(.9); 547 | } 548 | .contact-social-media-links{ 549 | padding-top: 30px; 550 | font-family: brook; 551 | z-index: 5; 552 | 553 | } 554 | .contact-social-media-links ul li:nth-child(1) { 555 | padding-left:0px; 556 | } 557 | .contact-social-media-links ul li:nth-child(3) { 558 | padding-right:30px; 559 | } 560 | .contact-header{ 561 | height: auto; 562 | padding:40px; 563 | padding-top: 80px; 564 | display: flex; 565 | align-items: center; 566 | justify-content: center; 567 | font-size: 28px; 568 | width: 100%; 569 | } 570 | .form{ 571 | min-height:70vh; 572 | width:100%; 573 | display: flex; 574 | flex-direction: column; 575 | align-items: center; 576 | justify-content: center; 577 | } 578 | .input-line{ 579 | width: 100%; 580 | height: auto; 581 | display: flex; 582 | align-items: center; 583 | justify-content: center; 584 | } 585 | input{ 586 | background: transparent; 587 | border-radius: 0px; 588 | border: none; 589 | border-bottom:1px solid rgb(255,255,255,.3) ; 590 | outline: none; 591 | margin:10px; 592 | padding:10px 20px; 593 | margin-bottom: 20px; 594 | font-size: 18px; 595 | width:80%; 596 | color: rgb(245, 245, 245); 597 | transition: all .2s ease; 598 | } 599 | .input-line-column{ 600 | width: 100%; 601 | height: auto; 602 | display: flex; 603 | flex-direction: column; 604 | align-items: center; 605 | justify-content: center; 606 | } 607 | .input-line-column input{ 608 | width:84%; 609 | } 610 | .input-same-line{ 611 | width:41%; 612 | } 613 | ::placeholder{ 614 | color: rgb(245, 245, 245,.8); 615 | } 616 | form{ 617 | width: 100%; 618 | display: flex; 619 | flex-direction: column; 620 | align-items: center; 621 | font-family: brook; 622 | justify-content: center; 623 | height: auto; 624 | } 625 | #submit{ 626 | background: transparent; 627 | outline: none; 628 | border: 1px solid rgb(255,255,255,.3); 629 | color: rgb(245, 245, 245); 630 | padding: 10px 30px; 631 | font-size: 18px; 632 | margin: 20px; 633 | font-family: brook; 634 | cursor: pointer; 635 | transition: all .4s ease; 636 | position: relative; 637 | overflow: hidden; 638 | z-index: 2; 639 | } 640 | #submit:after{ 641 | content: ""; 642 | background: rgb(245, 245, 245); 643 | color: #000000; 644 | left: 0; 645 | top:100%; 646 | z-index: -1; 647 | width: 100%; 648 | height: 100%; 649 | position: absolute; 650 | transition: all .4s cubic-bezier(0.19, 1, 0.22, 1); 651 | } 652 | #submit:hover{ 653 | color: black; 654 | } 655 | #submit:hover::after{ 656 | top:0; 657 | } 658 | .textarea{ 659 | width: 84%; 660 | height: 150px; 661 | outline: none; 662 | background: transparent; 663 | border-radius: 0px; 664 | border: none; 665 | border-bottom:1px solid rgb(255,255,255,.3); 666 | padding: 10px 20px; 667 | margin: 10px; 668 | margin-bottom: 20px; 669 | font-size: 18px; 670 | color: rgb(245, 245, 245); 671 | font-family: brook; 672 | transition: all .2s ease; 673 | } 674 | form .textarea:focus , form .textarea:valid{ 675 | border-bottom: 1px solid rgb(255,255,255,1); 676 | } 677 | input:focus , input:valid{ 678 | border-bottom: 1px solid rgb(255,255,255,1); 679 | } 680 | 681 | 682 | 683 | #projects .swiper-container{ 684 | width: 100%; 685 | z-index: 2; 686 | display: flex; 687 | align-items: center; 688 | justify-content: center; 689 | user-select: none; 690 | max-height: 70vh; 691 | } 692 | #projects .swiper-wrapper{ 693 | height: 70vh; 694 | } 695 | .align-center{ 696 | display: flex; 697 | align-items: center; 698 | justify-content: center; 699 | height: 100vh; 700 | width: 100%; 701 | } 702 | 703 | #projects .swiper-slide { 704 | text-align: center; 705 | font-size: 18px; 706 | background: transparent; 707 | max-width: 60%; 708 | position: relative; 709 | height: auto; 710 | /* Center slide text vertically */ 711 | display: -webkit-box; 712 | display: -ms-flexbox; 713 | display: -webkit-flex; 714 | display: flex; 715 | -webkit-box-pack: center; 716 | -ms-flex-pack: center; 717 | -webkit-justify-content: center; 718 | justify-content: center; 719 | -webkit-box-align: center; 720 | -ms-flex-align: center; 721 | -webkit-align-items: center; 722 | align-items: center; 723 | } 724 | #projects .swiper-slide img{ 725 | width: auto; 726 | max-height: 70vh; 727 | position: absolute; 728 | margin: auto; 729 | pointer-events: none; 730 | border-radius: 6px; 731 | } 732 | .gg-mouse { 733 | box-sizing: border-box; 734 | position: relative; 735 | display: block; 736 | transform: scale(var(--ggs,1)); 737 | width: 16px; 738 | height: 24px; 739 | border: 2px solid rgb(245, 245, 245); 740 | border-radius: 10px 741 | 742 | } 743 | 744 | .gg-mouse::after { 745 | content: ""; 746 | display: block; 747 | box-sizing: border-box; 748 | position: absolute; 749 | border-radius: 3px; 750 | width: 2px; 751 | height: 6px; 752 | background: rgb(245, 245, 245); 753 | top: 3px; 754 | animation: mouse 2s linear infinite; 755 | left: 5px 756 | } 757 | #projects .scroll-icon{ 758 | bottom: 7%; 759 | } 760 | .scroll-icon{ 761 | position: absolute; 762 | left: 50%; 763 | bottom: 10%; 764 | z-index: 2; 765 | } 766 | @keyframes mouse { 767 | 0%{ 768 | transform: translateY(0%); 769 | } 770 | 50%{ 771 | transform: translateY(50%); 772 | } 773 | 100%{ 774 | transform: translateY(0%); 775 | } 776 | } 777 | @-webkit-keyframes mouse{ 778 | 0%{ 779 | transform: translateY(0%); 780 | } 781 | 50%{ 782 | transform: translateY(50%); 783 | } 784 | 100%{ 785 | transform: translateY(0%); 786 | } 787 | } 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | /* 800 | 801 | FOR MOBILES 802 | 803 | */ 804 | @media all and (max-width: 576px) and (min-width: 375px){ 805 | .navigation{ 806 | font-size: 14px; 807 | padding-top:20px; 808 | padding-left: 20px; 809 | padding-left: 10px; 810 | } 811 | .cursor,.cursor-two{ 812 | display: none; 813 | } 814 | .navigation-links{ 815 | padding-right: 0px; 816 | padding-left: 0px; 817 | } 818 | .logo{ 819 | font-size: 14px; 820 | padding-left: 0px; 821 | } 822 | .project-link{ 823 | padding:40px; 824 | padding-left: 40px; 825 | padding-right: 40px; 826 | } 827 | .slider-controls{ 828 | position: absolute; 829 | right:15%; 830 | bottom:10%; 831 | height: auto; 832 | width: auto; 833 | display: flex; 834 | flex-direction: row; 835 | } 836 | .slide-text{ 837 | font-size: 70px; 838 | } 839 | #home .social-media-links{ 840 | display: none; 841 | } 842 | .about-img{ 843 | display: none; 844 | } 845 | #about{ 846 | background: url(../images/about-pic.webp); 847 | background-position: center; 848 | background-size: cover; 849 | } 850 | .about-text{ 851 | padding:50px; 852 | padding-top: 0px; 853 | padding-bottom: 0px; 854 | margin: 20px; 855 | } 856 | .about-text-header{ 857 | font-size: 22px; 858 | padding-bottom: 10px; 859 | } 860 | .about-text-paragraph{ 861 | padding-bottom: 10px; 862 | font-size: 16px; 863 | } 864 | .navigation-close-line{ 865 | height: 16px; 866 | width: 2px; 867 | } 868 | #about .social-media-links ul li{ 869 | font-family: brook; 870 | font-size: 16px; 871 | } 872 | .slides img,.forest-slides img,.wildlife-slides img,.city-slides img{ 873 | width: auto; 874 | max-width: 95%; 875 | max-height: auto; 876 | position: absolute; 877 | margin: auto; 878 | border-radius: 8px; 879 | } 880 | .controls button{ 881 | padding: 10px 10px; 882 | margin: 5px; 883 | } 884 | .controls button:hover img{ 885 | transform: scale(1); 886 | } 887 | .view-project{ 888 | display: block; 889 | } 890 | .input-line{ 891 | flex-direction: column; 892 | } 893 | .input-same-line{ 894 | width: 83%; 895 | } 896 | .pace{ 897 | width:200px; 898 | } 899 | .textarea{ 900 | height: 80px; 901 | } 902 | .form{ 903 | height: auto; 904 | 905 | } 906 | .contact-header{ 907 | padding:10px; 908 | padding-top: 80px; 909 | font-size: 24px; 910 | } 911 | 912 | #projects .swiper-slide img{ 913 | width: 100%; 914 | max-height: 70vh; 915 | position: absolute; 916 | margin: auto; 917 | pointer-events: none; 918 | border-radius: 6px; 919 | } 920 | .gg-mouse { 921 | 922 | display:none; 923 | } 924 | 925 | 926 | 927 | 928 | 929 | } 930 | /* 931 | FOR EXTRA SMALL DEVICES 932 | */ 933 | 934 | 935 | @media all and (max-width: 375px) and (min-width: 0px){ 936 | .navigation{ 937 | font-size: 14px; 938 | padding-top:20px; 939 | padding-left: 20px; 940 | padding-left: 10px; 941 | } 942 | .cursor,.cursor-two{ 943 | display: none; 944 | } 945 | .project-link{ 946 | padding:20px; 947 | padding-left: 20px; 948 | padding-right: 20px; 949 | } 950 | .navigation-links{ 951 | padding-right: 0px; 952 | padding-left: 0px; 953 | } 954 | .logo{ 955 | font-size: 14px; 956 | padding-left: 0px; 957 | } 958 | .slider-controls{ 959 | position: absolute; 960 | right:15%; 961 | bottom:10%; 962 | height: auto; 963 | width: auto; 964 | display: flex; 965 | flex-direction: row; 966 | } 967 | .slide-text{ 968 | font-size: 70px; 969 | } 970 | #home .social-media-links{ 971 | display: none; 972 | } 973 | .about-img{ 974 | display: none; 975 | } 976 | #about{ 977 | background: url(../images/about-pic.webp); 978 | background-position: center; 979 | background-size: cover; 980 | } 981 | .about-text{ 982 | padding:40px; 983 | padding-top: 0px; 984 | padding-bottom: 0px; 985 | margin: 20px; 986 | } 987 | .about-text-header{ 988 | font-size: 14px; 989 | padding-bottom: 10px; 990 | } 991 | .about-text-paragraph{ 992 | padding-bottom: 10px; 993 | font-size: 12px; 994 | } 995 | .contact-button{ 996 | padding:8px 16px; 997 | background: #b61071; 998 | outline: none; 999 | font-size: 12px; 1000 | border: none; 1001 | border-radius: 5px; 1002 | color: rgb(245, 245, 245); 1003 | } 1004 | #about .social-media-links ul li , .project .social-media-links ul li{ 1005 | font-size: 14px; 1006 | } 1007 | .navigation-close-line{ 1008 | height: 16px; 1009 | width: 2px; 1010 | } 1011 | .slides img,.forest-slides img,.wildlife-slides img,.city-slides img,.wildlife-slides img{ 1012 | width: 95%; 1013 | max-height: auto; 1014 | position: absolute; 1015 | margin: auto; 1016 | border-radius: 8px; 1017 | } 1018 | .controls button{ 1019 | padding: 10px 10px; 1020 | margin: 5px; 1021 | } 1022 | .controls button:hover img{ 1023 | transform: scale(1); 1024 | } 1025 | .view-project{ 1026 | display: block; 1027 | } 1028 | 1029 | .pace{ 1030 | width:200px; 1031 | } 1032 | .contact-info-content{ 1033 | min-height: 50vh; 1034 | } 1035 | .contact-info{ 1036 | min-height: auto; 1037 | } 1038 | .input-line{ 1039 | flex-direction: column; 1040 | } 1041 | .input-same-line{ 1042 | width: 83%; 1043 | } 1044 | .textarea{ 1045 | height: 80px; 1046 | } 1047 | .form{ 1048 | height: auto; 1049 | 1050 | } 1051 | .contact-header{ 1052 | padding:10px; 1053 | padding-top: 80px; 1054 | font-size: 18px; 1055 | } 1056 | input{ 1057 | font-size: 15px; 1058 | } 1059 | .textarea{ 1060 | font-size: 15px; 1061 | height: 50px; 1062 | padding-bottom: 10px; 1063 | } 1064 | #button{ 1065 | margin: 0px; 1066 | } 1067 | 1068 | #projects .swiper-slide img{ 1069 | width: 100%; 1070 | max-height: 70vh; 1071 | position: absolute; 1072 | margin: auto; 1073 | pointer-events: none; 1074 | border-radius: 6px; 1075 | } 1076 | .gg-mouse { 1077 | 1078 | display:none; 1079 | } 1080 | 1081 | } 1082 | 1083 | 1084 | /* 1085 | FOR TABLETS 1086 | */ 1087 | 1088 | @media all and (max-width: 991px) and (min-width: 576px){ 1089 | .cursor,.cursor-two{ 1090 | display: none; 1091 | } 1092 | .about-img{ 1093 | display: none; 1094 | } 1095 | #about{ 1096 | background: url(../images/about-pic.webp); 1097 | background-position: center; 1098 | background-size: cover; 1099 | } 1100 | .slides img,.forest-slides img,.wildlife-slides img,.city-slides img{ 1101 | width: auto; 1102 | max-width: 95%; 1103 | max-height: auto; 1104 | position: absolute; 1105 | margin: auto; 1106 | border-radius: 8px; 1107 | } 1108 | .view-project{ 1109 | display: block; 1110 | font-size: 20px; 1111 | } 1112 | .pace{ 1113 | width:300px; 1114 | } 1115 | .project-link{ 1116 | padding:100px; 1117 | padding-left: 100px; 1118 | padding-right: 100px; 1119 | } 1120 | .gg-mouse { 1121 | 1122 | display:none; 1123 | } 1124 | 1125 | #projects .swiper-slide img{ 1126 | width: 100%; 1127 | max-height: 70vh; 1128 | position: absolute; 1129 | margin: auto; 1130 | pointer-events: none; 1131 | border-radius: 6px; 1132 | } 1133 | 1134 | } -------------------------------------------------------------------------------- /js/pace.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, Pace, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNative, getFromDOM, getIntercept, handlePushState, ignoreStack, init, now, options, requestAnimationFrame, result, runAnimation, scalers, shouldIgnoreURL, shouldTrack, source, sources, uniScaler, _WebSocket, _XDomainRequest, _XMLHttpRequest, _i, _intercept, _len, _pushState, _ref, _ref1, _replaceState, 3 | __slice = [].slice, 4 | __hasProp = {}.hasOwnProperty, 5 | __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, 6 | __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; 7 | 8 | defaultOptions = { 9 | catchupTime: 100, 10 | initialRate: .03, 11 | minTime: 250, 12 | ghostTime: 100, 13 | maxProgressPerFrame: 20, 14 | easeFactor: 1.25, 15 | startOnPageLoad: true, 16 | restartOnPushState: true, 17 | restartOnRequestAfter: 500, 18 | target: 'body', 19 | elements: { 20 | checkInterval: 100, 21 | selectors: ['body'] 22 | }, 23 | eventLag: { 24 | minSamples: 10, 25 | sampleCount: 3, 26 | lagThreshold: 3 27 | }, 28 | ajax: { 29 | trackMethods: ['GET'], 30 | trackWebSockets: true, 31 | ignoreURLs: [] 32 | } 33 | }; 34 | 35 | now = function() { 36 | var _ref; 37 | return (_ref = typeof performance !== "undefined" && performance !== null ? typeof performance.now === "function" ? performance.now() : void 0 : void 0) != null ? _ref : +(new Date); 38 | }; 39 | 40 | requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; 41 | 42 | cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame; 43 | 44 | if (requestAnimationFrame == null) { 45 | requestAnimationFrame = function(fn) { 46 | return setTimeout(fn, 50); 47 | }; 48 | cancelAnimationFrame = function(id) { 49 | return clearTimeout(id); 50 | }; 51 | } 52 | 53 | runAnimation = function(fn) { 54 | var last, tick; 55 | last = now(); 56 | tick = function() { 57 | var diff; 58 | diff = now() - last; 59 | if (diff >= 33) { 60 | last = now(); 61 | return fn(diff, function() { 62 | return requestAnimationFrame(tick); 63 | }); 64 | } else { 65 | return setTimeout(tick, 33 - diff); 66 | } 67 | }; 68 | return tick(); 69 | }; 70 | 71 | result = function() { 72 | var args, key, obj; 73 | obj = arguments[0], key = arguments[1], args = 3 <= arguments.length ? __slice.call(arguments, 2) : []; 74 | if (typeof obj[key] === 'function') { 75 | return obj[key].apply(obj, args); 76 | } else { 77 | return obj[key]; 78 | } 79 | }; 80 | 81 | extend = function() { 82 | var key, out, source, sources, val, _i, _len; 83 | out = arguments[0], sources = 2 <= arguments.length ? __slice.call(arguments, 1) : []; 84 | for (_i = 0, _len = sources.length; _i < _len; _i++) { 85 | source = sources[_i]; 86 | if (source) { 87 | for (key in source) { 88 | if (!__hasProp.call(source, key)) continue; 89 | val = source[key]; 90 | if ((out[key] != null) && typeof out[key] === 'object' && (val != null) && typeof val === 'object') { 91 | extend(out[key], val); 92 | } else { 93 | out[key] = val; 94 | } 95 | } 96 | } 97 | } 98 | return out; 99 | }; 100 | 101 | avgAmplitude = function(arr) { 102 | var count, sum, v, _i, _len; 103 | sum = count = 0; 104 | for (_i = 0, _len = arr.length; _i < _len; _i++) { 105 | v = arr[_i]; 106 | sum += Math.abs(v); 107 | count++; 108 | } 109 | return sum / count; 110 | }; 111 | 112 | getFromDOM = function(key, json) { 113 | var data, e, el; 114 | if (key == null) { 115 | key = 'options'; 116 | } 117 | if (json == null) { 118 | json = true; 119 | } 120 | el = document.querySelector("[data-pace-" + key + "]"); 121 | if (!el) { 122 | return; 123 | } 124 | data = el.getAttribute("data-pace-" + key); 125 | if (!json) { 126 | return data; 127 | } 128 | try { 129 | return JSON.parse(data); 130 | } catch (_error) { 131 | e = _error; 132 | return typeof console !== "undefined" && console !== null ? console.error("Error parsing inline pace options", e) : void 0; 133 | } 134 | }; 135 | 136 | Evented = (function() { 137 | function Evented() {} 138 | 139 | Evented.prototype.on = function(event, handler, ctx, once) { 140 | var _base; 141 | if (once == null) { 142 | once = false; 143 | } 144 | if (this.bindings == null) { 145 | this.bindings = {}; 146 | } 147 | if ((_base = this.bindings)[event] == null) { 148 | _base[event] = []; 149 | } 150 | return this.bindings[event].push({ 151 | handler: handler, 152 | ctx: ctx, 153 | once: once 154 | }); 155 | }; 156 | 157 | Evented.prototype.once = function(event, handler, ctx) { 158 | return this.on(event, handler, ctx, true); 159 | }; 160 | 161 | Evented.prototype.off = function(event, handler) { 162 | var i, _ref, _results; 163 | if (((_ref = this.bindings) != null ? _ref[event] : void 0) == null) { 164 | return; 165 | } 166 | if (handler == null) { 167 | return delete this.bindings[event]; 168 | } else { 169 | i = 0; 170 | _results = []; 171 | while (i < this.bindings[event].length) { 172 | if (this.bindings[event][i].handler === handler) { 173 | _results.push(this.bindings[event].splice(i, 1)); 174 | } else { 175 | _results.push(i++); 176 | } 177 | } 178 | return _results; 179 | } 180 | }; 181 | 182 | Evented.prototype.trigger = function() { 183 | var args, ctx, event, handler, i, once, _ref, _ref1, _results; 184 | event = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; 185 | if ((_ref = this.bindings) != null ? _ref[event] : void 0) { 186 | i = 0; 187 | _results = []; 188 | while (i < this.bindings[event].length) { 189 | _ref1 = this.bindings[event][i], handler = _ref1.handler, ctx = _ref1.ctx, once = _ref1.once; 190 | handler.apply(ctx != null ? ctx : this, args); 191 | if (once) { 192 | _results.push(this.bindings[event].splice(i, 1)); 193 | } else { 194 | _results.push(i++); 195 | } 196 | } 197 | return _results; 198 | } 199 | }; 200 | 201 | return Evented; 202 | 203 | })(); 204 | 205 | Pace = window.Pace || {}; 206 | 207 | window.Pace = Pace; 208 | 209 | extend(Pace, Evented.prototype); 210 | 211 | options = Pace.options = extend({}, defaultOptions, window.paceOptions, getFromDOM()); 212 | 213 | _ref = ['ajax', 'document', 'eventLag', 'elements']; 214 | for (_i = 0, _len = _ref.length; _i < _len; _i++) { 215 | source = _ref[_i]; 216 | if (options[source] === true) { 217 | options[source] = defaultOptions[source]; 218 | } 219 | } 220 | 221 | NoTargetError = (function(_super) { 222 | __extends(NoTargetError, _super); 223 | 224 | function NoTargetError() { 225 | _ref1 = NoTargetError.__super__.constructor.apply(this, arguments); 226 | return _ref1; 227 | } 228 | 229 | return NoTargetError; 230 | 231 | })(Error); 232 | 233 | Bar = (function() { 234 | function Bar() { 235 | this.progress = 0; 236 | } 237 | 238 | Bar.prototype.getElement = function() { 239 | var targetElement; 240 | if (this.el == null) { 241 | targetElement = document.querySelector(options.target); 242 | if (!targetElement) { 243 | throw new NoTargetError; 244 | } 245 | this.el = document.createElement('div'); 246 | this.el.className = "pace pace-active"; 247 | document.body.className = document.body.className.replace(/pace-done/g, ''); 248 | document.body.className += ' pace-running'; 249 | this.el.innerHTML = '
\n
\n
\n
'; 250 | if (targetElement.firstChild != null) { 251 | targetElement.insertBefore(this.el, targetElement.firstChild); 252 | } else { 253 | targetElement.appendChild(this.el); 254 | } 255 | } 256 | return this.el; 257 | }; 258 | 259 | Bar.prototype.finish = function() { 260 | var el; 261 | el = this.getElement(); 262 | el.className = el.className.replace('pace-active', ''); 263 | el.className += ' pace-inactive'; 264 | document.body.className = document.body.className.replace('pace-running', ''); 265 | return document.body.className += ' pace-done'; 266 | }; 267 | 268 | Bar.prototype.update = function(prog) { 269 | this.progress = prog; 270 | return this.render(); 271 | }; 272 | 273 | Bar.prototype.destroy = function() { 274 | try { 275 | this.getElement().parentNode.removeChild(this.getElement()); 276 | } catch (_error) { 277 | NoTargetError = _error; 278 | } 279 | return this.el = void 0; 280 | }; 281 | 282 | Bar.prototype.render = function() { 283 | var el, key, progressStr, transform, _j, _len1, _ref2; 284 | if (document.querySelector(options.target) == null) { 285 | return false; 286 | } 287 | el = this.getElement(); 288 | transform = "translate3d(" + this.progress + "%, 0, 0)"; 289 | _ref2 = ['webkitTransform', 'msTransform', 'transform']; 290 | for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 291 | key = _ref2[_j]; 292 | el.children[0].style[key] = transform; 293 | } 294 | if (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) { 295 | el.children[0].setAttribute('data-progress-text', "" + (this.progress | 0) + "%"); 296 | if (this.progress >= 100) { 297 | progressStr = '99'; 298 | } else { 299 | progressStr = this.progress < 10 ? "0" : ""; 300 | progressStr += this.progress | 0; 301 | } 302 | el.children[0].setAttribute('data-progress', "" + progressStr); 303 | } 304 | return this.lastRenderedProgress = this.progress; 305 | }; 306 | 307 | Bar.prototype.done = function() { 308 | return this.progress >= 100; 309 | }; 310 | 311 | return Bar; 312 | 313 | })(); 314 | 315 | Events = (function() { 316 | function Events() { 317 | this.bindings = {}; 318 | } 319 | 320 | Events.prototype.trigger = function(name, val) { 321 | var binding, _j, _len1, _ref2, _results; 322 | if (this.bindings[name] != null) { 323 | _ref2 = this.bindings[name]; 324 | _results = []; 325 | for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 326 | binding = _ref2[_j]; 327 | _results.push(binding.call(this, val)); 328 | } 329 | return _results; 330 | } 331 | }; 332 | 333 | Events.prototype.on = function(name, fn) { 334 | var _base; 335 | if ((_base = this.bindings)[name] == null) { 336 | _base[name] = []; 337 | } 338 | return this.bindings[name].push(fn); 339 | }; 340 | 341 | return Events; 342 | 343 | })(); 344 | 345 | _XMLHttpRequest = window.XMLHttpRequest; 346 | 347 | _XDomainRequest = window.XDomainRequest; 348 | 349 | _WebSocket = window.WebSocket; 350 | 351 | extendNative = function(to, from) { 352 | var e, key, _results; 353 | _results = []; 354 | for (key in from.prototype) { 355 | try { 356 | if ((to[key] == null) && typeof from[key] !== 'function') { 357 | if (typeof Object.defineProperty === 'function') { 358 | _results.push(Object.defineProperty(to, key, { 359 | get: function() { 360 | return from.prototype[key]; 361 | }, 362 | configurable: true, 363 | enumerable: true 364 | })); 365 | } else { 366 | _results.push(to[key] = from.prototype[key]); 367 | } 368 | } else { 369 | _results.push(void 0); 370 | } 371 | } catch (_error) { 372 | e = _error; 373 | } 374 | } 375 | return _results; 376 | }; 377 | 378 | ignoreStack = []; 379 | 380 | Pace.ignore = function() { 381 | var args, fn, ret; 382 | fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; 383 | ignoreStack.unshift('ignore'); 384 | ret = fn.apply(null, args); 385 | ignoreStack.shift(); 386 | return ret; 387 | }; 388 | 389 | Pace.track = function() { 390 | var args, fn, ret; 391 | fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; 392 | ignoreStack.unshift('track'); 393 | ret = fn.apply(null, args); 394 | ignoreStack.shift(); 395 | return ret; 396 | }; 397 | 398 | shouldTrack = function(method) { 399 | var _ref2; 400 | if (method == null) { 401 | method = 'GET'; 402 | } 403 | if (ignoreStack[0] === 'track') { 404 | return 'force'; 405 | } 406 | if (!ignoreStack.length && options.ajax) { 407 | if (method === 'socket' && options.ajax.trackWebSockets) { 408 | return true; 409 | } else if (_ref2 = method.toUpperCase(), __indexOf.call(options.ajax.trackMethods, _ref2) >= 0) { 410 | return true; 411 | } 412 | } 413 | return false; 414 | }; 415 | 416 | RequestIntercept = (function(_super) { 417 | __extends(RequestIntercept, _super); 418 | 419 | function RequestIntercept() { 420 | var monitorXHR, 421 | _this = this; 422 | RequestIntercept.__super__.constructor.apply(this, arguments); 423 | monitorXHR = function(req) { 424 | var _open; 425 | _open = req.open; 426 | return req.open = function(type, url, async) { 427 | if (shouldTrack(type)) { 428 | _this.trigger('request', { 429 | type: type, 430 | url: url, 431 | request: req 432 | }); 433 | } 434 | return _open.apply(req, arguments); 435 | }; 436 | }; 437 | window.XMLHttpRequest = function(flags) { 438 | var req; 439 | req = new _XMLHttpRequest(flags); 440 | monitorXHR(req); 441 | return req; 442 | }; 443 | try { 444 | extendNative(window.XMLHttpRequest, _XMLHttpRequest); 445 | } catch (_error) {} 446 | if (_XDomainRequest != null) { 447 | window.XDomainRequest = function() { 448 | var req; 449 | req = new _XDomainRequest; 450 | monitorXHR(req); 451 | return req; 452 | }; 453 | try { 454 | extendNative(window.XDomainRequest, _XDomainRequest); 455 | } catch (_error) {} 456 | } 457 | if ((_WebSocket != null) && options.ajax.trackWebSockets) { 458 | window.WebSocket = function(url, protocols) { 459 | var req; 460 | if (protocols != null) { 461 | req = new _WebSocket(url, protocols); 462 | } else { 463 | req = new _WebSocket(url); 464 | } 465 | if (shouldTrack('socket')) { 466 | _this.trigger('request', { 467 | type: 'socket', 468 | url: url, 469 | protocols: protocols, 470 | request: req 471 | }); 472 | } 473 | return req; 474 | }; 475 | try { 476 | extendNative(window.WebSocket, _WebSocket); 477 | } catch (_error) {} 478 | } 479 | } 480 | 481 | return RequestIntercept; 482 | 483 | })(Events); 484 | 485 | _intercept = null; 486 | 487 | getIntercept = function() { 488 | if (_intercept == null) { 489 | _intercept = new RequestIntercept; 490 | } 491 | return _intercept; 492 | }; 493 | 494 | shouldIgnoreURL = function(url) { 495 | var pattern, _j, _len1, _ref2; 496 | _ref2 = options.ajax.ignoreURLs; 497 | for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 498 | pattern = _ref2[_j]; 499 | if (typeof pattern === 'string') { 500 | if (url.indexOf(pattern) !== -1) { 501 | return true; 502 | } 503 | } else { 504 | if (pattern.test(url)) { 505 | return true; 506 | } 507 | } 508 | } 509 | return false; 510 | }; 511 | 512 | getIntercept().on('request', function(_arg) { 513 | var after, args, request, type, url; 514 | type = _arg.type, request = _arg.request, url = _arg.url; 515 | if (shouldIgnoreURL(url)) { 516 | return; 517 | } 518 | if (!Pace.running && (options.restartOnRequestAfter !== false || shouldTrack(type) === 'force')) { 519 | args = arguments; 520 | after = options.restartOnRequestAfter || 0; 521 | if (typeof after === 'boolean') { 522 | after = 0; 523 | } 524 | return setTimeout(function() { 525 | var stillActive, _j, _len1, _ref2, _ref3, _results; 526 | if (type === 'socket') { 527 | stillActive = request.readyState < 2; 528 | } else { 529 | stillActive = (0 < (_ref2 = request.readyState) && _ref2 < 4); 530 | } 531 | if (stillActive) { 532 | Pace.restart(); 533 | _ref3 = Pace.sources; 534 | _results = []; 535 | for (_j = 0, _len1 = _ref3.length; _j < _len1; _j++) { 536 | source = _ref3[_j]; 537 | if (source instanceof AjaxMonitor) { 538 | source.watch.apply(source, args); 539 | break; 540 | } else { 541 | _results.push(void 0); 542 | } 543 | } 544 | return _results; 545 | } 546 | }, after); 547 | } 548 | }); 549 | 550 | AjaxMonitor = (function() { 551 | function AjaxMonitor() { 552 | var _this = this; 553 | this.elements = []; 554 | getIntercept().on('request', function() { 555 | return _this.watch.apply(_this, arguments); 556 | }); 557 | } 558 | 559 | AjaxMonitor.prototype.watch = function(_arg) { 560 | var request, tracker, type, url; 561 | type = _arg.type, request = _arg.request, url = _arg.url; 562 | if (shouldIgnoreURL(url)) { 563 | return; 564 | } 565 | if (type === 'socket') { 566 | tracker = new SocketRequestTracker(request); 567 | } else { 568 | tracker = new XHRRequestTracker(request); 569 | } 570 | return this.elements.push(tracker); 571 | }; 572 | 573 | return AjaxMonitor; 574 | 575 | })(); 576 | 577 | XHRRequestTracker = (function() { 578 | function XHRRequestTracker(request) { 579 | var event, size, _j, _len1, _onreadystatechange, _ref2, 580 | _this = this; 581 | this.progress = 0; 582 | if (window.ProgressEvent != null) { 583 | size = null; 584 | request.addEventListener('progress', function(evt) { 585 | if (evt.lengthComputable) { 586 | return _this.progress = 100 * evt.loaded / evt.total; 587 | } else { 588 | return _this.progress = _this.progress + (100 - _this.progress) / 2; 589 | } 590 | }, false); 591 | _ref2 = ['load', 'abort', 'timeout', 'error']; 592 | for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 593 | event = _ref2[_j]; 594 | request.addEventListener(event, function() { 595 | return _this.progress = 100; 596 | }, false); 597 | } 598 | } else { 599 | _onreadystatechange = request.onreadystatechange; 600 | request.onreadystatechange = function() { 601 | var _ref3; 602 | if ((_ref3 = request.readyState) === 0 || _ref3 === 4) { 603 | _this.progress = 100; 604 | } else if (request.readyState === 3) { 605 | _this.progress = 50; 606 | } 607 | return typeof _onreadystatechange === "function" ? _onreadystatechange.apply(null, arguments) : void 0; 608 | }; 609 | } 610 | } 611 | 612 | return XHRRequestTracker; 613 | 614 | })(); 615 | 616 | SocketRequestTracker = (function() { 617 | function SocketRequestTracker(request) { 618 | var event, _j, _len1, _ref2, 619 | _this = this; 620 | this.progress = 0; 621 | _ref2 = ['error', 'open']; 622 | for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 623 | event = _ref2[_j]; 624 | request.addEventListener(event, function() { 625 | return _this.progress = 100; 626 | }, false); 627 | } 628 | } 629 | 630 | return SocketRequestTracker; 631 | 632 | })(); 633 | 634 | ElementMonitor = (function() { 635 | function ElementMonitor(options) { 636 | var selector, _j, _len1, _ref2; 637 | if (options == null) { 638 | options = {}; 639 | } 640 | this.elements = []; 641 | if (options.selectors == null) { 642 | options.selectors = []; 643 | } 644 | _ref2 = options.selectors; 645 | for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 646 | selector = _ref2[_j]; 647 | this.elements.push(new ElementTracker(selector)); 648 | } 649 | } 650 | 651 | return ElementMonitor; 652 | 653 | })(); 654 | 655 | ElementTracker = (function() { 656 | function ElementTracker(selector) { 657 | this.selector = selector; 658 | this.progress = 0; 659 | this.check(); 660 | } 661 | 662 | ElementTracker.prototype.check = function() { 663 | var _this = this; 664 | if (document.querySelector(this.selector)) { 665 | return this.done(); 666 | } else { 667 | return setTimeout((function() { 668 | return _this.check(); 669 | }), options.elements.checkInterval); 670 | } 671 | }; 672 | 673 | ElementTracker.prototype.done = function() { 674 | return this.progress = 100; 675 | }; 676 | 677 | return ElementTracker; 678 | 679 | })(); 680 | 681 | DocumentMonitor = (function() { 682 | DocumentMonitor.prototype.states = { 683 | loading: 0, 684 | interactive: 50, 685 | complete: 100 686 | }; 687 | 688 | function DocumentMonitor() { 689 | var _onreadystatechange, _ref2, 690 | _this = this; 691 | this.progress = (_ref2 = this.states[document.readyState]) != null ? _ref2 : 100; 692 | _onreadystatechange = document.onreadystatechange; 693 | document.onreadystatechange = function() { 694 | if (_this.states[document.readyState] != null) { 695 | _this.progress = _this.states[document.readyState]; 696 | } 697 | return typeof _onreadystatechange === "function" ? _onreadystatechange.apply(null, arguments) : void 0; 698 | }; 699 | } 700 | 701 | return DocumentMonitor; 702 | 703 | })(); 704 | 705 | EventLagMonitor = (function() { 706 | function EventLagMonitor() { 707 | var avg, interval, last, points, samples, 708 | _this = this; 709 | this.progress = 0; 710 | avg = 0; 711 | samples = []; 712 | points = 0; 713 | last = now(); 714 | interval = setInterval(function() { 715 | var diff; 716 | diff = now() - last - 50; 717 | last = now(); 718 | samples.push(diff); 719 | if (samples.length > options.eventLag.sampleCount) { 720 | samples.shift(); 721 | } 722 | avg = avgAmplitude(samples); 723 | if (++points >= options.eventLag.minSamples && avg < options.eventLag.lagThreshold) { 724 | _this.progress = 100; 725 | return clearInterval(interval); 726 | } else { 727 | return _this.progress = 100 * (3 / (avg + 3)); 728 | } 729 | }, 50); 730 | } 731 | 732 | return EventLagMonitor; 733 | 734 | })(); 735 | 736 | Scaler = (function() { 737 | function Scaler(source) { 738 | this.source = source; 739 | this.last = this.sinceLastUpdate = 0; 740 | this.rate = options.initialRate; 741 | this.catchup = 0; 742 | this.progress = this.lastProgress = 0; 743 | if (this.source != null) { 744 | this.progress = result(this.source, 'progress'); 745 | } 746 | } 747 | 748 | Scaler.prototype.tick = function(frameTime, val) { 749 | var scaling; 750 | if (val == null) { 751 | val = result(this.source, 'progress'); 752 | } 753 | if (val >= 100) { 754 | this.done = true; 755 | } 756 | if (val === this.last) { 757 | this.sinceLastUpdate += frameTime; 758 | } else { 759 | if (this.sinceLastUpdate) { 760 | this.rate = (val - this.last) / this.sinceLastUpdate; 761 | } 762 | this.catchup = (val - this.progress) / options.catchupTime; 763 | this.sinceLastUpdate = 0; 764 | this.last = val; 765 | } 766 | if (val > this.progress) { 767 | this.progress += this.catchup * frameTime; 768 | } 769 | scaling = 1 - Math.pow(this.progress / 100, options.easeFactor); 770 | this.progress += scaling * this.rate * frameTime; 771 | this.progress = Math.min(this.lastProgress + options.maxProgressPerFrame, this.progress); 772 | this.progress = Math.max(0, this.progress); 773 | this.progress = Math.min(100, this.progress); 774 | this.lastProgress = this.progress; 775 | return this.progress; 776 | }; 777 | 778 | return Scaler; 779 | 780 | })(); 781 | 782 | sources = null; 783 | 784 | scalers = null; 785 | 786 | bar = null; 787 | 788 | uniScaler = null; 789 | 790 | animation = null; 791 | 792 | cancelAnimation = null; 793 | 794 | Pace.running = false; 795 | 796 | handlePushState = function() { 797 | if (options.restartOnPushState) { 798 | return Pace.restart(); 799 | } 800 | }; 801 | 802 | if (window.history.pushState != null) { 803 | _pushState = window.history.pushState; 804 | window.history.pushState = function() { 805 | handlePushState(); 806 | return _pushState.apply(window.history, arguments); 807 | }; 808 | } 809 | 810 | if (window.history.replaceState != null) { 811 | _replaceState = window.history.replaceState; 812 | window.history.replaceState = function() { 813 | handlePushState(); 814 | return _replaceState.apply(window.history, arguments); 815 | }; 816 | } 817 | 818 | SOURCE_KEYS = { 819 | ajax: AjaxMonitor, 820 | elements: ElementMonitor, 821 | document: DocumentMonitor, 822 | eventLag: EventLagMonitor 823 | }; 824 | 825 | (init = function() { 826 | var type, _j, _k, _len1, _len2, _ref2, _ref3, _ref4; 827 | Pace.sources = sources = []; 828 | _ref2 = ['ajax', 'elements', 'document', 'eventLag']; 829 | for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 830 | type = _ref2[_j]; 831 | if (options[type] !== false) { 832 | sources.push(new SOURCE_KEYS[type](options[type])); 833 | } 834 | } 835 | _ref4 = (_ref3 = options.extraSources) != null ? _ref3 : []; 836 | for (_k = 0, _len2 = _ref4.length; _k < _len2; _k++) { 837 | source = _ref4[_k]; 838 | sources.push(new source(options)); 839 | } 840 | Pace.bar = bar = new Bar; 841 | scalers = []; 842 | return uniScaler = new Scaler; 843 | })(); 844 | 845 | Pace.stop = function() { 846 | Pace.trigger('stop'); 847 | Pace.running = false; 848 | bar.destroy(); 849 | cancelAnimation = true; 850 | if (animation != null) { 851 | if (typeof cancelAnimationFrame === "function") { 852 | cancelAnimationFrame(animation); 853 | } 854 | animation = null; 855 | } 856 | return init(); 857 | }; 858 | 859 | Pace.restart = function() { 860 | Pace.trigger('restart'); 861 | Pace.stop(); 862 | return Pace.start(); 863 | }; 864 | 865 | Pace.go = function() { 866 | var start; 867 | Pace.running = true; 868 | bar.render(); 869 | start = now(); 870 | cancelAnimation = false; 871 | return animation = runAnimation(function(frameTime, enqueueNextFrame) { 872 | var avg, count, done, element, elements, i, j, remaining, scaler, scalerList, sum, _j, _k, _len1, _len2, _ref2; 873 | remaining = 100 - bar.progress; 874 | count = sum = 0; 875 | done = true; 876 | for (i = _j = 0, _len1 = sources.length; _j < _len1; i = ++_j) { 877 | source = sources[i]; 878 | scalerList = scalers[i] != null ? scalers[i] : scalers[i] = []; 879 | elements = (_ref2 = source.elements) != null ? _ref2 : [source]; 880 | for (j = _k = 0, _len2 = elements.length; _k < _len2; j = ++_k) { 881 | element = elements[j]; 882 | scaler = scalerList[j] != null ? scalerList[j] : scalerList[j] = new Scaler(element); 883 | done &= scaler.done; 884 | if (scaler.done) { 885 | continue; 886 | } 887 | count++; 888 | sum += scaler.tick(frameTime); 889 | } 890 | } 891 | avg = sum / count; 892 | bar.update(uniScaler.tick(frameTime, avg)); 893 | if (bar.done() || done || cancelAnimation) { 894 | bar.update(100); 895 | Pace.trigger('done'); 896 | return setTimeout(function() { 897 | bar.finish(); 898 | Pace.running = false; 899 | return Pace.trigger('hide'); 900 | }, Math.max(options.ghostTime, Math.max(options.minTime - (now() - start), 0))); 901 | } else { 902 | return enqueueNextFrame(); 903 | } 904 | }); 905 | }; 906 | 907 | Pace.start = function(_options) { 908 | extend(options, _options); 909 | Pace.running = true; 910 | try { 911 | bar.render(); 912 | } catch (_error) { 913 | NoTargetError = _error; 914 | } 915 | if (!document.querySelector('.pace')) { 916 | return setTimeout(Pace.start, 50); 917 | } else { 918 | Pace.trigger('start'); 919 | return Pace.go(); 920 | } 921 | }; 922 | 923 | if (typeof define === 'function' && define.amd) { 924 | define(['pace'], function() { 925 | return Pace; 926 | }); 927 | } else if (typeof exports === 'object') { 928 | module.exports = Pace; 929 | } else { 930 | if (options.startOnPageLoad) { 931 | Pace.start(); 932 | } 933 | } 934 | 935 | }).call(this); 936 | 937 | 938 | -------------------------------------------------------------------------------- /js/jquery.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery v2.0.0 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license 2 | //@ sourceMappingURL=jquery.min.map 3 | */ 4 | (function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],f="2.0.0",p=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=f.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),C.test(r[1])&&x.isPlainObject(t))for(r in t)x.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=o.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},a=2),"object"==typeof s||x.isFunction(s)||(s={}),u===a&&(s=this,--a);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(x.isPlainObject(r)||(i=x.isArray(r)))?(i?(i=!1,o=n&&x.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},s[t]=x.extend(l,o,r)):r!==undefined&&(s[t]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=a),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(e===!0?--x.readyWait:x.isReady)||(x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(o,[x]),x.fn.trigger&&x(o).trigger("ready").off("ready")))},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){var t,n=eval;e=x.trim(e),e&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,s=j(e);if(n){if(s){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(s){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":v.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],o=0,s=e.length;for(n=!!n;s>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,s=j(e),a=[];if(s)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(a[a.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(a[a.length]=r);return p.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),x.isFunction(e)?(r=d.call(arguments,2),i=function(){return e.apply(t||this,r.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):undefined},access:function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===x.type(n)){i=!0;for(a in n)x.access(e,t,a,n[a],!0,o,s)}else if(r!==undefined&&(i=!0,x.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},now:Date.now,swap:function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i}}),x.ready.promise=function(t){return n||(n=x.Deferred(),"complete"===o.readyState?setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",S,!1),e.addEventListener("load",S,!1))),n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function j(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}t=x(o),function(e,undefined){var t,n,r,i,o,s,a,u,l,c,f,p,h,d,g,m,y="sizzle"+-new Date,v=e.document,b={},w=0,T=0,C=ot(),k=ot(),N=ot(),E=!1,S=function(){return 0},j=typeof undefined,D=1<<31,A=[],L=A.pop,q=A.push,H=A.push,O=A.slice,F=A.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=M.replace("w","w#"),$="\\["+R+"*("+M+")"+R+"*(?:([*^$|!~]?=)"+R+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+R+"*\\]",B=":("+M+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",I=RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),z=RegExp("^"+R+"*,"+R+"*"),_=RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),X=RegExp(R+"*[+~]"),U=RegExp("="+R+"*([^\\]'\"]*)"+R+"*\\]","g"),Y=RegExp(B),V=RegExp("^"+W+"$"),G={ID:RegExp("^#("+M+")"),CLASS:RegExp("^\\.("+M+")"),TAG:RegExp("^("+M.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+B),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),"boolean":RegExp("^(?:"+P+")$","i"),needsContext:RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,et=/'|\\/g,tt=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,nt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{H.apply(A=O.call(v.childNodes),v.childNodes),A[v.childNodes.length].nodeType}catch(rt){H={apply:A.length?function(e,t){q.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function it(e){return J.test(e+"")}function ot(){var e,t=[];return e=function(n,i){return t.push(n+=" ")>r.cacheLength&&delete e[t.shift()],e[n]=i}}function st(e){return e[y]=!0,e}function at(e){var t=c.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ut(e,t,n,r){var i,o,s,a,u,f,d,g,x,w;if((t?t.ownerDocument||t:v)!==c&&l(t),t=t||c,n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=t.nodeType)&&9!==a)return[];if(p&&!r){if(i=Q.exec(e))if(s=i[1]){if(9===a){if(o=t.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(s))&&m(t,o)&&o.id===s)return n.push(o),n}else{if(i[2])return H.apply(n,t.getElementsByTagName(e)),n;if((s=i[3])&&b.getElementsByClassName&&t.getElementsByClassName)return H.apply(n,t.getElementsByClassName(s)),n}if(b.qsa&&(!h||!h.test(e))){if(g=d=y,x=t,w=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){f=gt(e),(d=t.getAttribute("id"))?g=d.replace(et,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=f.length;while(u--)f[u]=g+mt(f[u]);x=X.test(e)&&t.parentNode||t,w=f.join(",")}if(w)try{return H.apply(n,x.querySelectorAll(w)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(I,"$1"),t,n,r)}o=ut.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},l=ut.setDocument=function(e){var t=e?e.ownerDocument||e:v;return t!==c&&9===t.nodeType&&t.documentElement?(c=t,f=t.documentElement,p=!o(t),b.getElementsByTagName=at(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),b.attributes=at(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByClassName=at(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),b.sortDetached=at(function(e){return 1&e.compareDocumentPosition(c.createElement("div"))}),b.getById=at(function(e){return f.appendChild(e).id=y,!t.getElementsByName||!t.getElementsByName(y).length}),b.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!==j&&p){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(tt,nt);return function(e){return e.getAttribute("id")===t}}):(r.find.ID=function(e,t){if(typeof t.getElementById!==j&&p){var n=t.getElementById(e);return n?n.id===e||typeof n.getAttributeNode!==j&&n.getAttributeNode("id").value===e?[n]:undefined:[]}},r.filter.ID=function(e){var t=e.replace(tt,nt);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=b.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==j?t.getElementsByTagName(e):undefined}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=b.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==j&&p?t.getElementsByClassName(e):undefined},d=[],h=[],(b.qsa=it(t.querySelectorAll))&&(at(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||h.push("\\["+R+"*(?:value|"+P+")"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){var t=c.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&h.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(b.matchesSelector=it(g=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){b.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),d.push("!=",B)}),h=h.length&&RegExp(h.join("|")),d=d.length&&RegExp(d.join("|")),m=it(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=f.compareDocumentPosition?function(e,n){if(e===n)return E=!0,0;var r=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);return r?1&r||!b.sortDetached&&n.compareDocumentPosition(e)===r?e===t||m(v,e)?-1:n===t||m(v,n)?1:u?F.call(u,e)-F.call(u,n):0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,s=n.parentNode,a=[e],l=[n];if(e===n)return E=!0,0;if(!o||!s)return e===t?-1:n===t?1:o?-1:s?1:u?F.call(u,e)-F.call(u,n):0;if(o===s)return lt(e,n);r=e;while(r=r.parentNode)a.unshift(r);r=n;while(r=r.parentNode)l.unshift(r);while(a[i]===l[i])i++;return i?lt(a[i],l[i]):a[i]===v?-1:l[i]===v?1:0},c):c},ut.matches=function(e,t){return ut(e,null,null,t)},ut.matchesSelector=function(e,t){if((e.ownerDocument||e)!==c&&l(e),t=t.replace(U,"='$1']"),!(!b.matchesSelector||!p||d&&d.test(t)||h&&h.test(t)))try{var n=g.call(e,t);if(n||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return ut(t,c,null,[e]).length>0},ut.contains=function(e,t){return(e.ownerDocument||e)!==c&&l(e),m(e,t)},ut.attr=function(e,t){(e.ownerDocument||e)!==c&&l(e);var n=r.attrHandle[t.toLowerCase()],i=n&&n(e,t,!p);return i===undefined?b.attributes||!p?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null:i},ut.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ut.uniqueSort=function(e){var t,n=[],r=0,i=0;if(E=!b.detectDuplicates,u=!b.sortStable&&e.slice(0),e.sort(S),E){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return e};function lt(e,t){var n=t&&e,r=n&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ct(e,t,n){var r;return n?undefined:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}function ft(e,t,n){var r;return n?undefined:r=e.getAttribute(t,"type"===t.toLowerCase()?1:2)}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function dt(e){return st(function(t){return t=+t,st(function(n,r){var i,o=e([],n.length,t),s=o.length;while(s--)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}i=ut.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r];r++)n+=i(t);return n},r=ut.selectors={cacheLength:50,createPseudo:st,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(tt,nt),e[3]=(e[4]||e[5]||"").replace(tt,nt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ut.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ut.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return G.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&Y.test(n)&&(t=gt(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(tt,nt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ut.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,h,d,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),x=!u&&!a;if(m){if(o){while(g){f=t;while(f=f[g])if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&x){c=m[y]||(m[y]={}),l=c[e]||[],h=l[0]===w&&l[1],p=l[0]===w&&l[2],f=h&&m.childNodes[h];while(f=++h&&f&&f[g]||(p=h=0)||d.pop())if(1===f.nodeType&&++p&&f===t){c[e]=[w,h,p];break}}else if(x&&(l=(t[y]||(t[y]={}))[e])&&l[0]===w)p=l[1];else while(f=++h&&f&&f[g]||(p=h=0)||d.pop())if((a?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++p&&(x&&((f[y]||(f[y]={}))[e]=[w,p]),f===t))break;return p-=i,p===r||0===p%r&&p/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ut.error("unsupported pseudo: "+e);return i[y]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?st(function(e,n){var r,o=i(e,t),s=o.length;while(s--)r=F.call(e,o[s]),e[r]=!(n[r]=o[s])}):function(e){return i(e,0,n)}):i}},pseudos:{not:st(function(e){var t=[],n=[],r=s(e.replace(I,"$1"));return r[y]?st(function(e,t,n,i){var o,s=r(e,null,i,[]),a=e.length;while(a--)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:st(function(e){return function(t){return ut(e,t).length>0}}),contains:st(function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:st(function(e){return V.test(e||"")||ut.error("unsupported lang: "+e),e=e.replace(tt,nt).toLowerCase(),function(t){var n;do if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===c.activeElement&&(!c.hasFocus||c.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:dt(function(){return[0]}),last:dt(function(e,t){return[t-1]}),eq:dt(function(e,t,n){return[0>n?n+t:n]}),even:dt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:dt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:dt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:dt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ht(t);function gt(e,t){var n,i,o,s,a,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],l=r.preFilter;while(a){(!n||(i=z.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),n=!1,(i=_.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(I," ")}),a=a.slice(n.length));for(s in r.filter)!(i=G[s].exec(a))||l[s]&&!(i=l[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ut.error(e):k(e,u).slice(0)}function mt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function yt(e,t,r){var i=t.dir,o=r&&"parentNode"===i,s=T++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,r,a){var u,l,c,f=w+" "+s;if(a){while(t=t[i])if((1===t.nodeType||o)&&e(t,r,a))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[y]||(t[y]={}),(l=c[i])&&l[0]===f){if((u=l[1])===!0||u===n)return u===!0}else if(l=c[i]=[f],l[1]=e(t,r,a)||n,l[1]===!0)return!0}}function vt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,s=[],a=0,u=e.length,l=null!=t;for(;u>a;a++)(o=e[a])&&(!n||n(o,r,i))&&(s.push(o),l&&t.push(a));return s}function bt(e,t,n,r,i,o){return r&&!r[y]&&(r=bt(r)),i&&!i[y]&&(i=bt(i,o)),st(function(o,s,a,u){var l,c,f,p=[],h=[],d=s.length,g=o||Ct(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xt(g,p,e,a,u),y=n?i||(o?e:d||r)?[]:s:m;if(n&&n(m,y,a,u),r){l=xt(y,h),r(l,[],a,u),c=l.length;while(c--)(f=l[c])&&(y[h[c]]=!(m[h[c]]=f))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(f=y[c])&&l.push(m[c]=f);i(null,y=[],l,u)}c=y.length;while(c--)(f=y[c])&&(l=i?F.call(o,f):p[c])>-1&&(o[l]=!(s[l]=f))}}else y=xt(y===s?y.splice(d,y.length):y),i?i(null,s,y,u):H.apply(s,y)})}function wt(e){var t,n,i,o=e.length,s=r.relative[e[0].type],u=s||r.relative[" "],l=s?1:0,c=yt(function(e){return e===t},u,!0),f=yt(function(e){return F.call(t,e)>-1},u,!0),p=[function(e,n,r){return!s&&(r||n!==a)||((t=n).nodeType?c(e,n,r):f(e,n,r))}];for(;o>l;l++)if(n=r.relative[e[l].type])p=[yt(vt(p),n)];else{if(n=r.filter[e[l].type].apply(null,e[l].matches),n[y]){for(i=++l;o>i;i++)if(r.relative[e[i].type])break;return bt(l>1&&vt(p),l>1&&mt(e.slice(0,l-1)).replace(I,"$1"),n,i>l&&wt(e.slice(l,i)),o>i&&wt(e=e.slice(i)),o>i&&mt(e))}p.push(n)}return vt(p)}function Tt(e,t){var i=0,o=t.length>0,s=e.length>0,u=function(u,l,f,p,h){var d,g,m,y=[],v=0,x="0",b=u&&[],T=null!=h,C=a,k=u||s&&r.find.TAG("*",h&&l.parentNode||l),N=w+=null==C?1:Math.random()||.1;for(T&&(a=l!==c&&l,n=i);null!=(d=k[x]);x++){if(s&&d){g=0;while(m=e[g++])if(m(d,l,f)){p.push(d);break}T&&(w=N,n=++i)}o&&((d=!m&&d)&&v--,u&&b.push(d))}if(v+=x,o&&x!==v){g=0;while(m=t[g++])m(b,y,l,f);if(u){if(v>0)while(x--)b[x]||y[x]||(y[x]=L.call(p));y=xt(y)}H.apply(p,y),T&&!u&&y.length>0&&v+t.length>1&&ut.uniqueSort(p)}return T&&(w=N,a=C),b};return o?st(u):u}s=ut.compile=function(e,t){var n,r=[],i=[],o=N[e+" "];if(!o){t||(t=gt(e)),n=t.length;while(n--)o=wt(t[n]),o[y]?r.push(o):i.push(o);o=N(e,Tt(i,r))}return o};function Ct(e,t,n){var r=0,i=t.length;for(;i>r;r++)ut(e,t[r],n);return n}function kt(e,t,n,i){var o,a,u,l,c,f=gt(e);if(!i&&1===f.length){if(a=f[0]=f[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&p&&r.relative[a[1].type]){if(t=(r.find.ID(u.matches[0].replace(tt,nt),t)||[])[0],!t)return n;e=e.slice(a.shift().value.length)}o=G.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],r.relative[l=u.type])break;if((c=r.find[l])&&(i=c(u.matches[0].replace(tt,nt),X.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=i.length&&mt(a),!e)return H.apply(n,i),n;break}}}return s(e,f)(i,t,!p,n,X.test(e)),n}r.pseudos.nth=r.pseudos.eq;function Nt(){}Nt.prototype=r.filters=r.pseudos,r.setFilters=new Nt,b.sortStable=y.split("").sort(S).join("")===y,l(),[0,0].sort(S),b.detectDuplicates=E,at(function(e){if(e.innerHTML="","#"!==e.firstChild.getAttribute("href")){var t="type|href|height|width".split("|"),n=t.length;while(n--)r.attrHandle[t[n]]=ft}}),at(function(e){if(null!=e.getAttribute("disabled")){var t=P.split("|"),n=t.length;while(n--)r.attrHandle[t[n]]=ct}}),x.find=ut,x.expr=ut.selectors,x.expr[":"]=x.expr.pseudos,x.unique=ut.uniqueSort,x.text=ut.getText,x.isXMLDoc=ut.isXML,x.contains=ut.contains}(e);var D={};function A(e){var t=D[e]={};return x.each(e.match(w)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?D[e]||A(e):x.extend({},e);var t,n,r,i,o,s,a=[],u=!e.once&&[],l=function(f){for(t=e.memory&&f,n=!0,s=i||0,i=0,o=a.length,r=!0;a&&o>s;s++)if(a[s].apply(f[0],f[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,a&&(u?u.length&&l(u.shift()):t?a=[]:c.disable())},c={add:function(){if(a){var n=a.length;(function s(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&s(n)})})(arguments),r?o=a.length:t&&(i=n,l(t))}return this},remove:function(){return a&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,a,n))>-1)a.splice(n,1),r&&(o>=n&&o--,s>=n&&s--)}),this},has:function(e){return e?x.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=u=t=undefined,this},disabled:function(){return!a},lock:function(){return u=undefined,t||c.disable(),this},locked:function(){return!u},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!a||n&&!u||(r?u.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var s=o[0],a=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=d.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),s=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?d.call(arguments):r,n===a?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},a,u,l;if(r>1)for(a=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(s(t,l,n)).fail(o.reject).progress(s(t,u,a)):--i;return i||o.resolveWith(l,n),o.promise()}}),x.support=function(t){var n=o.createElement("input"),r=o.createDocumentFragment(),i=o.createElement("div"),s=o.createElement("select"),a=s.appendChild(o.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!a.disabled,n=o.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,x(function(){var n,r,s="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=o.getElementsByTagName("body")[0];a&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",x.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(o.createElement("div")),r.style.cssText=i.style.cssText=s,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var L,q,H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}F.uid=1,F.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},F.prototype={key:function(e){if(!F.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=F.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,x.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(x.isEmptyObject(o))this.cache[i]=t;else for(r in t)o[r]=t[r]},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){return t===undefined||t&&"string"==typeof t&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i=this.key(e),o=this.cache[i];if(t===undefined)this.cache[i]={};else{x.isArray(t)?r=t.concat(t.map(x.camelCase)):t in o?r=[t]:(r=x.camelCase(t),r=r in o?[r]:r.match(w)||[]),n=r.length;while(n--)delete o[r[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){delete this.cache[this.key(e)]}},L=new F,q=new F,x.extend({acceptData:F.accepts,hasData:function(e){return L.hasData(e)||q.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return q.access(e,t,n)},_removeData:function(e,t){q.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i=this[0],o=0,s=null;if(e===undefined){if(this.length&&(s=L.get(i),1===i.nodeType&&!q.get(i,"hasDataAttrs"))){for(n=i.attributes;n.length>o;o++)r=n[o].name,0===r.indexOf("data-")&&(r=x.camelCase(r.substring(5)),P(i,r,s[r]));q.set(i,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){L.set(this,e)}):x.access(this,function(t){var n,r=x.camelCase(e);if(i&&t===undefined){if(n=L.get(i,e),n!==undefined)return n;if(n=L.get(i,r),n!==undefined)return n;if(n=P(i,r,undefined),n!==undefined)return n}else this.each(function(){var n=L.get(this,r);L.set(this,r,t),-1!==e.indexOf("-")&&n!==undefined&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}});function P(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(O,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:H.test(n)?JSON.parse(n):n}catch(i){}L.set(e,t,n)}else n=undefined;return n}x.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=q.get(e,t),n&&(!r||x.isArray(n)?r=q.access(e,t,x.makeArray(n)):r.push(n)),r||[]):undefined},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),s=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t); 5 | x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=undefined),e=e||"fx";while(s--)n=q.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var R,M,W=/[\t\r\n]/g,$=/\r/g,B=/^(?:input|select|textarea|button)$/i;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,i="boolean"==typeof t;return x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,s=0,a=x(this),u=t,l=e.match(w)||[];while(o=l[s++])u=i?u:!a.hasClass(o),a[u?"addClass":"removeClass"](o)}else(n===r||"boolean"===n)&&(this.className&&q.set(this,"__className__",this.className),this.className=this.className||e===!1?"":q.get(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=x.isFunction(e),this.each(function(n){var i,o=x(this);1===this.nodeType&&(i=r?e.call(this,n,o.val()):e,null==i?i="":"number"==typeof i?i+="":x.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))});if(i)return t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;for(;a>u;u++)if(n=r[u],!(!n.selected&&u!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),s=i.length;while(s--)r=i[s],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,t,n){var i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===r?x.prop(e,t,n):(1===s&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.boolean.test(t)?M:R)),n===undefined?i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=x.find.attr(e,t),null==o?undefined:o):null!==n?i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:(e.setAttribute(t,n+""),n):(x.removeAttr(e,t),undefined))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.boolean.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o=1!==s||!x.isXMLDoc(e),o&&(t=x.propFix[t]||t,i=x.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||B.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,n){return t===!1?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.boolean.source.match(/\w+/g),function(e,t){var n=x.expr.attrHandle[t]||x.find.attr;x.expr.attrHandle[t]=function(e,t,r){var i=x.expr.attrHandle[t],o=r?undefined:(x.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return x.expr.attrHandle[t]=i,o}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:undefined}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var I=/^key/,z=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function U(){return!0}function Y(){return!1}function V(){try{return o.activeElement}catch(e){}}x.event={global:{},add:function(e,t,n,i,o){var s,a,u,l,c,f,p,h,d,g,m,y=q.get(e);if(y){n.handler&&(s=n,n=s.handler,o=s.selector),n.guid||(n.guid=x.guid++),(l=y.events)||(l=y.events={}),(a=y.handle)||(a=y.handle=function(e){return typeof x===r||e&&x.event.triggered===e.type?undefined:x.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=(t||"").match(w)||[""],c=t.length;while(c--)u=X.exec(t[c])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(p=x.event.special[d]||{},d=(o?p.delegateType:p.bindType)||d,p=x.event.special[d]||{},f=x.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:g.join(".")},s),(h=l[d])||(h=l[d]=[],h.delegateCount=0,p.setup&&p.setup.call(e,i,g,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),p.add&&(p.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,f):h.push(f),x.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,h,d,g,m=q.hasData(e)&&q.get(e);if(m&&(u=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(a=X.exec(t[l])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){f=x.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=u[h]||[],a=a[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));s&&!p.length&&(f.teardown&&f.teardown.call(e,d,m.handle)!==!1||x.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(u)&&(delete m.handle,q.remove(e,"events"))}},trigger:function(t,n,r,i){var s,a,u,l,c,f,p,h=[r||o],d=y.call(t,"type")?t.type:t,g=y.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!_.test(d+x.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),c=0>d.indexOf(":")&&"on"+d,t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:x.makeArray(n,[t]),p=x.event.special[d]||{},i||!p.trigger||p.trigger.apply(r,n)!==!1)){if(!i&&!p.noBubble&&!x.isWindow(r)){for(l=p.delegateType||d,_.test(l+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||o)&&h.push(u.defaultView||u.parentWindow||e)}s=0;while((a=h[s++])&&!t.isPropagationStopped())t.type=s>1?l:p.bindType||d,f=(q.get(a,"events")||{})[t.type]&&q.get(a,"handle"),f&&f.apply(a,n),f=c&&a[c],f&&x.acceptData(a)&&f.apply&&f.apply(a,n)===!1&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||p._default&&p._default.apply(h.pop(),n)!==!1||!x.acceptData(r)||c&&x.isFunction(r[d])&&!x.isWindow(r)&&(u=r[c],u&&(r[c]=null),x.event.triggered=d,r[d](),x.event.triggered=undefined,u&&(r[c]=u)),t.result}},dispatch:function(e){e=x.event.fix(e);var t,n,r,i,o,s=[],a=d.call(arguments),u=(q.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),t=0;while((i=s[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",r[i]===undefined&&(r[i]=o.needsContext?x(i,this).index(u)>=0:x.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return t.length>a&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||o,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||s===undefined||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=z.test(i)?this.mouseHooks:I.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return 3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==V()&&this.focus?(this.focus(),!1):undefined},delegateType:"focusin"},blur:{trigger:function(){return this===V()&&this.blur?(this.blur(),!1):undefined},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):undefined},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:Y):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,undefined):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,t,n,r,i){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=undefined):null==r&&("string"==typeof t?(r=n,n=undefined):(r=n,n=t,t=undefined)),r===!1)r=Y;else if(!r)return this;return 1===i&&(o=r,r=function(e){return x().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=x.guid++)),this.each(function(){x.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=undefined),n===!1&&(n=Y),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):undefined}});var G=/^.[^:#\[\.,]*$/,J=x.expr.match.needsContext,Q={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return t=this,this.pushStack(x(e).filter(function(){for(r=0;i>r;r++)if(x.contains(t[r],this))return!0}));for(n=[],r=0;i>r;r++)x.find(e,this[r],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;n>e;e++)if(x.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(Z(this,e||[],!0))},filter:function(e){return this.pushStack(Z(this,e||[],!1))},is:function(e){return!!e&&("string"==typeof e?J.test(e)?x(e,this.context).index(this[0])>=0:x.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],s=J.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?g.call(x(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function K(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return K(e,"nextSibling")},prev:function(e){return K(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(Q[e]||x.unique(i),"p"===e[0]&&i.reverse()),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function Z(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(G.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return g.call(t,e)>=0!==n})}var et=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,tt=/<([\w:]+)/,nt=/<|&#?\w+;/,rt=/<(?:script|style|link)/i,it=/^(?:checkbox|radio)$/i,ot=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^$|\/(?:java|ecma)script/i,at=/^true\/(.*)/,ut=/^\s*\s*$/g,lt={option:[1,""],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};lt.optgroup=lt.option,lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.col=lt.thead,lt.th=lt.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===undefined?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ct(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ct(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(gt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&ht(gt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(gt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!rt.test(e)&&!lt[(tt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(et,"<$1>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(gt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=p.apply([],e);var r,i,o,s,a,u,l=0,c=this.length,f=this,h=c-1,d=e[0],g=x.isFunction(d);if(g||!(1>=c||"string"!=typeof d||x.support.checkClone)&&ot.test(d))return this.each(function(r){var i=f.eq(r);g&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(r=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=x.map(gt(r,"script"),ft),s=o.length;c>l;l++)a=r,l!==h&&(a=x.clone(a,!0,!0),s&&x.merge(o,gt(a,"script"))),t.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,x.map(o,pt),l=0;s>l;l++)a=o[l],st.test(a.type||"")&&!q.access(a,"globalEval")&&x.contains(u,a)&&(a.src?x._evalUrl(a.src):x.globalEval(a.textContent.replace(ut,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),o=i.length-1,s=0;for(;o>=s;s++)n=s===o?this:this.clone(!0),x(i[s])[t](n),h.apply(r,n.get());return this.pushStack(r)}}),x.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=gt(a),o=gt(e),r=0,i=o.length;i>r;r++)mt(o[r],s[r]);if(t)if(n)for(o=o||gt(e),s=s||gt(a),r=0,i=o.length;i>r;r++)dt(o[r],s[r]);else dt(e,a);return s=gt(a,"script"),s.length>0&&ht(s,!u&>(e,"script")),a},buildFragment:function(e,t,n,r){var i,o,s,a,u,l,c=0,f=e.length,p=t.createDocumentFragment(),h=[];for(;f>c;c++)if(i=e[c],i||0===i)if("object"===x.type(i))x.merge(h,i.nodeType?[i]:i);else if(nt.test(i)){o=o||p.appendChild(t.createElement("div")),s=(tt.exec(i)||["",""])[1].toLowerCase(),a=lt[s]||lt._default,o.innerHTML=a[1]+i.replace(et,"<$1>")+a[2],l=a[0];while(l--)o=o.firstChild;x.merge(h,o.childNodes),o=p.firstChild,o.textContent=""}else h.push(t.createTextNode(i));p.textContent="",c=0;while(i=h[c++])if((!r||-1===x.inArray(i,r))&&(u=x.contains(i.ownerDocument,i),o=gt(p.appendChild(i),"script"),u&&ht(o),n)){l=0;while(i=o[l++])st.test(i.type||"")&&n.push(i)}return p},cleanData:function(e){var t,n,r,i=e.length,o=0,s=x.event.special;for(;i>o;o++){if(n=e[o],x.acceptData(n)&&(t=q.access(n)))for(r in t.events)s[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);L.discard(n),q.discard(n)}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"text",async:!1,global:!1,success:x.globalEval})}});function ct(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function pt(e){var t=at.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ht(e,t){var n=e.length,r=0;for(;n>r;r++)q.set(e[r],"globalEval",!t||q.get(t[r],"globalEval"))}function dt(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(q.hasData(e)&&(o=q.access(e),s=x.extend({},o),l=o.events,q.set(t,s),l)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)x.event.add(t,i,l[i][n])}L.hasData(e)&&(a=L.access(e),u=x.extend({},a),L.set(t,u))}}function gt(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&x.nodeName(e,t)?x.merge([e],n):n}function mt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&it.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var yt,vt,xt=/^(none|table(?!-c[ea]).+)/,bt=/^margin/,wt=RegExp("^("+b+")(.*)$","i"),Tt=RegExp("^("+b+")(?!px)[a-z%]+$","i"),Ct=RegExp("^([+-])=("+b+")","i"),kt={BODY:"block"},Nt={position:"absolute",visibility:"hidden",display:"block"},Et={letterSpacing:0,fontWeight:400},St=["Top","Right","Bottom","Left"],jt=["Webkit","O","Moz","ms"];function Dt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=jt.length;while(i--)if(t=jt[i]+n,t in e)return t;return r}function At(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function Lt(t){return e.getComputedStyle(t,null)}function qt(e,t){var n,r,i,o=[],s=0,a=e.length;for(;a>s;s++)r=e[s],r.style&&(o[s]=q.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&At(r)&&(o[s]=q.access(r,"olddisplay",Pt(r.nodeName)))):o[s]||(i=At(r),(n&&"none"!==n||!i)&&q.set(r,"olddisplay",i?n:x.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}x.fn.extend({css:function(e,t){return x.access(this,function(e,t,n){var r,i,o={},s=0;if(x.isArray(t)){for(r=Lt(e),i=t.length;i>s;s++)o[t[s]]=x.css(e,t[s],!1,r);return o}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return qt(this,!0)},hide:function(){return qt(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:At(this))?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=yt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=x.camelCase(t),u=e.style;return t=x.cssProps[a]||(x.cssProps[a]=Dt(u,a)),s=x.cssHooks[t]||x.cssHooks[a],n===undefined?s&&"get"in s&&(i=s.get(e,!1,r))!==undefined?i:u[t]:(o=typeof n,"string"===o&&(i=Ct.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(x.css(e,t)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||x.cssNumber[a]||(n+="px"),x.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===undefined||(u[t]=n)),undefined)}},css:function(e,t,n,r){var i,o,s,a=x.camelCase(t);return t=x.cssProps[a]||(x.cssProps[a]=Dt(e.style,a)),s=x.cssHooks[t]||x.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),i===undefined&&(i=yt(e,t,r)),"normal"===i&&t in Et&&(i=Et[t]),""===n||n?(o=parseFloat(i),n===!0||x.isNumeric(o)?o||0:i):i}}),yt=function(e,t,n){var r,i,o,s=n||Lt(e),a=s?s.getPropertyValue(t)||s[t]:undefined,u=e.style;return s&&(""!==a||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),Tt.test(a)&&bt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=s.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a};function Ht(e,t,n){var r=wt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ot(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;for(;4>o;o+=2)"margin"===n&&(s+=x.css(e,n+St[o],!0,i)),r?("content"===n&&(s-=x.css(e,"padding"+St[o],!0,i)),"margin"!==n&&(s-=x.css(e,"border"+St[o]+"Width",!0,i))):(s+=x.css(e,"padding"+St[o],!0,i),"padding"!==n&&(s+=x.css(e,"border"+St[o]+"Width",!0,i)));return s}function Ft(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Lt(e),s=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=yt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Tt.test(i))return i;r=s&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+Ot(e,t,n||(s?"border":"content"),r,o)+"px"}function Pt(e){var t=o,n=kt[e];return n||(n=Rt(e,t),"none"!==n&&n||(vt=(vt||x("