/** * @preserve * project: bootstrap hover dropdown * author: cameron spear * version: v2.2.1 * contributors: mattia larentis * dependencies: bootstrap's dropdown plugin, jquery * description: a simple plugin to enable bootstrap dropdowns to active on hover and provide a nice user experience. * license: mit * homepage: http://cameronspear.com/blog/bootstrap-dropdown-on-hover-plugin/ */ !function(e,n){var o=e();e.fn.dropdownhover=function(t){return"ontouchstart"in document?this:(o=o.add(this.parent()),this.each(function(){function r(){d.parents(".navbar").find(".navbar-toggle").is(":visible")||(n.cleartimeout(a),n.cleartimeout(i),i=n.settimeout(function(){o.find(":focus").blur(),v.instantlycloseothers===!0&&o.removeclass("open"),n.cleartimeout(i),d.attr("aria-expanded","true"),s.addclass("open"),d.trigger(h)},v.hoverdelay))}var a,i,d=e(this),s=d.parent(),u={delay:500,hoverdelay:0,instantlycloseothers:!0},l={delay:e(this).data("delay"),hoverdelay:e(this).data("hover-delay"),instantlycloseothers:e(this).data("close-others")},h="show.bs.dropdown",c="hide.bs.dropdown",v=e.extend(!0,{},u,t,l);s.hover(function(e){return s.hasclass("open")||d.is(e.target)?void r(e):!0},function(){n.cleartimeout(i),a=n.settimeout(function(){d.attr("aria-expanded","false"),s.removeclass("open"),d.trigger(c)},v.delay)}),d.hover(function(e){return s.hasclass("open")||s.is(e.target)?void r(e):!0}),s.find(".dropdown-submenu").each(function(){var o,t=e(this);t.hover(function(){n.cleartimeout(o),t.children(".dropdown-menu").show(),t.siblings().children(".dropdown-menu").hide()},function(){var e=t.children(".dropdown-menu");o=n.settimeout(function(){e.hide()},v.delay)})})}))},e(document).ready(function(){e('[data-hover="dropdown"]').dropdownhover()})}(jquery,window); /*! * version: 1.20.2 * date: 2017-06-30 * updates and docs at: http://greensock.com * * includes all of the following: tweenlite, tweenmax, timelinelite, timelinemax, easepack, cssplugin, roundpropsplugin, bezierplugin, attrplugin, directionalrotationplugin * * @license copyright (c) 2008-2017, greensock. all rights reserved. * this work is subject to the terms at http://greensock.com/standard-license or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com **/ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("tweenmax",["core.animation","core.simpletimeline","tweenlite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},f=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoease,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._dirty=!0,this.render=f.prototype.render},g=1e-10,h=c._internals,i=h.isselector,j=h.isarray,k=f.prototype=c.to({},.1,{}),l=[];f.version="1.20.2",k.constructor=f,k.kill()._gc=!1,f.killtweensof=f.killdelayedcallsto=c.killtweensof,f.gettweensof=c.gettweensof,f.lagsmoothing=c.lagsmoothing,f.ticker=c.ticker,f.render=c.render,k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoease,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._yoyoease=null,this._uncache(!0),c.prototype.invalidate.call(this)},k.updateto=function(a,b){var d,e=this.ratio,f=this.vars.immediaterender||a.immediaterender;b&&this._starttime.998){var g=this._totaltime;this.render(0,!0,!1),this._initted=!1,this.render(g,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||f)for(var h,i=1/(1-e),j=this._firstpt;j;)h=j.s+j.c,j.c*=i,j.s=h-j.c,j=j._next;return this},k.render=function(a,b,d){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var e,f,i,j,k,l,m,n,o,p=this._dirty?this.totalduration():this._totalduration,q=this._time,r=this._totaltime,s=this._cycle,t=this._duration,u=this._rawprevtime;if(a>=p-1e-7&&a>=0?(this._totaltime=p,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0):(this._time=t,this.ratio=this._ease._calcend?this._ease.getratio(1):1),this._reversed||(e=!0,f="oncomplete",d=d||this._timeline.autoremovechildren),0===t&&(this._initted||!this.vars.lazy||d)&&(this._starttime===this._timeline._duration&&(a=0),(0>u||0>=a&&a>=-1e-7||u===g&&"ispause"!==this.data)&&u!==a&&(d=!0,u>g&&(f="onreversecomplete")),this._rawprevtime=n=!b||a||u===a?a:g)):1e-7>a?(this._totaltime=this._time=this._cycle=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==r||0===t&&u>0)&&(f="onreversecomplete",e=this._reversed),0>a&&(this._active=!1,0===t&&(this._initted||!this.vars.lazy||d)&&(u>=0&&(d=!0),this._rawprevtime=n=!b||a||u===a?a:g)),this._initted||(d=!0)):(this._totaltime=this._time=a,0!==this._repeat&&(j=t+this._repeatdelay,this._cycle=this._totaltime/j>>0,0!==this._cycle&&this._cycle===this._totaltime/j&&a>=r&&this._cycle--,this._time=this._totaltime-this._cycle*j,this._yoyo&&0!==(1&this._cycle)&&(this._time=t-this._time,o=this._yoyoease||this.vars.yoyoease,o&&(this._yoyoease||(o!==!0||this._initted?this._yoyoease=o=o===!0?this._ease:o instanceof ease?o:ease.map[o]:(o=this.vars.ease,this._yoyoease=o=o?o instanceof ease?o:"function"==typeof o?new ease(o,this.vars.easeparams):ease.map[o]||c.defaultease:c.defaultease)),this.ratio=o?1-o.getratio((t-this._time)/t):0)),this._time>t?this._time=t:this._time<0&&(this._time=0)),this._easetype&&!o?(k=this._time/t,l=this._easetype,m=this._easepower,(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===m?k*=k:2===m?k*=k*k:3===m?k*=k*k*k:4===m&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:this._time/t<.5?this.ratio=k/2:this.ratio=1-k/2):o||(this.ratio=this._ease.getratio(this._time/t))),q===this._time&&!d&&s===this._cycle)return void(r!==this._totaltime&&this._onupdate&&(b||this._callback("onupdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!d&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=q,this._totaltime=r,this._rawprevtime=u,this._cycle=s,h.lazytweens.push(this),void(this._lazy=[a,b]);!this._time||e||o?e&&this._ease._calcend&&!o&&(this.ratio=this._ease.getratio(0===this._time?0:1)):this.ratio=this._ease.getratio(this._time/t)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==q&&a>=0&&(this._active=!0),0===r&&(2===this._initted&&a>0&&this._init(),this._startat&&(a>=0?this._startat.render(a,b,d):f||(f="_dummygs")),this.vars.onstart&&(0!==this._totaltime||0===t)&&(b||this._callback("onstart"))),i=this._firstpt;i;)i.f?i.t[i.p](i.c*this.ratio+i.s):i.t[i.p]=i.c*this.ratio+i.s,i=i._next;this._onupdate&&(0>a&&this._startat&&this._starttime&&this._startat.render(a,b,d),b||(this._totaltime!==r||f)&&this._callback("onupdate")),this._cycle!==s&&(b||this._gc||this.vars.onrepeat&&this._callback("onrepeat")),f&&(!this._gc||d)&&(0>a&&this._startat&&!this._onupdate&&this._starttime&&this._startat.render(a,b,d),e&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[f]&&this._callback(f),0===t&&this._rawprevtime===g&&n!==g&&(this._rawprevtime=0))},f.to=function(a,b,c){return new f(a,b,c)},f.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,new f(a,b,c)},f.fromto=function(a,b,c,d){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,new f(a,b,d)},f.staggerto=f.allto=function(a,b,g,h,k,m,n){h=h||0;var o,p,q,r,s=0,t=[],u=function(){g.oncomplete&&g.oncomplete.apply(g.oncompletescope||this,arguments),k.apply(n||g.callbackscope||this,m||l)},v=g.cycle,w=g.startat&&g.startat.cycle;for(j(a)||("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a))),a=a||[],0>h&&(a=d(a),a.reverse(),h*=-1),o=a.length-1,q=0;o>=q;q++){p={};for(r in g)p[r]=g[r];if(v&&(e(p,a,q),null!=p.duration&&(b=p.duration,delete p.duration)),w){w=p.startat={};for(r in g.startat)w[r]=g.startat[r];e(p.startat,a,q)}p.delay=s+(p.delay||0),q===o&&k&&(p.oncomplete=u),t[q]=new f(a[q],b,p),s+=h}return t},f.staggerfrom=f.allfrom=function(a,b,c,d,e,g,h){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,f.staggerto(a,b,c,d,e,g,h)},f.staggerfromto=f.allfromto=function(a,b,c,d,e,g,h,i){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,f.staggerto(a,b,d,e,g,h,i)},f.delayedcall=function(a,b,c,d,e){return new f(b,0,{delay:a,oncomplete:b,oncompleteparams:c,callbackscope:d,onreversecomplete:b,onreversecompleteparams:c,immediaterender:!1,useframes:e,overwrite:0})},f.set=function(a,b){return new f(a,0,b)},f.istweening=function(a){return c.gettweensof(a,!0).length>0};var m=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(m(f,b)),e=d.length),f=f._next;return d},n=f.getalltweens=function(b){return m(a._roottimeline,b).concat(m(a._rootframestimeline,b))};f.killall=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=n(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.oncomplete)&&d||c&&!f)&&(a?g.totaltime(g._reversed?0:g.totalduration()):g._enabled(!1,!1))},f.killchildtweensof=function(a,b){if(null!=a){var e,g,k,l,m,n=h.tweenlookup;if("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a)),j(a))for(l=a.length;--l>-1;)f.killchildtweensof(a[l],b);else{e=[];for(k in n)for(g=n[k].target.parentnode;g;)g===a&&(e=e.concat(n[k].tweens)),g=g.parentnode;for(m=e.length,l=0;m>l;l++)b&&e[l].totaltime(e[l].totalduration()),e[l]._enabled(!1,!1)}}};var o=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=n(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.oncomplete)&&d||c&&!f)&&g.paused(a)};return f.pauseall=function(a,b,c){o(!0,a,b,c)},f.resumeall=function(a,b,c){o(!1,a,b,c)},f.globaltimescale=function(b){var d=a._roottimeline,e=c.ticker.time;return arguments.length?(b=b||g,d._starttime=e-(e-d._starttime)*d._timescale/b,d=a._rootframestimeline,e=c.ticker.frame,d._starttime=e-(e-d._starttime)*d._timescale/b,d._timescale=a._roottimeline._timescale=b,b):d._timescale},k.progress=function(a,b){return arguments.length?this.totaltime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatdelay),b):this._time/this.duration()},k.totalprogress=function(a,b){return arguments.length?this.totaltime(this.totalduration()*a,b):this._totaltime/this.totalduration()},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalduration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(a,b)):this._time},k.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},k.totalduration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatdelay)/(this._repeat+1)):(this._dirty&&(this._totalduration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatdelay*this._repeat,this._dirty=!1),this._totalduration)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatdelay=function(a){return arguments.length?(this._repeatdelay=a,this._uncache(!0)):this._repeatdelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},f},!0),_gsscope._gsdefine("timelinelite",["core.animation","core.simpletimeline","tweenlite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoremovechildren=this.vars.autoremovechildren===!0,this.smoothchildtiming=this.vars.smoothchildtiming===!0,this._sortchildren=!0,this._onupdate=this.vars.onupdate;var c,d,e=this.vars;for(d in e)c=e[d],i(c)&&-1!==c.join("").indexof("{self}")&&(e[d]=this._swapselfinparams(c));i(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals,g=d._internals={},h=f.isselector,i=f.isarray,j=f.lazytweens,k=f.lazyrender,l=_gsscope._gsdefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},o=g.pausecallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=d.prototype=new b;return d.version="1.20.2",q.constructor=d,q.kill()._gc=q._forcingplayhead=q._haspause=!1,q.to=function(a,b,d,e){var f=d.repeat&&l.tweenmax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},q.from=function(a,b,d,e){return this.add((d.repeat&&l.tweenmax||c).from(a,b,d),e)},q.fromto=function(a,b,d,e,f){var g=e.repeat&&l.tweenmax||c;return b?this.add(g.fromto(a,b,d,e),f):this.set(a,e,f)},q.staggerto=function(a,b,e,f,g,i,j,k){var l,o,q=new d({oncomplete:i,oncompleteparams:j,callbackscope:k,smoothchildtiming:this.smoothchildtiming}),r=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),f=f||0,0>f&&(a=p(a),a.reverse(),f*=-1),o=0;ol;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._starttime+m.totalduration()/m._timescale:"start"===g&&(m._starttime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addlabel(e,f);if("function"!=typeof e)throw"cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedcall(0,e)}if(b.prototype.add.call(this,e,f),e._time&&e.render((this.rawtime()-e._starttime)*e._timescale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._starttime;n._timeline;)o&&n._timeline.smoothchildtiming?n.totaltime(n._totaltime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useframes?a._rootframestimeline:a._roottimeline;return b._starttime=(b._paused?b._pausetime:c._time)-(b._reversed?b.totalduration()-b._totaltime:b._totaltime)/b._timescale,this}if(b instanceof array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removelabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totaltime=this._totalduration):this._time=this._totaltime=this._duration=this._totalduration=0,this},q.append=function(a,b){return this.add(a,this._parsetimeorlabel(null,b,!0,a))},q.insert=q.insertmultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendmultiple=function(a,b,c,d){return this.add(a,this._parsetimeorlabel(null,b,!0,a),c,d)},q.addlabel=function(a,b){return this._labels[a]=this._parsetimeorlabel(b),this},q.addpause=function(a,b,d,e){var f=c.delayedcall(0,o,d,e||this);return f.vars.oncomplete=f.vars.onreversecomplete=b,f.data="ispause",this._haspause=!0,this.add(f,a)},q.removelabel=function(a){return delete this._labels[a],this},q.getlabeltime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parsetimeorlabel=function(b,c,d,e){var f,g;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof array||e.push&&i(e)))for(g=e.length;--g>-1;)e[g]instanceof a&&e[g].timeline===this&&this.remove(e[g]);if(f=this.duration()>99999999999?this.recent().endtime(!1):this._duration,"string"==typeof c)return this._parsetimeorlabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-f:0,d);if(c=c||0,"string"!=typeof b||!isnan(b)&&null==this._labels[b])null==b&&(b=f);else{if(g=b.indexof("="),-1===g)return null==this._labels[b]?d?this._labels[b]=f+c:c:this._labels[b]+c;c=parseint(b.charat(g-1)+"1",10)*number(b.substr(g+1)),b=g>1?this._parsetimeorlabel(b.substr(0,g-1),0,d):f}return number(b)+c},q.seek=function(a,b){return this.totaltime("number"==typeof a?a:this._parsetimeorlabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoandplay=function(a,b){return this.play(a,b)},q.gotoandstop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._dirty?this.totalduration():this._totalduration,o=this._time,p=this._starttime,q=this._timescale,r=this._paused;if(a>=n-1e-7&&a>=0)this._totaltime=this._time=n,this._reversed||this._haspausedchild()||(f=!0,h="oncomplete",i=!!this._timeline.autoremovechildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawprevtime<0||this._rawprevtime===e)&&this._rawprevtime!==a&&this._first&&(i=!0,this._rawprevtime>e&&(h="onreversecomplete"))),this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,a=n+1e-4;else if(1e-7>a)if(this._totaltime=this._time=0,(0!==o||0===this._duration&&this._rawprevtime!==e&&(this._rawprevtime>0||0>a&&this._rawprevtime>=0))&&(h="onreversecomplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoremovechildren&&this._reversed?(i=f=!0,h="onreversecomplete"):this._rawprevtime>=0&&this._first&&(i=!0),this._rawprevtime=a;else{if(this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._starttime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._haspause&&!this._forcingplayhead&&!b){if(a>=o)for(d=this._first;d&&d._starttime<=a&&!l;)d._duration||"ispause"!==d.data||d.ratio||0===d._starttime&&0===this._rawprevtime||(l=d),d=d._next;else for(d=this._last;d&&d._starttime>=a&&!l;)d._duration||"ispause"===d.data&&d._rawprevtime>0&&(l=d),d=d._prev;l&&(this._time=a=l._starttime,this._totaltime=a+this._cycle*(this._totalduration+this._repeatdelay))}this._totaltime=this._time=this._rawprevtime=a}if(this._time!==o&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==o&&a>0&&(this._active=!0),0===o&&this.vars.onstart&&(0===this._time&&this._duration||b||this._callback("onstart")),m=this._time,m>=o)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._starttime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._starttime<=o&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endtime()>this._time;)l.render(l._reversed?l.totalduration()-(a-l._starttime)*l._timescale:(a-l._starttime)*l._timescale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)}d=g}this._onupdate&&(b||(j.length&&k(),this._callback("onupdate"))),h&&(this._gc||(p===this._starttime||q!==this._timescale)&&(0===this._time||n>=this.totalduration())&&(f&&(j.length&&k(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._haspausedchild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._haspausedchild())return!0;a=a._next}return!1},q.getchildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._starttime-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftchildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._starttime>=c&&(e._starttime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.gettweensof(b):this.getchildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getchildren(!1,!0,!0),c=b.length;for(this._time=this._totaltime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totaltime=function(b,c,d){this._forcingplayhead=!0;var e=a.prototype.totaltime.apply(this,arguments);return this._forcingplayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timescale(this._duration/a),this):(this._dirty&&this.totalduration(),this._duration)},q.totalduration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalduration(),e._starttime>f&&this._sortchildren&&!e._paused?this.add(e,e._starttime-e._delay):f=e._starttime,e._starttime<0&&!e._paused&&(d-=e._starttime,this._timeline.smoothchildtiming&&(this._starttime+=e._starttime/this._timescale),this.shiftchildren(-e._starttime,!1,-9999999999),f=0),c=e._starttime+e._totalduration/e._timescale,c>d&&(d=c),e=b;this._duration=this._totalduration=d,this._dirty=!1}return this._totalduration}return a&&this.totalduration()?this.timescale(this._totalduration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._starttime===d&&"ispause"===c.data&&(c._rawprevtime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesframes=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootframestimeline},q.rawtime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalprogress()<1)?this._totaltime%(this._duration+this._repeatdelay):this._paused?this._totaltime:(this._timeline.rawtime(a)-this._starttime)*this._timescale},d},!0),_gsscope._gsdefine("timelinemax",["timelinelite","tweenlite","easing.ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=b._internals,g=f.lazytweens,h=f.lazyrender,i=_gsscope._gsdefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="1.20.2",k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addcallback=function(a,c,d,e){return this.add(b.delayedcall(0,a,d,e),c)},k.removecallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.gettweensof(a,!1),d=c.length,e=this._parsetimeorlabel(b);--d>-1;)c[d]._starttime===e&&c[d]._enabled(!1,!1);return this},k.removepause=function(b){return this.removecallback(a._internals.pausecallback,b)},k.tweento=function(a,c){c=c||{};var d,e,f,g={ease:j,useframes:this.usesframes(),immediaterender:!1},h=c.repeat&&i.tweenmax||b;for(e in c)g[e]=c[e];return g.time=this._parsetimeorlabel(a),d=math.abs(number(g.time)-this._time)/this._timescale||.001,f=new h(this,d,g),g.onstart=function(){f.target.paused(!0),f.vars.time!==f.target.time()&&d===f.duration()&&f.duration(math.abs(f.vars.time-f.target.time())/f.target._timescale),c.onstart&&c.onstart.apply(c.onstartscope||c.callbackscope||f,c.onstartparams||[])},f},k.tweenfromto=function(a,b,c){c=c||{},a=this._parsetimeorlabel(a),c.startat={oncomplete:this.seek,oncompleteparams:[a],callbackscope:this},c.immediaterender=c.immediaterender!==!1;var d=this.tweento(b,c);return d.duration(math.abs(d.vars.time-a)/this._timescale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o=this._dirty?this.totalduration():this._totalduration,p=this._duration,q=this._time,r=this._totaltime,s=this._starttime,t=this._timescale,u=this._rawprevtime,v=this._paused,w=this._cycle;if(a>=o-1e-7&&a>=0)this._locked||(this._totaltime=o,this._cycle=this._repeat),this._reversed||this._haspausedchild()||(f=!0,j="oncomplete",k=!!this._timeline.autoremovechildren,0===this._duration&&(0>=a&&a>=-1e-7||0>u||u===e)&&u!==a&&this._first&&(k=!0,u>e&&(j="onreversecomplete"))),this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=p,a=p+1e-4);else if(1e-7>a)if(this._locked||(this._totaltime=this._cycle=0),this._time=0,(0!==q||0===p&&u!==e&&(u>0||0>a&&u>=0)&&!this._locked)&&(j="onreversecomplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoremovechildren&&this._reversed?(k=f=!0,j="onreversecomplete"):u>=0&&this._first&&(k=!0),this._rawprevtime=a;else{if(this._rawprevtime=p||!b||a||this._rawprevtime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._starttime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(k=!0)}else if(0===p&&0>u&&(k=!0),this._time=this._rawprevtime=a,this._locked||(this._totaltime=a,0!==this._repeat&&(l=p+this._repeatdelay,this._cycle=this._totaltime/l>>0,0!==this._cycle&&this._cycle===this._totaltime/l&&a>=r&&this._cycle--,this._time=this._totaltime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=p-this._time),this._time>p?(this._time=p,a=p+1e-4):this._time<0?this._time=a=0:a=this._time)),this._haspause&&!this._forcingplayhead&&!b){if(a=this._time,a>=q||this._repeat&&w!==this._cycle)for(d=this._first;d&&d._starttime<=a&&!m;)d._duration||"ispause"!==d.data||d.ratio||0===d._starttime&&0===this._rawprevtime||(m=d),d=d._next;else for(d=this._last;d&&d._starttime>=a&&!m;)d._duration||"ispause"===d.data&&d._rawprevtime>0&&(m=d),d=d._prev;m&&m._starttime0&&(this._active=!0),0===r&&this.vars.onstart&&(0===this._totaltime&&this._totalduration||b||this._callback("onstart")),n=this._time,n>=q)for(d=this._first;d&&(i=d._next,n===this._time&&(!this._paused||v));)(d._active||d._starttime<=this._time&&!d._paused&&!d._gc)&&(m===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)),d=i;else for(d=this._last;d&&(i=d._prev,n===this._time&&(!this._paused||v));){if(d._active||d._starttime<=q&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endtime()>this._time;)m.render(m._reversed?m.totalduration()-(a-m._starttime)*m._timescale:(a-m._starttime)*m._timescale,b,c),m=m._prev;m=null,this.pause()}d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)}d=i}this._onupdate&&(b||(g.length&&h(),this._callback("onupdate"))),j&&(this._locked||this._gc||(s===this._starttime||t!==this._timescale)&&(0===this._time||o>=this.totalduration())&&(f&&(g.length&&h(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[j]&&this._callback(j)))},k.getactive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getchildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isactive()&&(f[h++]=e);return f},k.getlabelafter=function(a){a||0!==a&&(a=this._time);var b,c=this.getlabelsarray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getlabelbefore=function(a){null==a&&(a=this._time);for(var b=this.getlabelsarray(),c=b.length;--c>-1;)if(b[c].timethis._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(a,b)):this._time},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatdelay=function(a){return arguments.length?(this._repeatdelay=a,this._uncache(!0)):this._repeatdelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentlabel=function(a){return arguments.length?this.seek(a,!0):this.getlabelbefore(this._time+1e-8)},d},!0),function(){var a=180/math.pi,b=[],c=[],d=[],e={},f=_gsscope._gsdefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,margintop,marginleft,marginright,marginbottom,paddingleft,paddingtop,paddingright,paddingbottom,backgroundposition,backgroundposition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charat(1)&&(a[i][d]=f[d]+number(m.charat(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[0][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexof(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=math.sqrt(b[n]),c[n]=math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=math.sqrt(d[n])}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charat(1)?c[m]+number(o.charat(0)+o.substr(2)):number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsscope._gsdefine.plugin({propname:"bezier",priority:-1,version:"1.3.8",api:2,global:!0,init:function(a,b,c){this._target=a,b instanceof array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeres=null==b.timeresolution?6:parseint(b.timeresolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autorotate||c.vars.orienttobezier;this._autorotate=n?n instanceof array?n:[["x","y","rotation",n===!0?0:number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteprops.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexof("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parsefloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isnan(b.curviness)?1:b.curviness,!1,"thrubasic"===b.type,b.correlate,h):m(i,b.type,j),this._segcount=this._beziers[d].length,this._timeres){var p=o(this._beziers,this._timeres);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curseg=this._segments[0],this._s2=this._curseg[0],this._prec=1/this._curseg.length}if(n=this._autorotate)for(this._initialrotations=[],n[0]instanceof array||(this._autorotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexof("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialrotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteprops.push(d)}return this._startratio=c.vars.runbackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segcount,n=this._func,o=this._target,p=b!==this._startratio;if(this._timeres){if(k=this._lengths,l=this._curseg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curseg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&bthis._s2&&ee&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&bb?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autorotate){var q,r,s,t,u,v,w,x=this._autorotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?math.atan2(u-s,t-r)*w+v:this._initialrotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierthrough=l,p.cubictoquadratic=i,p._autocss=!0,p.quadratictocubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssregister=function(){var a=f.cssplugin;if(a){var b=a._internals,c=b._parsetoproxy,d=b._setpluginratio,e=b.cssproptween;b._registercomplexspecialprop("bezier",{parser:function(a,b,f,g,h,i){b instanceof array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setratio=d,0===q.autorotate&&(q.autorotate=!0),!q.autorotate||q.autorotate instanceof array||(j=q.autorotate===!0?0:number(q.autorotate),q.autorotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autorotate&&(g._transform||g._enabletransforms(!1),l.autorotate=g._target._gstransform,l.proxy.rotation=l.autorotate.rotation||0,g._overwriteprops.push("rotation")),i._oninittween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteprops,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autorotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsscope._gsdefine("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteprops.length=0,this.setratio=g.prototype.setratio},h=_gsscope._gsdefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.20.0",g.api=2,g.defaulttransformperspective=0,g.defaultskewtype="compensated",g.defaultsmoothorigin=!0,j="px",g.suffixmap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontsize:j,padding:j,margin:j,perspective:j,lineheight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,a=/^(rgb|hsl)/,b=/([a-z])/g,c=/-([a-z])/gi,d=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,e=function(a,b){return b.touppercase()},f=/(?:left|right|width)/i,g=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,h=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,i=/,(?=[^\)]*(?:\(|$))/gi,j=/[\s,\(]/i,k=math.pi/180,l=180/math.pi,m={},n={style:{}},o=_gsscope.document||{createelement:function(){return n}},p=function(a,b){return o.createelementns?o.createelementns(b||"http://www.w3.org/1999/xhtml",a):o.createelement(a)},q=p("div"),r=p("img"),s=g._internals={_specialprops:i},t=(_gsscope.navigator||{}).useragent||"",u=function(){var a=t.indexof("android"),b=p("a");return m=-1!==t.indexof("safari")&&-1===t.indexof("chrome")&&(-1===a||parsefloat(t.substr(a+8,2))>3),o=m&&parsefloat(t.substr(t.indexof("version/")+8,2))<6,n=-1!==t.indexof("firefox"),(/msie ([0-9]{1,}[\.0-9]{0,})/.exec(t)||/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(t))&&(p=parsefloat(regexp.$1)),b?(b.style.csstext="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),v=function(a){return x.test("string"==typeof a?a:(a.currentstyle?a.currentstyle.filter:a.style.filter)||"")?parsefloat(regexp.$1)/100:1},w=function(a){_gsscope.console&&console.log(a)},x="",y="",z=function(a,b){b=b||q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charat(0).touppercase()+a.substr(1),c=["o","moz","ms","ms","webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(y=3===d?"ms":c[d],x="-"+y.tolowercase()+"-",y+a):null},$=o.defaultview?o.defaultview.getcomputedstyle:function(){},_=g.getstyle=function(a,b,c,d,e){var f;return u||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||$(a))?f=c[b]||c.getpropertyvalue(b)||c.getpropertyvalue(b.replace(b,"-$1").tolowercase()):a.currentstyle&&(f=a.currentstyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):v(a)},aa=s.converttopixels=function(a,c,d,e,f){if("px"===e||!e&&"lineheight"!==c)return d;if("auto"===e||!d)return 0;var h,i,j,k=f.test(c),l=a,m=q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"lineheight"!==c||e)if("%"===e&&-1!==c.indexof("border"))h=d/100*(k?a.clientwidth:a.clientheight);else{if(m.csstext="border:0 solid red;position:"+_(a,"position")+";line-height:0;","%"!==e&&l.appendchild&&"v"!==e.charat(0)&&"rem"!==e)m[k?"borderleftwidth":"bordertopwidth"]=d+e;else{if(l=a.parentnode||o.body,-1!==_(l,"display").indexof("flex")&&(m.position="absolute"),i=l._gscache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendchild(q),h=parsefloat(q[k?"offsetwidth":"offsetheight"]),l.removechild(q),k&&"%"===e&&g.cachewidths!==!1&&(i=l._gscache=l._gscache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=aa(a,c,d,e,!0))}else i=$(a).lineheight,a.style.lineheight=d,h=parsefloat($(a).lineheight),a.style.lineheight=i;return o&&(h/=100),n?-h:h},ba=s.calculateoffset=function(a,b,c){if("absolute"!==_(a,"position",c))return 0;var d="left"===b?"left":"top",e=_(a,"margin"+d,c);return a["offset"+d]-(aa(a,b,parsefloat(e),e.replace(w,""))||0)},ca=function(a,b){var c,d,e,f={};if(b=b||$(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexof("-transform")||da===e)&&(f[e.replace(c,e)]=b.getpropertyvalue(e));else for(c in b)(-1===c.indexof("transform")||ca===c)&&(f[c]=b[c]);else if(b=a.currentstyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(c,e)]=b[c]);return u||(f.opacity=v(a)),d=ra(a,b,!1),f.rotation=d.rotation,f.skewx=d.skewx,f.scalex=d.scalex,f.scaley=d.scaley,f.x=d.x,f.y=d.y,fa&&(f.z=d.z,f.rotationx=d.rotationx,f.rotationy=d.rotationy,f.scalez=d.scalez),f.filters&&delete f.filters,f},da=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"csstext"!==g&&"length"!==g&&isnan(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexof("origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ba(a,g),void 0!==j[g]&&(h=new sa(j,g,j[g],h)));if(d)for(g in d)"classname"!==g&&(i[g]=d[g]);return{difs:i,firstmpt:h}},ea={width:["left","right"],height:["top","bottom"]},fa=["marginleft","marginright","margintop","marginbottom"],ga=function(a,b,c){if("svg"===(a.nodename+"").tolowercase())return(c||$(a))[b]||0;if(a.getctm&&oa(a))return a.getbbox()[b]||0;var d=parsefloat("width"===b?a.offsetwidth:a.offsetheight),e=ea[b],f=e.length;for(c=c||$(a,null);--f>-1;)d-=parsefloat(_(a,"padding"+e[f],c,!0))||0,d-=parsefloat(_(a,"border"+e[f]+"width",c,!0))||0;return d},ha=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexof("left")?"0%":-1!==a.indexof("right")?"100%":d[0],f=-1!==a.indexof("top")?"0%":-1!==a.indexof("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexof("%"),b.oyp=-1!==f.indexof("%"),b.oxr="="===e.charat(1),b.oyr="="===f.charat(1),b.ox=parsefloat(e.replace(v,"")),b.oy=parsefloat(f.replace(v,"")),b.v=a),b||a},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2)):parsefloat(a)-parsefloat(b)||0},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2))+b:parsefloat(a)||0},ka=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charat(1),g=(i?parseint(a.charat(0)+"1",10)*parsefloat(f[0].substr(2)):parsefloat(f[0]))*(-1===a.indexof("rad")?1:l)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexof("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexof("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexof("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},la={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ma=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},na=g.parsecolor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charat(a.length-1)&&(a=a.substr(0,a.length-1)),la[a])c=la[a];else if("#"===a.charat(0))4===a.length&&(d=a.charat(1),e=a.charat(2),f=a.charat(3),a="#"+d+d+e+e+f+f),a=parseint(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexof("="))return a.match(t)}else g=number(c[0])%360/360,h=number(c[1])/100,i=number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=number(a[3])),c[0]=ma(g+1/3,d,e),c[1]=ma(g,d,e),c[2]=ma(g-1/3,d,e);else c=a.match(s)||la.transparent;c[0]=number(c[0]),c[1]=number(c[1]),c[2]=number(c[2]),c.length>3&&(c[3]=number(c[3]))}else c=la.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=math.max(d,e,f),k=math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},oa=function(a,b){var c,d,e,f=a.match(pa)||[],g=0,h="";if(!f.length)return a;for(c=0;c0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&i.test(a)){for(o=a.replace(i,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},sa=(s._setpluginratio=function(a){this.plugin.setratio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstmpt,j=1e-6;i;)b=h[i.v],i.r?b=math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autorotate&&(g.autorotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstmpt,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new sa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstmpt:j,pt:k}},s.cssproptween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ta||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ua=function(a,b,c,d,e,f){var g=new ta(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},va=g.parsecomplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ta(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&pa.test(d+c)&&(d=[c,d],g.colorstringfilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,a,b,c,d=c.split(", ").join(",").split(" "),e=d.split(", ").join(",").split(" "),f=d.length,g=k!==!1;for((-1!==d.indexof(",")||-1!==c.indexof(","))&&(d=d.join(" ").replace(i,", ").split(" "),e=e.join(" ").replace(i,", ").split(" "),f=d.length),f!==e.length&&(d=(f||"").split(" "),f=d.length),h.plugin=j,h.setratio=l,pa.lastindex=0,m=0;f>m;m++)if(p=d[m],u=e[m],x=parsefloat(p),x||0===x)h.appendxtra("",x,ia(u,x),u.replace(t,""),g&&-1!==u.indexof("px"),!0);else if(e&&pa.test(p))b=u.indexof(")")+1,b=")"+(b?u.substr(b):""),c=-1!==u.indexof("hsl")&&u,z=u,p=na(p,c),u=na(u,c),y=p.length+u.length>6,y&&!u&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(e[m]).join("transparent")):(u||(y=!1),c?h.appendxtra(z.substr(0,z.indexof("hsl"))+(y?"hsla(":"hsl("),p[0],ia(u[0],p[0]),",",!1,!0).appendxtra("",p[1],ia(u[1],p[1]),"%,",!1).appendxtra("",p[2],ia(u[2],p[2]),y?"%,":"%"+b,!1):h.appendxtra(z.substr(0,z.indexof("rgb"))+(y?"rgba(":"rgb("),p[0],u[0]-p[0],",",!0,!0).appendxtra("",p[1],u[1]-p[1],",",!0).appendxtra("",p[2],u[2]-p[2],y?",":b,!0),y&&(p=p.length<4?1:p[3],h.appendxtra("",p,(u.length<4?1:u[3])-p,b,!1))),pa.lastindex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n0;)j["xn"+wa]=0,j["xs"+wa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setratio=j.rxp=null,j.appendxtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setratio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ta(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var xa=function(a,b){b=b||{},this.p=b.prefix?z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||qa(b.defaultvalue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultvalue,this.pr=b.priority||0},ya=s._registercomplexspecialprop=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultvalue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexof(m),l=c.indexof(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return va(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parsecomplex(a.style,this.format(_(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerspecialprop=function(a,b,c){ya(a,{parser:function(a,d,e,f,g,h,i){var j=new ta(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setratio=b(a,d,f._tween,e),j},priority:c})},g.usesvgtransformattr=!0;var aa,ba="scalex,scaley,scalez,x,y,z,skewx,skewy,rotation,rotationx,rotationy,perspective,xpercent,ypercent".split(","),ca=z("transform"),da=x+"transform",ea=z("transformorigin"),fa=null!==z("perspective"),ga=s.transform=function(){this.perspective=parsefloat(g.defaulttransformperspective)||0,this.force3d=g.defaultforce3d!==!1&&fa?g.defaultforce3d||"auto":!1},ha=_gsscope.svgelement,ia=function(a,b,c){var d,e=o.createelementns("http://www.w3.org/2000/svg",a),f=/([a-z])([a-z])/g;for(d in c)e.setattributens(null,d.replace(f,"$1-$2").tolowercase(),c[d]);return b.appendchild(e),e},ja=o.documentelement||{},ka=function(){var a,b,c,d=p||/android/i.test(t)&&!_gsscope.chrome;return o.createelementns&&!d&&(a=ia("svg",ja),b=ia("rect",a,{width:100,height:50,x:100}),c=b.getboundingclientrect().width,b.style[ea]="50% 50%",b.style[ca]="scalex(0.5)",d=c===b.getboundingclientrect().width&&!(n&&fa),ja.removechild(a)),d}(),la=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gstransform,w=qa(a,!0);v&&(t=v.xorigin,u=v.yorigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getbbox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parsefloat(a.hasattribute("x")?a.getattribute("x"):a.hasattribute("cx")?a.getattribute("cx"):0)||0,y:parsefloat(a.hasattribute("y")?a.getattribute("y"):a.hasattribute("cy")?a.getattribute("cy"):0)||0,width:0,height:0}),b=ha(b).split(" "),h=[(-1!==b[0].indexof("%")?parsefloat(b[0])/100*n.width:parsefloat(b[0]))+n.x,(-1!==b[1].indexof("%")?parsefloat(b[1])/100*n.height:parsefloat(b[1]))+n.y]),c.xorigin=k=parsefloat(h[0]),c.yorigin=l=parsefloat(h[1]),d&&w!==pa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xorigin=h[0]=i,l=c.yorigin=h[1]=j)),v&&(f&&(c.xoffset=v.xoffset,c.yoffset=v.yoffset,v=c),e||e!==!1&&g.defaultsmoothorigin!==!1?(i=k-t,j=l-u,v.xoffset+=i*w[0]+j*w[2]-i,v.yoffset+=i*w[1]+j*w[3]-j):v.xoffset=v.yoffset=0),f||a.setattribute("data-svg-origin",h.join(" "))},ma=function(a){var b,c=p("svg",this.ownersvgelement.getattribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentnode,e=this.nextsibling,f=this.style.csstext;if(ja.appendchild(c),c.appendchild(this),this.style.display="block",a)try{b=this.getbbox(),this._originalgetbbox=this.getbbox,this.getbbox=ma}catch(g){}else this._originalgetbbox&&(b=this._originalgetbbox());return e?d.insertbefore(this,e):d.appendchild(this),ja.removechild(c),this.style.csstext=f,b},na=function(a){try{return a.getbbox()}catch(b){return ma.call(a,!0)}},oa=function(a){return!(!(ha&&a.getctm&&na(a))||a.parentnode&&!a.ownersvgelement)},pa=[1,0,0,1,0,0],qa=function(a,b){var c,d,e,f,g,h,i=a._gstransform||new ga,j=1e5,k=a.style;if(ca?d=_(a,da,null,!0):a.currentstyle&&(d=a.currentstyle.filter.match(g),d=d&&4===d.length?[d[0].substr(4),number(d[2].substr(4)),number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,!ca||!(h="none"===$(a).display)&&a.parentnode||(h&&(f=k.display,k.display="block"),a.parentnode||(g=1,ja.appendchild(a)),d=_(a,da,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&va(k,"display"),g&&ja.removechild(a)),(i.svg||a.getctm&&oa(a))&&(c&&-1!==(k[ca]+"").indexof("matrix")&&(d=k[ca],c=0),e=a.getattribute("transform"),c&&e&&(-1!==e.indexof("matrix")?(d=e,c=0):-1!==e.indexof("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return pa;for(e=(d||"").match(s)||[],wa=e.length;--wa>-1;)f=number(e[wa]),e[wa]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},ra=s.gettransform=function(a,c,d,e){if(a._gstransform&&d&&!e)return a._gstransform;var f,h,i,j,k,l,m=d?a._gstransform||new ga:new ga,n=m.scalex<0,o=2e-5,p=1e5,q=fa?parsefloat(_(a,ea,c,!1,"0 0 0").split(" ")[2])||m.zorigin||0:0,r=parsefloat(g.defaulttransformperspective)||0;if(m.svg=!(!a.getctm||!oa(a)),m.svg&&(la(a,_(a,ea,c,!1,"50% 50%")+"",m,a.getattribute("data-svg-origin")),aa=g.usesvgtransformattr||ka),f=qa(a),f!==pa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],a=f[3],b=f[4],c=f[5],d=f[6],e=f[7],f=f[8],g=f[9],h=f[10],i=f[12],j=f[13],k=f[14],m=f[11],n=math.atan2(d,h);m.zorigin&&(k=-m.zorigin,i=f*k-f[12],j=g*k-f[13],k=h*k+m.zorigin-f[14]),m.rotationx=n*l,n&&(v=math.cos(-n),w=math.sin(-n),s=b*v+f*w,t=c*v+g*w,u=d*v+h*w,f=b*-w+f*v,g=c*-w+g*v,h=d*-w+h*v,m=e*-w+m*v,b=s,c=t,d=u),n=math.atan2(-z,h),m.rotationy=n*l,n&&(v=math.cos(-n),w=math.sin(-n),s=x*v-f*w,t=y*v-g*w,u=z*v-h*w,g=y*w+g*v,h=z*w+h*v,m=a*w+m*v,x=s,y=t,z=u),n=math.atan2(y,x),m.rotation=n*l,n&&(v=math.cos(n),w=math.sin(n),s=x*v+y*w,t=b*v+c*w,u=f*v+g*w,y=y*v-x*w,c=c*v-b*w,g=g*v-f*w,x=s,b=t,f=u),m.rotationx&&math.abs(m.rotationx)+math.abs(m.rotation)>359.9&&(m.rotationx=m.rotation=0,m.rotationy=180-m.rotationy),n=math.atan2(b,c),m.scalex=(math.sqrt(x*x+y*y+z*z)*p+.5|0)/p,m.scaley=(math.sqrt(c*c+d*d)*p+.5|0)/p,m.scalez=(math.sqrt(f*f+g*g+h*h)*p+.5|0)/p,x/=m.scalex,b/=m.scaley,y/=m.scalex,c/=m.scaley,math.abs(n)>o?(m.skewx=n*l,b=0,"simple"!==m.skewtype&&(m.scaley*=1/math.cos(n))):m.skewx=0,m.perspective=m?1/(0>m?-m:m):0,m.x=i,m.y=j,m.z=k,m.svg&&(m.x-=m.xorigin-(m.xorigin*x-m.yorigin*b),m.y-=m.yorigin-(m.yorigin*y-m.xorigin*c))}else if(!fa||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationx&&!m.rotationy){var o=f.length>=6,p=o?f[0]:1,q=f[1]||0,r=f[2]||0,s=o?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=math.sqrt(p*p+q*q),j=math.sqrt(s*s+r*r),k=p||q?math.atan2(q,p)*l:m.rotation||0,l=r||s?math.atan2(r,s)*l+k:m.skewx||0,m.scalex=i,m.scaley=j,m.rotation=k,m.skewx=l,fa&&(m.rotationx=m.rotationy=m.z=0,m.perspective=r,m.scalez=1),m.svg&&(m.x-=m.xorigin-(m.xorigin*p+m.yorigin*r),m.y-=m.yorigin-(m.xorigin*q+m.yorigin*s))}math.abs(m.skewx)>90&&math.abs(m.skewx)<270&&(n?(m.scalex*=-1,m.skewx+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaley*=-1,m.skewx+=m.skewx<=0?180:-180)),m.zorigin=q;for(h in m)m[h]-o&&(m[h]=0)}return d&&(a._gstransform=m,m.svg&&(aa&&a.style[ca]?b.delayedcall(.001,function(){va(a.style,ca)}):!aa&&a.getattribute("transform")&&b.delayedcall(.001,function(){a.removeattribute("transform")}))),m},sa=function(a){var b,c,d=this.data,e=-d.rotation*k,f=e+d.skewx*k,g=1e5,h=(math.cos(e)*d.scalex*g|0)/g,i=(math.sin(e)*d.scalex*g|0)/g,j=(math.sin(f)*-d.scaley*g|0)/g,k=(math.cos(f)*d.scaley*g|0)/g,l=this.t.style,m=this.t.currentstyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetwidth,r=this.t.offsetheight,s="absolute"!==m.position,t="progid:dximagetransform.microsoft.matrix(m11="+h+", m12="+i+", m21="+j+", m22="+k,u=d.x+q*d.xpercent/100,v=d.y+r*d.ypercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", dx="+(n-(n*h+o*i)+u)+", dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingmethod='auto expand')",-1!==b.indexof("dximagetransform.microsoft.matrix(")?l.filter=b.replace(h,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexof("dx=0, dy=0")||x.test(b)&&100!==parsefloat(regexp.$1)||-1===b.indexof(b.indexof("alpha"))&&l.removeattribute("filter")),!s){var y,z,a,b=8>p?1:-1;for(n=d.ieoffsetx||0,o=d.ieoffsety||0,d.ieoffsetx=math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieoffsety=math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),wa=0;4>wa;wa++)z=fa[wa],y=m[z],c=-1!==y.indexof("px")?parsefloat(y):aa(this.t,z,parsefloat(y),y.replace(w,""))||0,a=c!==d[z]?2>wa?-d.ieoffsetx:-d.ieoffsety:2>wa?n-d.ieoffsetx:o-d.ieoffsety,l[z]=(d[z]=math.round(c-a*(0===wa||2===wa?1:b)))+"px"}}},ta=s.set3dtransformratio=s.settransformratio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,a=this.t.style,b=z.rotation,c=z.rotationx,d=z.rotationy,e=z.scalex,f=z.scaley,g=z.scalez,h=z.x,i=z.y,j=z.z,l=z.svg,m=z.perspective,n=z.force3d,o=z.skewy,p=z.skewx;if(o&&(p+=o,b+=o),((1===a||0===a)&&"auto"===n&&(this.tween._totaltime===this.tween._totalduration||!this.tween._totaltime)||!n)&&!j&&!m&&!d&&!c&&1===g||aa&&l||!fa)return void(b||p||l?(b*=k,x=p*k,y=1e5,c=math.cos(b)*e,f=math.sin(b)*e,d=math.sin(b-x)*-f,g=math.cos(b-x)*f,x&&"simple"===z.skewtype&&(b=math.tan(x-o*k),b=math.sqrt(1+b*b),d*=b,g*=b,o&&(b=math.tan(o*k),b=math.sqrt(1+b*b),c*=b,f*=b)),l&&(h+=z.xorigin-(z.xorigin*c+z.yorigin*d)+z.xoffset,i+=z.yorigin-(z.xorigin*f+z.yorigin*g)+z.yoffset,aa&&(z.xpercent||z.ypercent)&&(q=this.t.getbbox(),h+=.01*z.xpercent*q.width,i+=.01*z.ypercent*q.height),q=1e-6,q>h&&h>-q&&(h=0),q>i&&i>-q&&(i=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+h+","+i+")",l&&aa?this.t.setattribute("transform","matrix("+u):a[ca]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix(":"matrix(")+u):a[ca]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix(":"matrix(")+e+",0,0,"+f+","+h+","+i+")");if(n&&(q=1e-4,q>e&&e>-q&&(e=g=2e-5),q>f&&f>-q&&(f=g=2e-5),!m||z.z||z.rotationx||z.rotationy||(m=0)),b||p)b*=k,r=c=math.cos(b),s=f=math.sin(b),p&&(b-=p*k,r=math.cos(b),s=math.sin(b),"simple"===z.skewtype&&(b=math.tan((p-o)*k),b=math.sqrt(1+b*b),r*=b,s*=b,z.skewy&&(b=math.tan(o*k),b=math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(d||c||1!==g||m||l))return void(a[ca]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) translate3d(":"translate3d(")+h+"px,"+i+"px,"+j+"px)"+(1!==e||1!==f?" scale("+e+","+f+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=m?-1/m:0,p=z.zorigin,q=1e-6,v=",",w="0",b=d*k,b&&(r=math.cos(b),s=math.sin(b),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),b=c*k,b&&(r=math.cos(b),s=math.sin(b),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==g&&(e*=g,h*=g,k*=g,o*=g),1!==f&&(d*=f,g*=f,j*=f,m*=f),1!==e&&(c*=e,f*=e,i*=e,l*=e),(p||l)&&(p&&(h+=e*-p,i+=h*-p,j+=k*-p+p),l&&(h+=z.xorigin-(z.xorigin*c+z.yorigin*d)+z.xoffset,i+=z.yorigin-(z.xorigin*f+z.yorigin*g)+z.yoffset),q>h&&h>-q&&(h=w),q>i&&i>-q&&(i=w),q>j&&j>-q&&(j=0)),u=z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),c||d||1!==g?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=h+v+i+v+j+v+(m?1+-j/m:1)+")",a[ca]=u};j=ga.prototype,j.x=j.y=j.z=j.skewx=j.skewy=j.rotation=j.rotationx=j.rotationy=j.zorigin=j.xpercent=j.ypercent=j.xoffset=j.yoffset=0,j.scalex=j.scaley=j.scalez=1,ya("transform,scale,scalex,scaley,scalez,x,y,z,rotation,rotationx,rotationy,rotationz,skewx,skewy,shortrotation,shortrotationx,shortrotationy,shortrotationz,transformorigin,svgorigin,transformperspective,directionalrotation,parsetransform,force3d,skewtype,xpercent,ypercent,smoothorigin",{parser:function(a,b,c,d,f,h,i){if(d._lastparsedtransform===i)return f;d._lastparsedtransform=i;var j,k=i.scale&&"function"==typeof i.scale?i.scale:0;"function"==typeof i[c]&&(j=i[c],i[c]=b),k&&(i.scale=k(r,a));var l,m,n,o,p,s,t,u,v,w=a._gstransform,x=a.style,y=1e-6,z=ba.length,a=i,b={},c="transformorigin",d=ra(a,e,!0,a.parsetransform),e=a.transform&&("function"==typeof a.transform?a.transform(r,q):a.transform);if(d.skewtype=a.skewtype||d.skewtype||g.defaultskewtype,d._transform=d,e&&"string"==typeof e&&ca)m=q.style, m[ca]=e,m.display="block",m.position="absolute",o.body.appendchild(q),l=ra(q,null,!1),"simple"===d.skewtype&&(l.scaley*=math.cos(l.skewx*k)),d.svg&&(s=d.xorigin,t=d.yorigin,l.x-=d.xoffset,l.y-=d.yoffset,(a.transformorigin||a.svgorigin)&&(e={},la(a,ha(a.transformorigin),e,a.svgorigin,a.smoothorigin,!0),s=e.xorigin,t=e.yorigin,l.x-=e.xoffset-d.xoffset,l.y-=e.yoffset-d.yoffset),(s||t)&&(u=qa(q,!0),l.x-=s-(s*u[0]+t*u[2]),l.y-=t-(s*u[1]+t*u[3]))),o.body.removechild(q),l.perspective||(l.perspective=d.perspective),null!=a.xpercent&&(l.xpercent=ja(a.xpercent,d.xpercent)),null!=a.ypercent&&(l.ypercent=ja(a.ypercent,d.ypercent));else if("object"==typeof a){if(l={scalex:ja(null!=a.scalex?a.scalex:a.scale,d.scalex),scaley:ja(null!=a.scaley?a.scaley:a.scale,d.scaley),scalez:ja(a.scalez,d.scalez),x:ja(a.x,d.x),y:ja(a.y,d.y),z:ja(a.z,d.z),xpercent:ja(a.xpercent,d.xpercent),ypercent:ja(a.ypercent,d.ypercent),perspective:ja(a.transformperspective,d.perspective)},p=a.directionalrotation,null!=p)if("object"==typeof p)for(m in p)a[m]=p[m];else a.rotation=p;"string"==typeof a.x&&-1!==a.x.indexof("%")&&(l.x=0,l.xpercent=ja(a.x,d.xpercent)),"string"==typeof a.y&&-1!==a.y.indexof("%")&&(l.y=0,l.ypercent=ja(a.y,d.ypercent)),l.rotation=ka("rotation"in a?a.rotation:"shortrotation"in a?a.shortrotation+"_short":"rotationz"in a?a.rotationz:d.rotation,d.rotation,"rotation",b),fa&&(l.rotationx=ka("rotationx"in a?a.rotationx:"shortrotationx"in a?a.shortrotationx+"_short":d.rotationx||0,d.rotationx,"rotationx",b),l.rotationy=ka("rotationy"in a?a.rotationy:"shortrotationy"in a?a.shortrotationy+"_short":d.rotationy||0,d.rotationy,"rotationy",b)),l.skewx=ka(a.skewx,d.skewx),l.skewy=ka(a.skewy,d.skewy)}for(fa&&null!=a.force3d&&(d.force3d=a.force3d,o=!0),n=d.force3d||d.z||d.rotationx||d.rotationy||l.z||l.rotationx||l.rotationy||l.perspective,n||null==a.scale||(l.scalez=1);--z>-1;)v=ba[z],e=l[v]-d[v],(e>y||-y>e||null!=a[v]||null!=m[v])&&(o=!0,f=new ta(d,v,d[v],e,f),v in b&&(f.e=b[v]),f.xs0=0,f.plugin=h,d._overwriteprops.push(f.n));return e=a.transformorigin,d.svg&&(e||a.svgorigin)&&(s=d.xoffset,t=d.yoffset,la(a,ha(e),l,a.svgorigin,a.smoothorigin),f=ua(d,"xorigin",(w?d:l).xorigin,l.xorigin,f,c),f=ua(d,"yorigin",(w?d:l).yorigin,l.yorigin,f,c),(s!==d.xoffset||t!==d.yoffset)&&(f=ua(d,"xoffset",w?s:d.xoffset,d.xoffset,f,c),f=ua(d,"yoffset",w?t:d.yoffset,d.yoffset,f,c)),e="0px 0px"),(e||fa&&n&&d.zorigin)&&(ca?(o=!0,v=ea,e=(e||_(a,v,e,!1,"50% 50%"))+"",f=new ta(x,v,0,0,f,-1,c),f.b=x[v],f.plugin=h,fa?(m=d.zorigin,e=e.split(" "),d.zorigin=(e.length>2&&(0===m||"0px"!==e[2])?parsefloat(e[2]):m)||0,f.xs0=f.e=e[0]+" "+(e[1]||"50%")+" 0px",f=new ta(d,"zorigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=d.zorigin):f.xs0=f.e=e):ha(e+"",d)),o&&(d._transformtype=d.svg&&aa||!n&&3!==this._transformtype?2:3),j&&(i[c]=j),k&&(i.scale=k),f},prefix:!0}),ya("boxshadow",{defaultvalue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ya("borderradius",{defaultvalue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],z=a.style;for(q=parsefloat(a.offsetwidth),r=parsefloat(a.offsetheight),i=b.split(" "),j=0;jp?1:0))||""):(p=parsefloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=aa(a,"borderleft",o,t),w=aa(a,"bordertop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=aa(a,"borderleft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parsefloat(m)+p+s,k=parsefloat(l)+p+s)),g=va(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:qa("0px 0px 0px 0px",!1,!0)}),ya("borderbottomleftradius,borderbottomrightradius,bordertopleftradius,bordertoprightradius",{defaultvalue:"0px",parser:function(a,b,c,d,f,g){return va(a.style,c,this.format(_(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:qa("0px 0px",!1,!0)}),ya("backgroundposition",{defaultvalue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||$(a,null),q=this.format((o?p?o.getpropertyvalue(n+"-x")+" "+o.getpropertyvalue(n+"-y"):o.getpropertyvalue(n):a.currentstyle.backgroundpositionx+" "+a.currentstyle.backgroundpositiony)||"0 0"),r=this.format(b);if(-1!==q.indexof("%")!=(-1!==r.indexof("%"))&&r.split(",").length<2&&(m=_(a,"backgroundimage").replace(d,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),r.setattribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexof("%"),k!==(-1!==i[j].indexof("%"))&&(l=0===j?a.offsetwidth-r.width:a.offsetheight-r.height,h[j]=k?parsefloat(q)/100*l+"px":parsefloat(q)/l*100+"%");q=h.join(" ")}return this.parsecomplex(a.style,q,r,f,g)},formatter:ha}),ya("backgroundsize",{defaultvalue:"0 0",formatter:function(a){return a+="",ha(-1===a.indexof(" ")?a+" "+a:a)}}),ya("perspective",{defaultvalue:"0px",prefix:!0}),ya("perspectiveorigin",{defaultvalue:"50% 50%",prefix:!0}),ya("transformstyle",{prefix:!0}),ya("backfacevisibility",{prefix:!0}),ya("userselect",{prefix:!0}),ya("margin",{parser:ra("margintop,marginright,marginbottom,marginleft")}),ya("padding",{parser:ra("paddingtop,paddingright,paddingbottom,paddingleft")}),ya("clip",{defaultvalue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentstyle,j=8>p?" ":",",h="rect("+i.cliptop+j+i.clipright+j+i.clipbottom+j+i.clipleft+")",b=this.format(b).split(",").join(j)):(h=this.format(_(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parsecomplex(a.style,h,b,f,g)}}),ya("textshadow",{defaultvalue:"0px 0px 0px #999",color:!0,multi:!0}),ya("autoround,strictunits",{parser:function(a,b,c,d,e){return e}}),ya("border",{defaultvalue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=_(a,"bordertopwidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parsefloat(h)/aa(a,"bordertopwidth",1,j)+j),this.parsecomplex(a.style,this.format(h+" "+_(a,"bordertopstyle",e,!1,"solid")+" "+_(a,"bordertopcolor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(pa)||["#000"])[0]}}),ya("borderwidth",{parser:ra("bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth")}),ya("float,cssfloat,stylefloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssfloat"in g?"cssfloat":"stylefloat";return new ta(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var ua=function(a){var b,c=this.t,d=c.filter||_(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexof("atrix(")&&-1===d.indexof("radient(")&&-1===d.indexof("oader(")?(c.removeattribute("filter"),b=!_(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexof("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};ya("opacity,alpha,autoalpha",{defaultvalue:"1",parser:function(a,b,c,d,f,g){var h=parsefloat(_(a,"opacity",e,!1,"1")),i=a.style,j="autoalpha"===c;return"string"==typeof b&&"="===b.charat(1)&&(b=("-"===b.charat(0)?-1:1)*parsefloat(b.substr(2))+h),j&&1===h&&"hidden"===_(a,"visibility",e)&&0!==b&&(h=0),u?f=new ta(i,"opacity",h,b-h,f):(f=new ta(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setratio=ua),j&&(f=new ta(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteprops.push(f.n),d._overwriteprops.push(c)),f}});var va=function(a,b){b&&(a.removeproperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeproperty(b.replace(b,"-$1").tolowercase())):a.removeattribute(b))},wa=function(a){if(this.t._gsclasspt=this,1===a||0===a){this.t.setattribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:va(c,b.p),b=b._next;1===a&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.getattribute("class")!==this.e&&this.t.setattribute("class",this.e)};ya("classname",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getattribute("class")||"",p=a.style.csstext;if(g=f._classnamept=new ta(a,d,0,0,g,2),g.setratio=wa,g.pr=-11,c=!0,g.b=o,k=ca(a,e),l=a._gsclasspt){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setratio(1)}return a._gsclasspt=g,g.e="="!==b.charat(1)?b:o.replace(new regexp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charat(0)?" "+b.substr(2):""),a.setattribute("class",g.e),j=da(a,k,ca(a),i,m),a.setattribute("class",o),g.data=j.firstmpt,a.style.csstext=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var xa=function(a){if((1===a||0===a)&&this.data._totaltime===this.data._totalduration&&"isfromstart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.csstext="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformorigin"===c?ea:i[c].p),va(g,c);e&&(va(g,ca),f=this.t._gstransform,f&&(f.svg&&(this.t.removeattribute("data-svg-origin"),this.t.removeattribute("transform")),delete this.t._gstransform))}};for(ya("clearprops",{parser:function(a,b,d,e,f){return f=new ta(a,d,0,0,f,2),f.setratio=xa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwprops,physicsprops,physics2d".split(","),wa=j.length;wa--;)za(j[wa]);j=g.prototype,j._firstpt=j._lastparsedtransform=j._transform=null,j._oninittween=function(a,b,h,j){if(!a.nodetype)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoround,c=!1,d=b.suffixmap||g.suffixmap,e=$(a,""),f=this._overwriteprops;var n,p,s,t,u,v,w,x,z,a=a.style;if(l&&""===a.zindex&&(n=_(a,"zindex",e),("auto"===n||""===n)&&this._addlazyset(a,"zindex",0)),"string"==typeof b&&(t=a.csstext,n=ca(a,e),a.csstext=t+";"+b,n=da(a,n,ca(a)).difs,!u&&y.test(b)&&(n.opacity=parsefloat(regexp.$1)),b=n,a.csstext=t),b.classname?this._firstpt=p=i.classname.parse(a,b.classname,"classname",this,null,null,b):this._firstpt=p=this.parse(a,b,null),this._transformtype){for(z=3===this._transformtype,ca?m&&(l=!0,""===a.zindex&&(w=_(a,"zindex",e),("auto"===w||""===w)&&this._addlazyset(a,"zindex",0)),o&&this._addlazyset(a,"webkitbackfacevisibility",this._vars.webkitbackfacevisibility||(z?"visible":"hidden"))):a.zoom=1,s=p;s&&s._next;)s=s._next;x=new ta(a,"transform",0,0,null,2),this._linkcssp(x,null,s),x.setratio=ca?ta:sa,x.data=this._transform||ra(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstpt=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b){if(n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g])c=h.parse(a,n,g,this,c,f,b);else{if("--"===g.substr(0,2)){this._tween._proplookup[g]=this._addtween.call(this._tween,a.style,"setproperty",$(a).getpropertyvalue(g)+"",n+"",g,!1,g);continue}m=_(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexof("color")||s&&a.test(n)?(s||(n=na(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=va(u,g,m,n,!0,"transparent",c,0,f)):s&&j.test(n)?c=va(u,g,m,n,!0,null,c,0,f):(j=parsefloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ga(a,g,e),o="px"):"left"===g||"top"===g?(j=ba(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charat(1),t?(l=parseint(n.charat(0)+"1",10),n=n.substr(2),l*=parsefloat(n),p=n.replace(w,"")):(l=parsefloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&(""!==p||"lineheight"===g)&&(l||0===l)&&j&&(j=aa(a,g,j,o),"%"===p?(j/=aa(a,g,100,"%")/100,b.strictunits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=aa(a,g,1,p):"px"!==p&&(l=aa(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="nan"&&null!=n)?(c=new ta(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexof("style")?n:m):w("invalid "+g+" tween value: "+b[g]):(c=new ta(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zindex"===g),0,m,n),c.xs0=p))}f&&c&&!c.plugin&&(c.plugin=f)}return c},j.setratio=function(a){var b,c,d,e=this._firstpt,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)za(a[e],b,c);else for(d=a.childnodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ca(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childnodes.length||za(f,b,c)};return g.cascadeto=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedprops;for(a=i._targets||i.target,za(a,k,m),i.render(c,!0,!0),za(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=da(m[e],k[e],l[e]),f.firstmpt){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromto(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsscope._gsdefine.plugin({propname:"roundprops",version:"1.6.0",priority:-1,api:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){for(;a;)a.f||a.blob||(a.m=math.round),a=a._next},c=a.prototype;c._oninitallprops=function(){for(var a,c,d,e=this._tween,f=e.vars.roundprops.join?e.vars.roundprops:e.vars.roundprops.split(","),g=f.length,h={},i=e._proplookup.roundprops;--g>-1;)h[f[g]]=math.round;for(g=f.length;--g>-1;)for(a=f[g],c=e._firstpt;c;)d=c._next,c.pg?c.t._mod(h):c.n===a&&(2===c.f&&c.t?b(c.t._firstpt):(this._add(c.t,a,c.s,c.c),d&&(d._prev=c._prev),c._prev?c._prev._next=d:e._firstpt===c&&(e._firstpt=d),c._next=c._prev=null,e._proplookup[a]=i)),c=d;return!1},c._add=function(a,b,c,d){this._addtween(a,b,c,c+d,b,math.round),this._overwriteprops.push(b)}}(),function(){_gsscope._gsdefine.plugin({propname:"attr",api:2,version:"0.6.1",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setattribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addtween(a,"setattribute",a.getattribute(e)+"",f+"",e,!1,e),this._overwriteprops.push(e);return!0}})}(),_gsscope._gsdefine.plugin({propname:"directionalrotation",version:"0.3.1",api:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useradians===!0?2*math.pi:360,l=1e-6;for(e in b)"useradians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parsefloat("function"!=typeof a[e]?a[e]:a[e.indexof("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charat(1)?g+parseint(f.charat(0)+"1",10)*number(f.substr(2)):number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexof("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexof("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexof("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addtween(a,e,g,g+i,e),this._overwriteprops.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setratio.call(this,a);else for(b=this._firstpt;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autocss=!0,_gsscope._gsdefine("easing.back",["easing.ease"],function(a){var b,c,d,e=_gsscope.greensockglobals||_gsscope,f=e.com.greensock,g=2*math.pi,h=math.pi/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeout:new b,easein:new c,easeinout:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,e.config=function(a){return new d(a)},d},o=l("back",n("backout",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("backin",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("backinout",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.slowmo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcend=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getratio=function(a){var b=a+(.5-a)*this._p;return athis._p3?this._calcend?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcend?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.steppedease",function(a,b){a=a||1,this._p1=1/a,this._p2=a+(b?0:1),this._p3=b?1:0},!0),q=b.prototype=new a,q.constructor=b,q.getratio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),((this._p2*a|0)+this._p3)*this._p1},q.config=b.config=function(a,c){return new b(a,c)},c=i("easing.roughease",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?math.random():1/l*n,d=q?q.getratio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getratio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("bounce",j("bounceout",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("bouncein",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("bounceinout",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("circ",j("circout",function(a){return math.sqrt(1-(a-=1)*a)}),j("circin",function(a){return-(math.sqrt(1-a*a)-1)}),j("circinout",function(a){return(a*=2)<1?-.5*(math.sqrt(1-a*a)-1):.5*(math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getratio=c,f.config=function(a,b){return new e(a,b)},e},l("elastic",d("elasticout",function(a){return this._p1*math.pow(2,-10*a)*math.sin((a-this._p3)*this._p2)+1},.3),d("elasticin",function(a){return-(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*this._p2))},.3),d("elasticinout",function(a){return(a*=2)<1?-.5*(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*this._p2)):this._p1*math.pow(2,-10*(a-=1))*math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("expo",j("expoout",function(a){return 1-math.pow(2,-10*a)}),j("expoin",function(a){return math.pow(2,10*(a-1))-.001}),j("expoinout",function(a){return(a*=2)<1?.5*math.pow(2,10*(a-1)):.5*(2-math.pow(2,-10*(a-1)))})),l("sine",j("sineout",function(a){return math.sin(a*h)}),j("sinein",function(a){return-math.cos(a*h)+1}),j("sineinout",function(a){return-.5*(math.cos(math.pi*a)-1)})),i("easing.easelookup",{find:function(b){return a.map[b]}},!0),k(e.slowmo,"slowmo","ease,"),k(c,"roughease","ease,"),k(b,"steppedease","ease,"),o},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(a,b){"use strict";var c={},d=a.document,e=a.greensockglobals=a.greensockglobals||a;if(!e.tweenlite){var f,g,h,i,j,k=function(a){var b,c=a.split("."),d=e;for(b=0;b-1;)(l=q[f[p]]||new r(f[p],[])).gsclass?(i[p]=l.gsclass,s--):j&&l.sc.push(this);if(0===s&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=k(m.join("."))[n]=this.gsclass=g.apply(g,i),h)if(e[n]=c[n]=o,"undefined"!=typeof module&&module.exports)if(d===b){module.exports=c[b]=o;for(p in c)o[p]=c[p]}else c[b]&&(c[b][n]=o);else"function"==typeof define&&define.amd&&define((a.greensockamdpath?a.greensockamdpath+"/":"")+d.split(".").pop(),[],function(){return o});for(p=0;p-1;)for(f=i[j],e=d?t("easing."+f,null,!0):l.easing[f]||{},g=k.length;--g>-1;)h=k[g],w[f+"."+h]=w[h+f]=e[h]=a.getratio?a:a[h]||new a};for(h=v.prototype,h._calcend=!1,h.getratio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},f=["linear","quad","cubic","quart","quint,strong"],g=f.length;--g>-1;)h=f[g]+",power"+g,x(new v(null,null,1,g),h,"easeout",!0),x(new v(null,null,2,g),h,"easein"+(0===g?",easenone":"")),x(new v(null,null,3,g),h,"easeinout");w.linear=l.easing.linear.easein,w.swing=l.easing.quad.easeinout;var y=t("events.eventdispatcher",function(a){this._listeners={},this._eventtarget=a||this});h=y.prototype,h.addeventlistener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],k=0;for(this!==i||j||i.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===k&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},h.dispatchevent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventtarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var z=a.requestanimationframe,a=a.cancelanimationframe,b=date.now||function(){return(new date).gettime()},c=b();for(f=["ms","moz","webkit","o"],g=f.length;--g>-1&&!z;)z=a[f[g]+"requestanimationframe"],a=a[f[g]+"cancelanimationframe"]||a[f[g]+"cancelrequestanimationframe"];t("ticker",function(a,b){var c,e,f,g,h,k=this,l=b(),n=b!==!1&&z?"auto":!1,p=500,q=33,r="tick",s=function(a){var b,d,i=b()-c;i>p&&(l+=i-q),c+=i,k.time=(c-l)/1e3,b=k.time-h,(!c||b>0||a===!0)&&(k.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&k.dispatchevent(r)};y.call(k),k.time=k.frame=0,k.tick=function(){s(!0)},k.lagsmoothing=function(a,b){p=a||1/m,q=math.min(b,p,0)},k.sleep=function(){null!=f&&(n&&a?a(f):cleartimeout(f),e=o,f=null,k===i&&(j=!1))},k.wake=function(a){null!==f?k.sleep():a?l+=-c+(c=b()):k.frame>10&&(c=b()-p+5),e=0===c?o:n&&z?z:function(a){return settimeout(a,1e3*(h-k.time)+1|0)},k===i&&(j=!0),s(2)},k.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void k.wake()):c},k.useraf=function(a){return arguments.length?(k.sleep(),n=a,void k.fps(c)):n},k.fps(a),settimeout(function(){"auto"===n&&k.frame<5&&"hidden"!==d.visibilitystate&&k.useraf(!1)},1500)}),h=l.ticker.prototype=new l.events.eventdispatcher,h.constructor=l.ticker;var d=t("core.animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalduration=a||0,this._delay=number(b.delay)||0,this._timescale=1,this._active=b.immediaterender===!0,this.data=b.data,this._reversed=b.reversed===!0,x){j||i.wake();var c=this.vars.useframes?w:x;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});i=d.ticker=new l.ticker,h=d.prototype,h._dirty=h._gc=h._initted=h._paused=!1,h._totaltime=h._time=0,h._rawprevtime=-1,h._next=h._last=h._onupdate=h._timeline=h.timeline=null,h._paused=!1;var e=function(){j&&b()-c>2e3&&"hidden"!==d.visibilitystate&&i.wake();var a=settimeout(e,2e3);a.unref&&a.unref()};e(),h.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},h.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},h.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},h.seek=function(a,b){return this.totaltime(number(a),b!==!1)},h.restart=function(a,b){return this.reversed(!1).paused(!1).totaltime(a?-this._delay:0,b!==!1,!0)},h.reverse=function(a,b){return null!=a&&this.seek(a||this.totalduration(),b),this.reversed(!0).paused(!1)},h.render=function(a,b,c){},h.invalidate=function(){return this._time=this._totaltime=0,this._initted=this._gc=!1,this._rawprevtime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},h.isactive=function(){var a,b=this._timeline,c=this._starttime;return!b||!this._gc&&!this._paused&&b.isactive()&&(a=b.rawtime(!0))>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},h._callback=function(a){var b=this.vars,c=b[a],d=b[a+"params"],e=b[a+"scope"]||b.callbackscope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},h.eventcallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"params"]=p(c)&&-1!==c.join("").indexof("{self}")?this._swapselfinparams(c):c,e[a+"scope"]=d),"onupdate"===a&&(this._onupdate=b)}return this},h.delay=function(a){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+a-this._delay),this._delay=a,this):this._delay},h.duration=function(a){return arguments.length?(this._duration=this._totalduration=a,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},h.totaltime=function(a,b,c){if(j||i.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>a&&!c&&(a+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var d=this._totalduration,e=this._timeline;if(a>d&&!c&&(a=d),this._starttime=(this._paused?this._pausetime:e._time)-(this._reversed?d-a:a)/this._timescale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._starttime+e._totaltime)/e._timescale&&e.totaltime(e._totaltime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==a||0===this._duration)&&(j.length&&z(),this.render(a,b,!1),j.length&&z())}return this},h.progress=h.totalprogress=function(a,b){var c=this.duration();return arguments.length?this.totaltime(c*a,b):c?this._time/c:this.ratio},h.starttime=function(a){return arguments.length?(a!==this._starttime&&(this._starttime=a,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,a-this._delay)),this):this._starttime},h.endtime=function(a){return this._starttime+(0!=a?this.totalduration():this.duration())/this._timescale},h.timescale=function(a){if(!arguments.length)return this._timescale;if(a=a||m,this._timeline&&this._timeline.smoothchildtiming){var b=this._pausetime,c=b||0===b?b:this._timeline.totaltime();this._starttime=c-(c-this._starttime)*this._timescale/a}return this._timescale=a,this._uncache(!1)},h.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},h.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(j||a||i.wake(),b=d.rawtime(),c=b-this._pausetime,!a&&d.smoothchildtiming&&(this._starttime+=c,this._uncache(!1)),this._pausetime=a?b:null,this._paused=a,this._active=this.isactive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothchildtiming?this._totaltime:(b-this._starttime)/this._timescale,this.render(b,b===this._totaltime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var f=t("core.simpletimeline",function(a){d.call(this,0,a),this.autoremovechildren=this.smoothchildtiming=!0});h=f.prototype=new d,h.constructor=f,h.kill()._gc=!1,h._first=h._last=h._recent=null,h._sortchildren=!1,h.add=h.insert=function(a,b,c,d){var e,f;if(a._starttime=number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pausetime=a._starttime+(this.rawtime()-a._starttime)/a._timescale), a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortchildren)for(f=a._starttime;e&&e._starttime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},h._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},h.render=function(a,b,c){var d,e=this._first;for(this._totaltime=this._time=this._rawprevtime=a;e;)d=e._next,(e._active||a>=e._starttime&&!e._paused&&!e._gc)&&(e._reversed?e.render((e._dirty?e.totalduration():e._totalduration)-(a-e._starttime)*e._timescale,b,c):e.render((a-e._starttime)*e._timescale,b,c)),e=d},h.rawtime=function(){return j||i.wake(),this._totaltime};var g=t("tweenlite",function(b,c,d){if(d.call(this,c,d),this.render=g.prototype.render,null==b)throw"cannot tween a null target.";this.target=b="string"!=typeof b?b:g.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodetype&&b[0].style&&!b.nodetype),i=this.vars.overwrite;if(this._overwrite=i=null==i?v[g.defaultoverwrite]:"number"==typeof i?i>>0:v[i],(h||b instanceof array||b.push&&p(b))&&"number"!=typeof b[0])for(this._targets=g=n(b),this._proplookup=[],this._siblings=[],e=0;e1&&aa(f,this,null,1,this._siblings[e])):(f=g[e--]=g.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._proplookup={},this._siblings=$(b,this,!1),1===i&&this._siblings.length>1&&aa(b,this,null,1,this._siblings);(this.vars.immediaterender||0===c&&0===this._delay&&this.vars.immediaterender!==!1)&&(this._time=-m,this.render(math.min(0,-this._delay)))},!0),h=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodetype&&b[0].style&&!b.nodetype)},i=function(a,b){var c,d={};for(c in a)u[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"classname"!==c&&"border"!==c||!(!r[c]||r[c]&&r[c]._autocss)||(d[c]=a[c],delete a[c]);a.css=d};h=g.prototype=new d,h.constructor=g,h.kill()._gc=!1,h.ratio=0,h._firstpt=h._targets=h._overwrittenprops=h._startat=null,h._notifypluginsofenabled=h._lazy=!1,g.version="1.20.2",g.defaultease=h._ease=new v(null,null,1,1),g.defaultoverwrite="auto",g.ticker=i,g.autosleep=120,g.lagsmoothing=function(a,b){i.lagsmoothing(a,b)},g.selector=a.$||a.jquery||function(b){var c=a.$||a.jquery;return c?(g.selector=c,c(b)):"undefined"==typeof d?b:d.queryselectorall?d.queryselectorall(b):d.getelementbyid("#"===b.charat(0)?b.substr(1):b)};var j=[],k={},l=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,m=/[\+-]=-?[\.\d]/,n=function(a){for(var b,c=this._firstpt,d=1e-6;c;)b=c.blob?1===a&&this.end?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},o=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(l)||[],f=b.match(l)||[],d&&(d._next=null,d.blob=1,l._firstpt=l._applypt=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexof(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parsefloat(e[h]),l.push(g),l._firstpt={_next:l._firstpt,t:l,p:l.length-1,s:g,c:("="===k.charat(1)?parseint(k.charat(0)+"1",10)*parsefloat(k.substr(2)):parsefloat(k)-g)||0,f:0,m:o&&4>o?math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setratio=n,m.test(b)&&(l.end=0),l},p=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexof("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charat(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:math.round:0,pr:0,c:n?parseint(d.charat(0)+"1",10)*parsefloat(d.substr(2)):parsefloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isnan(m)||!n&&isnan(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=o(m,n?parsefloat(o.s)+o.c:d,h||g.defaultstringfilter,o),o={t:j,p:"setratio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parsefloat(m),n||(o.c=parsefloat(d)-o.s||0))),o.c?((o._next=this._firstpt)&&(o._next._prev=o),this._firstpt=o,o):void 0},q=g._internals={isarray:p,isselector:h,lazytweens:j,blobdif:o},r=g._plugins={},s=q.tweenlookup={},t=0,u=q.reservedprops={ease:1,delay:1,overwrite:1,oncomplete:1,oncompleteparams:1,oncompletescope:1,useframes:1,runbackwards:1,startat:1,onupdate:1,onupdateparams:1,onupdatescope:1,onstart:1,onstartparams:1,onstartscope:1,onreversecomplete:1,onreversecompleteparams:1,onreversecompletescope:1,onrepeat:1,onrepeatparams:1,onrepeatscope:1,easeparams:1,yoyo:1,immediaterender:1,repeat:1,repeatdelay:1,data:1,paused:1,reversed:1,autocss:1,lazy:1,onoverwrite:1,callbackscope:1,stringfilter:1,id:1,yoyoease:1},v={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},w=d._rootframestimeline=new f,x=d._roottimeline=new f,y=30,z=q.lazyrender=function(){var a,b=j.length;for(k={};--b>-1;)a=j[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);j.length=0};x._starttime=i.time,w._starttime=i.frame,x._active=w._active=!0,settimeout(z,1),d._updateroot=g.render=function(){var a,b,c;if(j.length&&z(),x.render((i.time-x._starttime)*x._timescale,!1,!1),w.render((i.frame-w._starttime)*w._timescale,!1,!1),j.length&&z(),i.frame>=y){y=i.frame+(parseint(g.autosleep,10)||120);for(c in s){for(b=s[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete s[c]}if(c=x._first,(!c||c._paused)&&g.autosleep&&!w._first&&1===i._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||i.sleep()}}},i.addeventlistener("tick",d._updateroot);var $=function(a,b,c){var d,e,f=a._gstweenid;if(s[f||(a._gstweenid=f="t"+t++)]||(s[f]={target:a,tweens:[]}),b&&(d=s[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return s[f].tweens},_=function(a,b,c,d){var e,f,g=a.vars.onoverwrite;return g&&(e=g(a,b,c,d)),g=g.onoverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},aa=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._starttime+m,l=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||ba(b,0,o),0===ba(h,j,o)&&(l[n++]=h)):h._starttime<=k&&h._starttime+h.totalduration()/h._timescale>k&&((o||!h._initted)&&k-h._starttime<=2e-10||(l[n++]=h)));for(f=n;--f>-1;)if(h=l[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstpt&&h._initted){if(2!==d&&!_(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},ba=function(a,b,c){for(var d=a._timeline,e=d._timescale,f=a._starttime;d._timeline;){if(f+=d._starttime,e*=d._timescale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*m>f-b?m:(f+=a.totalduration()/a._timescale/e)>b+m?0:f-b-m};h._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenprops,i=this._duration,j=!!g.immediaterender,k=g.ease;if(g.startat){this._startat&&(this._startat.render(-1,!0),this._startat.kill()),e={};for(d in g.startat)e[d]=g.startat[d];if(e.overwrite=!1,e.immediaterender=!0,e.lazy=j&&g.lazy!==!1,e.startat=e.delay=null,e.onupdate=g.onupdate,e.onupdatescope=g.onupdatescope||g.callbackscope||this,this._startat=g.to(this.target,0,e),j)if(this._time>0)this._startat=null;else if(0!==i)return}else if(g.runbackwards&&0!==i)if(this._startat)this._startat.render(-1,!0),this._startat.kill(),this._startat=null;else{0!==this._time&&(j=!1),c={};for(d in g)u[d]&&"autocss"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isfromstart",c.lazy=j&&g.lazy!==!1,c.immediaterender=j,this._startat=g.to(this.target,0,c),j){if(0===this._time)return}else this._startat._init(),this._startat._enabled(!1),this.vars.immediaterender&&(this._startat=null)}if(this._ease=k=k?k instanceof v?k:"function"==typeof k?new v(k,g.easeparams):w[k]||g.defaultease:g.defaultease,g.easeparams instanceof array&&k.config&&(this._ease=k.config.apply(k,g.easeparams)),this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initprops(this._targets[a],this._proplookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initprops(this.target,this._proplookup,this._siblings,h,0);if(b&&g._onpluginevent("_oninitallprops",this),h&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runbackwards)for(c=this._firstpt;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onupdate=g.onupdate,this._initted=!0},h._initprops=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;k[b._gstweenid]&&z(),this.vars.css||b.style&&b!==a&&b.nodetype&&r.css&&this.vars.autocss!==!1&&i(this.vars,b);for(g in this.vars)if(l=this.vars[g],u[g])l&&(l instanceof array||l.push&&p(l))&&-1!==l.join("").indexof("{self}")&&(this.vars[g]=l=this._swapselfinparams(l,this));else if(r[g]&&(j=new r[g])._oninittween(b,this.vars[g],this,f)){for(this._firstpt=k={_next:this._firstpt,t:j,p:"setratio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteprops.length;--h>-1;)c[j._overwriteprops[h]]=this._firstpt;(j._priority||j._oninitallprops)&&(i=!0),(j._ondisable||j._onenable)&&(this._notifypluginsofenabled=!0),k._next&&(k._next._prev=k)}else c[g]=p.call(this,b,g,"get",l,g,0,null,this.vars.stringfilter,f);return e&&this._kill(e,b)?this._initprops(b,c,d,e,f):this._overwrite>1&&this._firstpt&&d.length>1&&aa(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initprops(b,c,d,e,f)):(this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(k[b._gstweenid]=!0),i)},h.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawprevtime;if(a>=i-1e-7&&a>=0)this._totaltime=this._time=i,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(d=!0,e="oncomplete",c=c||this._timeline.autoremovechildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._starttime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===m&&"ispause"!==this.data)&&j!==a&&(c=!0,j>m&&(e="onreversecomplete")),this._rawprevtime=g=!b||a||j===a?a:m);else if(1e-7>a)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==h||0===i&&j>0)&&(e="onreversecomplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==m||"ispause"!==this.data)&&(c=!0),this._rawprevtime=g=!b||a||j===a?a:m)),(!this._initted||this._startat&&this._startat.progress())&&(c=!0);else if(this._totaltime=this._time=a,this._easetype){var k=a/i,l=this._easetype,n=this._easepower;(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getratio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totaltime=h,this._rawprevtime=j,j.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getratio(this._time/i):d&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startat&&(a>=0?this._startat.render(a,b,c):e||(e="_dummygs")),this.vars.onstart&&(0!==this._time||0===i)&&(b||this._callback("onstart"))),f=this._firstpt;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onupdate&&(0>a&&this._startat&&a!==-1e-4&&this._startat.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onupdate")),e&&(!this._gc||c)&&(0>a&&this._startat&&!this._onupdate&&a!==-1e-4&&this._startat.render(a,b,c),d&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawprevtime===m&&g!==m&&(this._rawprevtime=0))}},h._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:g.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._starttime===this._starttime&&this._timeline===c._timeline;if((p(b)||h(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._proplookup[d]||{},this._overwrittenprops=this._overwrittenprops||[],e=this._overwrittenprops[d]=a?this._overwrittenprops[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._proplookup,e=this._overwrittenprops=a?this._overwrittenprops||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempkill),c&&(g.onoverwrite||this.vars.onoverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!_(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteprops.length||(g._prev?g._prev._next=g._next:g===this._firstpt&&(this._firstpt=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return i},h.invalidate=function(){return this._notifypluginsofenabled&&g._onpluginevent("_ondisable",this),this._firstpt=this._overwrittenprops=this._startat=this._onupdate=null,this._notifypluginsofenabled=this._active=this._lazy=!1,this._proplookup=this._targets?{}:[],d.prototype.invalidate.call(this),this.vars.immediaterender&&(this._time=-m,this.render(math.min(0,-this._delay))),this},h._enabled=function(a,b){if(j||i.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=$(d[c],this,!0);else this._siblings=$(this.target,this,!0)}return d.prototype._enabled.call(this,a,b),this._notifypluginsofenabled&&this._firstpt?g._onpluginevent(a?"_onenable":"_ondisable",this):!1},g.to=function(a,b,c){return new g(a,b,c)},g.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,new g(a,b,c)},g.fromto=function(a,b,c,d){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,new g(a,b,d)},g.delayedcall=function(a,b,c,d,e){return new g(b,0,{delay:a,oncomplete:b,oncompleteparams:c,callbackscope:d,onreversecomplete:b,onreversecompleteparams:c,immediaterender:!1,lazy:!1,useframes:e,overwrite:0})},g.set=function(a,b){return new g(a,0,b)},g.gettweensof=function(a,b){if(null==a)return[];a="string"!=typeof a?a:g.selector(a)||a;var c,d,e,f;if((p(a)||h(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(g.gettweensof(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else if(a._gstweenid)for(d=$(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isactive())&&d.splice(c,1);return d||[]},g.killtweensof=g.killdelayedcallsto=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=g.gettweensof(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ca=t("plugins.tweenplugin",function(a,b){this._overwriteprops=(a||"").split(","),this._propname=this._overwriteprops[0],this._priority=b||0,this._super=ca.prototype},!0);if(h=ca.prototype,ca.version="1.19.0",ca.api=2,h._firstpt=null,h._addtween=p,h.setratio=n,h._kill=function(a){var b,c=this._overwriteprops,d=this._firstpt;if(null!=a[this._propname])this._overwriteprops=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstpt===d&&(this._firstpt=d._next)),d=d._next;return!1},h._mod=h._roundprops=function(a){for(var b,c=this._firstpt;c;)b=a[this._propname]||null!=c.n&&a[c.n.split(this._propname+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applypt.m=b:c.m=b),c=c._next},g._onpluginevent=function(a,b){var c,d,e,f,g,h=b._firstpt;if("_oninitallprops"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstpt=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ca.activate=function(a){for(var b=a.length;--b>-1;)a[b].api===ca.api&&(r[(new a[b])._propname]=a[b]);return!0},s.plugin=function(a){if(!(a&&a.propname&&a.init&&a.api))throw"illegal plugin definition.";var b,c=a.propname,d=a.priority||0,e=a.overwriteprops,f={init:"_oninittween",set:"setratio",kill:"_kill",round:"_mod",mod:"_mod",initall:"_oninitallprops"},g=t("plugins."+c.charat(0).touppercase()+c.substr(1)+"plugin",function(){ca.call(this,c,d),this._overwriteprops=e||[]},a.global===!0),h=g.prototype=new ca(c);h.constructor=g,g.api=a.api;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ca.activate([g]),g},f=a._gsqueue){for(g=0;g 0x3400 && code < 0x9fc3) || (code > 0xf900 && code < 0xfa6a); if (!ischinese) { result += letter; continue; } index = src.indexof(letter); if (index !== -1) { result += des.charat(index); } else { result += letter; } } return result; } /** * 转换html element属性 * @param {element} element - 待转换的html element节点 * @param {string|array} attr - 待转换的属性/属性列表 * @param {boolean} tot - 是否转换成繁体 */ function tranattr(element, attr, tot) { var i, attrvalue; if (attr instanceof array) { for(i = 0; i < attr.length; i++) { tranattr(element, attr[i], tot); } } else { attrvalue = element.getattribute(attr); if (attrvalue !== "" && attrvalue !== null) { element.setattribute(attr, transtr(attrvalue, tot)); } } } /** * 转换html element节点 * @param {element} element - 待转换的html element节点 * @param {boolean} tot - 是否转换成繁体 */ function tranelement(element, tot) { var i; var childnodes; if (element.nodetype !== 1) { return; } childnodes = element.childnodes; for (i = 0; i < childnodes.length; i++) { var childnode = childnodes.item(i); // 若为html element节点 if (childnode.nodetype === 1) { // 对以下标签不做处理 if ("|br|hr|textarea|script|object|embed|".indexof("|" + childnode.tagname + "|") !== -1) { continue; } tranattr(childnode, ['title', 'data-original-title', 'alt', 'placeholder'], tot); // input 标签 // 对text类型的input输入框不做处理 if (childnode.tagname === "input" && childnode.value !== "" && childnode.type !== "text" && childnode.type !== "hidden") { childnode.value = transtr(childnode.value, tot); } // 继续递归调用 tranelement(childnode, tot); } else if (childnode.nodetype === 3) { // 若为文本节点 childnode.data = transtr(childnode.data, tot); } } } // 扩展jquery全局方法 $.extend({ /** * 文本简转繁 * @param {string} str - 待转换的文本 * @returns {string} 转换结果 */ s2t: function(str) { return transtr(str, true); }, /** * 文本繁转简 * @param {string} str - 待转换的文本 * @returns {string} 转换结果 */ t2s: function(str) { return transtr(str, false); } }); // 扩展jquery对象方法 $.fn.extend({ /** * jquery objects简转繁 * @this {jquery objects} 待转换的jquery objects */ s2t: function() { return this.each(function() { tranelement(this, true); }); }, /** * jquery objects繁转简 * @this {jquery objects} 待转换的jquery objects */ t2s: function() { return this.each(function() { tranelement(this, false); }); } }); }) (jquery); /*! copyright (c) 2013 brandon aaron (http://brandon.aaron.sh) * licensed under the mit license (license.txt). * * version: 3.1.9 * * requires: jquery 1.2.2+ */ (function (factory) { if ( typeof define === 'function' && define.amd ) { // amd. register as an anonymous module. define(['jquery'], factory); } else if (typeof exports === 'object') { // node/commonjs style for browserify module.exports = factory; } else { // browser globals factory(jquery); } }(function ($) { var tofix = ['wheel', 'mousewheel', 'dommousescroll', 'mozmousepixelscroll'], tobind = ( 'onwheel' in document || document.documentmode >= 9 ) ? ['wheel'] : ['mousewheel', 'dommousescroll', 'mozmousepixelscroll'], slice = array.prototype.slice, nulllowestdeltatimeout, lowestdelta; if ( $.event.fixhooks ) { for ( var i = tofix.length; i; ) { $.event.fixhooks[ tofix[--i] ] = $.event.mousehooks; } } var special = $.event.special.mousewheel = { version: '3.1.9', setup: function() { if ( this.addeventlistener ) { for ( var i = tobind.length; i; ) { this.addeventlistener( tobind[--i], handler, false ); } } else { this.onmousewheel = handler; } // store the line height and page height for this particular element $.data(this, 'mousewheel-line-height', special.getlineheight(this)); $.data(this, 'mousewheel-page-height', special.getpageheight(this)); }, teardown: function() { if ( this.removeeventlistener ) { for ( var i = tobind.length; i; ) { this.removeeventlistener( tobind[--i], handler, false ); } } else { this.onmousewheel = null; } }, getlineheight: function(elem) { return parseint($(elem)['offsetparent' in $.fn ? 'offsetparent' : 'parent']().css('fontsize'), 10); }, getpageheight: function(elem) { return $(elem).height(); }, settings: { adjustolddeltas: true } }; $.fn.extend({ mousewheel: function(fn) { return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel'); }, unmousewheel: function(fn) { return this.unbind('mousewheel', fn); } }); function handler(event) { var orgevent = event || window.event, args = slice.call(arguments, 1), delta = 0, deltax = 0, deltay = 0, absdelta = 0; event = $.event.fix(orgevent); event.type = 'mousewheel'; // old school scrollwheel delta if ( 'detail' in orgevent ) { deltay = orgevent.detail * -1; } if ( 'wheeldelta' in orgevent ) { deltay = orgevent.wheeldelta; } if ( 'wheeldeltay' in orgevent ) { deltay = orgevent.wheeldeltay; } if ( 'wheeldeltax' in orgevent ) { deltax = orgevent.wheeldeltax * -1; } // firefox < 17 horizontal scrolling related to dommousescroll event if ( 'axis' in orgevent && orgevent.axis === orgevent.horizontal_axis ) { deltax = deltay * -1; deltay = 0; } // set delta to be deltay or deltax if deltay is 0 for backwards compatabilitiy delta = deltay === 0 ? deltax : deltay; // new school wheel delta (wheel event) if ( 'deltay' in orgevent ) { deltay = orgevent.deltay * -1; delta = deltay; } if ( 'deltax' in orgevent ) { deltax = orgevent.deltax; if ( deltay === 0 ) { delta = deltax * -1; } } // no change actually happened, no reason to go any further if ( deltay === 0 && deltax === 0 ) { return; } // need to convert lines and pages to pixels if we aren't already in pixels // there are three delta modes: // * deltamode 0 is by pixels, nothing to do // * deltamode 1 is by lines // * deltamode 2 is by pages if ( orgevent.deltamode === 1 ) { var lineheight = $.data(this, 'mousewheel-line-height'); delta *= lineheight; deltay *= lineheight; deltax *= lineheight; } else if ( orgevent.deltamode === 2 ) { var pageheight = $.data(this, 'mousewheel-page-height'); delta *= pageheight; deltay *= pageheight; deltax *= pageheight; } // store lowest absolute delta to normalize the delta values absdelta = math.max( math.abs(deltay), math.abs(deltax) ); if ( !lowestdelta || absdelta < lowestdelta ) { lowestdelta = absdelta; // adjust older deltas if necessary if ( shouldadjustolddeltas(orgevent, absdelta) ) { lowestdelta /= 40; } } // adjust older deltas if necessary if ( shouldadjustolddeltas(orgevent, absdelta) ) { // divide all the things by 40! delta /= 40; deltax /= 40; deltay /= 40; } // get a whole, normalized value for the deltas delta = math[ delta >= 1 ? 'floor' : 'ceil' ](delta / lowestdelta); deltax = math[ deltax >= 1 ? 'floor' : 'ceil' ](deltax / lowestdelta); deltay = math[ deltay >= 1 ? 'floor' : 'ceil' ](deltay / lowestdelta); // add information to the event object event.deltax = deltax; event.deltay = deltay; event.deltafactor = lowestdelta; // go ahead and set deltamode to 0 since we converted to pixels // although this is a little odd since we overwrite the deltax/y // properties with normalized deltas. event.deltamode = 0; // add event and delta to the front of the arguments args.unshift(event, delta, deltax, deltay); // clearout lowestdelta after sometime to better // handle multiple device types that give different // a different lowestdelta // ex: trackpad = 3 and mouse wheel = 120 if (nulllowestdeltatimeout) { cleartimeout(nulllowestdeltatimeout); } nulllowestdeltatimeout = settimeout(nulllowestdelta, 200); return ($.event.dispatch || $.event.handle).apply(this, args); } function nulllowestdelta() { lowestdelta = null; } function shouldadjustolddeltas(orgevent, absdelta) { // if this is an older event and the delta is divisable by 120, // then we are assuming that the browser is treating this as an // older mouse wheel event and that we should divide the deltas // by 40 to try and get a more usable deltafactor. // side note, this actually impacts the reported scroll distance // in older browsers and can cause scrolling to be slower than native. // turn this off by setting $.event.special.mousewheel.settings.adjustolddeltas to false. return special.settings.adjustolddeltas && orgevent.type === 'mousewheel' && absdelta % 120 === 0; } })); ! function(a) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], a) : "undefined" != typeof exports ? module.exports = a(require("jquery")) : a(jquery) }(function(a) { "use strict"; var b = window.slick || {}; b = function() { function c(c, d) { var f, e = this; e.defaults = { accessibility: !0, adaptiveheight: !1, appendarrows: a(c), appenddots: a(c), arrows: !0, asnavfor: null, prevarrow: '', nextarrow: '', autoplay: !1, autoplayspeed: 3e3, centermode: !1, centerpadding: "50px", cssease: "ease", custompaging: function(b, c) { return a('', neko_nextarrow=''; /*! * lazy load - jquery plugin for lazy loading images * * copyright (c) 2007-2015 mika tuupola * * licensed under the mit license: * http://www.opensource.org/licenses/mit-license.php * * project home: * http://www.appelsiini.net/projects/lazyload * * version: 1.9.7 * */ (function($, window, document, undefined) { var $window = $(window), canvasposition=function(from_dom,to_dom){ // canvas设置 var top=from_dom.position().top, left=from_dom.position().left, width=from_dom.width(), height=from_dom.height(); to_dom.css({top:top,left:left}).width(width).height(height); }, canvascontrol=function(dom,canvas_id){ $.stackblurimage(dom, canvas_id, 10, false); if(dom.is(':visible')) canvasposition(dom,$('#'+canvas_id)); $(window).resize(function() { if(dom.is(":visible")) canvasposition(dom,$('#'+canvas_id)); }); $('#'+canvas_id).attr({'data-load':true}); }, thumbdir=m['weburl']+'include/thumb.php?dir=', placeholder_base64='data:image/png;base64,ivborw0kggoaaaansuheugaaaaeaaaabcayaaaaffcsjaaaaaxnsr0iars4c6qaaaarnqu1baacxjwv8yquaaaajcehzcwaadsqaaa7eazurdhsaaaansurbvbhxyzh8+pb/aaffa0nnpuclaaaaaelftksuqmcc'; $.fn.lazyload = function(options) { var elements = this; var $container; var settings = { threshold : 30, failure_limit : 1000, event : "scroll", effect : "fadein", effect_speed : null, container : window, data_attribute : "original", data_srcset : 'srcset', skip_invisible : true, appear : null, load : null, placeholder : neko_lazyloadbg,// 'base64',neko_lazyloadbg,'blur' }; function update() { var counter = 0; elements.each(function() { var $this = $(this), $this_canvas=$this.next('canvas'); if (settings.skip_invisible && !$this.is(":visible")) { return; } if($this_canvas.length && !$this_canvas.attr('data-load') && $.stackblurimage) canvascontrol($this,$this_canvas.attr('id')); if ($.abovethetop(this, settings) || $.leftofbegin(this, settings)) { /* nothing. */ } else if (!$.belowthefold(this, settings) && !$.rightoffold(this, settings)) { $this.trigger("appear"); /* if we found an image we'll load, reset the counter */ counter = 0; } else { if (++counter > settings.failure_limit) { return false; } } }); } if(options) { /* maintain bc for a couple of versions. */ if (undefined !== options.failurelimit) { options.failure_limit = options.failurelimit; delete options.failurelimit; } if (undefined !== options.effectspeed) { options.effect_speed = options.effectspeed; delete options.effectspeed; } $.extend(settings, options); } /* cache container as jquery as object. */ $container = (settings.container === undefined || settings.container === window) ? $window : $(settings.container); /* fire one scroll event per scroll. not one scroll event per image. */ if (0 === settings.event.indexof("scroll")) { $container.on(settings.event, function() { return update(); }); } if(settings.placeholder=='base64') settings.placeholder=placeholder_base64; this.attr({'data-lazyload':true}); this.each(function(index) { var self = this, $self = $(self), original = $self.attr("data-" + settings.data_attribute), placeholder=settings.placeholder, placeholder_ok=placeholder!=placeholder_base64?true:false; self.loaded = false; /* if no src attribute given use data:uri. */ if ($self.is("img") && original && (!$self.attr("src") || $self.attr("src")!=original)) { if(placeholder=='blur' && $.stackblurimage){ // 图片高斯模糊加载小图 if(!$self.attr('data-minimg')){ // 设置小图路径 var thumb=original.replace(m['weburl'],m['weburl']), original_array=thumb.split('&'); if(thumb.indexof('http')<0 || (thumb.indexof('http')>=0 && thumb.indexof(m['weburl'])>=0)){ if(original.indexof('include/thumb.php?dir=')>-1){ var data_minimg=original_array[0]+'&x=50'; }else{ var data_minimg=thumbdir+thumb+'&x=50'; } if(original_array && original_array.length==3){ scale_x=original_array[1].substring(2); scale_y=original_array[2].substring(2); scale=scale_y/scale_x; minimg_h=math.round(50*scale); data_minimg+='&y='+minimg_h; } $(this).attr({src:data_minimg,'data-minimg':true}); // 高斯模糊小图 var img=new image(); img.src=$self.attr("src"); img.onload=function(){ settimeout(function(){ var $self_canvas=$self.next('canvas'); if($self.attr('src')!=original && !$self_canvas.length){ var canvas_id="imgcanvas"+index; $self.wrapall('
').after(''); if(!settings.skip_invisible || $self.is(":visible")) canvascontrol($self,canvas_id); }else if($self_canvas.length){ canvasposition($self,$self_canvas); } },30) } } } }else{ if(placeholder=='blur') placeholder=neko_lazyloadbg; $self.attr("src", placeholder); if(placeholder_ok && !$self.hasclass('imgloading')) $self.addclass('imgloading'); } } /* when appear is triggered load original image. */ $self.one("appear", function() { if (!this.loaded) { if (settings.appear) { var elements_left = elements.length; settings.appear.call(self, elements_left, settings); } var srcset = $self.attr("data-" + settings.data_srcset); $("") .one("load", function() { $self.hide(); if ($self.is("img")/* || $self.is("source") || $self.is("video") || $self.is("audio") || $self.is("iframe") || $self.is("script") || $self.is("link")*/) { if(srcset) $self.attr("srcset", srcset); $self.attr("src", original); } else { $self.css("background-image", "url('" + original + "')"); if(srcset) $self.css("background-image", "-webkit-image-set(" + srcset + ")"); } $self[settings.effect](settings.effect_speed); $self.one('load', function() { $self.removeclass('imgloading'); $self.next('canvas').fadeout("normal",function(){ $self.next('canvas').remove(); }); }); self.loaded = true; /* remove image from array so it is not looped next time. */ var temp = $.grep(elements, function(element) { return !element.loaded; }); elements = $(temp); if (settings.load) { var elements_left = elements.length; settings.load.call(self, elements_left, settings); } }).attr({srcset:srcset,src:original}).removeclass('imgloading').next('canvas').fadeout("normal",function(){ $("").next('canvas').remove(); }); } }); /* when wanted event is triggered load original image */ /* by triggering appear. */ if (0 !== settings.event.indexof("scroll")) { $self.on(settings.event, function() { if (!self.loaded) { $self.trigger("appear"); } }); } }); /* check if something appears when window is resized. */ $window.on("resize", function() { update(); }); /* with ios5 force loading images when navigating with back button. */ /* non optimal workaround. */ if ((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appversion)) { $window.on("pageshow", function(event) { if (event.originalevent && event.originalevent.persisted) { elements.each(function() { $(this).trigger("appear"); }); } }); } /* force initial check if images should appear. */ $(document).ready(function() { update(); }); return this; }; /* convenience methods in jquery namespace. */ /* use as $.belowthefold(element, {threshold : 100, container : window}) */ $.belowthefold = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = (window.innerheight ? window.innerheight : $window.height()) + $window.scrolltop(); } else { fold = $(settings.container).offset().top + $(settings.container).height(); } return fold <= $(element).offset().top - settings.threshold; }; $.rightoffold = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.width() + $window.scrollleft(); } else { fold = $(settings.container).offset().left + $(settings.container).width(); } return fold <= $(element).offset().left - settings.threshold; }; $.abovethetop = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.scrolltop(); } else { fold = $(settings.container).offset().top; } return fold >= $(element).offset().top + settings.threshold + $(element).height(); }; $.leftofbegin = function(element, settings) { var fold; if (settings.container === undefined || settings.container === window) { fold = $window.scrollleft(); } else { fold = $(settings.container).offset().left; } return fold >= $(element).offset().left + settings.threshold + $(element).width(); }; $.inviewport = function(element, settings) { return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) && !$.belowthefold(element, settings) && !$.abovethetop(element, settings); }; /* custom selectors for your convenience. */ /* use as $("img:below-the-fold").something() or */ /* $("img").filter(":below-the-fold").something() which is faster */ $.extend($.expr[":"], { "below-the-fold" : function(a) { return $.belowthefold(a, {threshold : 0}); }, "above-the-top" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, "right-of-screen": function(a) { return $.rightoffold(a, {threshold : 0}); }, "left-of-screen" : function(a) { return !$.rightoffold(a, {threshold : 0}); }, "in-viewport" : function(a) { return $.inviewport(a, {threshold : 0}); }, /* maintain bc for couple of versions. */ "above-the-fold" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, "right-of-fold" : function(a) { return $.rightoffold(a, {threshold : 0}); }, "left-of-fold" : function(a) { return !$.rightoffold(a, {threshold : 0}); } }); })(jquery, window, document); /*! * masonry packaged v4.1.1 * cascading grid layout library * http://masonry.desandro.com * mit license * by david desandro */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jquerybridget=e(t,t.jquery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charat(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jquery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isplainobject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jquery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.evemitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexof(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceevents=this._onceevents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexof(e);return-1!=n&&i.splice(n,1),this}},e.emitevent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceevents&&this._onceevents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getsize=e()}(window,function(){"use strict";function t(t){var e=parsefloat(t),i=-1==t.indexof("%")&&!isnan(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerwidth:0,innerheight:0,outerwidth:0,outerheight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getcomputedstyle(t);return e||a("style returned "+e+". are you running this code in a hidden iframe on firefox? see http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createelement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderstyle="solid",e.style.borderwidth="1px 2px 3px 4px",e.style.boxsizing="border-box";var i=document.body||document.documentelement;i.appendchild(e);var o=n(e);r.isboxsizeouter=s=200==t(o.width),i.removechild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.queryselector(e)),e&&"object"==typeof e&&e.nodetype){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetwidth,a.height=e.offsetheight;for(var d=a.isborderbox="border-box"==r.boxsizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parsefloat(f);a[c]=isnan(m)?0:m}var p=a.paddingleft+a.paddingright,g=a.paddingtop+a.paddingbottom,y=a.marginleft+a.marginright,v=a.margintop+a.marginbottom,_=a.borderleftwidth+a.borderrightwidth,e=a.bordertopwidth+a.borderbottomwidth,z=d&&s,b=t(r.width);b!==!1&&(a.width=b+(z?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(z?0:g+e)),a.innerwidth=a.width-(p+_),a.innerheight=a.height-(g+e),a.outerwidth=a.width+y,a.outerheight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingleft","paddingright","paddingtop","paddingbottom","marginleft","marginright","margintop","marginbottom","borderleftwidth","borderrightwidth","bordertopwidth","borderbottomwidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesselector=e()}(window,function(){"use strict";var t=function(){var t=element.prototype;if(t.matches)return"matches";if(t.matchesselector)return"matchesselector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=math[a](r),this.cols=math.max(r,1)},i.prototype.getcontainerwidth=function(){var t=this._getoption("fitwidth"),i=t?this.element.parentnode:this.element,n=e(i);this.containerwidth=n&&n.innerwidth},i.prototype._getitemlayoutposition=function(t){t.getsize();var e=t.size.outerwidth%this.columnwidth,i=e&&1>e?"round":"ceil",n=math[i](t.size.outerwidth/this.columnwidth);n=math.min(n,this.cols);for(var o=this._getcolgroup(n),r=math.min.apply(math,o),s=o.indexof(r),a={x:this.columnwidth*s,y:r},h=r+t.size.outerheight,u=this.cols+1-o.length,d=0;u>d;d++)this.colys[s+d]=h;return a},i.prototype._getcolgroup=function(t){if(2>t)return this.colys;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colys.slice(n,n+t);e[n]=math.max.apply(math,o)}return e},i.prototype._managestamp=function(t){var i=e(t),n=this._getelementoffset(t),o=this._getoption("originleft"),r=o?n.left:n.right,s=r+i.outerwidth,a=math.floor(r/this.columnwidth);a=math.max(0,a);var h=math.floor(s/this.columnwidth);h-=s%this.columnwidth?0:1,h=math.min(this.cols-1,h);for(var u=this._getoption("origintop"),d=(u?n.top:n.bottom)+i.outerheight,l=a;h>=l;l++)this.colys[l]=math.max(d,this.colys[l])},i.prototype._getcontainersize=function(){this.maxy=math.max.apply(math,this.colys);var t={height:this.maxy};return this._getoption("fitwidth")&&(t.width=this._getcontainerfitwidth()),t},i.prototype._getcontainerfitwidth=function(){for(var t=0,e=this.cols;--e&&0===this.colys[e];)t++;return(this.cols-t)*this.columnwidth-this.gutter},i.prototype.needsresizelayout=function(){var t=this.containerwidth;return this.getcontainerwidth(),t!=this.containerwidth},i}); /* * webui popover plugin - v1.2.17 * a lightweight popover plugin with jquery ,enchance the popover plugin of bootstrap with some awesome new features. it works well with bootstrap ,but bootstrap is not necessary! * https://github.com/sandywalker/webui-popover * * made by sandy duan * under mit license */ !function(a,b,c){"use strict";!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b(require("jquery")):b(a.jquery)}(function(d){function e(a,b){return this.$element=d(a),b&&("string"===d.type(b.delay)||"number"===d.type(b.delay))&&(b.delay={show:b.delay,hide:b.delay}),this.options=d.extend({},i,b),this._defaults=i,this._name=f,this._targetclick=!1,this.init(),k.push(this.$element),this}var f="webuipopover",g="webui-popover",h="webui.popover",i={placement:"auto",container:null,width:"auto",height:"auto",trigger:"click",style:"",selector:!1,delay:{show:null,hide:300},async:{type:"get",before:null,success:null,error:null},cache:!0,multi:!1,arrow:!0,title:"",content:"",closeable:!1,padding:!0,url:"",type:"html",direction:"",animation:null,template:'

 

',backdrop:!1,dismissible:!0,onshow:null,onhide:null,abortxhr:!0,autohide:!1,offsettop:0,offsetleft:0,iframeoptions:{frameborder:"0",allowtransparency:"true",id:"",name:"",scrolling:"",onload:"",height:"",width:""},hideempty:!1},j=g+"-rtl",k=[],l=d('
'),m=0,n=!1,o=-2e3,p=d(b),q=function(a,b){return isnan(a)?b||0:number(a)},r=function(a){return a.data("plugin_"+f)},s=function(){for(var a=null,b=0;b").attr("src",this.geturl()),b=this;return d.each(this._defaults.iframeoptions,function(c){"undefined"!=typeof b.options.iframeoptions[c]&&a.attr(c,b.options.iframeoptions[c])}),a},getcontent:function(){if(this.geturl())switch(this.options.type){case"iframe":this.content=this.getiframe();break;case"html":try{this.content=d(this.geturl()),this.content.is(":visible")||this.content.show()}catch(a){throw new error("unable to get popover content. invalid selector specified.")}}else if(!this.content){var b="";if(b=d.isfunction(this.options.content)?this.options.content.apply(this.$element[0],[this]):this.options.content,this.content=this.$element.attr("data-content")||b,!this.content){var c=this.$element.next();c&&c.hasclass(g+"-content")&&(this.content=c)}}return this.content},setcontent:function(a){var b=this.gettarget(),c=this.getcontentelement();"string"==typeof a?c.html(a):a instanceof d&&(c.html(""),this.options.cache?a.removeclass(g+"-content").appendto(c):a.clone(!0,!0).removeclass(g+"-content").appendto(c)),this.$target=b},isasync:function(){return"async"===this.options.type},setcontentasync:function(a){var b=this;this.xhr||(this.xhr=d.ajax({url:this.geturl(),type:this.options.async.type,cache:this.getcache(),beforesend:function(a,c){b.options.async.before&&b.options.async.before(b,a,c)},success:function(c){b.bindbodyevents(),a&&d.isfunction(a)?b.content=a.apply(b.$element[0],[c]):b.content=c,b.setcontent(b.content);var e=b.getcontentelement();e.removeattr("style"),b.displaycontent(),b.options.async.success&&b.options.async.success(b,c)},complete:function(){b.xhr=null},error:function(a,c){b.options.async.error&&b.options.async.error(b,a,c)}}))},bindbodyevents:function(){n||(this.options.dismissible&&"click"===this.gettrigger()?u?p.off("touchstart.webui-popover").on("touchstart.webui-popover",d.proxy(this.bodytouchstarthandler,this)):(p.off("keyup.webui-popover").on("keyup.webui-popover",d.proxy(this.escapehandler,this)),p.off("click.webui-popover").on("click.webui-popover",d.proxy(this.bodyclickhandler,this))):"hover"===this.gettrigger()&&p.off("touchend.webui-popover").on("touchend.webui-popover",d.proxy(this.bodyclickhandler,this)))},mouseenterhandler:function(a){var b=this;a&&this.options.selector&&(b=this.delegate(a.currenttarget)),b._timeout&&cleartimeout(b._timeout),b._entertimeout=settimeout(function(){b.gettarget().is(":visible")||b.show()},this.getdelayshow())},mouseleavehandler:function(){var a=this;cleartimeout(a._entertimeout),a._timeout=settimeout(function(){a.hide()},this.gethidedelay())},escapehandler:function(a){27===a.keycode&&this.hideall()},bodytouchstarthandler:function(a){var b=this,c=d(a.currenttarget);c.on("touchend",function(a){b.bodyclickhandler(a),c.off("touchend")}),c.on("touchmove",function(){c.off("touchend")})},bodyclickhandler:function(a){n=!0;for(var b=!0,c=0;c=f&&j.x<=h&&j.y>=g&&j.y<=i;if(l){b=!1;break}}}b&&s()},inittargetevents:function(){"hover"===this.gettrigger()&&this.$target.off("mouseenter mouseleave").on("mouseenter",d.proxy(this.mouseenterhandler,this)).on("mouseleave",d.proxy(this.mouseleavehandler,this)),this.$target.find(".close").off("click").on("click",d.proxy(this.hide,this,!0))},getplacement:function(a){var b,c=this.options.container,d=c.innerwidth(),e=c.innerheight(),f=c.scrolltop(),g=c.scrollleft(),h=math.max(0,a.left-g),i=math.max(0,a.top-f);b="function"==typeof this.options.placement?this.options.placement.call(this,this.gettarget()[0],this.$element[0]):this.$element.data("placement")||this.options.placement;var j="horizontal"===b,k="vertical"===b,l="auto"===b||j||k;return l?b=d/3>h?e/3>i?j?"right-bottom":"bottom-right":2*e/3>i?k?e/2>=i?"bottom-right":"top-right":"right":j?"right-top":"top-right":2*d/3>h?e/3>i?j?d/2>=h?"right-bottom":"left-bottom":"bottom":2*e/3>i?j?d/2>=h?"right":"left":e/2>=i?"bottom":"top":j?d/2>=h?"right-top":"left-top":"top":e/3>i?j?"left-bottom":"bottom-left":2*e/3>i?k?e/2>=i?"bottom-left":"top-left":"left":j?"left-top":"top-left":"auto-top"===b?b=d/3>h?"top-right":2*d/3>h?"top":"top-left":"auto-bottom"===b?b=d/3>h?"bottom-right":2*d/3>h?"bottom":"bottom-left":"auto-left"===b?b=e/3>i?"left-top":2*e/3>i?"left":"left-bottom":"auto-right"===b&&(b=e/3>i?"right-bottom":2*e/3>i?"right":"right-top"),b},getelementposition:function(){var a=this.$element[0].getboundingclientrect(),c=this.options.container,e=c.css("position");if(c.is(b.body)||"static"===e)return d.extend({},this.$element.offset(),{width:this.$element[0].offsetwidth||a.width,height:this.$element[0].offsetheight||a.height});if("fixed"===e){var f=c[0].getboundingclientrect();return{top:a.top-f.top+c.scrolltop(),left:a.left-f.left+c.scrollleft(),width:a.width,height:a.height}}return"relative"===e?{top:this.$element.offset().top-c.offset().top,left:this.$element.offset().left-c.offset().left,width:this.$element[0].offsetwidth||a.width,height:this.$element[0].offsetheight||a.height}:void 0},gettargetpositin:function(a,c,d,e){var f=a,g=this.options.container,h=this.$element.outerwidth(),i=this.$element.outerheight(),j=b.documentelement.scrolltop+g.scrolltop(),k=b.documentelement.scrollleft+g.scrollleft(),l={},m=null,n=this.options.arrow?20:0,p=10,q=n+p>h?n:0,r=n+p>i?n:0,s=0,t=b.documentelement.clientheight+j,u=b.documentelement.clientwidth+k,v=f.left+f.width/2-q>0,w=f.left+f.width/2+q0,y=f.top+f.height/2+r0&&0===x.container.parents("."+x.params.slideactiveclass).length)return;var s={left:window.pagexoffset,top:window.pageyoffset},r=window.innerwidth,i=window.innerheight,n=x.container.offset();x.rtl&&(n.left=n.left-x.container[0].scrollleft);for(var o=[[n.left,n.top],[n.left+x.width,n.top],[n.left,n.top+x.height],[n.left+x.width,n.top+x.height]],l=0;l=s.left&&p[0]<=s.left+r&&p[1]>=s.top&&p[1]<=s.top+i&&(t=!0)}if(!t)return}x.ishorizontal()?(37!==a&&39!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!x.rtl||37===a&&x.rtl)&&x.slidenext(),(37===a&&!x.rtl||39===a&&x.rtl)&&x.slideprev()):(38!==a&&40!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&x.slidenext(),38===a&&x.slideprev()),x.emit("onkeypress",x,a)}}function p(e){var a=0,t=0,s=0,r=0;return"detail"in e&&(t=e.detail),"wheeldelta"in e&&(t=-e.wheeldelta/120),"wheeldeltay"in e&&(t=-e.wheeldeltay/120),"wheeldeltax"in e&&(a=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(a=t,t=0),s=10*a,r=10*t,"deltay"in e&&(r=e.deltay),"deltax"in e&&(s=e.deltax),(s||r)&&e.deltamode&&(1===e.deltamode?(s*=40,r*=40):(s*=800,r*=800)),s&&!a&&(a=s<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinx:a,spiny:t,pixelx:s,pixely:r}}function d(e){e.originalevent&&(e=e.originalevent);var a=0,t=x.rtl?-1:1,s=p(e);if(x.params.mousewheelforcetoaxis)if(x.ishorizontal()){if(!(math.abs(s.pixelx)>math.abs(s.pixely)))return;a=s.pixelx*t}else{if(!(math.abs(s.pixely)>math.abs(s.pixelx)))return;a=s.pixely}else a=math.abs(s.pixelx)>math.abs(s.pixely)?-s.pixelx*t:-s.pixely;if(0!==a){if(x.params.mousewheelinvert&&(a=-a),x.params.freemode){var r=x.getwrappertranslate()+a*x.params.mousewheelsensitivity,i=x.isbeginning,n=x.isend;if(r>=x.mintranslate()&&(r=x.mintranslate()),r<=x.maxtranslate()&&(r=x.maxtranslate()),x.setwrappertransition(0),x.setwrappertranslate(r),x.updateprogress(),x.updateactiveindex(),(!i&&x.isbeginning||!n&&x.isend)&&x.updateclasses(),x.params.freemodesticky?(cleartimeout(x.mousewheel.timeout),x.mousewheel.timeout=settimeout(function(){x.slidereset()},300)):x.params.lazyloading&&x.lazy&&x.lazy.load(),x.emit("onscroll",x,e),x.params.autoplay&&x.params.autoplaydisableoninteraction&&x.stopautoplay(),0===r||r===x.maxtranslate())return}else{if((new window.date).gettime()-x.mousewheel.lastscrolltime>60)if(a<0)if(x.isend&&!x.params.loop||x.animating){if(x.params.mousewheelreleaseonedges)return!0}else x.slidenext(),x.emit("onscroll",x,e);else if(x.isbeginning&&!x.params.loop||x.animating){if(x.params.mousewheelreleaseonedges)return!0}else x.slideprev(),x.emit("onscroll",x,e);x.mousewheel.lastscrolltime=(new window.date).gettime()}return e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}}function m(a,t){a=e(a);var s,r,i,n=x.rtl?-1:1;s=a.attr("data-swiper-parallax")||"0",r=a.attr("data-swiper-parallax-x"),i=a.attr("data-swiper-parallax-y"),r||i?(r=r||"0",i=i||"0"):x.ishorizontal()?(r=s,i="0"):(i=s,r="0"),r=r.indexof("%")>=0?parseint(r,10)*t*n+"%":r*t*n+"px",i=i.indexof("%")>=0?parseint(i,10)*t+"%":i*t+"px",a.transform("translate3d("+r+", "+i+",0px)")}function u(e){return 0!==e.indexof("on")&&(e=e[0]!==e[0].touppercase()?"on"+e[0].touppercase()+e.substring(1):"on"+e),e}if(!(this instanceof a))return new a(t,s);var c={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,autoplaystoponlast:!1,iosedgeswipedetection:!1,iosedgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodemomentumvelocityratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0},flip:{slideshadows:!0,limitrotation:!0},cube:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94},fade:{crossfade:!1},parallax:!1,zoom:!1,zoommax:3,zoommin:1,zoomtoggle:!0,scrollbar:null,scrollbarhide:!0,scrollbardraggable:!1,scrollbarsnaponrelease:!1,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelreleaseonedges:!1,mousewheelinvert:!1,mousewheelforcetoaxis:!1,mousewheelsensitivity:1,mousewheeleventstarged:"container",hashnav:!1,hashnavwatchstate:!1,history:!1,replacestate:!1,breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!1,slidesoffsetbefore:0,slidesoffsetafter:0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,onlyexternal:!1,threshold:0,touchmovestoppropagation:!0,touchreleaseonedges:!1,uniquenavelements:!0,pagination:null,paginationelement:"span",paginationclickable:!1,paginationhide:!1,paginationbulletrender:null,paginationprogressrender:null,paginationfractionrender:null,paginationcustomrender:null,paginationtype:"bullets",resistance:!0,resistanceratio:.85,nextbutton:null,prevbutton:null,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,lazyloading:!1,lazyloadinginprevnext:!1,lazyloadinginprevnextamount:1,lazyloadingontransitionstart:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,control:void 0,controlinverse:!1,controlby:"slide",normalizeslideindex:!0,allowswipetoprev:!0,allowswipetonext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",bulletclass:"swiper-pagination-bullet",bulletactiveclass:"swiper-pagination-bullet-active",buttondisabledclass:"swiper-button-disabled",paginationcurrentclass:"swiper-pagination-current",paginationtotalclass:"swiper-pagination-total",paginationhiddenclass:"swiper-pagination-hidden",paginationprogressbarclass:"swiper-pagination-progressbar",paginationclickableclass:"swiper-pagination-clickable",paginationmodifierclass:"swiper-pagination-",lazyloadingclass:"swiper-lazy",lazystatusloadingclass:"swiper-lazy-loading",lazystatusloadedclass:"swiper-lazy-loaded",lazypreloaderclass:"swiper-lazy-preloader",notificationclass:"swiper-notification",preloaderclass:"preloader",zoomcontainerclass:"swiper-zoom-container",observer:!1,observeparents:!1,a11y:!1,prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",runcallbacksoninit:!0},g=s&&s.virtualtranslate;s=s||{};var h={};for(var v in s)if("object"!=typeof s[v]||null===s[v]||(s[v].nodetype||s[v]===window||s[v]===document||"undefined"!=typeof dom7&&s[v]instanceof dom7||"undefined"!=typeof jquery&&s[v]instanceof jquery))h[v]=s[v];else{h[v]={};for(var f in s[v])h[v][f]=s[v][f]}for(var w in c)if(void 0===s[w])s[w]=c[w];else if("object"==typeof s[w])for(var y in c[w])void 0===s[w][y]&&(s[w][y]=c[w][y]);var x=this;if(x.params=s,x.originalparams=h,x.classnames=[],void 0!==e&&"undefined"!=typeof dom7&&(e=dom7),(void 0!==e||(e="undefined"==typeof dom7?window.dom7||window.zepto||window.jquery:dom7))&&(x.$=e,x.currentbreakpoint=void 0,x.getactivebreakpoint=function(){if(!x.params.breakpoints)return!1;var e,a=!1,t=[];for(e in x.params.breakpoints)x.params.breakpoints.hasownproperty(e)&&t.push(e);t.sort(function(e,a){return parseint(e,10)>parseint(a,10)});for(var s=0;s=window.innerwidth&&!a&&(a=e);return a||"max"},x.setbreakpoint=function(){var e=x.getactivebreakpoint();if(e&&x.currentbreakpoint!==e){var a=e in x.params.breakpoints?x.params.breakpoints[e]:x.originalparams,t=x.params.loop&&a.slidesperview!==x.params.slidesperview;for(var s in a)x.params[s]=a[s];x.currentbreakpoint=e,t&&x.destroyloop&&x.reloop(!0)}},x.params.breakpoints&&x.setbreakpoint(),x.container=e(t),0!==x.container.length)){if(x.container.length>1){var t=[];return x.container.each(function(){t.push(new a(this,s))}),t}x.container[0].swiper=x,x.container.data("swiper",x),x.classnames.push(x.params.containermodifierclass+x.params.direction),x.params.freemode&&x.classnames.push(x.params.containermodifierclass+"free-mode"),x.support.flexbox||(x.classnames.push(x.params.containermodifierclass+"no-flexbox"),x.params.slidespercolumn=1),x.params.autoheight&&x.classnames.push(x.params.containermodifierclass+"autoheight"),(x.params.parallax||x.params.watchslidesvisibility)&&(x.params.watchslidesprogress=!0),x.params.touchreleaseonedges&&(x.params.resistanceratio=0),["cube","coverflow","flip"].indexof(x.params.effect)>=0&&(x.support.transforms3d?(x.params.watchslidesprogress=!0,x.classnames.push(x.params.containermodifierclass+"3d")):x.params.effect="slide"),"slide"!==x.params.effect&&x.classnames.push(x.params.containermodifierclass+x.params.effect),"cube"===x.params.effect&&(x.params.resistanceratio=0,x.params.slidesperview=1,x.params.slidespercolumn=1,x.params.slidespergroup=1,x.params.centeredslides=!1,x.params.spacebetween=0,x.params.virtualtranslate=!0),"fade"!==x.params.effect&&"flip"!==x.params.effect||(x.params.slidesperview=1,x.params.slidespercolumn=1,x.params.slidespergroup=1,x.params.watchslidesprogress=!0,x.params.spacebetween=0,void 0===g&&(x.params.virtualtranslate=!0)),x.params.grabcursor&&x.support.touch&&(x.params.grabcursor=!1),x.wrapper=x.container.children("."+x.params.wrapperclass),x.params.pagination&&(x.paginationcontainer=e(x.params.pagination),x.params.uniquenavelements&&"string"==typeof x.params.pagination&&x.paginationcontainer.length>1&&1===x.container.find(x.params.pagination).length&&(x.paginationcontainer=x.container.find(x.params.pagination)),"bullets"===x.params.paginationtype&&x.params.paginationclickable?x.paginationcontainer.addclass(x.params.paginationmodifierclass+"clickable"):x.params.paginationclickable=!1,x.paginationcontainer.addclass(x.params.paginationmodifierclass+x.params.paginationtype)),(x.params.nextbutton||x.params.prevbutton)&&(x.params.nextbutton&&(x.nextbutton=e(x.params.nextbutton),x.params.uniquenavelements&&"string"==typeof x.params.nextbutton&&x.nextbutton.length>1&&1===x.container.find(x.params.nextbutton).length&&(x.nextbutton=x.container.find(x.params.nextbutton))),x.params.prevbutton&&(x.prevbutton=e(x.params.prevbutton),x.params.uniquenavelements&&"string"==typeof x.params.prevbutton&&x.prevbutton.length>1&&1===x.container.find(x.params.prevbutton).length&&(x.prevbutton=x.container.find(x.params.prevbutton)))),x.ishorizontal=function(){return"horizontal"===x.params.direction},x.rtl=x.ishorizontal()&&("rtl"===x.container[0].dir.tolowercase()||"rtl"===x.container.css("direction")),x.rtl&&x.classnames.push(x.params.containermodifierclass+"rtl"),x.rtl&&(x.wrongrtl="-webkit-box"===x.wrapper.css("display")),x.params.slidespercolumn>1&&x.classnames.push(x.params.containermodifierclass+"multirow"),x.device.android&&x.classnames.push(x.params.containermodifierclass+"android"),x.container.addclass(x.classnames.join(" ")),x.translate=0,x.progress=0,x.velocity=0,x.lockswipetonext=function(){x.params.allowswipetonext=!1,x.params.allowswipetoprev===!1&&x.params.grabcursor&&x.unsetgrabcursor()},x.lockswipetoprev=function(){x.params.allowswipetoprev=!1,x.params.allowswipetonext===!1&&x.params.grabcursor&&x.unsetgrabcursor()},x.lockswipes=function(){x.params.allowswipetonext=x.params.allowswipetoprev=!1,x.params.grabcursor&&x.unsetgrabcursor()},x.unlockswipetonext=function(){x.params.allowswipetonext=!0,x.params.allowswipetoprev===!0&&x.params.grabcursor&&x.setgrabcursor()},x.unlockswipetoprev=function(){x.params.allowswipetoprev=!0,x.params.allowswipetonext===!0&&x.params.grabcursor&&x.setgrabcursor()},x.unlockswipes=function(){x.params.allowswipetonext=x.params.allowswipetoprev=!0,x.params.grabcursor&&x.setgrabcursor()},x.setgrabcursor=function(e){x.container[0].style.cursor="move",x.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",x.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",x.container[0].style.cursor=e?"grabbing":"grab"},x.unsetgrabcursor=function(){x.container[0].style.cursor=""},x.params.grabcursor&&x.setgrabcursor(),x.imagestoload=[],x.imagesloaded=0,x.loadimage=function(e,a,t,s,r,i){function n(){i&&i()}var o;e.complete&&r?n():a?(o=new window.image,o.onload=n,o.onerror=n,s&&(o.sizes=s),t&&(o.srcset=t),a&&(o.src=a)):n()},x.preloadimages=function(){function e(){void 0!==x&&null!==x&&x&&(void 0!==x.imagesloaded&&x.imagesloaded++,x.imagesloaded===x.imagestoload.length&&(x.params.updateonimagesready&&x.update(),x.emit("onimagesready",x)))}x.imagestoload=x.container.find("img");for(var a=0;a1)for(e=0;ex.slides.length)break;a.push(x.slides.eq(s)[0])}else a.push(x.slides.eq(x.activeindex)[0]);for(e=0;et?r:t}t&&x.wrapper.css("height",t+"px")},x.updatecontainersize=function(){var e,a;e=void 0!==x.params.width?x.params.width:x.container[0].clientwidth,a=void 0!==x.params.height?x.params.height:x.container[0].clientheight,0===e&&x.ishorizontal()||0===a&&!x.ishorizontal()||(e=e-parseint(x.container.css("padding-left"),10)-parseint(x.container.css("padding-right"),10),a=a-parseint(x.container.css("padding-top"),10)-parseint(x.container.css("padding-bottom"),10),x.width=e,x.height=a,x.size=x.ishorizontal()?x.width:x.height)},x.updateslidessize=function(){x.slides=x.wrapper.children("."+x.params.slideclass),x.snapgrid=[],x.slidesgrid=[],x.slidessizesgrid=[];var e,a=x.params.spacebetween,t=-x.params.slidesoffsetbefore,s=0,i=0;if(void 0!==x.size){"string"==typeof a&&a.indexof("%")>=0&&(a=parsefloat(a.replace("%",""))/100*x.size),x.virtualsize=-a,x.rtl?x.slides.css({marginleft:"",margintop:""}):x.slides.css({marginright:"",marginbottom:""});var n;x.params.slidespercolumn>1&&(n=math.floor(x.slides.length/x.params.slidespercolumn)===x.slides.length/x.params.slidespercolumn?x.slides.length:math.ceil(x.slides.length/x.params.slidespercolumn)*x.params.slidespercolumn,"auto"!==x.params.slidesperview&&"row"===x.params.slidespercolumnfill&&(n=math.max(n,x.params.slidesperview*x.params.slidespercolumn)));var o,l=x.params.slidespercolumn,p=n/l,d=p-(x.params.slidespercolumn*p-x.slides.length);for(e=0;e1){var u,c,g;"column"===x.params.slidespercolumnfill?(c=math.floor(e/l),g=e-c*l,(c>d||c===d&&g===l-1)&&++g>=l&&(g=0,c++),u=c+g*n/l,m.css({"-webkit-box-ordinal-group":u,"-moz-box-ordinal-group":u,"-ms-flex-order":u,"-webkit-order":u,order:u})):(g=math.floor(e/p),c=e-g*p),m.css("margin-"+(x.ishorizontal()?"top":"left"),0!==g&&x.params.spacebetween&&x.params.spacebetween+"px").attr("data-swiper-column",c).attr("data-swiper-row",g)}"none"!==m.css("display")&&("auto"===x.params.slidesperview?(o=x.ishorizontal()?m.outerwidth(!0):m.outerheight(!0),x.params.roundlengths&&(o=r(o))):(o=(x.size-(x.params.slidesperview-1)*a)/x.params.slidesperview,x.params.roundlengths&&(o=r(o)),x.ishorizontal()?x.slides[e].style.width=o+"px":x.slides[e].style.height=o+"px"),x.slides[e].swiperslidesize=o,x.slidessizesgrid.push(o),x.params.centeredslides?(t=t+o/2+s/2+a,0===s&&0!==e&&(t=t-x.size/2-a),0===e&&(t=t-x.size/2-a),math.abs(t)<.001&&(t=0),i%x.params.slidespergroup==0&&x.snapgrid.push(t),x.slidesgrid.push(t)):(i%x.params.slidespergroup==0&&x.snapgrid.push(t),x.slidesgrid.push(t),t=t+o+a),x.virtualsize+=o+a,s=o,i++)}x.virtualsize=math.max(x.virtualsize,x.size)+x.params.slidesoffsetafter;var h;if(x.rtl&&x.wrongrtl&&("slide"===x.params.effect||"coverflow"===x.params.effect)&&x.wrapper.css({width:x.virtualsize+x.params.spacebetween+"px"}),x.support.flexbox&&!x.params.setwrappersize||(x.ishorizontal()?x.wrapper.css({width:x.virtualsize+x.params.spacebetween+"px"}):x.wrapper.css({height:x.virtualsize+x.params.spacebetween+"px"})),x.params.slidespercolumn>1&&(x.virtualsize=(o+x.params.spacebetween)*n,x.virtualsize=math.ceil(x.virtualsize/x.params.slidespercolumn)-x.params.spacebetween,x.ishorizontal()?x.wrapper.css({width:x.virtualsize+x.params.spacebetween+"px"}):x.wrapper.css({height:x.virtualsize+x.params.spacebetween+"px"}),x.params.centeredslides)){for(h=[],e=0;e1&&x.snapgrid.push(x.virtualsize-x.size)}0===x.snapgrid.length&&(x.snapgrid=[0]),0!==x.params.spacebetween&&(x.ishorizontal()?x.rtl?x.slides.css({marginleft:a+"px"}):x.slides.css({marginright:a+"px"}):x.slides.css({marginbottom:a+"px"})),x.params.watchslidesprogress&&x.updateslidesoffset()}},x.updateslidesoffset=function(){for(var e=0;ex.size&&(s=!0));for(a=x.activeindex-1;a>=0;a--)x.slides[a]&&!s&&(r+=x.slides[a].swiperslidesize,t++,r>x.size&&(s=!0))}else for(e=x.activeindex+1;e=0&&i0&&n<=x.size||i<=0&&n>=x.size)&&x.slides.eq(t).addclass(x.params.slidevisibleclass)}s.progress=x.rtl?-r:r}}},x.updateprogress=function(e){void 0===e&&(e=x.translate||0);var a=x.maxtranslate()-x.mintranslate(),t=x.isbeginning,s=x.isend;0===a?(x.progress=0,x.isbeginning=x.isend=!0):(x.progress=(e-x.mintranslate())/a,x.isbeginning=x.progress<=0,x.isend=x.progress>=1),x.isbeginning&&!t&&x.emit("onreachbeginning",x),x.isend&&!s&&x.emit("onreachend",x),x.params.watchslidesprogress&&x.updateslidesprogress(e),x.emit("onprogress",x,x.progress)},x.updateactiveindex=function(){var e,a,t,s=x.rtl?x.translate:-x.translate;for(a=0;a=x.slidesgrid[a]&&s=x.slidesgrid[a]&&s=x.slidesgrid[a]&&(e=a);x.params.normalizeslideindex&&(e<0||void 0===e)&&(e=0),t=math.floor(e/x.params.slidespergroup),t>=x.snapgrid.length&&(t=x.snapgrid.length-1),e!==x.activeindex&&(x.snapindex=t,x.previousindex=x.activeindex,x.activeindex=e,x.updateclasses(),x.updaterealindex())},x.updaterealindex=function(){x.realindex=parseint(x.slides.eq(x.activeindex).attr("data-swiper-slide-index")||x.activeindex,10)},x.updateclasses=function(){x.slides.removeclass(x.params.slideactiveclass+" "+x.params.slidenextclass+" "+x.params.slideprevclass+" "+x.params.slideduplicateactiveclass+" "+x.params.slideduplicatenextclass+" "+x.params.slideduplicateprevclass);var a=x.slides.eq(x.activeindex);a.addclass(x.params.slideactiveclass),s.loop&&(a.hasclass(x.params.slideduplicateclass)?x.wrapper.children("."+x.params.slideclass+":not(."+x.params.slideduplicateclass+')[data-swiper-slide-index="'+x.realindex+'"]').addclass(x.params.slideduplicateactiveclass):x.wrapper.children("."+x.params.slideclass+"."+x.params.slideduplicateclass+'[data-swiper-slide-index="'+x.realindex+'"]').addclass(x.params.slideduplicateactiveclass));var t=a.next("."+x.params.slideclass).addclass(x.params.slidenextclass);x.params.loop&&0===t.length&&(t=x.slides.eq(0),t.addclass(x.params.slidenextclass));var r=a.prev("."+x.params.slideclass).addclass(x.params.slideprevclass);if(x.params.loop&&0===r.length&&(r=x.slides.eq(-1),r.addclass(x.params.slideprevclass)),s.loop&&(t.hasclass(x.params.slideduplicateclass)?x.wrapper.children("."+x.params.slideclass+":not(."+x.params.slideduplicateclass+')[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addclass(x.params.slideduplicatenextclass):x.wrapper.children("."+x.params.slideclass+"."+x.params.slideduplicateclass+'[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addclass(x.params.slideduplicatenextclass),r.hasclass(x.params.slideduplicateclass)?x.wrapper.children("."+x.params.slideclass+":not(."+x.params.slideduplicateclass+')[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]').addclass(x.params.slideduplicateprevclass):x.wrapper.children("."+x.params.slideclass+"."+x.params.slideduplicateclass+'[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]').addclass(x.params.slideduplicateprevclass)),x.paginationcontainer&&x.paginationcontainer.length>0){var i,n=x.params.loop?math.ceil((x.slides.length-2*x.loopedslides)/x.params.slidespergroup):x.snapgrid.length;if(x.params.loop?(i=math.ceil((x.activeindex-x.loopedslides)/x.params.slidespergroup),i>x.slides.length-1-2*x.loopedslides&&(i-=x.slides.length-2*x.loopedslides),i>n-1&&(i-=n),i<0&&"bullets"!==x.params.paginationtype&&(i=n+i)):i=void 0!==x.snapindex?x.snapindex:x.activeindex||0,"bullets"===x.params.paginationtype&&x.bullets&&x.bullets.length>0&&(x.bullets.removeclass(x.params.bulletactiveclass),x.paginationcontainer.length>1?x.bullets.each(function(){e(this).index()===i&&e(this).addclass(x.params.bulletactiveclass)}):x.bullets.eq(i).addclass(x.params.bulletactiveclass)),"fraction"===x.params.paginationtype&&(x.paginationcontainer.find("."+x.params.paginationcurrentclass).text(i+1),x.paginationcontainer.find("."+x.params.paginationtotalclass).text(n)),"progress"===x.params.paginationtype){var o=(i+1)/n,l=o,p=1;x.ishorizontal()||(p=o,l=1),x.paginationcontainer.find("."+x.params.paginationprogressbarclass).transform("translate3d(0,0,0) scalex("+l+") scaley("+p+")").transition(x.params.speed)}"custom"===x.params.paginationtype&&x.params.paginationcustomrender&&(x.paginationcontainer.html(x.params.paginationcustomrender(x,i+1,n)),x.emit("onpaginationrendered",x,x.paginationcontainer[0]))}x.params.loop||(x.params.prevbutton&&x.prevbutton&&x.prevbutton.length>0&&(x.isbeginning?(x.prevbutton.addclass(x.params.buttondisabledclass),x.params.a11y&&x.a11y&&x.a11y.disable(x.prevbutton)):(x.prevbutton.removeclass(x.params.buttondisabledclass),x.params.a11y&&x.a11y&&x.a11y.enable(x.prevbutton))),x.params.nextbutton&&x.nextbutton&&x.nextbutton.length>0&&(x.isend?(x.nextbutton.addclass(x.params.buttondisabledclass),x.params.a11y&&x.a11y&&x.a11y.disable(x.nextbutton)):(x.nextbutton.removeclass(x.params.buttondisabledclass),x.params.a11y&&x.a11y&&x.a11y.enable(x.nextbutton))))},x.updatepagination=function(){if(x.params.pagination&&x.paginationcontainer&&x.paginationcontainer.length>0){var e="";if("bullets"===x.params.paginationtype){for(var a=x.params.loop?math.ceil((x.slides.length-2*x.loopedslides)/x.params.slidespergroup):x.snapgrid.length,t=0;t";x.paginationcontainer.html(e),x.bullets=x.paginationcontainer.find("."+x.params.bulletclass),x.params.paginationclickable&&x.params.a11y&&x.a11y&&x.a11y.initpagination()}"fraction"===x.params.paginationtype&&(e=x.params.paginationfractionrender?x.params.paginationfractionrender(x,x.params.paginationcurrentclass,x.params.paginationtotalclass):' / ',x.paginationcontainer.html(e)),"progress"===x.params.paginationtype&&(e=x.params.paginationprogressrender?x.params.paginationprogressrender(x,x.params.paginationprogressbarclass):'',x.paginationcontainer.html(e)),"custom"!==x.params.paginationtype&&x.emit("onpaginationrendered",x,x.paginationcontainer[0])}},x.update=function(e){function a(){x.rtl,x.translate;t=math.min(math.max(x.translate,x.maxtranslate()),x.mintranslate()),x.setwrappertranslate(t),x.updateactiveindex(),x.updateclasses()}if(x){x.updatecontainersize(),x.updateslidessize(),x.updateprogress(),x.updatepagination(),x.updateclasses(),x.params.scrollbar&&x.scrollbar&&x.scrollbar.set();var t;if(e){x.controller&&x.controller.spline&&(x.controller.spline=void 0),x.params.freemode?(a(),x.params.autoheight&&x.updateautoheight()):(("auto"===x.params.slidesperview||x.params.slidesperview>1)&&x.isend&&!x.params.centeredslides?x.slideto(x.slides.length-1,0,!1,!0):x.slideto(x.activeindex,0,!1,!0))||a()}else x.params.autoheight&&x.updateautoheight()}},x.onresize=function(e){x.params.onbeforeresize&&x.params.onbeforeresize(x),x.params.breakpoints&&x.setbreakpoint();var a=x.params.allowswipetoprev,t=x.params.allowswipetonext;x.params.allowswipetoprev=x.params.allowswipetonext=!0,x.updatecontainersize(),x.updateslidessize(),("auto"===x.params.slidesperview||x.params.freemode||e)&&x.updatepagination(),x.params.scrollbar&&x.scrollbar&&x.scrollbar.set(),x.controller&&x.controller.spline&&(x.controller.spline=void 0);var s=!1;if(x.params.freemode){var r=math.min(math.max(x.translate,x.maxtranslate()),x.mintranslate());x.setwrappertranslate(r),x.updateactiveindex(),x.updateclasses(),x.params.autoheight&&x.updateautoheight()}else x.updateclasses(),s=("auto"===x.params.slidesperview||x.params.slidesperview>1)&&x.isend&&!x.params.centeredslides?x.slideto(x.slides.length-1,0,!1,!0):x.slideto(x.activeindex,0,!1,!0);x.params.lazyloading&&!s&&x.lazy&&x.lazy.load(),x.params.allowswipetoprev=a,x.params.allowswipetonext=t,x.params.onafterresize&&x.params.onafterresize(x)},x.toucheventsdesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerenabled?x.toucheventsdesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.mspointerenabled&&(x.toucheventsdesktop={start:"mspointerdown",move:"mspointermove",end:"mspointerup"}),x.touchevents={start:x.support.touch||!x.params.simulatetouch?"touchstart":x.toucheventsdesktop.start,move:x.support.touch||!x.params.simulatetouch?"touchmove":x.toucheventsdesktop.move,end:x.support.touch||!x.params.simulatetouch?"touchend":x.toucheventsdesktop.end},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===x.params.toucheventstarget?x.container:x.wrapper).addclass("swiper-wp8-"+x.params.direction),x.initevents=function(e){var a=e?"off":"on",t=e?"removeeventlistener":"addeventlistener",r="container"===x.params.toucheventstarget?x.container[0]:x.wrapper[0],i=x.support.touch?r:document,n=!!x.params.nested;if(x.browser.ie)r[t](x.touchevents.start,x.ontouchstart,!1),i[t](x.touchevents.move,x.ontouchmove,n),i[t](x.touchevents.end,x.ontouchend,!1);else{if(x.support.touch){var o=!("touchstart"!==x.touchevents.start||!x.support.passivelistener||!x.params.passivelisteners)&&{passive:!0,capture:!1};r[t](x.touchevents.start,x.ontouchstart,o),r[t](x.touchevents.move,x.ontouchmove,n),r[t](x.touchevents.end,x.ontouchend,o)}(s.simulatetouch&&!x.device.ios&&!x.device.android||s.simulatetouch&&!x.support.touch&&x.device.ios)&&(r[t]("mousedown",x.ontouchstart,!1),document[t]("mousemove",x.ontouchmove,n),document[t]("mouseup",x.ontouchend,!1))}window[t]("resize",x.onresize),x.params.nextbutton&&x.nextbutton&&x.nextbutton.length>0&&(x.nextbutton[a]("click",x.onclicknext),x.params.a11y&&x.a11y&&x.nextbutton[a]("keydown",x.a11y.onenterkey)),x.params.prevbutton&&x.prevbutton&&x.prevbutton.length>0&&(x.prevbutton[a]("click",x.onclickprev),x.params.a11y&&x.a11y&&x.prevbutton[a]("keydown",x.a11y.onenterkey)),x.params.pagination&&x.params.paginationclickable&&(x.paginationcontainer[a]("click","."+x.params.bulletclass,x.onclickindex),x.params.a11y&&x.a11y&&x.paginationcontainer[a]("keydown","."+x.params.bulletclass,x.a11y.onenterkey)),(x.params.preventclicks||x.params.preventclickspropagation)&&r[t]("click",x.preventclicks,!0)},x.attachevents=function(){x.initevents()},x.detachevents=function(){x.initevents(!0)},x.allowclick=!0,x.preventclicks=function(e){x.allowclick||(x.params.preventclicks&&e.preventdefault(),x.params.preventclickspropagation&&x.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},x.onclicknext=function(e){e.preventdefault(),x.isend&&!x.params.loop||x.slidenext()},x.onclickprev=function(e){e.preventdefault(),x.isbeginning&&!x.params.loop||x.slideprev()},x.onclickindex=function(a){a.preventdefault();var t=e(this).index()*x.params.slidespergroup ;x.params.loop&&(t+=x.loopedslides),x.slideto(t)},x.updateclickedslide=function(a){var t=n(a,"."+x.params.slideclass),s=!1;if(t)for(var r=0;rx.slides.length-x.loopedslides+l/2?(x.fixloop(),o=x.wrapper.children("."+x.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.'+x.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){x.slideto(o)},0)):x.slideto(o):o>x.slides.length-l?(x.fixloop(),o=x.wrapper.children("."+x.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.'+x.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){x.slideto(o)},0)):x.slideto(o)}else x.slideto(o)}};var b,c,s,z,m,p,e,i,k,d,l="input, select, textarea, button, video",b=date.now(),h=[];x.animating=!1,x.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var g,x;x.ontouchstart=function(a){if(a.originalevent&&(a=a.originalevent),(g="touchstart"===a.type)||!("which"in a)||3!==a.which){if(x.params.noswiping&&n(a,"."+x.params.noswipingclass))return void(x.allowclick=!0);if(!x.params.swipehandler||n(a,x.params.swipehandler)){var t=x.touches.currentx="touchstart"===a.type?a.targettouches[0].pagex:a.pagex,s=x.touches.currenty="touchstart"===a.type?a.targettouches[0].pagey:a.pagey;if(!(x.device.ios&&x.params.iosedgeswipedetection&&t<=x.params.iosedgeswipethreshold)){if(b=!0,c=!1,s=!0,m=void 0,x=void 0,x.touches.startx=t,x.touches.starty=s,z=date.now(),x.allowclick=!0,x.updatecontainersize(),x.swipedirection=void 0,x.params.threshold>0&&(i=!1),"touchstart"!==a.type){var r=!0;e(a.target).is(l)&&(r=!1),document.activeelement&&e(document.activeelement).is(l)&&document.activeelement.blur(),r&&a.preventdefault()}x.emit("ontouchstart",x,a)}}}},x.ontouchmove=function(a){if(a.originalevent&&(a=a.originalevent),!g||"mousemove"!==a.type){if(a.preventedbynestedswiper)return x.touches.startx="touchmove"===a.type?a.targettouches[0].pagex:a.pagex,void(x.touches.starty="touchmove"===a.type?a.targettouches[0].pagey:a.pagey);if(x.params.onlyexternal)return x.allowclick=!1,void(b&&(x.touches.startx=x.touches.currentx="touchmove"===a.type?a.targettouches[0].pagex:a.pagex,x.touches.starty=x.touches.currenty="touchmove"===a.type?a.targettouches[0].pagey:a.pagey,z=date.now()));if(g&&x.params.touchreleaseonedges&&!x.params.loop)if(x.ishorizontal()){if(x.touches.currentxx.touches.startx&&x.translate>=x.mintranslate())return}else if(x.touches.currentyx.touches.starty&&x.translate>=x.mintranslate())return;if(g&&document.activeelement&&a.target===document.activeelement&&e(a.target).is(l))return c=!0,void(x.allowclick=!1);if(s&&x.emit("ontouchmove",x,a),!(a.targettouches&&a.targettouches.length>1)){if(x.touches.currentx="touchmove"===a.type?a.targettouches[0].pagex:a.pagex,x.touches.currenty="touchmove"===a.type?a.targettouches[0].pagey:a.pagey,void 0===m){var t;x.ishorizontal()&&x.touches.currenty===x.touches.starty||!x.ishorizontal()&&x.touches.currentx===x.touches.startx?m=!1:(t=180*math.atan2(math.abs(x.touches.currenty-x.touches.starty),math.abs(x.touches.currentx-x.touches.startx))/math.pi,m=x.ishorizontal()?t>x.params.touchangle:90-t>x.params.touchangle)}if(m&&x.emit("ontouchmoveopposite",x,a),void 0===x&&(x.touches.currentx===x.touches.startx&&x.touches.currenty===x.touches.starty||(x=!0)),b){if(m)return void(b=!1);if(x){x.allowclick=!1,x.emit("onslidermove",x,a),a.preventdefault(),x.params.touchmovestoppropagation&&!x.params.nested&&a.stoppropagation(),c||(s.loop&&x.fixloop(),e=x.getwrappertranslate(),x.setwrappertransition(0),x.animating&&x.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),x.params.autoplay&&x.autoplaying&&(x.params.autoplaydisableoninteraction?x.stopautoplay():x.pauseautoplay()),d=!1,!x.params.grabcursor||x.params.allowswipetonext!==!0&&x.params.allowswipetoprev!==!0||x.setgrabcursor(!0)),c=!0;var r=x.touches.diff=x.ishorizontal()?x.touches.currentx-x.touches.startx:x.touches.currenty-x.touches.starty;r*=x.params.touchratio,x.rtl&&(r=-r),x.swipedirection=r>0?"prev":"next",p=r+e;var i=!0;if(r>0&&p>x.mintranslate()?(i=!1,x.params.resistance&&(p=x.mintranslate()-1+math.pow(-x.mintranslate()+e+r,x.params.resistanceratio))):r<0&&pe&&(p=e),x.params.threshold>0){if(!(math.abs(r)>x.params.threshold||i))return void(p=e);if(!i)return i=!0,x.touches.startx=x.touches.currentx,x.touches.starty=x.touches.currenty,p=e,void(x.touches.diff=x.ishorizontal()?x.touches.currentx-x.touches.startx:x.touches.currenty-x.touches.starty)}x.params.followfinger&&((x.params.freemode||x.params.watchslidesprogress)&&x.updateactiveindex(),x.params.freemode&&(0===h.length&&h.push({position:x.touches[x.ishorizontal()?"startx":"starty"],time:z}),h.push({position:x.touches[x.ishorizontal()?"currentx":"currenty"],time:(new window.date).gettime()})),x.updateprogress(p),x.setwrappertranslate(p))}}}}},x.ontouchend=function(a){if(a.originalevent&&(a=a.originalevent),s&&x.emit("ontouchend",x,a),s=!1,b){x.params.grabcursor&&c&&b&&(x.params.allowswipetonext===!0||x.params.allowswipetoprev===!0)&&x.setgrabcursor(!1);var t=date.now(),s=t-z;if(x.allowclick&&(x.updateclickedslide(a),x.emit("ontap",x,a),s<300&&t-b>300&&(k&&cleartimeout(k),k=settimeout(function(){x&&(x.params.paginationhide&&x.paginationcontainer.length>0&&!e(a.target).hasclass(x.params.bulletclass)&&x.paginationcontainer.toggleclass(x.params.paginationhiddenclass),x.emit("onclick",x,a))},300)),s<300&&t-b<300&&(k&&cleartimeout(k),x.emit("ondoubletap",x,a))),b=date.now(),settimeout(function(){x&&(x.allowclick=!0)},0),!b||!c||!x.swipedirection||0===x.touches.diff||p===e)return void(b=c=!1);b=c=!1;var r;if(r=x.params.followfinger?x.rtl?x.translate:-x.translate:-p,x.params.freemode){if(r<-x.mintranslate())return void x.slideto(x.activeindex);if(r>-x.maxtranslate())return void(x.slides.length1){var i=h.pop(),n=h.pop(),o=i.position-n.position,l=i.time-n.time;x.velocity=o/l,x.velocity=x.velocity/2,math.abs(x.velocity)150||(new window.date).gettime()-i.time>300)&&(x.velocity=0)}else x.velocity=0;x.velocity=x.velocity*x.params.freemodemomentumvelocityratio,h.length=0;var p=1e3*x.params.freemodemomentumratio,d=x.velocity*p,m=x.translate+d;x.rtl&&(m=-m);var u,c=!1,g=20*math.abs(x.velocity)*x.params.freemodemomentumbounceratio;if(mx.mintranslate())x.params.freemodemomentumbounce?(m-x.mintranslate()>g&&(m=x.mintranslate()+g),u=x.mintranslate(),c=!0,d=!0):m=x.mintranslate();else if(x.params.freemodesticky){var h,v=0;for(v=0;v-m){h=v;break}m=math.abs(x.snapgrid[h]-m)=x.params.longswipesms)&&(x.updateprogress(),x.updateactiveindex()))}var f,w=0,y=x.slidessizesgrid[0];for(f=0;f=x.slidesgrid[f]&&r=x.slidesgrid[f]&&(w=f,y=x.slidesgrid[x.slidesgrid.length-1]-x.slidesgrid[x.slidesgrid.length-2]);var t=(r-x.slidesgrid[w])/y;if(s>x.params.longswipesms){if(!x.params.longswipes)return void x.slideto(x.activeindex);"next"===x.swipedirection&&(t>=x.params.longswipesratio?x.slideto(w+x.params.slidespergroup):x.slideto(w)),"prev"===x.swipedirection&&(t>1-x.params.longswipesratio?x.slideto(w+x.params.slidespergroup):x.slideto(w))}else{if(!x.params.shortswipes)return void x.slideto(x.activeindex);"next"===x.swipedirection&&x.slideto(w+x.params.slidespergroup),"prev"===x.swipedirection&&x.slideto(w)}}},x._slideto=function(e,a){return x.slideto(e,a,!0,!0)},x.slideto=function(e,a,t,s){void 0===t&&(t=!0),void 0===e&&(e=0),e<0&&(e=0),x.snapindex=math.floor(e/x.params.slidespergroup),x.snapindex>=x.snapgrid.length&&(x.snapindex=x.snapgrid.length-1);var r=-x.snapgrid[x.snapindex];if(x.params.autoplay&&x.autoplaying&&(s||!x.params.autoplaydisableoninteraction?x.pauseautoplay(a):x.stopautoplay()),x.updateprogress(r),x.params.normalizeslideindex)for(var i=0;i=math.floor(100*x.slidesgrid[i])&&(e=i);return!(!x.params.allowswipetonext&&rx.translate&&r>x.maxtranslate()&&(x.activeindex||0)!==e)&&(void 0===a&&(a=x.params.speed),x.previousindex=x.activeindex||0,x.activeindex=e,x.updaterealindex(),x.rtl&&-r===x.translate||!x.rtl&&r===x.translate?(x.params.autoheight&&x.updateautoheight(),x.updateclasses(),"slide"!==x.params.effect&&x.setwrappertranslate(r),!1):(x.updateclasses(),x.ontransitionstart(t),0===a||x.browser.lteie9?(x.setwrappertranslate(r),x.setwrappertransition(0),x.ontransitionend(t)):(x.setwrappertranslate(r),x.setwrappertransition(a),x.animating||(x.animating=!0,x.wrapper.transitionend(function(){x&&x.ontransitionend(t)}))),!0)))},x.ontransitionstart=function(e){void 0===e&&(e=!0),x.params.autoheight&&x.updateautoheight(),x.lazy&&x.lazy.ontransitionstart(),e&&(x.emit("ontransitionstart",x),x.activeindex!==x.previousindex&&(x.emit("onslidechangestart",x),x.activeindex>x.previousindex?x.emit("onslidenextstart",x):x.emit("onslideprevstart",x)))},x.ontransitionend=function(e){x.animating=!1,x.setwrappertransition(0),void 0===e&&(e=!0),x.lazy&&x.lazy.ontransitionend(),e&&(x.emit("ontransitionend",x),x.activeindex!==x.previousindex&&(x.emit("onslidechangeend",x),x.activeindex>x.previousindex?x.emit("onslidenextend",x):x.emit("onslideprevend",x))),x.params.history&&x.history&&x.history.sethistory(x.params.history,x.activeindex),x.params.hashnav&&x.hashnav&&x.hashnav.sethash()},x.slidenext=function(e,a,t){if(x.params.loop){if(x.animating)return!1;x.fixloop();x.container[0].clientleft;return x.slideto(x.activeindex+x.params.slidespergroup,a,e,t)}return x.slideto(x.activeindex+x.params.slidespergroup,a,e,t)},x._slidenext=function(e){return x.slidenext(!0,e,!0)},x.slideprev=function(e,a,t){if(x.params.loop){if(x.animating)return!1;x.fixloop();x.container[0].clientleft;return x.slideto(x.activeindex-1,a,e,t)}return x.slideto(x.activeindex-1,a,e,t)},x._slideprev=function(e){return x.slideprev(!0,e,!0)},x.slidereset=function(e,a,t){return x.slideto(x.activeindex,a,e)},x.disabletouchcontrol=function(){return x.params.onlyexternal=!0,!0},x.enabletouchcontrol=function(){return x.params.onlyexternal=!1,!0},x.setwrappertransition=function(e,a){x.wrapper.transition(e),"slide"!==x.params.effect&&x.effects[x.params.effect]&&x.effects[x.params.effect].settransition(e),x.params.parallax&&x.parallax&&x.parallax.settransition(e),x.params.scrollbar&&x.scrollbar&&x.scrollbar.settransition(e),x.params.control&&x.controller&&x.controller.settransition(e,a),x.emit("onsettransition",x,e)},x.setwrappertranslate=function(e,a,t){var s=0,i=0;x.ishorizontal()?s=x.rtl?-e:e:i=e,x.params.roundlengths&&(s=r(s),i=r(i)),x.params.virtualtranslate||(x.support.transforms3d?x.wrapper.transform("translate3d("+s+"px, "+i+"px, 0px)"):x.wrapper.transform("translate("+s+"px, "+i+"px)")),x.translate=x.ishorizontal()?s:i;var n,o=x.maxtranslate()-x.mintranslate();n=0===o?0:(e-x.mintranslate())/o,n!==x.progress&&x.updateprogress(e),a&&x.updateactiveindex(),"slide"!==x.params.effect&&x.effects[x.params.effect]&&x.effects[x.params.effect].settranslate(x.translate),x.params.parallax&&x.parallax&&x.parallax.settranslate(x.translate),x.params.scrollbar&&x.scrollbar&&x.scrollbar.settranslate(x.translate),x.params.control&&x.controller&&x.controller.settranslate(x.translate,t),x.emit("onsettranslate",x,x.translate)},x.gettranslate=function(e,a){var t,s,r,i;return void 0===a&&(a="x"),x.params.virtualtranslate?x.rtl?-x.translate:x.translate:(r=window.getcomputedstyle(e,null),window.webkitcssmatrix?(s=r.transform||r.webkittransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.webkitcssmatrix("none"===s?"":s)):(i=r.moztransform||r.otransform||r.mstransform||r.mstransform||r.transform||r.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=i.tostring().split(",")),"x"===a&&(s=window.webkitcssmatrix?i.m41:16===t.length?parsefloat(t[12]):parsefloat(t[4])),"y"===a&&(s=window.webkitcssmatrix?i.m42:16===t.length?parsefloat(t[13]):parsefloat(t[5])),x.rtl&&s&&(s=-s),s||0)},x.getwrappertranslate=function(e){return void 0===e&&(e=x.ishorizontal()?"x":"y"),x.gettranslate(x.wrapper[0],e)},x.observers=[],x.initobservers=function(){if(x.params.observeparents)for(var e=x.container.parents(),a=0;aa.length&&(x.loopedslides=a.length);var t,s=[],r=[];for(a.each(function(t,i){var n=e(this);t=a.length-x.loopedslides&&s.push(i),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)x.wrapper.prepend(e(s[t].clonenode(!0)).addclass(x.params.slideduplicateclass))},x.destroyloop=function(){x.wrapper.children("."+x.params.slideclass+"."+x.params.slideduplicateclass).remove(),x.slides.removeattr("data-swiper-slide-index")},x.reloop=function(e){var a=x.activeindex-x.loopedslides;x.destroyloop(),x.createloop(),x.updateslidessize(),e&&x.slideto(a+x.loopedslides,0,!1)},x.fixloop=function(){var e;x.activeindex=2*x.loopedslides||x.activeindex>x.slides.length-2*x.params.slidesperview)&&(e=-x.slides.length+x.activeindex+x.loopedslides,e+=x.loopedslides,x.slideto(e,0,!1,!0))},x.appendslide=function(e){if(x.params.loop&&x.destroyloop(),"object"==typeof e&&e.length)for(var a=0;a'),t.append(d)),0===m.length&&(m=e('
'),t.append(m)),d.length&&(d[0].style.opacity=math.max(-s,0)),m.length&&(m[0].style.opacity=math.max(s,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotatex("+o+"deg) rotatey("+n+"deg)")}},settransition:function(a){if(x.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),x.params.virtualtranslate&&0!==a){var t=!1;x.slides.eq(x.activeindex).transitionend(function(){if(!t&&x&&e(this).hasclass(x.params.slideactiveclass)){t=!0,x.animating=!1;for(var a=["webkittransitionend","transitionend","otransitionend","mstransitionend","mstransitionend"],s=0;s'),x.wrapper.append(a)),a.css({height:x.width+"px"})):(a=x.container.find(".swiper-cube-shadow"),0===a.length&&(a=e('
'),x.container.append(a))));for(var s=0;s-1&&(t=90*s+90*o,x.rtl&&(t=90*-s-90*o)),r.transform(m),x.params.cube.slideshadows){var u=x.ishorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),c=x.ishorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===u.length&&(u=e('
'),r.append(u)),0===c.length&&(c=e('
'),r.append(c)),u.length&&(u[0].style.opacity=math.max(-o,0)),c.length&&(c[0].style.opacity=math.max(o,0))}}if(x.wrapper.css({"-webkit-transform-origin":"50% 50% -"+x.size/2+"px","-moz-transform-origin":"50% 50% -"+x.size/2+"px","-ms-transform-origin":"50% 50% -"+x.size/2+"px","transform-origin":"50% 50% -"+x.size/2+"px"}),x.params.cube.shadow)if(x.ishorizontal())a.transform("translate3d(0px, "+(x.width/2+x.params.cube.shadowoffset)+"px, "+-x.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+x.params.cube.shadowscale+")");else{var g=math.abs(t)-90*math.floor(math.abs(t)/90),h=1.5-(math.sin(2*g*math.pi/360)/2+math.cos(2*g*math.pi/360)/2),v=x.params.cube.shadowscale,f=x.params.cube.shadowscale/h,w=x.params.cube.shadowoffset;a.transform("scale3d("+v+", 1, "+f+") translate3d(0px, "+(x.height/2+w)+"px, "+-x.height/2/f+"px) rotatex(-90deg)")}var y=x.issafari||x.isuiwebview?-x.size/2:0;x.wrapper.transform("translate3d(0px,0,"+y+"px) rotatex("+(x.ishorizontal()?0:t)+"deg) rotatey("+(x.ishorizontal()?-t:0)+"deg)")},settransition:function(e){x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),x.params.cube.shadow&&!x.ishorizontal()&&x.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var a=x.translate,t=x.ishorizontal()?-a+x.width/2:-a+x.height/2,s=x.ishorizontal()?x.params.coverflow.rotate:-x.params.coverflow.rotate,r=x.params.coverflow.depth,i=0,n=x.slides.length;i'),o.append(f)),0===w.length&&(w=e('
'),o.append(w)),f.length&&(f[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(x.browser.ie){x.wrapper[0].style.perspectiveorigin=t+"px 50%"}},settransition:function(e){x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},x.lazy={initialimageloaded:!1,loadimageinslide:function(a,t){if(void 0!==a&&(void 0===t&&(t=!0),0!==x.slides.length)){var s=x.slides.eq(a),r=s.find("."+x.params.lazyloadingclass+":not(."+x.params.lazystatusloadedclass+"):not(."+x.params.lazystatusloadingclass+")");!s.hasclass(x.params.lazyloadingclass)||s.hasclass(x.params.lazystatusloadedclass)||s.hasclass(x.params.lazystatusloadingclass)||(r=r.add(s[0])),0!==r.length&&r.each(function(){var a=e(this);a.addclass(x.params.lazystatusloadingclass);var r=a.attr("data-background"),i=a.attr("data-src"),n=a.attr("data-srcset"),o=a.attr("data-sizes");x.loadimage(a[0],i||r,n,o,!1,function(){if(void 0!==x&&null!==x&&x){if(r?(a.css("background-image",'url("'+r+'")'),a.removeattr("data-background")):(n&&(a.attr("srcset",n),a.removeattr("data-srcset")),o&&(a.attr("sizes",o),a.removeattr("data-sizes")),i&&(a.attr("src",i),a.removeattr("data-src"))),a.addclass(x.params.lazystatusloadedclass).removeclass(x.params.lazystatusloadingclass),s.find("."+x.params.lazypreloaderclass+", ."+x.params.preloaderclass).remove(),x.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasclass(x.params.slideduplicateclass)){var l=x.wrapper.children('[data-swiper-slide-index="'+e+'"]:not(.'+x.params.slideduplicateclass+")");x.lazy.loadimageinslide(l.index(),!1)}else{var p=x.wrapper.children("."+x.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');x.lazy.loadimageinslide(p.index(),!1)}}x.emit("onlazyimageready",x,s[0],a[0])}}),x.emit("onlazyimageload",x,s[0],a[0])})}},load:function(){var a,t=x.params.slidesperview;if("auto"===t&&(t=0),x.lazy.initialimageloaded||(x.lazy.initialimageloaded=!0),x.params.watchslidesvisibility)x.wrapper.children("."+x.params.slidevisibleclass).each(function(){x.lazy.loadimageinslide(e(this).index())});else if(t>1)for(a=x.activeindex;a1||x.params.lazyloadinginprevnextamount&&x.params.lazyloadinginprevnextamount>1){var s=x.params.lazyloadinginprevnextamount,r=t,i=math.min(x.activeindex+r+math.max(s,r),x.slides.length),n=math.max(x.activeindex-math.max(r,s),0);for(a=x.activeindex+t;a0&&x.lazy.loadimageinslide(o.index());var l=x.wrapper.children("."+x.params.slideprevclass);l.length>0&&x.lazy.loadimageinslide(l.index())}},ontransitionstart:function(){x.params.lazyloading&&(x.params.lazyloadingontransitionstart||!x.params.lazyloadingontransitionstart&&!x.lazy.initialimageloaded)&&x.lazy.load()},ontransitionend:function(){x.params.lazyloading&&!x.params.lazyloadingontransitionstart&&x.lazy.load()}},x.scrollbar={istouched:!1,setdragposition:function(e){var a=x.scrollbar,t=x.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagex:e.pagex||e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagey:e.pagey||e.clienty,s=t-a.track.offset()[x.ishorizontal()?"left":"top"]-a.dragsize/2,r=-x.mintranslate()*a.movedivider,i=-x.maxtranslate()*a.movedivider;si&&(s=i),s=-s/a.movedivider,x.updateprogress(s),x.setwrappertranslate(s,!0)},dragstart:function(e){var a=x.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),x.params.scrollbarhide&&a.track.css("opacity",1),x.wrapper.transition(100),a.drag.transition(100),x.emit("onscrollbardragstart",x)},dragmove:function(e){var a=x.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),x.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),x.emit("onscrollbardragmove",x))},dragend:function(e){var a=x.scrollbar;a.istouched&&(a.istouched=!1,x.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),x.emit("onscrollbardragend",x),x.params.scrollbarsnaponrelease&&x.slidereset())},draggableevents:function(){return x.params.simulatetouch!==!1||x.support.touch?x.touchevents:x.toucheventsdesktop}(),enabledraggable:function(){var a=x.scrollbar,t=x.support.touch?a.track:document;e(a.track).on(a.draggableevents.start,a.dragstart),e(t).on(a.draggableevents.move,a.dragmove),e(t).on(a.draggableevents.end,a.dragend)},disabledraggable:function(){var a=x.scrollbar,t=x.support.touch?a.track:document;e(a.track).off(a.draggableevents.start,a.dragstart),e(t).off(a.draggableevents.move,a.dragmove),e(t).off(a.draggableevents.end,a.dragend)},set:function(){if(x.params.scrollbar){var a=x.scrollbar;a.track=e(x.params.scrollbar),x.params.uniquenavelements&&"string"==typeof x.params.scrollbar&&a.track.length>1&&1===x.container.find(x.params.scrollbar).length&&(a.track=x.container.find(x.params.scrollbar)),a.drag=a.track.find(".swiper-scrollbar-drag"),0===a.drag.length&&(a.drag=e('
'),a.track.append(a.drag)),a.drag[0].style.width="",a.drag[0].style.height="",a.tracksize=x.ishorizontal()?a.track[0].offsetwidth:a.track[0].offsetheight,a.divider=x.size/x.virtualsize,a.movedivider=a.divider*(a.tracksize/x.size),a.dragsize=a.tracksize*a.divider,x.ishorizontal()?a.drag[0].style.width=a.dragsize+"px":a.drag[0].style.height=a.dragsize+"px",a.divider>=1?a.track[0].style.display="none":a.track[0].style.display="",x.params.scrollbarhide&&(a.track[0].style.opacity=0)}},settranslate:function(){if(x.params.scrollbar){var e,a=x.scrollbar,t=(x.translate,a.dragsize);e=(a.tracksize-a.dragsize)*x.progress,x.rtl&&x.ishorizontal()?(e=-e,e>0?(t=a.dragsize-e,e=0):-e+a.dragsize>a.tracksize&&(t=a.tracksize+e)):e<0?(t=a.dragsize+e,e=0):e+a.dragsize>a.tracksize&&(t=a.tracksize-e),x.ishorizontal()?(x.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(x.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),x.params.scrollbarhide&&(cleartimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=settimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}},settransition:function(e){x.params.scrollbar&&x.scrollbar.drag.transition(e)}},x.controller={linearspline:function(e,a){var t=function(){var e,a,t;return function(s,r){for(a=-1,e=s.length;e-a>1;)s[t=e+a>>1]<=r?a=t:e=t;return e}}();this.x=e,this.y=a,this.lastindex=e.length-1;var s,r;this.x.length;this.interpolate=function(e){return e?(r=t(this.x,e),s=r-1,(e-this.x[s])*(this.y[r]-this.y[s])/(this.x[r]-this.x[s])+this.y[s]):0}},getinterpolatefunction:function(e){x.controller.spline||(x.controller.spline=x.params.loop?new x.controller.linearspline(x.slidesgrid,e.slidesgrid):new x.controller.linearspline(x.snapgrid,e.snapgrid))},settranslate:function(e,t){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-x.translate:x.translate,"slide"===x.params.controlby&&(x.controller.getinterpolatefunction(a),i=-x.controller.spline.interpolate(-e)),i&&"container"!==x.params.controlby||(r=(a.maxtranslate()-a.mintranslate())/(x.maxtranslate()-x.mintranslate()),i=(e-x.mintranslate())*r+a.mintranslate()),x.params.controlinverse&&(i=a.maxtranslate()-i),a.updateprogress(i),a.setwrappertranslate(i,!1,x),a.updateactiveindex()}var r,i,n=x.params.control;if(array.isarray(n))for(var o=0;o-1?"dommousescroll":function(){var e="onwheel"in document;if(!e){var a=document.createelement("div");a.setattribute("onwheel","return;"),e="function"==typeof a.onwheel}return!e&&document.implementation&&document.implementation.hasfeature&&document.implementation.hasfeature("","")!==!0&&(e=document.implementation.hasfeature("events.wheel","3.0")),e}()?"wheel":"mousewheel"),x.disablemousewheelcontrol=function(){if(!x.mousewheel.event)return!1;var a=x.container;return"container"!==x.params.mousewheeleventstarged&&(a=e(x.params.mousewheeleventstarged)),a.off(x.mousewheel.event,d),x.params.mousewheelcontrol=!1,!0},x.enablemousewheelcontrol=function(){if(!x.mousewheel.event)return!1;var a=x.container;return"container"!==x.params.mousewheeleventstarged&&(a=e(x.params.mousewheeleventstarged)),a.on(x.mousewheel.event,d),x.params.mousewheelcontrol=!0,!0},x.parallax={settranslate:function(){x.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){m(this,x.progress)}),x.slides.each(function(){var a=e(this);a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){m(this,math.min(math.max(a[0].progress,-1),1))})})},settransition:function(a){void 0===a&&(a=x.params.speed),x.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=e(this),s=parseint(t.attr("data-swiper-parallax-duration"),10)||a;0===a&&(s=0),t.transition(s)})}},x.zoom={scale:1,currentscale:1,isscaling:!1,gesture:{slide:void 0,slidewidth:void 0,slideheight:void 0,image:void 0,imagewrap:void 0,zoommax:x.params.zoommax},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0},getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var a=e.targettouches[0].pagex,t=e.targettouches[0].pagey,s=e.targettouches[1].pagex,r=e.targettouches[1].pagey;return math.sqrt(math.pow(s-a,2)+math.pow(r-t,2))},ongesturestart:function(a){var t=x.zoom;if(!x.support.gestures){if("touchstart"!==a.type||"touchstart"===a.type&&a.targettouches.length<2)return;t.gesture.scalestart=t.getdistancebetweentouches(a)}if(!(t.gesture.slide&&t.gesture.slide.length||(t.gesture.slide=e(this),0===t.gesture.slide.length&&(t.gesture.slide=x.slides.eq(x.activeindex)),t.gesture.image=t.gesture.slide.find("img, svg, canvas"),t.gesture.imagewrap=t.gesture.image.parent("."+x.params.zoomcontainerclass),t.gesture.zoommax=t.gesture.imagewrap.attr("data-swiper-zoom")||x.params.zoommax,0!==t.gesture.imagewrap.length)))return void(t.gesture.image=void 0);t.gesture.image.transition(0),t.isscaling=!0},ongesturechange:function(e){var a=x.zoom;if(!x.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;a.gesture.scalemove=a.getdistancebetweentouches(e)}a.gesture.image&&0!==a.gesture.image.length&&(x.support.gestures?a.scale=e.scale*a.currentscale:a.scale=a.gesture.scalemove/a.gesture.scalestart*a.currentscale,a.scale>a.gesture.zoommax&&(a.scale=a.gesture.zoommax-1+math.pow(a.scale-a.gesture.zoommax+1,.5)),a.scalea.image.touchesstart.x)return void(a.image.istouched=!1);if(!x.ishorizontal()&&math.floor(a.image.miny)===math.floor(a.image.starty)&&a.image.touchescurrent.ya.image.touchesstart.y)return void(a.image.istouched=!1)}e.preventdefault(),e.stoppropagation(),a.image.ismoved=!0,a.image.currentx=a.image.touchescurrent.x-a.image.touchesstart.x+a.image.startx,a.image.currenty=a.image.touchescurrent.y-a.image.touchesstart.y+a.image.starty,a.image.currentxa.image.maxx&&(a.image.currentx=a.image.maxx-1+math.pow(a.image.currentx-a.image.maxx+1,.8)),a.image.currentya.image.maxy&&(a.image.currenty=a.image.maxy-1+math.pow(a.image.currenty-a.image.maxy+1,.8)),a.velocity.prevpositionx||(a.velocity.prevpositionx=a.image.touchescurrent.x),a.velocity.prevpositiony||(a.velocity.prevpositiony=a.image.touchescurrent.y),a.velocity.prevtime||(a.velocity.prevtime=date.now()),a.velocity.x=(a.image.touchescurrent.x-a.velocity.prevpositionx)/(date.now()-a.velocity.prevtime)/2,a.velocity.y=(a.image.touchescurrent.y-a.velocity.prevpositiony)/(date.now()-a.velocity.prevtime)/2,math.abs(a.image.touchescurrent.x-a.velocity.prevpositionx)<2&&(a.velocity.x=0),math.abs(a.image.touchescurrent.y-a.velocity.prevpositiony)<2&&(a.velocity.y=0),a.velocity.prevpositionx=a.image.touchescurrent.x,a.velocity.prevpositiony=a.image.touchescurrent.y,a.velocity.prevtime=date.now(),a.gesture.imagewrap.transform("translate3d("+a.image.currentx+"px, "+a.image.currenty+"px,0)")}}},ontouchend:function(e,a){var t=e.zoom;if(t.gesture.image&&0!==t.gesture.image.length){if(!t.image.istouched||!t.image.ismoved)return t.image.istouched=!1,void(t.image.ismoved=!1);t.image.istouched=!1,t.image.ismoved=!1;var s=300,r=300,i=t.velocity.x*s,n=t.image.currentx+i,o=t.velocity.y*r,l=t.image.currenty+o;0!==t.velocity.x&&(s=math.abs((n-t.image.currentx)/t.velocity.x)),0!==t.velocity.y&&(r=math.abs((l-t.image.currenty)/t.velocity.y));var p=math.max(s,r);t.image.currentx=n,t.image.currenty=l;var d=t.image.width*t.scale,m=t.image.height*t.scale;t.image.minx=math.min(t.gesture.slidewidth/2-d/2,0),t.image.maxx=-t.image.minx,t.image.miny=math.min(t.gesture.slideheight/2-m/2,0),t.image.maxy=-t.image.miny,t.image.currentx=math.max(math.min(t.image.currentx,t.image.maxx),t.image.minx),t.image.currenty=math.max(math.min(t.image.currenty,t.image.maxy),t.image.miny),t.gesture.imagewrap.transition(p).transform("translate3d("+t.image.currentx+"px, "+t.image.currenty+"px,0)")}},ontransitionend:function(e){var a=e.zoom;a.gesture.slide&&e.previousindex!==e.activeindex&&(a.gesture.image.transform("translate3d(0,0,0) scale(1)"),a.gesture.imagewrap.transform("translate3d(0,0,0)"),a.gesture.slide=a.gesture.image=a.gesture.imagewrap=void 0,a.scale=a.currentscale=1)},togglezoom:function(a,t){var s=a.zoom;if(s.gesture.slide||(s.gesture.slide=a.clickedslide?e(a.clickedslide):a.slides.eq(a.activeindex),s.gesture.image=s.gesture.slide.find("img, svg, canvas"),s.gesture.imagewrap=s.gesture.image.parent("."+a.params.zoomcontainerclass)),s.gesture.image&&0!==s.gesture.image.length){var r,i,n,o,l,p,d,m,u,c,g,h,v,f,w,y,x,t;void 0===s.image.touchesstart.x&&t?(r="touchend"===t.type?t.changedtouches[0].pagex:t.pagex,i="touchend"===t.type?t.changedtouches[0].pagey:t.pagey):(r=s.image.touchesstart.x,i=s.image.touchesstart.y),s.scale&&1!==s.scale?(s.scale=s.currentscale=1,s.gesture.imagewrap.transition(300).transform("translate3d(0,0,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),s.gesture.slide=void 0):(s.scale=s.currentscale=s.gesture.imagewrap.attr("data-swiper-zoom")||a.params.zoommax,t?(x=s.gesture.slide[0].offsetwidth,t=s.gesture.slide[0].offsetheight,n=s.gesture.slide.offset().left,o=s.gesture.slide.offset().top,l=n+x/2-r,p=o+t/2-i,u=s.gesture.image[0].offsetwidth,c=s.gesture.image[0].offsetheight,g=u*s.scale,h=c*s.scale,v=math.min(x/2-g/2,0),f=math.min(t/2-h/2,0),w=-v,y=-f,d=l*s.scale,m=p*s.scale,dw&&(d=w),my&&(m=y)):(d=0,m=0),s.gesture.imagewrap.transition(300).transform("translate3d("+d+"px, "+m+"px,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+s.scale+")"))}},attachevents:function(a){var t=a?"off":"on";if(x.params.zoom){var s=(x.slides,!("touchstart"!==x.touchevents.start||!x.support.passivelistener||!x.params.passivelisteners)&&{passive:!0,capture:!1});x.support.gestures?(x.slides[t]("gesturestart",x.zoom.ongesturestart,s),x.slides[t]("gesturechange",x.zoom.ongesturechange,s),x.slides[t]("gestureend",x.zoom.ongestureend,s)):"touchstart"===x.touchevents.start&&(x.slides[t](x.touchevents.start,x.zoom.ongesturestart,s),x.slides[t](x.touchevents.move,x.zoom.ongesturechange,s),x.slides[t](x.touchevents.end,x.zoom.ongestureend,s)),x[t]("touchstart",x.zoom.ontouchstart),x.slides.each(function(a,s){e(s).find("."+x.params.zoomcontainerclass).length>0&&e(s)[t](x.touchevents.move,x.zoom.ontouchmove)}),x[t]("touchend",x.zoom.ontouchend),x[t]("transitionend",x.zoom.ontransitionend),x.params.zoomtoggle&&x.on("doubletap",x.zoom.togglezoom)}},init:function(){x.zoom.attachevents()},destroy:function(){x.zoom.attachevents(!0)}},x._plugins=[];for(var y in x.plugins){var a=x.plugins[y](x,x.params[y]);a&&x._plugins.push(a)}return x.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=x.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){x.params.nextbutton&&x.nextbutton&&x.nextbutton.length>0&&(x.a11y.makefocusable(x.nextbutton),x.a11y.addrole(x.nextbutton,"button"),x.a11y.addlabel(x.nextbutton,x.params.nextslidemessage)),x.params.prevbutton&&x.prevbutton&&x.prevbutton.length>0&&(x.a11y.makefocusable(x.prevbutton),x.a11y.addrole(x.prevbutton,"button"),x.a11y.addlabel(x.prevbutton,x.params.prevslidemessage)),e(x.container).append(x.a11y.liveregion)},initpagination:function(){x.params.pagination&&x.params.paginationclickable&&x.bullets&&x.bullets.length&&x.bullets.each(function(){var a=e(this);x.a11y.makefocusable(a),x.a11y.addrole(a,"button"),x.a11y.addlabel(a,x.params.paginationbulletmessage.replace(/{{index}}/,a.index()+1))})},destroy:function(){x.a11y.liveregion&&x.a11y.liveregion.length>0&&x.a11y.liveregion.remove()}},x.init=function(){x.params.loop&&x.createloop(),x.updatecontainersize(),x.updateslidessize(),x.updatepagination(),x.params.scrollbar&&x.scrollbar&&(x.scrollbar.set(),x.params.scrollbardraggable&&x.scrollbar.enabledraggable()),"slide"!==x.params.effect&&x.effects[x.params.effect]&&(x.params.loop||x.updateprogress(),x.effects[x.params.effect].settranslate()),x.params.loop?x.slideto(x.params.initialslide+x.loopedslides,0,x.params.runcallbacksoninit):(x.slideto(x.params.initialslide,0,x.params.runcallbacksoninit),0===x.params.initialslide&&(x.parallax&&x.params.parallax&&x.parallax.settranslate(),x.lazy&&x.params.lazyloading&&(x.lazy.load(),x.lazy.initialimageloaded=!0))),x.attachevents(),x.params.observer&&x.support.observer&&x.initobservers(),x.params.preloadimages&&!x.params.lazyloading&&x.preloadimages(),x.params.zoom&&x.zoom&&x.zoom.init(),x.params.autoplay&&x.startautoplay(),x.params.keyboardcontrol&&x.enablekeyboardcontrol&&x.enablekeyboardcontrol(),x.params.mousewheelcontrol&&x.enablemousewheelcontrol&&x.enablemousewheelcontrol(),x.params.hashnavreplacestate&&(x.params.replacestate=x.params.hashnavreplacestate),x.params.history&&x.history&&x.history.init(),x.params.hashnav&&x.hashnav&&x.hashnav.init(),x.params.a11y&&x.a11y&&x.a11y.init(),x.emit("oninit",x)},x.cleanupstyles=function(){x.container.removeclass(x.classnames.join(" ")).removeattr("style"),x.wrapper.removeattr("style"),x.slides&&x.slides.length&&x.slides.removeclass([x.params.slidevisibleclass,x.params.slideactiveclass,x.params.slidenextclass,x.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),x.paginationcontainer&&x.paginationcontainer.length&&x.paginationcontainer.removeclass(x.params.paginationhiddenclass),x.bullets&&x.bullets.length&&x.bullets.removeclass(x.params.bulletactiveclass),x.params.prevbutton&&e(x.params.prevbutton).removeclass(x.params.buttondisabledclass),x.params.nextbutton&&e(x.params.nextbutton).removeclass(x.params.buttondisabledclass),x.params.scrollbar&&x.scrollbar&&(x.scrollbar.track&&x.scrollbar.track.length&&x.scrollbar.track.removeattr("style"),x.scrollbar.drag&&x.scrollbar.drag.length&&x.scrollbar.drag.removeattr("style"))},x.destroy=function(e,a){x.detachevents(),x.stopautoplay(),x.params.scrollbar&&x.scrollbar&&x.params.scrollbardraggable&&x.scrollbar.disabledraggable(),x.params.loop&&x.destroyloop(),a&&x.cleanupstyles(),x.disconnectobservers(),x.params.zoom&&x.zoom&&x.zoom.destroy(),x.params.keyboardcontrol&&x.disablekeyboardcontrol&&x.disablekeyboardcontrol(),x.params.mousewheelcontrol&&x.disablemousewheelcontrol&&x.disablemousewheelcontrol(),x.params.a11y&&x.a11y&&x.a11y.destroy(),x.params.history&&!x.params.replacestate&&window.removeeventlistener("popstate",x.history.sethistorypopstate),x.params.hashnav&&x.hashnav&&x.hashnav.destroy(),x.emit("ondestroy"),e!==!1&&(x=null)},x.init(),x}};a.prototype={issafari:function(){var e=window.navigator.useragent.tolowercase();return e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0}(),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(window.navigator.useragent),isarray:function(e){return"[object array]"===object.prototype.tostring.apply(e)},browser:{ie:window.navigator.pointerenabled||window.navigator.mspointerenabled,ietouch:window.navigator.mspointerenabled&&window.navigator.msmaxtouchpoints>1||window.navigator.pointerenabled&&window.navigator.maxtouchpoints>1,lteie9:function(){var e=document.createelement("div");return e.innerhtml="",1===e.getelementsbytagname("i").length}()},device:function(){var e=window.navigator.useragent,a=e.match(/(android);?[\s\/]+([\d.]+)?/),t=e.match(/(ipad).*os\s([\d_]+)/),s=e.match(/(ipod)(.*os\s([\d_]+))?/),r=!t&&e.match(/(iphone\sos|ios)\s([\d_]+)/);return{ios:t||r||s,android:a}}(),support:{touch:window.modernizr&&modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.documenttouch&&document instanceof documenttouch)}(),transforms3d:window.modernizr&&modernizr.csstransforms3d===!0||function(){var e=document.createelement("div").style;return"webkitperspective"in e||"mozperspective"in e||"operspective"in e||"msperspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createelement("div").style,a="alignitems webkitalignitems webkitboxalign msflexalign mozboxalign webkitflexdirection msflexdirection mozboxdirection mozboxorient webkitboxdirection webkitboxorient".split(" "),t=0;t0?e?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null})),window.swiper=a}(),"undefined"!=typeof module?module.exports=window.swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.swiper}); //# sourcemappingurl=maps/swiper.jquery.min.js.map /* * jquery appear plugin * * copyright (c) 2012 andrey sidorov * licensed under mit license. * * https://github.com/morr/jquery.appear/ * * version: 0.3.6 */ (function($){var selectors=[];var check_binded=false;var check_lock=false;var defaults={interval:250,force_process:false};var $window=$(window);var $prior_appeared=[];function process(){check_lock=false;for(var index=0,selectorslength=selectors.length;index=window_top&&top-($element.data('appear-top-offset')||0)<=window_top+$window.height()&&left+$element.width()>=window_left&&left-($element.data('appear-left-offset')||0)<=window_left+$window.width()){return true;}else{return false;}};$.fn.extend({ appear:function(options){var opts=$.extend({},defaults,options||{});var selector=this.selector||this;if(!check_binded){var on_check=function(){if(check_lock){return;}check_lock=true;settimeout(process,opts.interval);};$(window).scroll(on_check).resize(on_check);check_binded=true;}if(opts.force_process){settimeout(process,opts.interval);}add_selector(selector);return $(selector);}});$.extend({ force_appear:function(){if(check_binded){process();return true;}return false;}});})(function(){if(typeof module!=='undefined'){ return require('jquery');}else{return jquery;}}()); /*! * remark (http://getbootstrapadmin.com/remark) * copyright 2016 amazingsurge * licensed under the themeforest standard licenses */ !function(global,factory){if("function"==typeof define&&define.amd)define("/plugin/jquery-appear",["exports","jquery","plugin"],factory);else if("undefined"!=typeof exports)factory(exports,require("jquery"),require("plugin"));else{var mod={exports:{}};factory(mod.exports,global.jquery,global.plugin),global.pluginjqueryappear=mod.exports}}(this,function(exports,_jquery,_plugin2){"use strict";object.defineproperty(exports,"__esmodule",{value:!0});var _jquery2=babelhelpers.interoprequiredefault(_jquery),_plugin3=babelhelpers.interoprequiredefault(_plugin2),name="appear",appear=function(_plugin){function appear(){return babelhelpers.classcallcheck(this,appear),babelhelpers.possibleconstructorreturn(this,(appear.__proto__||object.getprototypeof(appear)).apply(this,arguments))}return babelhelpers.inherits(appear,_plugin),babelhelpers.createclass(appear,[{key:"getname",value:function(){return name}},{key:"bind",value:function(){var _this2=this;this.$el.on("appear",function(){_this2.$el.hasclass("appear-no-repeat")||(_this2.$el.removeclass("invisible").addclass("animation-"+_this2.options.animate),_this2.$el.data("repeat")===!1&&_this2.$el.addclass("appear-no-repeat"))}),(0,_jquery2.default)(document).on("disappear",function(){_this2.$el.hasclass("appear-no-repeat")||_this2.$el.addclass("invisible").removeclass("animation-"+_this2.options.animate)})}},{key:"render",value:function(){_jquery2.default.fn.appear&&(this.$el.appear(this.options),this.$el.not(":appeared").addclass("invisible"),this.bind())}}]),appear}(_plugin3.default);_plugin3.default.register(name,appear),exports.default=appear}); !function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createelement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendchild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexof("animation")).tolowercase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertrule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssrules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charat(0).touppercase()+b.slice(1),d=0;d',c)}m.addrule(".spin-vml","behavior:url(#default#vml)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:dximagetransform.microsoft.blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstchild;d=d.shadow&&d.lines||0,e&&b+d>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;kb;b++)if(f===j[b]){j.splice(b,1);break}}};return j.push(f),f}function c(a,b){for(;a.parentnode&&a.tagname!==b;)a=a.parentnode;return b===a.tagname?a:void 0}function d(a){for(var b=["input","textarea","select"],c=[],d=0;dg;g++)!function(){var a=f[g];if("function"==typeof a.addeventlistener){var h=b(a),i=-1;a.addeventlistener("click",function(b){var f=!0,g=c(a,"form");if("undefined"!=typeof g)if("function"==typeof g.checkvalidity)f=g.checkvalidity();else for(var j=d(g),k=0;ka;a++)j[a].stop()}function g(b){var c,d,e=b.offsetheight;0===e&&(e=parsefloat(window.getcomputedstyle(b).height)),e>32&&(e*=.8),b.hasattribute("data-spinner-size")&&(e=parseint(b.getattribute("data-spinner-size"),10)),b.hasattribute("data-spinner-color")&&(c=b.getattribute("data-spinner-color")),b.hasattribute("data-spinner-lines")&&(d=parseint(b.getattribute("data-spinner-lines"),10));var f=.2*e,g=.6*f,h=7>f?2:3;return new a({color:c||"#fff",lines:d||12,radius:f,length:g,width:h,zindex:"auto",top:"auto",left:"auto",classname:""})}function h(a){for(var b=[],c=0;c1) $nekopagerbtn.addclass('disabled').text('已经是最后一页了'); }else{ $nekopagerbtn.attr({hidden:''}); } }; nekopagerbtntext(); $nekopagerbtn.click(function(){ if(!$nekopagerbtn.hasclass('disabled')){ page++; var pageurl=$('#nekopaget').data('pageurl').split('&page=')[0]; $.ajax({ url:pageurl, type:'post', data:{ajax:1,page:page}, success:function(data){ var $data=$(data).find('.neko-pager-ajax'); if(!$data.length){ data='
'+data+'
'; $data=$(data); } $data.find('>').addclass('page'+page).removeclass('shown'); data=$data.html(); $nekopagerajax.append(data); nekopagerajaxfun(page); nekopagerbtntext(); } }); } }); } // 无刷新分页获取到数据追加到页面后,可以在此方法继续处理 function nekopagerajaxfun(page){ var $nekopagerajax=$('.neko-pager-ajax'), nekopager_original='.page'+page+' [data-original]'; if($nekopagerajax.find(nekopager_original).length){ // 图片高度预设 // settimeout(function(){ $nekopagerajax.imagesize(nekopager_original); // },0) // 图片延迟加载 if($nekopagerajax.find(nekopager_original).length) $nekopagerajax.find(nekopager_original).lazyload({placeholder:m['lazyloadbg']}); settimeout(function(){ $('html,body').stop().animate({scrolltop:$(window).scrolltop()+2},0); },300) } if($('#neko-grid').length){ settimeout(function(){ if(typeof nekoanimonscroll != 'undefined') nekoanimonscroll('neko-grid');// 产品模块瀑布流 },100) } } /* 新闻模块 */ $(function(){ // 文章列表页新闻头条(需调用slick插件) var $news_headlines=$('.news-headlines-slick'); if($news_headlines.length){ // 新闻头条轮播 if($news_headlines.find('.slick-slide').length>1){ var headllines_swipe=true; if(m['device_type']=='d' && !breakpoints.is('xs')) headllines_swipe=false; $news_headlines.slick({ autoplay:true, dots:true, autoplayspeed:4000, speed:500, swipe:headllines_swipe, prevarrow:neko_prevarrow, nextarrow:neko_nextarrow, lazyloadprevnext:true }); } } }); nekoui_fun['head_nav_neko_11_5_67'] = { name: 'head_nav_neko_11_5_67', click: function() { var current_floder=$('.head_nav_neko_11_5_67-header .top-box').data('floder'); /*二级下拉列点击处理*/ var second_menu=nekoui['head_nav_neko_11_5_67'].find('.second-menu'); second_menu.click(function() { var first_link=$(this).parent().parent().find('.dropdown-item.nav-parent').attr('href'); $('.current').removeclass('active'); $('dd a').removeclass('ractive'); $(".current").removeclass('ractive'); //产品区块 var data_index=$(this).data("index"); //if (current_floder!='product') { location=first_link+'#dropdownlink'+data_index; // } // else{ if($(this).data("hover")){ location.hash='dropdownlink'+data_index; } location.hash='dropdownlink'+data_index; $('#dropdownlink'+data_index).addclass('active'); //} }); /*导航点击处理*/ var alink = nekoui['head_nav_neko_11_5_67'].find('.dropdown a.nav-link'); alink.click(function() { if(device_type=='d' && !breakpoints.is('xs') && $(this).data("hover")){ if($(this).attr('target')=='_blank'){ window.open($(this).attr('href')); }else{ location=$(this).attr('href'); } } }); // 导航顶级栏目过多时换行处理 var $neko_navlist=nekoui['head_nav_neko_11_5_67'].find('.navlist'); var neko_navlist_position=function(){ if(!breakpoints.is('xs') && $neko_navlist.height()>65){ $neko_navlist.addclass('flex').parent().addclass('flex-navlist'); if($('body').hasclass('neko-navfixed')) $('body').addclass('neko-navfixed-navclamp'); }else{ $neko_navlist.removeclass('flex').parent().removeclass('flex-navlist'); if($('body').hasclass('neko-navfixed')) $('body').removeclass('neko-navfixed-navclamp'); } }; neko_navlist_position(); $(window).resize(function(){ neko_navlist_position(); }); }, navfixed: function() { /*顶部固定边框阴影处理*/ var fixed = nekoui['head_nav_neko_11_5_67'].parent(), header = $('.head_nav_neko_11_5_67-header'), nav = $('head_nav_neko_11_5_67'), b = $('body'); if (fixed.hasclass('navbar-fixed-top')) { var h = header.height(), nh = nav.height(); b.css('paddingtop', h); $(window).scroll(function() { if (fixed.offset().top > 1) { fixed.addclass("navbar-shadow"); b.css('paddingtop', nh); } else { fixed.removeclass("navbar-shadow"); b.css('paddingtop', h); } }); } }, mousewheel: function() { var sm = $('.secondmenu'); if (sm.length) { sm.mousewheel(function(event, delta, deltax, deltay) { var dy = math.ceil($(this).position().top - deltay * -120); if (dy > 0) dy = 0; $(this).css({ 'transform': 'translatey(' + dy + 'px)', 'transition': '0s' }); event.stoppropagation(); event.preventdefault(); }).mouseleave(function() { $(this).removeattr('style'); }); } }, dropdown: function() { /*下拉菜单动画修复*/ var dropdownsubmenu = nekoui['head_nav_neko_11_5_67'].find('.navlist .dropdown-submenu'); dropdownsubmenu.hover( function() { $(this).parent('.dropdown-menu').addclass('overflow-visible'); }, function() { $(this).parent('.dropdown-menu').removeclass('overflow-visible'); } ); }, cntotc: function() { //简体繁体互换 var b = nekoui['head_nav_neko_11_5_67'].find('.btn-cntotc'); b.on('click', function(event) { var lang = $(this).attr('data-tolang'); if (lang == 'tc') { $('body').s2t(); $(this).attr('data-tolang', 'cn'); $(this).text('简体'); } else if (lang == 'cn') { $('body').t2s(); $(this).attr('data-tolang', 'tc'); $(this).text('繁體'); } }); }, ie9hack: function() { if (!("placeholder" in document.createelement("input"))) { var a = "attachevent"; var b = "on"; if ("addeventlistener" in window) { a = "addeventlistener"; b = "" } window[a](b + "load", function() { var c = { add: function(e) { var f = document.getelementsbytagname(e); for (var d = 0; d < f.length; d++) { this.render(f[d]) } return this }, render: function(e) { var d = e.getattribute("placeholder"); if (!!d) { this.attachevent(e, this.getdiv(e, d)) } }, getdiv: function(e, d) { var f = document.createelement("div"); f.style.position = "absolute"; f.style.width = this.getposition(e, "width") + "px"; f.style.height = this.getposition(e, "height") + "px"; f.style.left = this.getposition(e, "left") + "px"; f.style.top = this.getposition(e, "top") + "px"; f.style.color = "#999"; f.style.textindent = "15px"; f.style.zindex = 1999; f.style.background = e.style.background; f.style.border = e.style.border; f.style.cursor = "text"; f.innerhtml = d; if ("textarea" == e.tagname.touppercase()) { f.style.lineheight = "35px" } else { f.style.lineheight = f.style.height } document.getelementsbytagname("body")[0].appendchild(f); return f }, getposition: function(h, e, g) { var d = "offset" + e; var f = h[d]; var g = g || 0; if (!f && g < 3) { f = this.getposition(h.parentnode, e, ++g) } return f }, attachevent: function(d, e) { d[a](b + "focus", function() { e.style.display = "none" }); d[a](b + "blur", function(f) { if (f.srcelement.value == "") { e.style.display = "" } }); e[a](b + "click", function(f) { f.srcelement.style.display = "none"; d.focus() }) }, }; settimeout(function() { c.add("input").add("textarea") }, 0) }) } } }; var x = new nekoui(nekoui_fun['head_nav_neko_11_5_67']); nekoui_fun['banner_neko_11_4_2'] = { name: 'banner_neko_11_4_2', init: function() { if (nekoui['banner_neko_11_4_2'].length) { var img = nekoui['banner_neko_11_4_2'].find('.cover-image').eq(0), slide = nekoui['banner_neko_11_4_2'].find('.slick-slide'); if (img.length > 0) { var bh = img.data('height').split('|'), fade = img.data('fade'), autoplayspeed = img.data('autoplayspeed'), speed = img.data('speed'); img.imageloadfun(function() { for (var i = 0; i < bh.length; i++) { if (bh[i] == 0) { bh[i] = 'auto'; } } breakpoints.on('md lg', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[0]); } }) breakpoints.on('sm', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[1]); } }) breakpoints.on('xs', { enter: function() { nekoui['banner_neko_11_4_2'].find('.cover-image').height(bh[2]); } }) if (slide.length > 1) { nekoui['banner_neko_11_4_2'].slick({ autoplay: true, autoplayspeed: autoplayspeed, pauseonhover: false, swipe: true, arrow: !1, lazyloadprevnext: true, dots: !0, fade: fade, adaptiveheight: true, cssease: 'ease-out', speed: speed }).on('setposition', function(event, slick) { nekoui['banner_neko_11_4_2'].find('.cover-image').css('display', 'block'); $('.banner_neko_11_4_2 .slick-slide .banner-text').hide(); $('.banner_neko_11_4_2 .slick-slide.slick-active .banner-text').show(); }); } }) } } }, getrgb: function() { /*背景颜色透明*/ var tips = $('.banner_neko_11_4_2-warrper').find('.banner-tips'), background = tips.data('hex'); if (tips.length) { var hex = background.split('|')[0], opacity = background.split('|')[1]; var bgcolor = rgb2color(hex, opacity); tips.css('background', bgcolor); } function rgb2color(hex, opacity) { var reg = /^#([0-9a-fa-f]{3}|[0-9a-fa-f]{6})$/; var c = hex.tolowercase(); if (c && reg.test(c)) { if (c.length === 4) { var a = '#'; for (var i = 1; i < 4; i++) { a += c.slice(i, i + 1).concat(c.slice(i, i + 1)); } c = a; } var b = []; for (var i = 1; i < 7; i += 2) { b.push(parseint('0x' + c.slice(i, i + 2))); } return "rgba(" + b.join(',') + ',' + opacity + ')'; } else { return c } } } }; var banner = nekoui(nekoui_fun['banner_neko_11_4_2']); /*own.js*/ /*! * m['weburl'] 网站网址 * m['lang'] 网站语言 * m['tem'] 模板目录路径 * m['classnow'] 当前栏目id * m['id'] 当前页面id * m['module'] 当前页面所属模块 * default_placeholder 开发者自定义默认图片延迟加载方式,'base64':灰色背景;自定义背景图片路径;'blur':图片高斯模糊;默认为'blur' * neko_prevarrow,neko_nextarrow slick插件翻页按钮自定义html * device_type 客户端判断(d:pc端,t:平板端,m:手机端) */ nekoui_fun['foot_nav_neko_16_1_3'] = { name:'foot_nav_neko_16_1_3', weixin:function (){ // 底部微信 if($('#neko-weixin').length){ var $neko_weixin=$('#neko-weixin'); // breakpoints.on('xs',{ // enter:function(){ // if($neko_weixin.offset().left < 80) $neko_weixin.attr({'data-placement':'right'}); // if($(window).width()-$neko_weixin.offset().left-$neko_weixin.outerwidth() < 80) $neko_weixin.attr({'data-placement':'left'}); // } // }) if($neko_weixin.data('trigger')=='click'){ $neko_weixin.mouseup(function(){ $(this).click(); }); } } }, mnav:function(){ // 底部导航手机端处理 var navl=nekoui['foot_nav_neko_16_1_3'].find('.mob-masonry .masonry-item'), mob_masonry=nekoui['foot_nav_neko_16_1_3'].find('.mob-masonry'); if(navl.length){ breakpoints.get('xs').on({ enter:function(){ mob_masonry.masonry({itemselector:".masonry-item"}); } }); } } }; var x = new nekoui(nekoui_fun['foot_nav_neko_16_1_3']); /*own.js*/ /*! * m['weburl'] 网站网址 * m['lang'] 网站语言 * m['tem'] 模板目录路径 * m['classnow'] 当前栏目id * m['id'] 当前页面id * m['module'] 当前页面所属模块 * default_placeholder 开发者自定义默认图片延迟加载方式,'base64':灰色背景;自定义背景图片路径;'blur':图片高斯模糊;默认为'blur' * neko_prevarrow,neko_nextarrow slick插件翻页按钮自定义html * device_type 客户端判断(d:pc端,t:平板端,m:手机端) */ nekoui_fun['foot_info_neko_11_1_4'] = { name:'foot_info_neko_11_1_4', cntotc:function(){ //简体繁体互换 var b=nekoui['foot_info_neko_11_1_4'].find('.btn-cntotc'); b.on('click', function(event) { var lang=$(this).attr('data-tolang'); if (lang=='tc') { $('body').s2t(); $(this).attr('data-tolang', 'cn'); $(this).text('简体'); } else if(lang=='cn') { $('body').t2s(); $(this).attr('data-tolang', 'tc'); $(this).text('繁體'); } }); }, bg: function() { $('.foot_info_neko_11_1_4_bottom[data-bg]').each(function(index, el) { var background = $(this).attr('data-bg'), hex = background.split('|')[0], hextwo = background.split('|')[1], opacity = background.split('|')[2], bgcolor = rgb2color(hex, opacity), bgcolortwo = rgb2color(hextwo, opacity), ifbotc = $('.foot_info_neko_11_1_4_bottom').data('ifbotc'); if(ifbotc){ $(this).css('background', bgcolor); }else{ $(this).css('background', bgcolortwo); } }); function rgb2color(hex, opacity) { var reg = /^#([0-9a-fa-f]{3}|[0-9a-fa-f]{6})$/; var c = hex.tolowercase(); if (c && reg.test(c)) { if (c.length === 4) { var a = '#'; for (var i = 1; i < 4; i++) { a += c.slice(i, i + 1).concat(c.slice(i, i + 1)); } c = a; } var b = []; for (var i = 1; i < 7; i += 2) { b.push(parseint('0x' + c.slice(i, i + 2))); } return "rgba(" + b.join(',') + ',' + opacity + ')'; } else { return c } } }, padding:function(){ if(nekoui['foot_info_neko_11_1_4'].length){ var h_m=$('.foot_info_neko_11_1_4_bottom').height(); $(window).resize(function(){ pd(); }) function pd(){ if($('.foot_info_neko_11_1_4_bottom').hasclass('iskeshi') || $(window).width()<768){ nekoui['foot_info_neko_11_1_4'].css("padding-bottom",h_m); $(".shop-product-intro .cart-favorite").css("bottom",h_m); } } pd(); } }, qq:function(){ $(".foot_info_neko_11_1_4_bottom .item").each(function(){ var href=$(this).attr("href"); if(href.indexof("http://wpa.qq.com/")>=0){ var patt1 = /uin=\d+&/; var qq=href.match(patt1); if (/(iphone|ipad|ipod|ios)/i.test(navigator.useragent) || /(android)/i.test(navigator.useragent)) { $(this).attr("href","mqqwpa://im/chat?chat_type=wpa&"+qq[0]+"version=1&src_type=web&web_src=oicqzone.com"); } } }); } }; var x = new nekoui(nekoui_fun['foot_info_neko_11_1_4']); /*! * m['weburl'] 网站网址 * m['lang'] 网站语言 * m['tem'] 模板目录路径 * m['classnow'] 当前栏目id * m['id'] 当前页面id * m['module'] 当前页面所属模块 * default_placeholder 开发者自定义默认图片延迟加载方式,'base64':灰色背景;自定义背景图片路径;'blur':图片高斯模糊;默认为'blur' * neko_prevarrow,neko_nextarrow slick插件翻页按钮自定义html * device_type 客户端判断(d:pc端,t:平板端,m:手机端) */ nekoui_fun['back_top_neko_16_1_6'] = { name:'back_top_neko_16_1_6', totop: function() { $(".neko-scroll-top").click(function(){ $('html,body').animate({'scrolltop':0},300); }); // 返回顶部按钮显示/隐藏 $(window).scroll(function(){ if($(this).scrolltop()>$(this).height()){ $(".neko-scroll-top").removeattr('hidden').addclass("animation-slide-bottom"); }else{ $(".neko-scroll-top").attr({hidden:''}).removeclass('animation-slide-bottom'); } }); } }; var banner=nekoui(nekoui_fun['back_top_neko_16_1_6']); nekoui_fun['subcolumn_nav_neko_11_4_74'] = { name: 'subcolumn_nav_neko_11_4_74', init: function() { // 内页子栏目导航水平滚动 if(device_type!='d') $('body').wrapinner('
'); var nav = nekoui['subcolumn_nav_neko_11_4_74'].find('.subcolumn-nav'), ul = nekoui['subcolumn_nav_neko_11_4_74'].find('ul'), li=ul.find('li'), dropdown = ul.find('.dropdown'), w=li.parentwidth(), uw=ul.width(); if (ul.length && w>uw) { ul.navtabswiper(); if (dropdown.length) { nav.css('width', '100%'); $(".swiper-navtab").addclass("overflow-visible"); } } } }; var x = new nekoui(nekoui_fun['subcolumn_nav_neko_11_4_74']); /*own.js*/ /*! * m['weburl'] 网站网址 * m['lang'] 网站语言 * m['tem'] 模板目录路径 * m['classnow'] 当前栏目id * m['id'] 当前页面id * m['module'] 当前页面所属模块 * default_placeholder 开发者自定义默认图片延迟加载方式,'base64':灰色背景;自定义背景图片路径;'blur':图片高斯模糊;默认为'blur' * neko_prevarrow,neko_nextarrow slick插件翻页按钮自定义html * device_type 客户端判断(d:pc端,t:平板端,m:手机端) */ $(function(){ // 侧栏图片列表 var $sidebar_piclist=$('.sidebar-piclist-ul'); if($sidebar_piclist.find('.masonry-child').length>1){ // 图片列表瀑布流 breakpoints.on('xs sm',{ enter:function(){ settimeout(function(){ $sidebar_piclist.masonry({itemselector:".masonry-child"}); },500) } }); } });