!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function n(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t){return"string"==typeof t}function d(t){return"function"==typeof t}function w(t){return"number"==typeof t}function o(t){return void 0===t}function C(t){return"object"==typeof t}function F(t){return!1!==t}function e(){return"undefined"!=typeof window}function A(t){return d(t)||x(t)}function i(t){return(_t=pt(t,oe))&&si}function P(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function E(t,e){return!e&&console.warn(t)}function r(t,e){return t&&(oe[t]=e)&&_t&&(_t[t]=e)||oe}function M(){return 0}function L(t){var e,i,n=t[0];if(C(n)||d(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=de.length;i--&&!de[i].targetTest(n););e=de[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Me(t[i],e)))||t.splice(i,1);return t}function O(t){return t._gsap||L(ge(t))[0]._gsap}function s(t,e,i){return(i=t[e])&&d(i)?t[e]():o(i)&&t.getAttribute&&t.getAttribute(e)||i}function p(t,e){return(t=t.split(",")).forEach(e)||t}function H(t){return Math.round(1e5*t)/1e5||0}function a(t,e,i){var n,o=w(t[1]),r=(o?2:1)+(e<2?0:1),s=t[r];if(o&&(s.duration=t[1]),s.parent=i,e){for(n=s;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=F(i.vars.inherit)&&i.parent;s.immediateRender=F(n.immediateRender),e<2?s.runBackwards=1:s.startAt=t[r-1]}return s}function G(){var t,e,i=se.length,n=se.slice(0);for(ae={},t=se.length=0;t<i;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function l(t,e,i,n){se.length&&G(),t.render(e,i,n),se.length&&G()}function u(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ne).length<2?e:x(t)?t.trim():t}function c(t){return t}function z(t,e){for(var i in e)i in t||(t[i]=e[i]);return t}function h(t,e){for(var i in e)i in t||"duration"===i||"ease"===i||(t[i]=e[i])}function f(t,e){for(var i in e)t[i]=C(e[i])?f(t[i]||(t[i]={}),e[i]):e[i];return t}function $(t,e){var i,n={};for(i in t)i in e||(n[i]=t[i]);return n}function k(t){var e=t.parent||vt,i=t.keyframes?h:z;if(F(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t}function m(t,e,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var o=e._prev,r=e._next;o?o._next=r:t[i]===e&&(t[i]=r),r?r._prev=o:t[n]===e&&(t[n]=o),e._next=e._prev=e.parent=null}function R(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function g(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t}function v(t){return t._repeat?ft(t._tTime,t=t.duration()+t._rDelay)*t:0}function y(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function _(t){return t._end=H(t._start+(t._tDur/Math.abs(t._ts||t._rts||Wt)||0))}function b(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=H(t._dp._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),_(t),i._dirty||g(i,t)),t}function I(t,e){var i;if((e._time||e._initted&&!e._dur)&&(i=y(t.rawTime(),e),(!e._dur||fe(0,e.totalDuration(),i)-e._tTime>Wt)&&e.render(i,!0)),g(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)0<=i.rawTime()&&i.totalTime(i._tTime),i=i._dp;t._zTime=-Wt}}function T(t,e,i,n){return e.parent&&R(e),e._start=H(i+e._delay),e._end=H(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,i,n,o){void 0===i&&(i="_first");var r,s=t[n=void 0===n?"_last":n];if(o)for(r=e[o];s&&s[o]>r;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,n||I(t,e),t}function B(t,e){return(oe.ScrollTrigger||P("scrollTrigger",e))&&oe.ScrollTrigger.create(e,t)}function N(t,e,i,n){return Oe(t,e),!t._initted||!i&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Dt!==_e.frame&&(se.push(t),t._lazy=[e,n])}function W(t,e,i,n){var o=t._repeat,r=H(e)||0,e=t._tTime/t._tDur;return e&&!n&&(t._time*=r/t._dur),t._dur=r,t._tDur=o?o<0?1e10:H(r*(o+1)+t._rDelay*o):r,e&&!n?b(t,t._tTime=t._tDur*e):t.parent&&_(t),i||g(t.parent,t),t}function S(t){return t instanceof Be?g(t):W(t,t._dur)}function j(t,e){var i,n=t.labels,o=t._recent||pe,r=t.duration()>=Nt?o.endTime(!1):t._dur;return x(e)&&(isNaN(e)||e in n)?"<"===(i=e.charAt(0))||">"===i?("<"===i?o._start:o.endTime(0<=o._repeat))+(parseFloat(e.substr(1))||0):(i=e.indexOf("="))<0?(e in n||(n[e]=r),n[e]):(n=+(e.charAt(i-1)+e.substr(i+1)),1<i?j(t,e.substr(0,i-1))+n:r+n):null==e?r:+e}function X(t,e){return t||0===t?e(t):e}function V(t){return(t=(t+"").substr((parseFloat(t)+"").length))&&isNaN(t)?t:""}function q(t,e){return t&&C(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&C(t[0]))&&!t.nodeType&&t!==yt}function U(t){return t.sort(function(){return.5-Math.random()})}function Y(t){if(d(t))return t;var p=C(t)?t:{each:t},f=Ee(p.ease),m=p.from||0,g=parseFloat(p.base)||0,v={},t=0<m&&m<1,y=isNaN(m)||t,b=p.axis,T=m,_=m;return x(m)?T=_={center:.5,edges:.5,end:1}[m]||0:!t&&y&&(T=m[0],_=m[1]),function(t,e,i){var n,o,r,s,a,l,u,c,d=(i||p).length,h=v[d];if(!h){if(!(c="auto"===p.grid?0:(p.grid||[1,Nt])[1])){for(l=-Nt;l<(l=i[c++].getBoundingClientRect().left)&&c<d;);c--}for(h=v[d]=[],n=y?Math.min(c,d)*T-.5:m%c,o=y?d*_/c-.5:m/c|0,u=Nt,a=l=0;a<d;a++)r=a%c-n,s=o-(a/c|0),h[a]=s=b?Math.abs("y"===b?s:r):qt(r*r+s*s),l<s&&(l=s),s<u&&(u=s);"random"===m&&U(h),h.max=l-u,h.min=u,h.v=d=(parseFloat(p.amount)||parseFloat(p.each)*(d<c?d-1:b?"y"===b?d/c:c:Math.max(c,d/c))||0)*("edges"===m?-1:1),h.b=d<0?g-d:g,h.u=V(p.amount||p.each)||0,f=f&&d<0?Ae(f):f}return d=(h[t]-h.min)/h.max||0,H(h.b+(f?f(d):d)*h.v)+h.u}}function K(e){var i=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return Math.floor(Math.round(parseFloat(t)/e)*e*i)/i+(w(t)?0:V(t))}}function Q(l,t){var u,c,e=Qt(l);return!e&&C(l)&&(u=e=l.radius||Nt,l.values?(l=ge(l.values),(c=!w(l[0]))&&(u*=u)):l=K(l.increment)),X(t,e?d(l)?function(t){return c=l(t),Math.abs(c-t)<=u?c:t}:function(t){for(var e,i,n=parseFloat(c?t.x:t),o=parseFloat(c?t.y:0),r=Nt,s=0,a=l.length;a--;)(e=c?(e=l[a].x-n)*e+(i=l[a].y-o)*i:Math.abs(l[a]-n))<r&&(r=e,s=a);return s=!u||r<=u?l[s]:t,c||s===t||w(t)?s:s+V(t)}:K(l))}function Z(t,e,i,n){return X(Qt(t)?!e:!0===i?!!(i=0):!n,function(){return Qt(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t+Math.random()*(e-t))/i)*i*n)/n})}function J(e,i,t){return X(t,function(t){return e[~~i(t)]})}function tt(t){for(var e,i,n,o,r=0,s="";~(e=t.indexOf("random(",r));)n=t.indexOf(")",e),o="["===t.charAt(e+7),i=t.substr(e+7,n-e-7).match(o?ne:Zt),s+=t.substr(r,e-r)+Z(o?i:+i[0],o?0:+i[1],+i[2]||1e-5),r=n+1;return s+t.substr(r,t.length-r)}function et(t,e,i){var n,o,r,s=t.labels,a=Nt;for(n in s)(o=s[n]-e)<0==!!i&&o&&a>(o=Math.abs(o))&&(r=n,a=o);return r}function it(t){return R(t),t.progress()<1&&gt(t,"onInterrupt"),t}function nt(t,e,i){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*ve+.5|0}function ot(t,e,i){var n,o,r,s,a,l,u,c=t?w(t)?[t>>16,t>>8&ve,t&ve]:0:ye.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ye[t])c=ye[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(n=t.charAt(1))+n+(o=t.charAt(2))+o+(r=t.charAt(3))+r),c=[(t=parseInt(t.substr(1),16))>>16,t>>8&ve,t&ve];else if("hsl"===t.substr(0,3))if(c=u=t.match(Zt),e){if(~t.indexOf("="))return c=t.match(Jt),i&&c.length<4&&(c[3]=1),c}else s=+c[0]%360/360,a=c[1]/100,n=2*(l=c[2]/100)-(o=l<=.5?l*(a+1):l+a-l*a),3<c.length&&(c[3]*=1),c[0]=nt(s+1/3,n,o),c[1]=nt(s,n,o),c[2]=nt(s-1/3,n,o);else c=t.match(Zt)||ye.transparent;c=c.map(Number)}return e&&!u&&(n=c[0]/ve,o=c[1]/ve,r=c[2]/ve,l=((t=Math.max(n,o,r))+(e=Math.min(n,o,r)))/2,t===e?s=a=0:(u=t-e,a=.5<l?u/(2-t-e):u/(t+e),s=t===n?(o-r)/u+(o<r?6:0):t===o?(r-n)/u+2:(n-o)/u+4,s*=60),c[0]=~~(s+.5),c[1]=~~(100*a+.5),c[2]=~~(100*l+.5)),i&&c.length<4&&(c[3]=1),c}function rt(t){var e=[],i=[],n=-1;return t.split(be).forEach(function(t){t=t.match(te)||[];e.push.apply(e,t),i.push(n+=t.length+1)}),e.c=i,e}function st(t,e,i){var n,o,r,s,a="",l=(t+a).match(be),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=ot(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),i&&(r=rt(t),(n=i.c).join(a)!==r.c.join(a)))for(s=(o=t.replace(be,"1").split(te)).length-1;c<s;c++)a+=o[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(r.length?r:l.length?l:i).shift());if(!o)for(s=(o=t.split(be)).length-1;c<s;c++)a+=o[c]+l[c];return a+o[s]}function at(t){var e=t.join(" ");if(be.lastIndex=0,be.test(e))return e=Te.test(e),t[1]=st(t[1],e),t[0]=st(t[0],e,rt(t[1])),!0}function lt(t,e){for(var i,n=t._first;n;)n instanceof Be?lt(n,e):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===e||(n.timeline?lt(n.timeline,e):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=e)),n=n._next}function ut(t,e,i,n){void 0===i&&(i=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var o,r={easeIn:e,easeOut:i,easeInOut:n};return p(t,function(t){for(var e in De[t]=oe[t]=r,De[o=t.toLowerCase()]=i,r)De[o+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=De[t+"."+e]=r[e]}),1}function ct(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function dt(i,t,e){function n(t){return 1===t?1:o*Math.pow(2,-10*t)*Yt((t-r)*s)+1}var o=1<=t?t:1,r=(s=(e||(i?.3:.45))/(t<1?t:1))/jt*(Math.asin(1/o)||0),t="out"===i?n:"in"===i?function(t){return 1-n(1-t)}:ct(n),s=jt/s;return t.config=function(t,e){return dt(i,t,e)},t}function ht(e,i){function n(t){return t?--t*t*((i+1)*t+i)+1:0}void 0===i&&(i=1.70158);var t="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:ct(n);return t.config=function(t){return ht(e,t)},t}function pt(t,e){for(var i in e)t[i]=e[i];return t}function ft(t,e){return(t/=e)&&~~t===t?~~t-1:~~t}function mt(e,t,i,n,o){var r=t-e,s=n-i;return X(o,function(t){return i+((t-e)/r*s||0)})}function gt(t,e,i){var n=t.vars,o=n[e];return o&&(e=n[e+"Params"],t=n.callbackScope||t,i&&se.length&&G(),e?o.apply(t,e):o.call(t))}var vt,yt,bt,Tt,_t,St,Dt,wt,Ct,At,Et,xt,Pt,Mt,kt,It,Bt,Ft,Lt,Ot,Ht,Gt,zt,$t={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Rt={duration:.5,overwrite:!1,delay:0},Nt=1e8,Wt=1/Nt,jt=2*Math.PI,Xt=jt/4,Vt=0,qt=Math.sqrt,Ut=Math.cos,Yt=Math.sin,Kt="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Qt=Array.isArray,Zt=/(?:-?\.?\d|\.)+/gi,Jt=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,te=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ee=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,ie=/[+-]=-?[\.\d]+/,ne=/[#\-+.]*\b[a-z\d-=+%.]+/gi,oe={},re={},se=[],ae={},le={},ue={},ce=30,de=[],he="",pe={_start:0,endTime:M},fe=function(t,e,i){return i<t?t:e<i?e:i},me=[].slice,ge=function(t,e){return!x(t)||e||!bt&&Se()?Qt(t)?(i=e,void 0===n&&(n=[]),t.forEach(function(t){return x(t)&&!i||q(t,1)?n.push.apply(n,ge(t)):n.push(t)})||n):q(t)?me.call(t,0):t?[t]:[]:me.call(Tt.querySelectorAll(t),0);var i,n},ve=255,ye={aqua:[0,ve,ve],lime:[0,ve,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ve],navy:[0,0,128],white:[ve,ve,ve],olive:[128,128,0],yellow:[ve,ve,0],orange:[ve,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ve,0,0],pink:[ve,192,203],cyan:[0,ve,ve],transparent:[ve,ve,ve,0]},be=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in ye)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Te=/hsl[a]?\(/,_e=(kt=Date.now,It=500,Bt=33,Ft=kt(),Lt=Ft,Ht=Ot=1e3/240,xt={time:0,frame:0,tick:function(){xe(!0)},deltaRatio:function(t){return Pt/(1e3/(t||60))},wake:function(){St&&(!bt&&e()&&(yt=bt=window,Tt=yt.document||{},oe.gsap=si,(yt.gsapVersions||(yt.gsapVersions=[])).push(si.version),i(_t||yt.GreenSockGlobals||!yt.gsap&&yt||{}),Et=yt.requestAnimationFrame),Ct&&xt.sleep(),At=Et||function(t){return setTimeout(t,Ht-1e3*xt.time+1|0)},wt=1,xe(2))},sleep:function(){(Et?yt.cancelAnimationFrame:clearTimeout)(Ct),wt=0,At=M},lagSmoothing:function(t,e){It=t||1e8,Bt=Math.min(e,It,0)},fps:function(t){Ot=1e3/(t||240),Ht=1e3*xt.time+Ot},add:function(t){Gt.indexOf(t)<0&&Gt.push(t),Se()},remove:function(t){~(t=Gt.indexOf(t))&&Gt.splice(t,1)&&t<=Mt&&Mt--},_listeners:Gt=[]}),Se=function(){return!wt&&_e.wake()},De={},we=/^[\d.\-M][\d.\-,\s]/,Ce=/["']/g,Ae=function(e){return function(t){return 1-e(1-t)}},Ee=function(t,e){return t&&(d(t)?t:De[t]||(r=((i=t)+"").split("("),(s=De[r[0]])&&1<r.length&&s.config?s.config.apply(null,~i.indexOf("{")?[function(t){for(var e,i,n,o={},r=t.substr(1,t.length-3).split(":"),s=r[0],a=1,l=r.length;a<l;a++)i=r[a],e=a!==l-1?i.lastIndexOf(","):i.length,n=i.substr(0,e),o[s]=isNaN(n)?n.replace(Ce,"").trim():+n,s=i.substr(e+1).trim();return o}(r[1])]:(o=(n=i).indexOf("(")+1,t=n.indexOf(")"),r=n.indexOf("(",o),n.substring(o,~r&&r<t?n.indexOf(")",t+1):t).split(",").map(u))):De._CE&&we.test(i)?De._CE("",i):s))||e;var i,n,o,r,s};function xe(t){var e,i,n,o=kt()-Lt,r=!0===t;if(It<o&&(Ft+=o-Bt),(0<(o=(i=(Lt+=o)-Ft)-Ht)||r)&&(n=++xt.frame,Pt=i-1e3*xt.time,xt.time=i/=1e3,Ht+=o+(Ot<=o?4:Ot-o),e=1),r||(Ct=At(xe)),e)for(Mt=0;Mt<Gt.length;Mt++)Gt[Mt](i,Pt,n,t)}function Pe(t){return t<1/2.75?zt*t*t:t<.7272727272727273?zt*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?zt*(t-=2.25/2.75)*t+.9375:zt*Math.pow(t-2.625/2.75,2)+.984375}p("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var i=e<5?e+1:e;ut(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},function(t){return 1-Math.pow(1-t,i)},function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2})}),De.Linear.easeNone=De.none=De.Linear.easeIn,ut("Elastic",dt("in"),dt("out"),dt()),zt=7.5625,ut("Bounce",function(t){return 1-Pe(1-t)},Pe),ut("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),ut("Circ",function(t){return-(qt(1-t*t)-1)}),ut("Sine",function(t){return 1===t?1:1-Ut(t*Xt)}),ut("Back",ht("in"),ht("out"),ht()),De.SteppedEase=De.steps=oe.SteppedEase={config:function(t,e){var i=1/(t=void 0===t?1:t),n=t+(e?0:1),o=e?1:0;return function(t){return((n*fe(0,.99999999,t)|0)+o)*i}}},Rt.ease=De["quad.out"],p("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return he+=t+","+t+"Params,"});var Me=function(t,e){this.id=Vt++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:s,this.set=e?e.getSetter:Ke},ke=((On=Ie.prototype).delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},On.duration=function(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},On.totalDuration=function(t){return arguments.length?(this._dirty=0,W(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},On.totalTime=function(t,e){if(Se(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(b(this,t);i.parent;)i.parent._time!==i._start+(0<=i._ts?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&T(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Wt||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),l(this,t,e)),this},On.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+v(this))%this._dur||(t?this._dur:0),e):this._time},On.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},On.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+v(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},On.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?ft(this._tTime,i)+1:1},On.timeScale=function(t){if(!arguments.length)return this._rts===-Wt?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?y(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-Wt?0:this._rts,function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this.totalTime(fe(-this._delay,this._tDur,e),!0))},On.paused=function(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Se(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=Wt)&&Math.abs(this._zTime)!==Wt))),this):this._ps},On.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||T(e,this,t-this._delay),this}return this._start},On.endTime=function(t){return this._start+(F(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},On.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?y(e.rawTime(t),this):this._tTime:this._tTime},On.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(e._ts||1),e=e._dp;return i},On.repeat=function(t){return arguments.length?(this._repeat=t,S(this)):this._repeat},On.repeatDelay=function(t){return arguments.length?(this._rDelay=t,S(this)):this._rDelay},On.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},On.seek=function(t,e){return this.totalTime(j(this,t),F(e))},On.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,F(e))},On.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},On.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},On.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},On.resume=function(){return this.paused(!1)},On.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-Wt:0)),this):this._rts<0},On.invalidate=function(){return this._initted=0,this._zTime=-Wt,this},On.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<this.endTime(!0)-Wt))},On.eventCallback=function(t,e,i){var n=this.vars;return 1<arguments.length?(e?(n[t]=e,i&&(n[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},On.then=function(n){var o=this;return new Promise(function(e){function t(){var t=o.then;o.then=null,d(i)&&(i=i(o))&&(i.then||i===o)&&(o.then=t),e(i),o.then=t}var i=d(n)?n:c;o._initted&&1===o.totalProgress()&&0<=o._ts||!o._tTime&&o._ts<0?t():o._prom=t})},On.kill=function(){it(this)},Ie);function Ie(t,e){var i=t.parent||vt;this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,W(this,+t.duration,1,1),this.data=t.data,wt||_e.wake(),i&&T(i,this,e||0===e?e:i._time,1),t.reversed&&this.reverse(),t.paused&&this.paused(!0)}z(ke.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Wt,_prom:0,_ps:!1,_rts:1});var Be=function(i){function t(t,e){return(e=i.call(this,t=void 0===t?{}:t,e)||this).labels={},e.smoothChildTiming=!!t.smoothChildTiming,e.autoRemoveChildren=!!t.autoRemoveChildren,e._sort=F(t.sortChildren),e.parent&&I(e.parent,D(e)),t.scrollTrigger&&B(D(e),t.scrollTrigger),e}n(t,i);var e=t.prototype;return e.to=function(t,e,i,n){return new Re(t,a(arguments,0,this),j(this,w(e)?n:i)),this},e.from=function(t,e,i,n){return new Re(t,a(arguments,1,this),j(this,w(e)?n:i)),this},e.fromTo=function(t,e,i,n,o){return new Re(t,a(arguments,2,this),j(this,w(e)?o:n)),this},e.set=function(t,e,i){return e.duration=0,e.parent=this,k(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Re(t,e,j(this,i),1),this},e.call=function(t,e,i){return T(this,Re.delayedCall(0,t,e),j(this,i))},e.staggerTo=function(t,e,i,n,o,r,s){return i.duration=e,i.stagger=i.stagger||n,i.onComplete=r,i.onCompleteParams=s,i.parent=this,new Re(t,i,j(this,o)),this},e.staggerFrom=function(t,e,i,n,o,r,s){return i.runBackwards=1,k(i).immediateRender=F(i.immediateRender),this.staggerTo(t,e,i,n,o,r,s)},e.staggerFromTo=function(t,e,i,n,o,r,s,a){return n.startAt=i,k(n).immediateRender=F(n.immediateRender),this.staggerTo(t,e,n,o,r,s,a)},e.render=function(t,e,i){var n,o,r,s,a,l,u,c,d,h,p=this._time,f=this._dirty?this.totalDuration():this._tDur,m=this._dur,g=this!==vt&&f-Wt<t&&0<=t?f:t<Wt?0:t,v=this._zTime<0!=t<0&&(this._initted||!m);if(g!==this._tTime||i||v){if(p!==this._time&&m&&(g+=this._time-p,t+=this._time-p),n=g,c=this._start,a=!(u=this._ts),v&&(m||(p=this._zTime),!t&&e||(this._zTime=t)),this._repeat&&(y=this._yoyo,n=H(g%(s=m+this._rDelay)),g===f?(r=this._repeat,n=m):((r=~~(g/s))&&r===g/s&&(n=m,r--),m<n&&(n=m)),d=ft(this._tTime,s),y&&1&r&&(n=m-n,h=1),r!==(d=!p&&this._tTime&&d!==r?r:d)&&!this._lock)){var v=y&&1&d,y=v===(y&&1&r),p=(v=r<d?!v:v)?0:m;if(this._lock=1,this.render(p||(h?0:H(r*s)),e,!m)._lock=0,!e&&this.parent&&gt(this,"onRepeat"),this.vars.repeatRefresh&&!h&&(this.invalidate()._lock=1),p!==this._time||a!=!this._ts)return this;if(m=this._dur,f=this._tDur,y&&(this._lock=2,this.render(p=v?m:-1e-4,!0),this.vars.repeatRefresh&&!h&&this.invalidate()),this._lock=0,!this._ts&&!a)return this;lt(this,h)}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,i){var n;if(e<i)for(n=t._first;n&&n._start<=i;){if(!n._dur&&"isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if(!n._dur&&"isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,H(p),H(n)))&&(g-=n-(n=l._start)),this._tTime=g,this._time=n,this._act=!u,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t),p||!n||e||gt(this,"onStart"),p<=n&&0<=t)for(b=this._first;b;){if(o=b._next,(b._act||n>=b._start)&&b._ts&&l!==b){if(b.parent!==this)return this.render(t,e,i);if(b.render(0<b._ts?(n-b._start)*b._ts:(b._dirty?b.totalDuration():b._tDur)+(n-b._start)*b._ts,e,i),n!==this._time||!this._ts&&!a){l=0,o&&(g+=this._zTime=-Wt);break}}b=o}else for(var b=this._last,T=t<0?t:n;b;){if(o=b._prev,(b._act||T<=b._end)&&b._ts&&l!==b){if(b.parent!==this)return this.render(t,e,i);if(b.render(0<b._ts?(T-b._start)*b._ts:(b._dirty?b.totalDuration():b._tDur)+(T-b._start)*b._ts,e,i),n!==this._time||!this._ts&&!a){l=0,o&&(g+=this._zTime=T?-Wt:Wt);break}}b=o}if(l&&!e&&(this.pause(),l.render(p<=n?0:-Wt)._zTime=p<=n?1:-1,this._ts))return this._start=c,_(this),this.render(t,e,i);this._onUpdate&&!e&&gt(this,"onUpdate",!0),(g===f&&f>=this.totalDuration()||!g&&p)&&(c!==this._start&&Math.abs(u)===Math.abs(this._ts)||this._lock||(!t&&m||!(g===f&&0<this._ts||!g&&this._ts<0)||R(this,1),e||t<0&&!p||!g&&!p||(gt(this,g===f?"onComplete":"onReverseComplete",!0),!this._prom||g<f&&0<this.timeScale()||this._prom())))}return this},e.add=function(t,e){var i=this;if(w(e)||(e=j(this,e)),!(t instanceof ke)){if(Qt(t))return t.forEach(function(t){return i.add(t,e)}),this;if(x(t))return this.addLabel(t,e);if(!d(t))return this;t=Re.delayedCall(0,t)}return this!==t?T(this,t,e):this},e.getChildren=function(t,e,i,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=-Nt);for(var o=[],r=this._first;r;)r._start>=n&&(r instanceof Re?e&&o.push(r):(i&&o.push(r),t&&o.push.apply(o,r.getChildren(!0,e,i)))),r=r._next;return o},e.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},e.remove=function(t){return x(t)?this.removeLabel(t):d(t)?this.killTweensOf(t):(m(this,t),t===this._recent&&(this._recent=this._last),g(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=H(_e.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function(t,e){return this.labels[t]=j(this,e),this},e.removeLabel=function(t){return delete this.labels[t],this},e.addPause=function(t,e,i){i=Re.delayedCall(0,e||M,i);return i.data="isPause",this._hasPause=1,T(this,i,j(this,t))},e.removePause=function(t){var e=this._first;for(t=j(this,t);e;)e._start===t&&"isPause"===e.data&&R(e),e=e._next},e.killTweensOf=function(t,e,i){for(var n=this.getTweensOf(t,i),o=n.length;o--;)He!==n[o]&&n[o].kill(t,e);return this},e.getTweensOf=function(t,e){for(var i,n=[],o=ge(t),r=this._first,s=w(e);r;)r instanceof Re?function(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++n<i;);return n<i}(r._targets,o)&&(s?(!He||r._initted&&r._ts)&&r.globalTime(0)<=e&&r.globalTime(r.totalDuration())>e:!e||r.isActive())&&n.push(r):(i=r.getTweensOf(o,e)).length&&n.push.apply(n,i),r=r._next;return n},e.tweenTo=function(t,e){e=e||{};var i=this,n=j(i,t),t=e.startAt,o=e.onStart,r=e.onStartParams,s=Re.to(i,z(e,{ease:"none",lazy:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(t&&"time"in t?t.time:i._time))/i.timeScale())||Wt,onStart:function(){i.pause();var t=e.duration||Math.abs((n-i._time)/i.timeScale());s._dur!==t&&W(s,t,0,1).render(s._time,!0,!0),o&&o.apply(s,r||[])}}));return s},e.tweenFromTo=function(t,e,i){return this.tweenTo(e,z({startAt:{time:j(this,t)}},i))},e.recent=function(){return this._recent},e.nextLabel=function(t){return et(this,j(this,t=void 0===t?this._time:t))},e.previousLabel=function(t){return et(this,j(this,t=void 0===t?this._time:t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Wt)},e.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var n,o=this._first,r=this.labels;o;)o._start>=i&&(o._start+=t,o._end+=t),o=o._next;if(e)for(n in r)r[n]>=i&&(r[n]+=t);return g(this)},e.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return i.prototype.invalidate.call(this)},e.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._time=this._tTime=this._pTime=0,t&&(this.labels={}),g(this)},e.totalDuration=function(t){var e,i,n,o=0,r=this,s=r._last,a=Nt;if(arguments.length)return r.timeScale((r._repeat<0?r.duration():r.totalDuration())/(r.reversed()?-t:t));if(r._dirty){for(n=r.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),a<(i=s._start)&&r._sort&&s._ts&&!r._lock?(r._lock=1,T(r,s,i-s._delay,1)._lock=0):a=i,i<0&&s._ts&&(o-=i,(!n&&!r._dp||n&&n.smoothChildTiming)&&(r._start+=i/r._ts,r._time-=i,r._tTime-=i),r.shiftChildren(-i,!1,-1/0),a=0),s._end>o&&s._ts&&(o=s._end),s=e;W(r,r===vt&&r._time>o?r._time:o,1,1),r._dirty=0}return r._tDur},t.updateRoot=function(t){if(vt._ts&&(l(vt,y(t,vt)),Dt=_e.frame),_e.frame>=ce){ce+=$t.autoSleep||120;var e=vt._first;if((!e||!e._ts)&&$t.autoSleep&&_e._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||_e.sleep()}}},t}(ke);function Fe(t,e,i,n,o,r){var s,a,l,u;if(le[t]&&!1!==(s=new le[t]).init(o,s.rawVars?e[t]:function(t,e,i,n,o){if(!C(t=d(t)?Ge(t,o,e,i,n):t)||t.style&&t.nodeType||Qt(t)||Kt(t))return x(t)?Ge(t,o,e,i,n):t;var r,s={};for(r in t)s[r]=Ge(t[r],o,e,i,n);return s}(e[t],n,o,r,i),i,n,r)&&(i._pt=a=new ei(i._pt,o,t,0,1,s.render,s,0,s.priority),i!==ri))for(l=i._ptLookup[i._targets.indexOf(o)],u=s._props.length;u--;)l[s._props[u]]=a;return s}z(Be.prototype,{_lock:0,_hasPause:0,_forcing:0});function Le(t,e,i,n,o,r,s,a,l){d(n)&&(n=n(o||0,t,r));var o=t[e],r="get"!==i?i:d(o)?l?t[e.indexOf("set")||!d(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():o,i=d(o)?l?Ye:Ue:qe;if(x(n)&&("="===(n=~n.indexOf("random(")?tt(n):n).charAt(1)&&(n=parseFloat(r)+parseFloat(n.substr(2))*("-"===n.charAt(0)?-1:1)+(V(r)||0))),r!==n)return isNaN(r*n)?(o||e in t||P(e,n),function(t,e,i,n,o,r,s){var a,l,u,c,d,h=new ei(this._pt,t,e,0,1,Je,null,o),p=0,f=0;for(h.b=i,h.e=n,i+="",(o=~(n+="").indexOf("random("))&&(n=tt(n)),r&&(r(r=[i,n],t,e),i=r[0],n=r[1]),a=i.match(ee)||[];d=ee.exec(n);)u=d[0],c=n.substring(p,d.index),l?l=(l+1)%5:"rgba("===c.substr(-5)&&(l=1),u!==a[f++]&&(d=parseFloat(a[f-1])||0,h._pt={_next:h._pt,p:c||1===f?c:",",s:d,c:"="===u.charAt(1)?parseFloat(u.substr(2))*("-"===u.charAt(0)?-1:1):parseFloat(u)-d,m:l&&l<4?Math.round:0},p=ee.lastIndex);return h.c=p<n.length?n.substring(p,n.length):"",h.fp=s,(ie.test(n)||o)&&(h.e=0),this._pt=h}.call(this,t,e,r,n,i,a||$t.stringFilter,l)):(i=new ei(this._pt,t,e,+r||0,n-(r||0),"boolean"==typeof o?Ze:Qe,0,i),l&&(i.fp=l),s&&i.modifier(s,this,t),this._pt=i)}function Oe(t,e){var i,n,o,r,s,a,l,u,c,d,h,p,f,m=t.vars,g=m.ease,v=m.startAt,y=m.immediateRender,b=m.lazy,T=m.onUpdate,_=m.onUpdateParams,S=m.callbackScope,D=m.runBackwards,w=m.yoyoEase,C=m.keyframes,A=m.autoRevert,E=t._dur,x=t._startAt,P=t._targets,M=t.parent,k=M&&"nested"===M.data?M.parent._targets:P,I="auto"===t._overwrite,B=t.timeline;if(t._ease=Ee(g=!(!B||C&&g)?"none":g,Rt.ease),t._yEase=w?Ae(Ee(!0===w?g:w,Rt.ease)):0,w&&t._yoyo&&!t._repeat&&(w=t._yEase,t._yEase=t._ease,t._ease=w),!B){if(p=(u=P[0]?O(P[0]).harness:0)&&m[u.prop],i=$(m,re),x&&x.render(-1,!0).kill(),v){if(R(t._startAt=Re.set(P,z({data:"isStart",overwrite:!1,parent:M,immediateRender:!0,lazy:F(b),startAt:null,delay:0,onUpdate:T,onUpdateParams:_,callbackScope:S,stagger:0},v))),y)if(0<e)A||(t._startAt=0);else if(E&&!(e<0&&x))return void(e&&(t._zTime=e))}else if(D&&E)if(x)A||(t._startAt=0);else if(o=z({overwrite:!1,data:"isFromStart",lazy:(y=e?!1:y)&&F(b),immediateRender:y,stagger:0,parent:M},i),p&&(o[u.prop]=p),R(t._startAt=Re.set(P,o)),y){if(!e)return}else Oe(t._startAt,Wt);for(t._pt=0,b=E&&F(b)||b&&!E,n=0;n<P.length;n++){if(l=(s=P[n])._gsap||L(P)[n]._gsap,t._ptLookup[n]=d={},ae[l.id]&&se.length&&G(),h=k===P?n:k.indexOf(s),u&&!1!==(c=new u).init(s,p||i,t,h,k)&&(t._pt=r=new ei(t._pt,s,c.name,0,1,c.render,c,0,c.priority),c._props.forEach(function(t){d[t]=r}),c.priority&&(a=1)),!u||p)for(o in i)le[o]&&(c=Fe(o,i,t,h,s,k))?c.priority&&(a=1):d[o]=r=Le.call(t,s,o,"get",i[o],h,k,0,m.stringFilter);t._op&&t._op[n]&&t.kill(s,t._op[n]),I&&t._pt&&(He=t,vt.killTweensOf(s,d,t.globalTime(0)),f=!t.parent,He=0),t._pt&&b&&(ae[l.id]=1)}a&&ti(t),t._onInit&&t._onInit(t)}t._from=!B&&!!m.runBackwards,t._onUpdate=T,t._initted=(!t._op||t._pt)&&!f}var He,Ge=function(t,e,i,n,o){return d(t)?t.call(e,i,n,o):x(t)&&~t.indexOf("random(")?tt(t):t},ze=he+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",$e=(ze+",id,stagger,delay,duration,paused,scrollTrigger").split(","),Re=function(S){function o(t,e,i,n){var o;"number"==typeof e&&(i.duration=e,e=i,i=null);var r,s,a,l,u,c,d,h,p=(o=S.call(this,n?e:k(e),i)||this).vars,f=p.duration,m=p.delay,g=p.immediateRender,v=p.stagger,y=p.overwrite,b=p.keyframes,n=p.defaults,i=p.scrollTrigger,T=p.yoyoEase,p=o.parent,_=(Qt(t)||Kt(t)?w(t[0]):"length"in e)?[t]:ge(t);if(o._targets=_.length?L(_):E("GSAP target "+t+" not found. https://greensock.com",!$t.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=y,b||v||A(f)||A(m)){if(e=o.vars,(r=o.timeline=new Be({data:"nested",defaults:n||{}})).kill(),r.parent=D(o),b)z(r.vars.defaults,{ease:"none"}),b.forEach(function(t){return r.to(_,t,">")});else{if(l=_.length,d=v?Y(v):M,C(v))for(u in v)~ze.indexOf(u)&&((h=h||{})[u]=v[u]);for(s=0;s<l;s++){for(u in a={},e)$e.indexOf(u)<0&&(a[u]=e[u]);a.stagger=0,T&&(a.yoyoEase=T),h&&pt(a,h),c=_[s],a.duration=+Ge(f,D(o),s,c,_),a.delay=(+Ge(m,D(o),s,c,_)||0)-o._delay,!v&&1===l&&a.delay&&(o._delay=m=a.delay,o._start+=m,a.delay=0),r.to(c,a,d(s,c,_))}r.duration()?f=m=0:o.timeline=0}f||o.duration(f=r.duration())}else o.timeline=0;return!0===y&&(He=D(o),vt.killTweensOf(_),He=0),p&&I(p,D(o)),(g||!f&&!b&&o._start===H(p._time)&&F(g)&&function t(e){return!e||e._ts&&t(e.parent)}(D(o))&&"nested"!==p.data)&&(o._tTime=-Wt,o.render(Math.max(0,-m))),i&&B(D(o),i),o}n(o,S);var t=o.prototype;return t.render=function(t,e,i){var n,o,r,s,a,l,u,c,d,h=this._time,p=this._tDur,f=this._dur,m=p-Wt<t&&0<=t?p:t<Wt?0:t;if(f){if(m!==this._tTime||!t||i||this._startAt&&this._zTime<0!=t<0){if(n=m,c=this.timeline,this._repeat){if(n=H(m%(s=f+this._rDelay)),m===p?(r=this._repeat,n=f):((r=~~(m/s))&&r===m/s&&(n=f,r--),f<n&&(n=f)),(l=this._yoyo&&1&r)&&(d=this._yEase,n=f-n),a=ft(this._tTime,s),n===h&&!i&&this._initted)return this;r!==a&&(c&&this._yEase&&lt(c,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=i=1,this.render(H(s*r),!0).invalidate()._lock=0))}if(!this._initted){if(N(this,t<0?t:n,i,e))return this._tTime=0,this;if(f!==this._dur)return this.render(t,e,i)}for(this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(d||this._ease)(n/f),this._from&&(this.ratio=u=1-u),!n||h||e||gt(this,"onStart"),o=this._pt;o;)o.r(u,o.d),o=o._next;c&&c.render(t<0?t:!n&&l?-Wt:c._dur*u,e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,i),gt(this,"onUpdate")),this._repeat&&r!==a&&this.vars.onRepeat&&!e&&this.parent&&gt(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),!t&&f||!(m===this._tDur&&0<this._ts||!m&&this._ts<0)||R(this,1),e||t<0&&!h||!m&&!h||(gt(this,m===p?"onComplete":"onReverseComplete",!0),!this._prom||m<p&&0<this.timeScale()||this._prom()))}}else!function(t,e,i,n){var o,r,s=t.ratio,a=e<0||!e&&s&&!t._start&&t._zTime>Wt&&!t._dp._lock||(t._ts<0||t._dp._ts<0)&&"isFromStart"!==t.data&&"isStart"!==t.data?0:1,l=t._rDelay,u=0;if(l&&t._repeat&&(u=fe(0,t._tDur,e),ft(u,l)!==(r=ft(t._tTime,l))&&(s=1-a,t.vars.repeatRefresh&&t._initted&&t.invalidate())),a!==s||n||t._zTime===Wt||!e&&t._zTime){if(t._initted||!N(t,e,n,i)){for(r=t._zTime,t._zTime=e||(i?Wt:0),i=i||e&&!r,t.ratio=a,t._from&&(a=1-a),t._time=0,t._tTime=u,i||gt(t,"onStart"),o=t._pt;o;)o.r(a,o.d),o=o._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!i&&gt(t,"onUpdate"),u&&t._repeat&&!i&&t.parent&&gt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===a&&(a&&R(t,1),i||(gt(t,a?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},t.targets=function(){return this._targets},t.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),S.prototype.invalidate.call(this)},t.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return it(this);if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,He&&!0!==He.vars.overwrite)._first||it(this),this.parent&&i!==this.timeline.totalDuration()&&W(this,this._dur*this.timeline._tDur/i,0,1),this}var n,o,r,s,a,l,u,c=this._targets,d=t?ge(t):c,h=this._ptLookup,t=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(c,d))return"all"===e&&(this._pt=0),it(this);for(n=this._op=this._op||[],"all"!==e&&(x(e)&&(a={},p(e,function(t){return a[t]=1}),e=a),e=function(t,e){var i,n,o,r,t=t[0]?O(t[0]).harness:0,s=t&&t.aliases;if(!s)return e;for(n in i=pt({},e),s)if(n in i)for(o=(r=s[n].split(",")).length;o--;)i[r[o]]=i[n];return i}(c,e)),u=c.length;u--;)if(~d.indexOf(c[u]))for(a in o=h[u],"all"===e?(n[u]=e,s=o,r={}):(r=n[u]=n[u]||{},s=e),s)(l=o&&o[a])&&("kill"in l.d&&!0!==l.d.kill(a)||m(this,l,"_pt"),delete o[a]),"all"!==r&&(r[a]=1);return this._initted&&!this._pt&&t&&it(this),this},o.to=function(t,e,i){return new o(t,e,i)},o.from=function(t,e){return new o(t,a(arguments,1))},o.delayedCall=function(t,e,i,n){return new o(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},o.fromTo=function(t,e,i){return new o(t,a(arguments,2))},o.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new o(t,e)},o.killTweensOf=function(t,e,i){return vt.killTweensOf(t,e,i)},o}(ke);function Ne(t,e,i){return t.setAttribute(e,i)}function We(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)}z(Re.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),p("staggerTo,staggerFrom,staggerFromTo",function(i){Re[i]=function(){var t=new Be,e=me.call(arguments,0);return e.splice("staggerFromTo"===i?5:4,0,0),t[i].apply(t,e)}});function je(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next}function Xe(t,e,i,n){for(var o,r=this._pt;r;)o=r._next,r.p===n&&r.modifier(t,e,i),r=o}function Ve(t){for(var e,i,n=this._pt;n;)i=n._next,n.p===t&&!n.op||n.op===t?m(this,n,"_pt"):n.dep||(e=1),n=i;return!e}var qe=function(t,e,i){return t[e]=i},Ue=function(t,e,i){return t[e](i)},Ye=function(t,e,i,n){return t[e](n.fp,i)},Ke=function(t,e){return d(t[e])?Ue:o(t[e])&&t.setAttribute?Ne:qe},Qe=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Ze=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Je=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},ti=function(t){for(var e,i,n,o,r=t._pt;r;){for(e=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:o=r,r=e}t._pt=n},ei=(ii.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=We,this.m=t,this.mt=i,this.tween=e},ii);function ii(t,e,i,n,o,r,s,a,l){this.t=e,this.s=n,this.c=o,this.p=i,this.r=r||Qe,this.d=s||this,this.set=a||qe,this.pr=l||0,(this._next=t)&&(t._prev=this)}p(he+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return re[t]=1}),oe.TweenMax=oe.TweenLite=Re,oe.TimelineLite=oe.TimelineMax=Be,vt=new Be({sortChildren:!1,defaults:Rt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),$t.stringFilter=at;var ni={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(t){var e=(t=!t.name&&t.default||t).name,i=d(t),n=e&&!i&&t.init?function(){this._props=[]}:t,o={init:M,render:je,add:Le,kill:Ve,modifier:Xe,rawVars:0},i={targetTest:0,get:0,getSetter:Ke,aliases:{},register:0};if(Se(),t!==n){if(le[e])return;z(n,z($(t,o),i)),pt(n.prototype,pt(o,$(t,i))),le[n.prop=e]=n,t.targetTest&&(de.push(n),re[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}r(e,n),t.register&&t.register(si,n,ei)})},timeline:function(t){return new Be(t)},getTweensOf:function(t,e){return vt.getTweensOf(t,e)},getProperty:function(n,t,e,i){var o=O((n=x(n)?ge(n)[0]:n)||{}).get,r=e?c:u;return"native"===e&&(e=""),n&&(t?r((le[t]&&le[t].get||o)(n,t,e,i)):function(t,e,i){return r((le[t]&&le[t].get||o)(n,t,e,i))})},quickSetter:function(i,e,n){if(1<(i=ge(i)).length){var o=i.map(function(t){return si.quickSetter(t,e,n)}),r=o.length;return function(t){for(var e=r;e--;)o[e](t)}}i=i[0]||{};var s=le[e],a=O(i),l=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(t){var e=new s;ri._pt=0,e.init(i,n?t+n:t,ri,0,[i]),e.render(1,e),ri._pt&&je(1,ri)}:a.set(i,l);return s?u:function(t){return u(i,l,n?t+n:t,a,1)}},isTweening:function(t){return 0<vt.getTweensOf(t,!0).length},defaults:function(t){return t&&t.ease&&(t.ease=Ee(t.ease,Rt.ease)),f(Rt,t||{})},config:function(t){return f($t,t||{})},registerEffect:function(t){var n=t.name,o=t.effect,e=t.plugins,r=t.defaults,t=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!le[t]&&!oe[t]&&E(n+" effect requires "+t+" plugin.")}),ue[n]=function(t,e,i){return o(ge(t),z(e||{},r),i)},t&&(Be.prototype[n]=function(t,e,i){return this.add(ue[n](t,C(e)?e:(i=e)&&{},this),i)})},registerEase:function(t,e){De[t]=Ee(e)},parseEase:function(t,e){return arguments.length?Ee(t,e):De},getById:function(t){return vt.getById(t)},exportRoot:function(t,e){var i,n,o=new Be(t=void 0===t?{}:t);for(o.smoothChildTiming=F(t.smoothChildTiming),vt.remove(o),o._dp=0,o._time=o._tTime=vt._time,i=vt._first;i;)n=i._next,!e&&!i._dur&&i instanceof Re&&i.vars.onComplete===i._targets[0]||T(o,i,i._start-i._delay),i=n;return T(vt,o,0),o},utils:{wrap:function t(e,i,n){var o=i-e;return Qt(e)?J(e,t(0,e.length),i):X(n,function(t){return(o+(t-e)%o)%o+e})},wrapYoyo:function t(e,i,n){var o=i-e,r=2*o;return Qt(e)?J(e,t(0,e.length-1),i):X(n,function(t){return e+(o<(t=(r+(t-e)%r)%r||0)?r-t:t)})},distribute:Y,random:Z,snap:Q,normalize:function(t,e,i){return mt(t,e,0,1,i)},getUnit:V,clamp:function(e,i,t){return X(t,function(t){return fe(e,i,t)})},splitColor:ot,toArray:ge,mapRange:mt,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function(e,i){return function(t){return e(parseFloat(t))+(i||V(t))}},interpolate:function t(e,i,n,o){var r=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!r){var s,a,l,u,c,d=x(e),h={};if(!0===n&&(o=1)&&(n=null),d)e={p:e},i={p:i};else if(Qt(e)&&!Qt(i)){for(l=[],u=e.length,c=u-2,a=1;a<u;a++)l.push(t(e[a-1],e[a]));u--,r=function(t){t*=u;var e=Math.min(c,~~t);return l[e](t-e)},n=i}else o||(e=pt(Qt(e)?[]:{},e));if(!l){for(s in i)Le.call(h,e,s,"get",i[s]);r=function(t){return je(t,h),d?e.p:e}}}return X(n,r)},shuffle:U},install:i,effects:ue,ticker:_e,updateRoot:Be.updateRoot,plugins:le,globalTimeline:vt,core:{PropTween:ei,globals:r,Tween:Re,Timeline:Be,Animation:ke,getCache:O,_removeLinkedListItem:m}};function oi(t,o){return{name:t,rawVars:1,init:function(t,n,e){e._onInit=function(t){var e,i;if(x(n)&&(e={},p(n,function(t){return e[t]=1}),n=e),o){for(i in e={},n)e[i]=o(n[i]);n=e}!function(t,e){var i,n,o,r=t._targets;for(i in e)for(n=r.length;n--;)(o=(o=t._ptLookup[n][i])&&o.d)&&(o._pt&&(o=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i}(o,i)),o&&o.modifier&&o.modifier(e[i],t,r[n],i))}(t,n)}}}}p("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return ni[t]=Re[t]}),_e.add(Be.updateRoot);var ri=ni.to({},{duration:0}),si=ni.registerPlugin({name:"attr",init:function(t,e,i,n,o){var r,s;for(r in e)(s=this.add(t,"setAttribute",(t.getAttribute(r)||0)+"",e[r],n,o,0,0,r))&&(s.op=r),this._props.push(r)}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i])}},oi("roundProps",K),oi("modifiers"),oi("snap",Q))||ni;function ai(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function li(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function ui(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function ci(t,e){t=e.s+e.c*t;e.set(e.t,e.p,~~(t+(t<0?-.5:.5))+e.u,e)}function di(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function hi(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function pi(t,e,i){return t.style[e]=i}function fi(t,e,i){return t.style.setProperty(e,i)}function mi(t,e,i){return t._gsap[e]=i}function gi(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i}function vi(t,e,i,n,o){t=t._gsap;t.scaleX=t.scaleY=i,t.renderTransform(o,t)}function yi(t,e,i,n,o){t=t._gsap;t[e]=i,t.renderTransform(o,t)}function bi(t,e){e=Hi.createElementNS?Hi.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Hi.createElement(t);return e.style?e:Hi.createElement(t)}function Ti(t,e,i){var n=getComputedStyle(t);return n[e]||n.getPropertyValue(e.replace(pn,"-$1").toLowerCase())||n.getPropertyValue(e)||!i&&Ti(t,Tn(e)||e,1)||""}function _i(){"undefined"!=typeof window&&window.document&&(Gi=(Hi=window.document).documentElement,$i=bi("div")||{style:{}},Ri=bi("div"),vn=Tn(vn),yn=vn+"Origin",$i.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Wi=!!Tn("perspective"),zi=1)}function Si(t){var e,i=bi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,o=this.nextSibling,r=this.style.cssText;if(Gi.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=Si}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return n&&(o?n.insertBefore(this,o):n.appendChild(this)),Gi.removeChild(i),this.style.cssText=r,e}function Di(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])}function wi(e){var i;try{i=e.getBBox()}catch(t){i=Si.call(e,!0)}return!(i=!(i&&(i.width||i.height)||e.getBBox===Si)?Si.call(e,!0):i)||i.width||i.x||i.y?i:{x:+Di(e,["x","cx","x1"])||0,y:+Di(e,["y","cy","y1"])||0,width:0,height:0}}function Ci(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!wi(t))}function Ai(t,e){e&&(t=t.style,e in un&&e!==yn&&(e=vn),t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(pn,"-$1").toLowerCase())):t.removeAttribute(e))}function Ei(t,e,i,n,o,r){r=new ei(t._pt,e,i,0,1,r?hi:di);return(t._pt=r).b=n,r.e=o,t._props.push(i),r}function xi(t,e,i,n){var o=parseFloat(i)||0,r=(i+"").trim().substr((o+"").length)||"px",s=$i.style,a=fn.test(e),l="svg"===t.tagName.toLowerCase(),u=(l?"client":"offset")+(a?"Width":"Height"),c="px"===n,d="%"===n;return n===r||!o||_n[n]||_n[r]?o:("px"===r||c||(o=xi(t,e,i,"px")),i=t.getCTM&&Ci(t),d&&(un[e]||~e.indexOf("adius"))?H(o/(i?t.getBBox()[a?"width":"height"]:t[u])*100):(s[a?"width":"height"]=100+(c?r:n),l=~e.indexOf("adius")||"em"===n&&t.appendChild&&!l?t:t.parentNode,(i=(l=!(l=i?(t.ownerSVGElement||{}).parentNode:l)||l===Hi||!l.appendChild?Hi.body:l)._gsap)&&d&&i.width&&a&&i.time===_e.time?H(o/i.width*100):(!d&&"%"!==r||(s.position=Ti(t,"position")),l===t&&(s.position="static"),l.appendChild($i),t=$i[u],l.removeChild($i),s.position="absolute",a&&d&&((i=O(l)).time=_e.time,i.width=l[u]),H(c?t*o/100:t&&o?100/t*o:0))))}function Pi(t,e,i,n){var o;return zi||_i(),e in gn&&"transform"!==e&&~(e=gn[e]).indexOf(",")&&(e=e.split(",")[0]),un[e]&&"transform"!==e?(o=An(t,n),o="transformOrigin"!==e?o[e]:En(Ti(t,yn))+" "+o.zOrigin+"px"):(o=t.style[e])&&"auto"!==o&&!n&&!~(o+"").indexOf("calc(")||(o=Dn[e]&&Dn[e](t,e,i)||Ti(t,e)||s(t,e)||("opacity"===e?1:0)),i&&!~(o+"").indexOf(" ")?xi(t,e,o,i)+i:o}function Mi(t,e,i,n){var o;i&&"none"!==i||((r=(o=Tn(e,t,1))&&Ti(t,o,1))&&r!==i?(e=o,i=r):"borderColor"===e&&(i=Ti(t,"borderTopColor")));var r,s,a,l,u,c,d,h,p,f,m=new ei(this._pt,t.style,e,0,1,Je),g=0,v=0;if(m.b=i,m.e=n,i+="","auto"==(n+="")&&(t.style[e]=n,n=Ti(t,e)||n,t.style[e]=i),at(r=[i,n]),n=r[1],s=(i=r[0]).match(te)||[],(n.match(te)||[]).length){for(;c=te.exec(n);)h=c[0],d=n.substring(g,c.index),l?l=(l+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(l=1),h!==(u=s[v++]||"")&&(a=parseFloat(u)||0,p=u.substr((a+"").length),(f="="===h.charAt(1)?+(h.charAt(0)+"1"):0)&&(h=h.substr(2)),c=parseFloat(h),h=h.substr((c+"").length),g=te.lastIndex-h.length,h||(h=h||$t.units[e]||p,g===n.length&&(n+=h,m.e+=h)),p!==h&&(a=xi(t,e,u,h)||0),m._pt={_next:m._pt,p:d||1===v?d:",",s:a,c:f?f*c:c-a,m:l&&l<4?Math.round:0});m.c=g<n.length?n.substring(g,n.length):""}else m.r="display"===e&&"none"===n?hi:di;return ie.test(n)&&(m.e=0),this._pt=m}function ki(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,n,o,r=e.t,s=r.style,a=e.u,e=r._gsap;if("all"===a||!0===a)s.cssText="",n=1;else for(o=(a=a.split(",")).length;-1<--o;)i=a[o],un[i]&&(n=1,i="transformOrigin"===i?yn:vn),Ai(r,i);n&&(Ai(r,vn),e&&(e.svg&&r.removeAttribute("transform"),An(r,1),e.uncache=1))}}function Ii(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function Bi(t){t=Ti(t,vn);return Ii(t)?wn:t.substr(7).match(Jt).map(H)}function Fi(t,e){var i,n,o,r=t._gsap||O(t),s=t.style,a=Bi(t);return r.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(a=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?wn:a:(a!==wn||t.offsetParent||t===Gi||r.svg||(n=s.display,s.display="block",(r=t.parentNode)&&t.offsetParent||(o=1,i=t.nextSibling,Gi.appendChild(t)),a=Bi(t),n?s.display=n:Ai(t,"display"),o&&(i?r.insertBefore(t,i):r?r.appendChild(t):Gi.removeChild(t))),e&&6<a.length?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)}function Li(t,e,i,n,o,r){var s,a,l=t._gsap,u=o||Fi(t,!0),c=l.xOrigin||0,d=l.yOrigin||0,h=l.xOffset||0,p=l.yOffset||0,f=u[0],m=u[1],g=u[2],v=u[3],y=u[4],b=u[5],T=e.split(" "),_=parseFloat(T[0])||0,o=parseFloat(T[1])||0;i?u!==wn&&(s=f*v-m*g)&&(a=_*(-m/s)+o*(f/s)-(f*b-m*y)/s,_=_*(v/s)+o*(-g/s)+(g*b-v*y)/s,o=a):(_=(a=wi(t)).x+(~T[0].indexOf("%")?_/100*a.width:_),o=a.y+(~(T[1]||T[0]).indexOf("%")?o/100*a.height:o)),n||!1!==n&&l.smooth?(l.xOffset=h+((y=_-c)*f+(b=o-d)*g)-y,l.yOffset=p+(y*m+b*v)-b):l.xOffset=l.yOffset=0,l.xOrigin=_,l.yOrigin=o,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!i,t.style[yn]="0px 0px",r&&(Ei(r,l,"xOrigin",c,_),Ei(r,l,"yOrigin",d,o),Ei(r,l,"xOffset",h,l.xOffset),Ei(r,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",_+" "+o)}function Oi(t,e,i){var n=V(e);return H(parseFloat(e)+parseFloat(xi(t,"x",i+"px",n)))+n}Re.version=Be.version=si.version="3.5.1",St=1,e()&&Se();var Hi,Gi,zi,$i,Ri,Ni,Wi,ji=De.Power0,Xi=De.Power1,Vi=De.Power2,qi=De.Power3,Ui=De.Power4,Yi=De.Linear,Ki=De.Quad,Qi=De.Cubic,Zi=De.Quart,Ji=De.Quint,tn=De.Strong,en=De.Elastic,nn=De.Back,on=De.SteppedEase,rn=De.Bounce,sn=De.Sine,an=De.Expo,ln=De.Circ,un={},cn=180/Math.PI,dn=Math.PI/180,hn=Math.atan2,pn=/([A-Z])/g,fn=/(?:left|right|width|margin|padding|x)/i,mn=/[\s,\(]\S/,gn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},vn="transform",yn=vn+"Origin",bn="O,Moz,ms,Ms,Webkit".split(","),Tn=function(t,e,i){var n=(e||$i).style,o=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(bn[o]+t in n););return o<0?null:(3===o?"ms":0<=o?bn[o]:"")+t},_n={deg:1,rad:1,turn:1},Sn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Dn={clearProps:function(t,e,i,n,o){if("isFromStart"!==o.data){e=t._pt=new ei(t._pt,e,i,0,0,ki);return e.u=n,e.pr=-10,e.tween=o,t._props.push(i),1}}},wn=[1,0,0,1,0,0],Cn={},An=function(t,e){var i=t._gsap||new Me(t);if("x"in i&&!e&&!i.uncache)return i;var n,o,r,s,a,l,u,c,d,h,p,f,m,g,v,y,b,T,_,S,D,w,C,A,E,x=t.style,P=i.scaleX<0,M="deg",k=Ti(t,yn)||"0",I=n=o=s=a=l=u=c=0,B=r=1;return i.svg=!(!t.getCTM||!Ci(t)),d=Fi(t,i.svg),i.svg&&(T=!i.uncache&&t.getAttribute("data-svg-origin"),Li(t,T||k,!!T||i.originIsAbsolute,!1!==i.smooth,d)),w=i.xOrigin||0,A=i.yOrigin||0,d!==wn&&(f=d[0],m=d[1],g=d[2],v=d[3],I=y=d[4],n=b=d[5],6===d.length?(B=Math.sqrt(f*f+m*m),r=Math.sqrt(v*v+g*g),s=f||m?hn(m,f)*cn:0,(u=g||v?hn(g,v)*cn+s:0)&&(r*=Math.cos(u*dn)),i.svg&&(I-=w-(w*f+A*g),n-=A-(w*m+A*v))):(E=d[6],C=d[7],D=d[8],e=d[9],w=d[10],A=d[11],I=d[12],n=d[13],o=d[14],a=(d=hn(E,w))*cn,d&&(T=y*(h=Math.cos(-d))+D*(p=Math.sin(-d)),_=b*h+e*p,S=E*h+w*p,D=y*-p+D*h,e=b*-p+e*h,w=E*-p+w*h,A=C*-p+A*h,y=T,b=_,E=S),l=(d=hn(-g,w))*cn,d&&(h=Math.cos(-d),A=v*(p=Math.sin(-d))+A*h,f=T=f*h-D*p,m=_=m*h-e*p,g=S=g*h-w*p),s=(d=hn(m,f))*cn,d&&(T=f*(h=Math.cos(d))+m*(p=Math.sin(d)),_=y*h+b*p,m=m*h-f*p,b=b*h-y*p,f=T,y=_),a&&359.9<Math.abs(a)+Math.abs(s)&&(a=s=0,l=180-l),B=H(Math.sqrt(f*f+m*m+g*g)),r=H(Math.sqrt(b*b+E*E)),d=hn(y,b),u=2e-4<Math.abs(d)?d*cn:0,c=A?1/(A<0?-A:A):0),i.svg&&(T=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!Ii(Ti(t,vn)),T&&t.setAttribute("transform",T))),90<Math.abs(u)&&Math.abs(u)<270&&(P?(B*=-1,u+=s<=0?180:-180,s+=s<=0?180:-180):(r*=-1,u+=u<=0?180:-180)),i.x=((i.xPercent=I&&Math.round(t.offsetWidth/2)===Math.round(-I)?-50:0)?0:I)+"px",i.y=((i.yPercent=n&&Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)?0:n)+"px",i.z=o+"px",i.scaleX=H(B),i.scaleY=H(r),i.rotation=H(s)+M,i.rotationX=H(a)+M,i.rotationY=H(l)+M,i.skewX=u+M,i.skewY=0+M,i.transformPerspective=c+"px",(i.zOrigin=parseFloat(k.split(" ")[2])||0)&&(x[yn]=En(k)),i.xOffset=i.yOffset=0,i.force3D=$t.force3D,i.renderTransform=i.svg?Bn:Wi?In:xn,i.uncache=0,i},En=function(t){return(t=t.split(" "))[0]+" "+t[1]},xn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,In(t,e)},Pn="0deg",Mn="0px",kn=") ",In=function(t,e){var i=e||this,n=i.xPercent,o=i.yPercent,r=i.x,s=i.y,a=i.z,l=i.rotation,u=i.rotationY,c=i.rotationX,d=i.skewX,h=i.skewY,p=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,v=i.target,y=i.zOrigin,b="",e="auto"===g&&t&&1!==t||!0===g;!y||c===Pn&&u===Pn||(i=parseFloat(u)*dn,t=Math.sin(i),g=Math.cos(i),i=parseFloat(c)*dn,r=Oi(v,r,t*(t=Math.cos(i))*-y),s=Oi(v,s,-Math.sin(i)*-y),a=Oi(v,a,g*t*-y+y)),m!==Mn&&(b+="perspective("+m+kn),(n||o)&&(b+="translate("+n+"%, "+o+"%) "),!e&&r===Mn&&s===Mn&&a===Mn||(b+=a!==Mn||e?"translate3d("+r+", "+s+", "+a+") ":"translate("+r+", "+s+kn),l!==Pn&&(b+="rotate("+l+kn),u!==Pn&&(b+="rotateY("+u+kn),c!==Pn&&(b+="rotateX("+c+kn),d===Pn&&h===Pn||(b+="skew("+d+", "+h+kn),1===p&&1===f||(b+="scale("+p+", "+f+kn),v.style[vn]=b||"translate(0, 0)"},Bn=function(t,e){var i,n,o,r,s,a=e||this,l=a.xPercent,u=a.yPercent,c=a.x,d=a.y,h=a.rotation,p=a.skewX,f=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,y=a.xOrigin,b=a.yOrigin,T=a.xOffset,_=a.yOffset,S=a.forceCSS,e=parseFloat(c),a=parseFloat(d),h=parseFloat(h),p=parseFloat(p);(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=dn,p*=dn,i=Math.cos(h)*m,n=Math.sin(h)*m,o=Math.sin(h-p)*-g,r=Math.cos(h-p)*g,p&&(f*=dn,s=Math.tan(p-f),o*=s=Math.sqrt(1+s*s),r*=s,f&&(s=Math.tan(f),i*=s=Math.sqrt(1+s*s),n*=s)),i=H(i),n=H(n),o=H(o),r=H(r)):(i=m,r=g,n=o=0),(e&&!~(c+"").indexOf("px")||a&&!~(d+"").indexOf("px"))&&(e=xi(v,"x",c,"px"),a=xi(v,"y",d,"px")),(y||b||T||_)&&(e=H(e+y-(y*i+b*o)+T),a=H(a+b-(y*n+b*r)+_)),(l||u)&&(e=H(e+l/100*(s=v.getBBox()).width),a=H(a+u/100*s.height)),v.setAttribute("transform",s="matrix("+i+","+n+","+o+","+r+","+e+","+a+")"),S&&(v.style[vn]=s)};p("padding,margin,Width,Radius",function(e,i){var t="Right",n="Bottom",o="Left",a=(i<3?["Top",t,n,o]:["Top"+o,"Top"+t,n+t,n+o]).map(function(t){return i<2?e+t:"border"+t+e});Dn[1<i?"border"+e:e]=function(e,t,i,n,o){var r,s;if(arguments.length<4)return r=a.map(function(t){return Pi(e,t,i)}),5===(s=r.join(" ")).split(r[0]).length?r[0]:s;r=(n+"").split(" "),s={},a.forEach(function(t,e){return s[t]=r[e]=r[e]||r[(e-1)/2|0]}),e.init(t,s,o)}});var Fn,Ln={name:"css",register:_i,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,o){var r,s,a,l,u,c,d,h,p,f,m,g,v,y,b,T,_,S,D,w,C,A=this._props,E=t.style;for(u in zi||_i(),e)if("autoRound"!==u&&(s=e[u],!le[u]||!Fe(u,e,i,n,t,o)))if(_=typeof s,T=Dn[u],"function"===_&&(_=typeof(s=s.call(i,n,t,o))),"string"===_&&~s.indexOf("random(")&&(s=tt(s)),T)T(this,t,u,s,i)&&(g=1);else if("--"===u.substr(0,2))this.add(E,"setProperty",getComputedStyle(t).getPropertyValue(u)+"",s+"",n,o,0,0,u);else if("undefined"!==_){if(r=Pi(t,u),l=parseFloat(r),(d="string"===_&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),a=parseFloat(s),u in gn&&("autoAlpha"===u&&Ei(this,E,"visibility",(l=1===l&&"hidden"===Pi(t,"visibility")&&a?0:l)?"inherit":"hidden",a?"inherit":"hidden",!a),"scale"!==u&&"transform"!==u&&~(u=gn[u]).indexOf(",")&&(u=u.split(",")[0])),h=u in un)if(p||((f=t._gsap).renderTransform||An(t),m=!1!==e.smoothOrigin&&f.smooth,(p=this._pt=new ei(this._pt,E,vn,0,1,f.renderTransform,f,0,-1)).dep=1),"scale"===u)this._pt=new ei(this._pt,f,"scaleY",f.scaleY,d?d*a:a-f.scaleY),A.push("scaleY",u),u+="X";else{if("transformOrigin"===u){C=w=D=void 0,D=(S=s).split(" "),w=D[0],C=D[1]||"50%","top"!==w&&"bottom"!==w&&"left"!==C&&"right"!==C||(S=w,w=C,C=S),D[0]=Sn[w]||w,D[1]=Sn[C]||C,s=D.join(" "),f.svg?Li(t,s,0,m,0,this):((c=parseFloat(s.split(" ")[2])||0)!==f.zOrigin&&Ei(this,f,"zOrigin",f.zOrigin,c),Ei(this,E,u,En(r),En(s)));continue}if("svgOrigin"===u){Li(t,s,1,m,0,this);continue}if(u in Cn){v=this,y=f,b=u,T=l,_=d,C=C=w=S=void 0,S=360,w=x(D=s),C=parseFloat(D)*(w&&~D.indexOf("rad")?cn:1),C=T+(_=_?C*_:C-T)+"deg",w&&("short"===(D=D.split("_")[1])&&(_%=S)!=_%180&&(_+=_<0?S:-S),"cw"===D&&_<0?_=(_+36e9)%S-~~(_/S)*S:"ccw"===D&&0<_&&(_=(_-36e9)%S-~~(_/S)*S)),v._pt=_=new ei(v._pt,y,b,T,_,li),_.e=C,_.u="deg",v._props.push(b);continue}if("smoothOrigin"===u){Ei(this,f,"smooth",f.smooth,s);continue}if("force3D"===u){f[u]=s;continue}if("transform"===u){!function(t,e,i){var n,o,r,s,a,l=Ri.style,u=i._gsap;for(o in l.cssText=getComputedStyle(i).cssText+";position:absolute;display:block;",l[vn]=e,Hi.body.appendChild(Ri),n=An(Ri,1),un)(r=u[o])!==(s=n[o])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(o)<0&&(r=V(r)!==(a=V(s))?xi(i,o,r,a):parseFloat(r),s=parseFloat(s),t._pt=new ei(t._pt,u,o,r,s-r,ai),t._pt.u=a||0,t._props.push(o));Hi.body.removeChild(Ri)}(this,s,t);continue}}else u in E||(u=Tn(u)||u);if(h||(a||0===a)&&(l||0===l)&&!mn.test(s)&&u in E)a=a||0,(b=(r+"").substr((l+"").length))!==(c=V(s)||(u in $t.units?$t.units[u]:b))&&(l=xi(t,u,r,c)),this._pt=new ei(this._pt,h?f:E,u,l,d?d*a:a-l,"px"!==c||!1===e.autoRound||h?ai:ci),this._pt.u=c||0,b!==c&&(this._pt.b=r,this._pt.r=ui);else if(u in E)Mi.call(this,t,u,r,s);else{if(!(u in t)){P(u,s);continue}this.add(t,u,t[u],s,n,o)}A.push(u)}g&&ti(this)},get:Pi,aliases:gn,getSetter:function(t,e,i){var n=gn[e];return(e=n&&n.indexOf(",")<0?n:e)in un&&e!==yn&&(t._gsap.x||Pi(t,"x"))?i&&Ni===i?"scale"===e?gi:mi:(Ni=i||{})&&("scale"===e?vi:yi):t.style&&!o(t.style[e])?pi:~e.indexOf("-")?fi:Ke(t,e)},core:{_removeProperty:Ai,_getMatrix:Fi}};si.utils.checkPrefix=Tn,Fn=p("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Hn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){un[t]=1}),p(Hn,function(t){$t.units[t]="deg",Cn[t]=1}),gn[Fn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Hn,p("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){t=t.split(":");gn[t[1]]=Fn[t[0]]}),p("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){$t.units[t]="px"}),si.registerPlugin(Ln);var On=si.registerPlugin(Ln)||si,Hn=On.core.Tween;t.Back=nn,t.Bounce=rn,t.CSSPlugin=Ln,t.Circ=ln,t.Cubic=Qi,t.Elastic=en,t.Expo=an,t.Linear=Yi,t.Power0=ji,t.Power1=Xi,t.Power2=Vi,t.Power3=qi,t.Power4=Ui,t.Quad=Ki,t.Quart=Zi,t.Quint=Ji,t.Sine=sn,t.SteppedEase=on,t.Strong=tn,t.TimelineLite=Be,t.TimelineMax=Be,t.TweenLite=Re,t.TweenMax=Hn,t.default=On,t.gsap=On,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function e(){return"undefined"!=typeof window}function i(){return n||e()&&(n=window.gsap)&&n.registerPlugin&&n}function c(t){return Math.round(1e4*t)/1e4}function d(t){return parseFloat(t||0)}function p(t,e){return d(t.getAttribute(e))}function f(t,e,i,n,o,r){return C(Math.pow((d(i)-d(t))*o,2)+Math.pow((d(n)-d(e))*r,2))}function m(t){return console.warn(t)}function g(t){return"non-scaling-stroke"===t.getAttribute("vector-effect")}function h(t){if(!(t=b(t)[0]))return 0;var e,i,n,o,r=t.tagName.toLowerCase(),s=t.style,a=1,l=1;g(t)&&(l=t.getScreenCTM(),a=C(l.a*l.a+l.b*l.b),l=C(l.d*l.d+l.c*l.c));try{n=t.getBBox()}catch(t){m("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var u=n||{x:0,y:0,width:0,height:0},c=u.x,d=u.y,h=u.width,u=u.height;if(n&&(h||u)||!w[r]||(h=p(t,w[r][0]),u=p(t,w[r][1]),"rect"!==r&&"line"!==r&&(h*=2,u*=2),"line"===r&&(c=p(t,"x1"),d=p(t,"y1"),h=Math.abs(h-c),u=Math.abs(u-d))),"path"===r)n=s.strokeDasharray,s.strokeDasharray="none",e=t.getTotalLength()||0,a!==l&&m("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(a+l)/2,s.strokeDasharray=n;else if("rect"===r)e=2*h*a+2*u*l;else if("line"===r)e=f(c,d,c+h,d+u,a,l);else if("polyline"===r||"polygon"===r)for(i=t.getAttribute("points").match(D)||[],"polygon"===r&&i.push(i[0],i[1]),e=0,o=2;o<i.length;o+=2)e+=f(i[o-2],i[o-1],i[o],i[o+1],a,l)||0;else"circle"!==r&&"ellipse"!==r||(h=h/2*a,u=u/2*l,e=Math.PI*(3*(h+u)-C((3*h+u)*(h+3*u))));return e||0}function v(t,e){if(!(t=b(t)[0]))return[0,0];e=e||h(t)+1;var i=T.getComputedStyle(t),n=i.strokeDasharray||"",t=d(i.strokeDashoffset),i=n.indexOf(",");return e<(n=(i=i<0?n.indexOf(" "):i)<0?e:d(n.substr(0,i))||1e-5)&&(n=e),[Math.max(0,-t),Math.max(0,n-t)]}function y(){e()&&(T=window,S=n=i(),b=n.utils.toArray,_=-1!==((T.navigator||{}).userAgent||"").indexOf("Edge"))}var n,b,T,_,S,D=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,w={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},C=Math.sqrt,o={version:"3.5.1",name:"drawSVG",register:function(t){n=t,y()},init:function(t,e){if(!t.getBBox)return!1;S||y();var i,n,o,r,s,a,l,u=h(t)+1;return this._style=t.style,this._target=t,e+""=="true"?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",o=e,s=(i=v(t,r=u))[0],a=(a=o.indexOf(" "))<0?(l=void 0!==s?s+"":o,o):(l=o.substr(0,a),o.substr(a+1)),l=~l.indexOf("%")?d(l)/100*r:d(l),l=(a=~a.indexOf("%")?d(a)/100*r:d(a))<l?[a,l]:[l,a],this._length=c(u+10),0===i[0]&&0===l[0]?(a=Math.max(1e-5,l[1]-u),this._dash=c(u+a),this._offset=c(u-i[1]+a),this._offsetPT=this.add(this,"_offset",this._offset,c(u-l[1]+a))):(this._dash=c(i[1]-i[0])||1e-6,this._offset=c(-i[0]),this._dashPT=this.add(this,"_dash",this._dash,c(l[1]-l[0])||1e-5),this._offsetPT=this.add(this,"_offset",this._offset,c(-l[0]))),_&&(n=T.getComputedStyle(t)).strokeLinecap!==n.strokeLinejoin&&(l=d(n.strokeMiterlimit),this.add(t.style,"strokeMiterlimit",l,l+.01)),this._live=g(t)||~(e+"").indexOf("live"),this._props.push("drawSVG"),1},render:function(t,e){var i,n,o,r=e._pt,s=e._style;if(r){for(e._live&&(i=h(e._target)+11)!==e._length&&(o=i/e._length,e._length=i,e._offsetPT.s*=o,e._offsetPT.c*=o,e._dashPT?(e._dashPT.s*=o,e._dashPT.c*=o):e._dash*=o);r;)r.r(t,r.d),r=r._next;n=e._dash,o=e._offset,i=e._length,s.strokeDashoffset=e._offset,1!==t&&t?s.strokeDasharray=n+"px,"+i+"px":(n-o<.001&&i-n<=10&&(s.strokeDashoffset=o+1),s.strokeDasharray=o<.001&&i-n<=10?"none":o===n?"0px, 999999px":n+"px,"+i+"px")}},getLength:h,getPosition:v};i()&&n.registerPlugin(o),t.DrawSVGPlugin=o,t.default=o,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";var T=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function $(t){return i.getComputedStyle(t)}function R(t,e){var i;return o(t)?t:"string"==(i=typeof t)&&!e&&t?r.call(q.querySelectorAll(t),0):t&&"object"==i&&"length"in t?r.call(t,0):t?[t]:[]}function N(t){return"absolute"===t.position||!0===t.absolute}function _(t,e){for(var i,n=e.length;-1<--n;)if(i=e[n],t.substr(0,i.length)===i)return i.length}function l(t,e){var i=~(t=void 0===t?"":t).indexOf("++"),n=1;return i&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(i?n++:"")+"'>":">")}}function W(t,e,i){var n=t.nodeType;if(1===n||9===n||11===n)for(t=t.firstChild;t;t=t.nextSibling)W(t,e,i);else 3!==n&&4!==n||(t.nodeValue=t.nodeValue.split(e).join(i))}function j(t,e){for(var i=e.length;-1<--i;)t.push(e[i])}function X(t,e,i){for(var n;t&&t!==e;){if(n=t._next||t.nextSibling)return n.textContent.charAt(0)===i;t=t.parentNode||t._parent}}function V(t,e){return parseFloat(e[t])||0}function u(t,e,i,n,o,r,s){var a,l,u,c,d,h,p,f,m,g,v,y,b=$(t),T=V("paddingLeft",b),_=-999,S=V("borderBottomWidth",b)+V("borderTopWidth",b),D=V("borderLeftWidth",b)+V("borderRightWidth",b),w=V("paddingTop",b)+V("paddingBottom",b),C=V("paddingLeft",b)+V("paddingRight",b),A=V("fontSize",b)*(e.lineThreshold||.2),E=b.textAlign,x=[],P=[],M=[],k=e.wordDelimiter||" ",I=e.tag||(e.span?"span":"div"),b=e.type||e.split||"chars,words,lines",B=o&&~b.indexOf("lines")?[]:null,F=~b.indexOf("words"),L=~b.indexOf("chars"),O=N(e),H=e.linesClass,G=~(H||"").indexOf("++"),z=[];for(G&&(H=H.split("++").join("")),u=(l=t.getElementsByTagName("*")).length,d=[],a=0;a<u;a++)d[a]=l[a];if(B||O)for(a=0;a<u;a++)((h=(c=d[a]).parentNode===t)||O||L&&!F)&&(y=c.offsetTop,B&&h&&Math.abs(y-_)>A&&("BR"!==c.nodeName||0===a)&&(B.push(p=[]),_=y),O&&(c._x=c.offsetLeft,c._y=y,c._w=c.offsetWidth,c._h=c.offsetHeight),B&&((c._isSplit&&h||!L&&h||F&&h||!F&&c.parentNode.parentNode===t&&!c.parentNode._isSplit)&&(p.push(c),c._x-=T,X(c,t,k)&&(c._wordEnd=!0)),"BR"===c.nodeName&&(c.nextSibling&&"BR"===c.nextSibling.nodeName||0===a)&&B.push([])));for(a=0;a<u;a++)h=(c=d[a]).parentNode===t,"BR"!==c.nodeName?(O&&(m=c.style,F||h||(c._x+=c.parentNode._x,c._y+=c.parentNode._y),m.left=c._x+"px",m.top=c._y+"px",m.position="absolute",m.display="block",m.width=c._w+1+"px",m.height=c._h+"px"),!F&&L?c._isSplit?(c._next=c.nextSibling,c.parentNode.appendChild(c)):c.parentNode._isSplit?(c._parent=c.parentNode,!c.previousSibling&&c.firstChild&&(c.firstChild._isFirst=!0),c.nextSibling&&" "===c.nextSibling.textContent&&!c.nextSibling.nextSibling&&z.push(c.nextSibling),c._next=c.nextSibling&&c.nextSibling._isFirst?null:c.nextSibling,c.parentNode.removeChild(c),d.splice(a--,1),u--):h||(y=!c.nextSibling&&X(c.parentNode,t,k),c.parentNode._parent&&c.parentNode._parent.appendChild(c),y&&c.parentNode.appendChild(q.createTextNode(" ")),"span"===I&&(c.style.display="inline"),x.push(c)):c.parentNode._isSplit&&!c._isSplit&&""!==c.innerHTML?P.push(c):L&&!c._isSplit&&("span"===I&&(c.style.display="inline"),x.push(c))):B||O?(c.parentNode&&c.parentNode.removeChild(c),d.splice(a--,1),u--):F||t.appendChild(c);for(a=z.length;-1<--a;)z[a].parentNode.removeChild(z[a]);if(B){for(O&&(g=q.createElement(I),t.appendChild(g),v=g.offsetWidth+"px",y=g.offsetParent===t?0:t.offsetLeft,t.removeChild(g)),m=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(f=" "===k&&(!O||!F&&!L),a=0;a<B.length;a++){for(p=B[a],(g=q.createElement(I)).style.cssText="display:block;text-align:"+E+";position:"+(O?"absolute;":"relative;"),H&&(g.className=H+(G?a+1:"")),M.push(g),u=p.length,l=0;l<u;l++)"BR"!==p[l].nodeName&&(c=p[l],g.appendChild(c),f&&c._wordEnd&&g.appendChild(q.createTextNode(" ")),O&&(0===l&&(g.style.top=c._y+"px",g.style.left=T+y+"px"),c.style.top="0px",y&&(c.style.left=c._x-y+"px")));0===u?g.innerHTML="&nbsp;":F||L||(function t(e){for(var i,n=R(e.childNodes),o=n.length,r=0;r<o;r++)(i=n[r])._isSplit?t(i):(r&&3===i.previousSibling.nodeType?i.previousSibling.nodeValue+=(3===i.nodeType?i:i.firstChild).nodeValue:3!==i.nodeType&&e.insertBefore(i.firstChild,i),e.removeChild(i))}(g),W(g,String.fromCharCode(160)," ")),O&&(g.style.width=v,g.style.height=c._h+"px"),t.appendChild(g)}t.style.cssText=m}O&&(s>t.clientHeight&&(t.style.height=s-w+"px",t.clientHeight<s&&(t.style.height=s+S+"px")),r>t.clientWidth&&(t.style.width=r-C+"px",t.clientWidth<r&&(t.style.width=r+D+"px"))),j(i,x),F&&j(n,P),j(o,M)}function c(t,e,i,n){var o,r,s=R(t.childNodes),a=s.length,l=N(e);if(3!==t.nodeType||1<a){for(e.absolute=!1,o=0;o<a;o++)3===(r=s[o]).nodeType&&!/\S+/.test(r.nodeValue)||(l&&3!==r.nodeType&&"inline"===$(r).display&&(r.style.display="inline-block",r.style.position="relative"),r._isSplit=!0,c(r,e,i,n));return e.absolute=l,t._isSplit=!0,0}!function(t,e,i,n){var o,r,s,a,l,u,c,d=e.tag||(e.span?"span":"div"),h=~(e.type||e.split||"chars,words,lines").indexOf("chars"),p=N(e),f=e.wordDelimiter||" ",m=" "!==f?"":p?"&#173; ":" ",g="</"+d+">",v=1,y=e.specialChars?"function"==typeof e.specialChars?e.specialChars:_:null,b=q.createElement("div");for((p=t.parentNode).insertBefore(b,t),b.textContent=t.nodeValue,p.removeChild(t),b=-1!==(o=function t(e){var i=e.nodeType,n="";if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=t(e)}else if(3===i||4===i)return e.nodeValue;return n}(t=b)).indexOf("<"),!1!==e.reduceWhiteSpace&&(o=o.replace(D," ").replace(S,"")),l=(o=b?o.split("<").join("{{LT}}"):o).length,r=(" "===o.charAt(0)?m:"")+i(),s=0;s<l;s++)if(u=o.charAt(s),y&&(c=y(o.substr(s),e.specialChars)))u=o.substr(s,c||1),r+=h&&" "!==u?n()+u+"</"+d+">":u,s+=c-1;else if(u===f&&o.charAt(s-1)!==f&&s){for(r+=v?g:"",v=0;o.charAt(s+1)===f;)r+=m,s++;s===l-1?r+=m:")"!==o.charAt(s+1)&&(r+=m+i(),v=1)}else"{"===u&&"{{LT}}"===o.substr(s,6)?(r+=h?n()+"{{LT}}</"+d+">":"{{LT}}",s+=5):55296<=u.charCodeAt(0)&&u.charCodeAt(0)<=56319||65024<=o.charCodeAt(s+1)&&o.charCodeAt(s+1)<=65039?(a=((o.substr(s,12).split(T)||[])[1]||"").length||2,r+=h&&" "!==u?n()+o.substr(s,a)+"</"+d+">":o.substr(s,a),s+=a-1):r+=h&&" "!==u?n()+u+"</"+d+">":u;t.outerHTML=r+(v?g:""),b&&W(p,"{{LT}}","<")}(t,e,i,n)}var q,i,n,S=/(?:\r|\n|\t\t)/g,D=/(?:\s\s+)/g,o=Array.isArray,r=[].slice,e=((e=s.prototype).split=function(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e,i,n,o=this.elements.length,r=t.tag||(t.span?"span":"div"),s=l(t.wordsClass,r),a=l(t.charsClass,r);-1<--o;)n=this.elements[o],this._originals[o]=n.innerHTML,e=n.clientHeight,i=n.clientWidth,c(n,t,s,a),u(n,t,this.chars,this.words,this.lines,i,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var i=this._originals;if(!i)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(t,e){return t.innerHTML=i[e]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},s.create=function(t,e){return new s(t,e)},s);function s(t,e){n||(q=document,i=window,n=1),this.elements=R(t),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)}e.version="3.5.1",t.SplitText=e,t.default=e,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function e(){return"undefined"!=typeof window}function i(){return n||e()&&(n=window.gsap)&&n.registerPlugin&&n}function s(t){return"string"==typeof t}function h(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,e="client"+i;return t===p||t===o||t===d?Math.max(o[n],d[n])-(p["inner"+i]||o[e]||d[e]):t[n]-t["offset"+i]}function a(t,e){var i="scroll"+("x"===e?"Left":"Top");return t===p&&(null!=t.pageXOffset?i="page"+e.toUpperCase()+"Offset":t=null!=o[i]?o:d),function(){return t[i]}}function r(t,e){var i=f(t)[0].getBoundingClientRect(),n=!e||e===p||e===d,t=n?{top:o.clientTop-(p.pageYOffset||o.scrollTop||d.scrollTop||0),left:o.clientLeft-(p.pageXOffset||o.scrollLeft||d.scrollLeft||0)}:e.getBoundingClientRect(),t={x:i.left-t.left,y:i.top-t.top};return!n&&e&&(t.x+=a(e,"x")(),t.y+=a(e,"y")()),t}function l(t,e,i,n,o){return isNaN(t)||"object"==typeof t?s(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+n-o:"max"===t?h(e,i)-o:Math.min(h(e,i),r(t,e)[i]-o):parseFloat(t)-o}function u(){n=i(),e()&&n&&document.body&&(p=window,d=document.body,o=document.documentElement,f=n.utils.toArray,n.config({autoKillThreshold:7}),m=n.config(),c=1)}var n,c,p,o,d,f,m,g={version:"3.5.1",name:"scrollTo",rawVars:1,register:function(t){n=t,u()},init:function(t,e,i,n,o){c||u();var r=this;r.isWin=t===p,r.target=t,r.tween=i,"object"!=typeof e?s((e={y:e}).y)&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),r.vars=e,r.autoKill=!!e.autoKill,r.getX=a(t,"x"),r.getY=a(t,"y"),r.x=r.xPrev=r.getX(),r.y=r.yPrev=r.getY(),null!=e.x?(r.add(r,"x",r.x,l(e.x,t,"x",r.x,e.offsetX||0),n,o,Math.round),r._props.push("scrollTo_x")):r.skipX=1,null!=e.y?(r.add(r,"y",r.y,l(e.y,t,"y",r.y,e.offsetY||0),n,o,Math.round),r._props.push("scrollTo_y")):r.skipY=1},render:function(t,e){for(var i,n,o,r=e._pt,s=e.target,a=e.tween,l=e.autoKill,u=e.xPrev,c=e.yPrev,d=e.isWin;r;)r.r(t,r.d),r=r._next;i=d||!e.skipX?e.getX():u,o=(n=d||!e.skipY?e.getY():c)-c,c=i-u,u=m.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),l&&(!e.skipX&&(u<c||c<-u)&&i<h(s,"x")&&(e.skipX=1),!e.skipY&&(u<o||o<-u)&&n<h(s,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(a.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(a,e.vars.onAutoKillParams||[]))),d?p.scrollTo(e.skipX?i:e.x,e.skipY?n:e.y):(e.skipY||(s.scrollTop=e.y),e.skipX||(s.scrollLeft=e.x)),e.xPrev=e.x,e.yPrev=e.y},kill:function(t){var e="scrollTo"===t;!e&&"scrollTo_x"!==t||(this.skipX=1),!e&&"scrollTo_y"!==t||(this.skipY=1)}};g.max=h,g.getOffset=r,g.buildGetter=a,i()&&n.registerPlugin(g),t.ScrollToPlugin=g,t.default=g,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default}),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||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(e,i){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function r(t,e){for(var i in e)t[i]=e[i];return t}function s(t,e,i){if(!(this instanceof s))return new s(t,e,i);var n,o=t;return(o="string"==typeof t?document.querySelectorAll(t):o)?(this.elements=(n=o,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?u.call(n):[n]),this.options=r({},this.options),"function"==typeof e?i=e:r(this.options,e),i&&this.on("always",i),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(o||t))}function i(t){this.img=t}function n(t,e){this.url=t,this.element=e,this.img=new Image}var a=e.jQuery,l=e.console,u=Array.prototype.slice;(s.prototype=Object.create(t.prototype)).options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background)for(var r=t.querySelectorAll(this.options.background),n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}};var c={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){t=new i(t);this.images.push(t)},s.prototype.addBackground=function(t,e){e=new n(t,e);this.images.push(e)},s.prototype.check=function(){function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}var n=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(n.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},n.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((a=t).fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(a(this))})})(),s}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(l){"use strict";var u="animsition",r=!1;l(function(){r=!0});var c={init:function(o){o=l.extend({inClass:"fade-in",outClass:"fade-out",inDuration:1500,outDuration:800,linkElement:".animsition-link",loading:!0,loadingParentElement:"body",loadingClass:"animsition-loading",loadingInner:"",timeout:!1,timeoutCountdown:5e3,onLoadEvent:!0,browser:["animation-duration","-webkit-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body",transition:function(t){window.location.href=t}},o),c.settings={timer:!1,data:{inClass:"animsition-in-class",inDuration:"animsition-in-duration",outClass:"animsition-out-class",outDuration:"animsition-out-duration",overlay:"animsition-overlay"},events:{inStart:"animsition-instart",inEnd:"animsition.inEnd",outStart:"animsition-outstart",outEnd:"animsition.outEnd"}};var t=c.supportCheck.call(this,o);return t||!(0<o.browser.length)||t&&this.length?(c.optionCheck.call(this,o)&&l("."+o.overlayClass).length<=0&&c.addOverlay.call(this,o),o.loading&&l("."+o.loadingClass).length<=0&&c.addLoading.call(this,o),this.each(function(){var n=this,t=l(this),e=l(window),i=l(document);t.data(u)||(o=l.extend({},o),t.data(u,{options:o}),o.timeout&&c.addTimer.call(n),o.onLoadEvent&&(r?(c.settings.timer&&clearTimeout(c.settings.timer),c.in.call(n)):l(function(){c.settings.timer&&clearTimeout(c.settings.timer),c.in.call(n)})),e.on("pageshow."+u,function(t){t.originalEvent.persisted&&c.in.call(n)}),e.on("unload."+u,function(){}),i.on("click."+u,o.linkElement,function(t){t.preventDefault();var e=l(this),i=e.attr("href");2===t.which||t.metaKey||t.shiftKey||-1!==navigator.platform.toUpperCase().indexOf("WIN")&&t.ctrlKey?window.open(i,"_blank"):c.out.call(n,e,i)}))})):("console"in window||(window.console={},window.console.log=function(t){return t}),this.length||console.log("Animsition: Element does not exist on page."),t||console.log("Animsition: Does not support this browser."),c.destroy.call(this))},addOverlay:function(t){l(t.overlayParentElement).prepend('<div class="'+t.overlayClass+'"></div>')},addLoading:function(t){l(t.loadingParentElement).append('<div class="'+t.loadingClass+'">'+t.loadingInner+"</div>")},removeLoading:function(){var t=l(this).data(u).options;l(t.loadingParentElement).children("."+t.loadingClass).fadeOut().remove()},addTimer:function(){var t=this,e=l(this).data(u).options;c.settings.timer=setTimeout(function(){c.in.call(t),l(window).off("load."+u)},e.timeoutCountdown)},supportCheck:function(t){var e=l(this),i=t.browser,n=i.length,o=!1;0===n&&(o=!0);for(var r=0;r<n;r++)if("string"==typeof e.css(i[r])){o=!0;break}return o},optionCheck:function(t){var e=l(this),e=!(!t.overlay&&!e.data(c.settings.data.overlay));return e},animationCheck:function(t,e,i){var n=l(this).data(u).options,o=typeof t,r=e&&"string"==o&&0<t.length;return!e&&"number"==o||r||(e&&i?t=n.inClass:!e&&i?t=n.inDuration:e&&!i?t=n.outClass:e||i||(t=n.outDuration)),t},in:function(){var t=this,e=l(this),i=e.data(u).options,n=e.data(c.settings.data.inDuration),o=e.data(c.settings.data.inClass),r=c.animationCheck.call(t,n,!1,!0),s=c.animationCheck.call(t,o,!0,!0),a=c.optionCheck.call(t,i),o=e.data(u).outClass;i.loading&&c.removeLoading.call(t),o&&e.removeClass(o),setTimeout(function(){(a?c.inOverlay:c.inDefault).call(t,s,r)},5)},inDefault:function(t,e){var i=l(this);i.css({"animation-duration":e+"ms"}).addClass(t).trigger(c.settings.events.inStart).animateCallback(function(){i.removeClass(t).css({opacity:1}).trigger(c.settings.events.inEnd)})},inOverlay:function(t,e){var i=l(this),n=i.data(u).options;i.css({opacity:1}).trigger(c.settings.events.inStart),l(n.overlayParentElement).children("."+n.overlayClass).css({"animation-duration":e+"ms"}).addClass(t).animateCallback(function(){i.trigger(c.settings.events.inEnd)})},out:function(t,e){var i=this,n=l(this),o=n.data(u).options,r=t.data(c.settings.data.outClass),s=n.data(c.settings.data.outClass),a=t.data(c.settings.data.outDuration),t=n.data(c.settings.data.outDuration),t=a||t,s=c.animationCheck.call(i,r||s,!0,!1),t=c.animationCheck.call(i,t,!1,!1),o=c.optionCheck.call(i,o);n.data(u).outClass=s,(o?c.outOverlay:c.outDefault).call(i,s,t,e)},outDefault:function(t,e,i){var n=l(this),o=n.data(u).options;n.css({"animation-duration":e+1+"ms"}).addClass(t).trigger(c.settings.events.outStart).animateCallback(function(){n.trigger(c.settings.events.outEnd),o.transition(i)})},outOverlay:function(t,e,i){var n=l(this),o=n.data(u).options,r=n.data(c.settings.data.inClass),r=c.animationCheck.call(this,r,!0,!0);l(o.overlayParentElement).children("."+o.overlayClass).css({"animation-duration":e+1+"ms"}).removeClass(r).addClass(t).trigger(c.settings.events.outStart).animateCallback(function(){n.trigger(c.settings.events.outEnd),o.transition(i)})},destroy:function(){return this.each(function(){var t=l(this);l(window).off("."+u),t.css({opacity:1}).removeData(u)})}};l.fn.animateCallback=function(e){var i="animationend webkitAnimationEnd";return this.each(function(){var t=l(this);t.on(i,function(){return t.off(i),e.call(this)})})},l.fn.animsition=function(t){return c[t]?c[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void l.error("Method "+t+" does not exist on jQuery."+u):c.init.apply(this,arguments)}});var NEWTON_ITERATIONS=4,NEWTON_MIN_SLOPE=.001,SUBDIVISION_PRECISION=1e-7,SUBDIVISION_MAX_ITERATIONS=10,kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1),float32ArraySupported="function"==typeof Float32Array;function A(t,e){return 1-3*e+3*t}function B(t,e){return 3*e-6*t}function C(t){return 3*t}function calcBezier(t,e,i){return((A(e,i)*t+B(e,i))*t+C(e))*t}function getSlope(t,e,i){return 3*A(e,i)*t*t+2*B(e,i)*t+C(e)}function binarySubdivide(t,e,i,n,o){for(var r,s,a=0;0<(r=calcBezier(s=e+(i-e)/2,n,o)-t)?i=s:e=s,Math.abs(r)>SUBDIVISION_PRECISION&&++a<SUBDIVISION_MAX_ITERATIONS;);return s}function newtonRaphsonIterate(t,e,i,n){for(var o=0;o<NEWTON_ITERATIONS;++o){var r=getSlope(e,i,n);if(0===r)return e;e-=(calcBezier(e,i,n)-t)/r}return e}function BezierEasing(t,e,i,n){if(4===arguments.length)return new BezierEasing([t,e,i,n]);if(!(this instanceof BezierEasing))return new BezierEasing(t);if(!t||4!==t.length)throw new Error("BezierEasing: points must contains 4 values");for(var o=0;o<4;++o)if("number"!=typeof t[o]||isNaN(t[o])||!isFinite(t[o]))throw new Error("BezierEasing: points should be integers.");if(t[0]<0||1<t[0]||t[2]<0||1<t[2])throw new Error("BezierEasing x values must be in [0, 1] range.");this._str="BezierEasing("+t+")",this._css="cubic-bezier("+t+")",this._p=t,this._mSampleValues=new(float32ArraySupported?Float32Array:Array)(kSplineTableSize),this._precomputed=!1,this.get=this.get.bind(this)}BezierEasing.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),e===i&&n===o?t:0===t?0:1===t?1:calcBezier(this._getTForX(t),i,o)},getPoints:function(){return this._p},toString:function(){return this._str},toCSS:function(){return this._css},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<kSplineTableSize;++i)this._mSampleValues[i]=calcBezier(i*kSampleStepSize,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],n=this._mSampleValues,o=0,r=1,s=kSplineTableSize-1;r!==s&&n[r]<=t;++r)o+=kSampleStepSize;var a=o+(t-n[--r])/(n[r+1]-n[r])*kSampleStepSize,l=getSlope(a,e,i);return NEWTON_MIN_SLOPE<=l?newtonRaphsonIterate(t,a,e,i):0===l?a:binarySubdivide(t,o,o+kSampleStepSize,e,i)}},BezierEasing.css={ease:BezierEasing.ease=BezierEasing(.25,.1,.25,1),linear:BezierEasing.linear=BezierEasing(0,0,1,1),"ease-in":BezierEasing.easeIn=BezierEasing(.42,0,1,1),"ease-out":BezierEasing.easeOut=BezierEasing(0,0,.58,1),"ease-in-out":BezierEasing.easeInOut=BezierEasing(.42,0,.58,1)},function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},n.m=i=[function(t,e,i){var n;n=[t,i(7)],void 0!==(i="function"==typeof(i=function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=function(t){return t&&t.__esModule?t:{default:t}}(e),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}(),s=function(){function e(t){i(this,e),this.resolveOptions(t),this.initSelection()}return r(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand (this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),e}();t.exports=s})?i.apply(e,n):i)&&(t.exports=i)},function(t,e,i){var u=i(6),c=i(5);t.exports=function(t,e,i){if(!t&&!e&&!i)throw new Error("Missing required arguments");if(!u.string(e))throw new TypeError("Second argument must be a String");if(!u.fn(i))throw new TypeError("Third argument must be a Function");if(u.node(t))return o=e,r=i,(n=t).addEventListener(o,r),{destroy:function(){n.removeEventListener(o,r)}};var n,o,r,s,a,l;if(u.nodeList(t))return s=t,a=e,l=i,Array.prototype.forEach.call(s,function(t){t.addEventListener(a,l)}),{destroy:function(){Array.prototype.forEach.call(s,function(t){t.removeEventListener(a,l)})}};if(u.string(t))return c(document.body,t,e,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){function i(){}i.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){function n(){o.off(t,n),e.apply(i,arguments)}var o=this;return n._=e,this.on(t,n,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=i.length;n<o;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],o=[];if(n&&e)for(var r=0,s=n.length;r<s;r++)n[r].fn!==e&&n[r].fn._!==e&&o.push(n[r]);return o.length?i[t]=o:delete i[t],this}},t.exports=i},function(t,e,i){var n;n=[t,i(0),i(2),i(1)],void 0!==(i="function"==typeof(i=function(t,e,i,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var i="data-clipboard-"+t;if(e.hasAttribute(i))return e.getAttribute(i)}var u=o(e),c=o(i),d=o(n),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}(),f=function(t){function n(t,e){r(this,n);var i=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return i.resolveOptions(e),i.listenClick(t),i}return a(n,t),p(n,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,d.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,i=!!document.queryCommandSupported;return e.forEach(function(t){i=i&&!!document.queryCommandSupported(t)}),i}}]),n}(c.default);t.exports=f})?i.apply(e,n):i)&&(t.exports=i)},function(t,e){var i;"undefined"==typeof Element||Element.prototype.matches||((i=Element.prototype).matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,i){function r(t,e,i,n,o){var r=function(e,i,t,n){return function(t){t.delegateTarget=s(t.target,i),t.delegateTarget&&n.call(e,t)}}.apply(this,arguments);return t.addEventListener(i,r,o),{destroy:function(){t.removeEventListener(i,r,o)}}}var s=i(4);t.exports=function(t,e,i,n,o){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof i?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return r(t,e,i,n,o)}))}},function(t,i){i.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},i.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||i.node(t[0]))},i.string=function(t){return"string"==typeof t||t instanceof String},i.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e){t.exports=function(t){var e,i="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),i=window.getSelection(),(e=document.createRange()).selectNodeContents(t),i.removeAllRanges(),i.addRange(e),i.toString());return i}}],n.c=o,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3);function n(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var i,o}),function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(l,u,c){(c=c||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){return"string"==typeof t?(e=this,o=t,r=i.call(arguments,1),a="$()."+l+'("'+o+'")',e.each(function(t,e){var i=c.data(e,l);i?(e=i[o])&&"_"!=o.charAt(0)?(i=e.apply(i,r),s=void 0===s?i:s):d(a+" is not a valid method"):d(l+" not initialized. Cannot call methods, i.e. "+a)}),void 0!==s?s:e):(n=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(n),i._init()):(i=new u(e,n),c.data(e,l,i))}),this);var n,e,o,r,s,a},r(c))}function r(t){!t||t&&t.bridget||(t.bridget=o)}return r(e||t.jQuery),o}),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||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function p(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},f=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],m=f.length;function g(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var v,y=!1;function b(t){if(y||(y=!0,(h=document.createElement("div")).style.width="200px",h.style.padding="1px 2px 3px 4px",h.style.borderStyle="solid",h.style.borderWidth="1px 2px 3px 4px",h.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(h),c=g(h),v=200==Math.round(p(c.width)),b.isBoxSizeOuter=v,d.removeChild(h)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=g(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<m;e++)t[f[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,o=0;o<m;o++){var r=f[o],s=e[r],s=parseFloat(s);i[r]=isNaN(s)?0:s}var a=i.paddingLeft+i.paddingRight,l=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,c=i.marginTop+i.marginBottom,d=i.borderLeftWidth+i.borderRightWidth,h=i.borderTopWidth+i.borderBottomWidth,t=n&&v,n=p(e.width);!1!==n&&(i.width=n+(t?0:a+d));n=p(e.height);return!1!==n&&(i.height=n+(t?0:l+h)),i.innerWidth=i.width-(a+d),i.innerHeight=i.height-(l+h),i.outerWidth=i.width+u,i.outerHeight=i.height+c,i}var h,d,c}return b}),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 i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(i,r){var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},l.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=i.console;return l.htmlInit=function(s,a){l.docReady(function(){var t=l.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),t=l.makeArray(e).concat(l.makeArray(t)),o=n+"-options",r=i.jQuery;t.forEach(function(t){var e,i=t.getAttribute(n)||t.getAttribute(o);try{e=i&&JSON.parse(i)}catch(e){return void(u&&u.error("Error parsing "+n+" on "+t.className+": "+e))}i=new s(t,e);r&&r.data(t,a,i)})})},l}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(t){return e(0,t)}):"object"==typeof module&&module.exports?module.exports=e(0,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(0,t.getSize))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){var e;this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length&&(this.x=t.x,e=this.isOriginLeft?"marginLeft":"marginRight",this.firstMargin=t.size[e])},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),t=e?e.size[t]:0,t=this.outerWidth-(this.firstMargin+t);this.target=this.x+this.firstMargin+t*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return e(0,t)}):"object"==typeof module&&module.exports?module.exports=e(0,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(0,t.fizzyUIUtils))}(window,function(t,e){return{startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t,e=this.x;this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating&&(t=this,requestAnimationFrame(function(){t.animate()}))},positionSlider:function(){var t=this.x;this.options.wrapAround&&1<this.cells.length&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;t=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+t+",0,0)":"translateX("+t+")"},dispatchScrollEvent:function(){var t,e=this.slides[0];e&&(e=(t=-this.x-e.target)/this.slidesWidth,this.dispatchEvent("scroll",null,[e,t]))},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);t=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,t,1)},_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var o=t[n];o.wrapShift(0<e?i:0),e-=o.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){var t;this.isDraggable&&this.isPointerDown&&(t=this.dragX-this.x-this.velocity,this.applyForce(t))},applySelectedAttraction:function(){var t;this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length||(t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction,this.applyForce(t))}}}),function(s,a){var t;"function"==typeof define&&define.amd?define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,n,o,r){return a(s,t,e,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=a(s,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate")):(t=s.Flickity,s.Flickity=a(s,s.EvEmitter,s.getSize,s.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype))}(window,function(n,t,e,s,i,a,o){var r=n.jQuery,l=n.getComputedStyle,u=n.console;function c(t,e){for(t=s.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,h={};function p(t,e){var i=s.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var n=h[this.element.flickityGUID];return n.option(e),n}r&&(this.$element=r(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e),this._create()}else u&&u.error("Bad element for Flickity: "+(i||t))}p.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},p.createMethods=[];var f=p.prototype;s.extend(f,t.prototype),f._create=function(){var t,e=this.guid=++d;for(t in this.element.flickityGUID=e,(h[e]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&n.addEventListener("resize",this),this.options.on){var i=this.options.on[t];this.on(t,i)}p.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},f.option=function(t){s.extend(this.options,t)},f.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),c(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},f._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},f._filterFindCellElements=function(t){return s.filterFindElements(t,this.options.cellSelector)},f.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},f._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new i(t,this)},this)},f.getLastCell=function(){return this.cells[this.cells.length-1]},f.getLastSlide=function(){return this.slides[this.slides.length-1]},f.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f._positionCells=function(t){this.maxCellHeight=(t=t||0)&&this.maxCellHeight||0;var e,i=0;0<t&&(i=(e=this.cells[t-1]).x+e.size.outerWidth);for(var n=this.cells.length,o=t;o<n;o++){var r=this.cells[o];r.setPosition(i),i+=r.size.outerWidth,this.maxCellHeight=Math.max(r.size.outerHeight,this.maxCellHeight)}this.slideableWidth=i,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},f._sizeCells=function(t){t.forEach(function(t){t.getSize()})},f.updateSlides=function(){var n,o,r;this.slides=[],this.cells.length&&(n=new a(this),this.slides.push(n),o="left"==this.originSide?"marginRight":"marginLeft",r=this._getCanCellFit(),this.cells.forEach(function(t,e){var i;n.cells.length&&(i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[o]),r.call(this,e,i)||(n.updateTarget(),n=new a(this),this.slides.push(n))),n.addCell(t)},this),n.updateTarget(),this.updateSelectedSlide())},f._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var t="string"==typeof t&&t.match(/^(\d+)%$/),i=t?parseInt(t[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*i}},f._init=f.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return f.setCellAlign=function(){var t=m[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},f.setGallerySize=function(){var t;this.options.setGallerySize&&(t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight,this.viewport.style.height=t+"px")},f._getWrapShiftCells=function(){var t,e;this.options.wrapAround&&(this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells),t=this.cursorPosition,e=this.cells.length-1,this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1))},f._getGapCells=function(t,e,i){for(var n=[];0<t;){var o=this.cells[e];if(!o)break;n.push(o),e+=i,t-=o.size.outerWidth}return n},f._containSlides=function(){var t,e,i,n,o,r;this.options.contain&&!this.options.wrapAround&&this.cells.length&&(t=(e=this.options.rightToLeft)?"marginRight":"marginLeft",e=e?"marginLeft":"marginRight",i=this.slideableWidth-this.getLastCell().size[e],n=i<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[t],r=i-this.size.innerWidth*(1-this.cellAlign),this.slides.forEach(function(t){n?t.target=i*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))},this))},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),r&&this.$element&&(n=t+=this.options.namespaceJQueryEvents?".flickity":"",e&&((e=r.Event(e)).type=t,n=e),this.$element.trigger(n,i))},f.select=function(t,e,i){this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=s.modulo(t,this.slides.length)),this.slides[t])&&(e=this.selectedIndex,this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=e&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect"))},f._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&1<e))return t;var i=s.modulo(t,e),n=Math.abs(i-this.selectedIndex),o=Math.abs(i+e-this.selectedIndex),i=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&o<n?t+=e:!this.isDragSelect&&i<n&&(t-=e),t<0?this.x-=this.slideableWidth:e<=t&&(this.x+=this.slideableWidth)},f.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},f.next=function(t,e){this.select(this.selectedIndex+1,t,e)},f.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),(this.selectedSlide=t).select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectInitialIndex=function(){var t,e=this.options.initialIndex;this.isInitActivated?this.select(this.selectedIndex,!1,!0):e&&"string"==typeof e&&this.queryCell(e)?this.selectCell(e,!1,!0):(t=0,e&&this.slides[e]&&(t=e),this.select(t,!1,!0))},f.selectCell=function(t,e,i){t=this.queryCell(t);t&&(t=this.getCellSlideIndex(t),this.select(t,e,i))},f.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},f.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},f.getCells=function(t){t=s.makeArray(t);var e=[];return t.forEach(function(t){t=this.getCell(t);t&&e.push(t)},this),e},f.getCellElements=function(){return this.cells.map(function(t){return t.element})},f.getParentCell=function(t){return this.getCell(t)||(t=s.getParent(t,".flickity-slider > *"),this.getCell(t))},f.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(i<=1+2*t)return this.getCellElements();for(var n=[],o=e-t;o<=e+t;o++){var r=this.options.wrapAround?s.modulo(o,i):o,r=this.slides[r];r&&(n=n.concat(r.getCellElements()))}return n},f.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#\.]?[\d\/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},f.uiChange=function(){this.emitEvent("uiChange")},f.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},f.onresize=function(){this.watchCSS(),this.resize()},s.debounceMethod(p,"onresize",150),f.resize=function(){var t;this.isActive&&(this.getSize(),this.options.wrapAround&&(this.x=s.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize"),t=this.selectedElements&&this.selectedElements[0],this.selectCell(t,!1,!0))},f.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},f.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;!this.options.accessibility||e||(t=p.keyboardHandlers[t.keyCode])&&t.call(this)},p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},f.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:!0}),n.pageYOffset!=t&&n.scrollTo(n.pageXOffset,t)},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},f.destroy=function(){this.deactivate(),n.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),r&&this.$element&&r.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete h[this.guid]},s.extend(f,o),p.data=function(t){t=(t=s.getQueryElement(t))&&t.flickityGUID;return t&&h[t]},s.htmlInit(p,"flickity"),r&&r.bridget&&r.bridget("flickity",p),p.setJQuery=function(t){r=t},p.Cell=i,p.Slide=a,p}),function(e,i){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.Unipointer=i(e,e.EvEmitter)}(window,function(n,t){function e(){}t=e.prototype=Object.create(t.prototype);t.bindStartEvent=function(t){this._bindStartEvent(t,!0)},t.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},t._bindStartEvent=function(t,e){var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",e="mousedown";n.PointerEvent?e="pointerdown":"ontouchstart"in n&&(e="touchstart"),t[i](e,this)},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},t.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},t.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},t.onpointerdown=function(t){this._pointerDown(t,t)},t._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},t.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var i={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return t._bindPostStartEvents=function(t){t&&((t=i[t.type]).forEach(function(t){n.addEventListener(t,this)},this),this._boundPointerEvents=t)},t._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){n.removeEventListener(t,this)},this),delete this._boundPointerEvents)},t.onmousemove=function(t){this._pointerMove(t,t)},t.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},t.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},t._pointerMove=function(t,e){this.pointerMove(t,e)},t.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},t.onmouseup=function(t){this._pointerUp(t,t)},t.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},t.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},t._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},t.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},t._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},t._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},t.pointerDone=function(){},t.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},t.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},t._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},t.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},e.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},e}),function(e,i){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("unipointer")):e.Unidragger=i(e,e.Unipointer)}(window,function(r,t){function e(){}var i=e.prototype=Object.create(t.prototype);i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(t){for(var e=(t=void 0===t||t)?"addEventListener":"removeEventListener",i=t?this._touchActionValue:"",n=0;n<this.handles.length;n++){var o=this.handles[n];this._bindStartEvent(o,t),o[e]("click",this),r.PointerEvent&&(o.style.touchAction=i)}},i._touchActionValue="none",i.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var n={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return i.okayPointerDown=function(t){var e=n[t.target.nodeName],t=o[t.target.type],t=!e||t;return t||this._pointerReset(),t},i.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},i.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},i._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},i.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},i._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},i._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},i.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},i._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},i.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},i._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},i.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},i.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},i._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},i.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},e.getPointerPoint=t.getPointerPoint,e}),function(n,o){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return o(n,t,e,i)}):"object"==typeof module&&module.exports?module.exports=o(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):n.Flickity=o(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)}(window,function(i,t,e,r){r.extend(t.defaults,{draggable:">1",dragThreshold:3}),t.createMethods.push("_createDrag");var n=t.prototype;r.extend(n,e.prototype),n._touchActionValue="pan-y";var o="createTouch"in document,s=!1;n._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),o&&!s&&(i.addEventListener("touchmove",function(){}),s=!0)},n.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},n.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},n.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=1<this.slides.length:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},n.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},n.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},n._uiChangeDrag=function(){delete this.isFreeScrolling},n.pointerDown=function(t,e){this.isDraggable?this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=l(),i.addEventListener("scroll",this),this._pointerDownDefault(t,e)):this._pointerDownDefault(t,e)},n._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var a={INPUT:!0,TEXTAREA:!0,SELECT:!0};function l(){return{x:i.pageXOffset,y:i.pageYOffset}}return n.pointerDownFocus=function(t){a[t.target.nodeName]||this.focus()},n._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=a[t.target.nodeName];e||i||n||t.preventDefault()},n.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},n.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},n.pointerDone=function(){i.removeEventListener("scroll",this),delete this.pointerDownScroll},n.dragStart=function(t,e){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),i.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[e]))},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},n.dragMove=function(t,e,i){var n,o;this.isDraggable&&(t.preventDefault(),this.previousDragX=this.dragX,o=this.options.rightToLeft?-1:1,this.options.wrapAround&&(i.x=i.x%this.slideableWidth),n=this.dragStartPosition+i.x*o,!this.options.wrapAround&&this.slides.length&&(n=(n=(o=Math.max(-this.slides[0].target,this.dragStartPosition))<n?.5*(n+o):n)<(o=Math.min(-this.getLastSlide().target,this.dragStartPosition))?.5*(n+o):n),this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i]))},n.dragEnd=function(t,e){var i,n;this.isDraggable&&(this.options.freeScroll&&(this.isFreeScrolling=!0),i=this.dragEndRestingSelect(),this.options.freeScroll&&!this.options.wrapAround?(n=this.getRestingPosition(),this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target):this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect()),delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e]))},n.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),e=this._getClosestResting(t,e,-1);return(i.distance<e.distance?i:e).index},n._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,o=1/0,r=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};r(e,o)&&(o=e,null!==(e=this.getSlideDistance(-t,n+=i)));)e=Math.abs(e);return{distance:o,index:n-i}},n.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&1<i,o=n?r.modulo(e,i):e,o=this.slides[o];if(!o)return null;i=n?this.slideableWidth*Math.floor(e/i):0;return t-(o.target+i)},n.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return 0<t&&0<e?1:t<0&&e<0?-1:0},n.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,i=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,i])},n.onscroll=function(){var t=l(),e=this.pointerDownScroll.x-t.x,t=this.pointerDownScroll.y-t.y;(3<Math.abs(e)||3<Math.abs(t))&&this._pointerDone()},t}),function(t,n){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return n(0,t,e,i)}):"object"==typeof module&&module.exports?module.exports=n(0,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):n(0,t.Flickity,t.Unipointer,t.fizzyUIUtils)}(window,function(t,e,i,n){"use strict";var o="http://www.w3.org/2000/svg";function r(t,e){this.direction=t,this.parent=e,this._create()}(r.prototype=Object.create(i.prototype))._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");t=this.createSVG();e.appendChild(t),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},r.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},r.prototype.createSVG=function(){var t=document.createElementNS(o,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e,i=document.createElementNS(o,"path"),e="string"!=typeof(e=this.parent.options.arrowShape)?"M "+e.x0+",50 L "+e.x1+","+(e.y1+50)+" L "+e.x2+","+(e.y2+50)+" L "+e.x3+",50  L "+e.x2+","+(50-e.y2)+" L "+e.x1+","+(50-e.y1)+" Z":e;return i.setAttribute("d",e),i.setAttribute("class","arrow"),this.isLeft||i.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(i),t},r.prototype.handleEvent=n.handleEvent,r.prototype.onclick=function(){var t;this.isEnabled&&(this.parent.uiChange(),t=this.isPrevious?"previous":"next",this.parent[t]())},r.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},r.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},r.prototype.update=function(){var t=this.parent.slides;this.parent.options.wrapAround&&1<t.length?this.enable():(t=t.length?t.length-1:0,t=this.isPrevious?0:t,this[this.parent.selectedIndex==t?"disable":"enable"]())},r.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");n=e.prototype;return n._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new r(-1,this),this.nextButton=new r(1,this),this.on("activate",this.activatePrevNextButtons))},n.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},n.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=r,e}),function(t,n){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return n(0,t,e,i)}):"object"==typeof module&&module.exports?module.exports=n(0,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):n(0,t.Flickity,t.Unipointer,t.fizzyUIUtils)}(window,function(t,e,i,n){function o(t){this.parent=t,this._create()}(o.prototype=Object.create(i.prototype))._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},o.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;0<t?this.addDots(t):t<0&&this.removeDots(-t)},o.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,o=n+t,r=n;r<o;r++){var s=document.createElement("li");s.className="dot",s.setAttribute("aria-label","Page dot "+(r+1)),e.appendChild(s),i.push(s)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},o.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},o.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},o.prototype.onTap=o.prototype.onClick=function(t){t=t.target;"LI"==t.nodeName&&(this.parent.uiChange(),t=this.dots.indexOf(t),this.parent.select(t))},o.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=o,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");n=e.prototype;return n._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},n.activatePageDots=function(){this.pageDots.activate()},n.updateSelectedPageDots=function(){this.pageDots.updateSelected()},n.updatePageDots=function(){this.pageDots.setDots()},n.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=o,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}(n.prototype=Object.create(t.prototype)).play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){var t,e;"playing"==this.state&&(t="number"==typeof(t=this.parent.options.autoPlay)?t:3e3,(e=this).clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t))},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");e=i.prototype;return e._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},e.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},e.playPlayer=function(){this.player.play()},e.stopPlayer=function(){this.player.stop()},e.pausePlayer=function(){this.player.pause()},e.unpausePlayer=function(){this.player.unpause()},e.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},e.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},e.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(t,i){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return i(0,t,e)}):"object"==typeof module&&module.exports?module.exports=i(0,require("./flickity"),require("fizzy-ui-utils")):i(0,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,n){var i=e.prototype;return i.insert=function(t,e){var i,n,o,r,s=this._makeCells(t);s&&s.length&&(n=this.cells.length,e=void 0===e?n:e,o=s,r=document.createDocumentFragment(),o.forEach(function(t){r.appendChild(t.element)}),i=r,(t=e==n)?this.slider.appendChild(i):(o=this.cells[e].element,this.slider.insertBefore(i,o)),0===e?this.cells=s.concat(this.cells):t?this.cells=this.cells.concat(s):(n=this.cells.splice(e,n-e),this.cells=this.cells.concat(s).concat(n)),this._sizeCells(s),this.cellChange(e,!0))},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){var i,t=this.getCells(t);t&&t.length&&(i=this.cells.length-1,t.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i),n.removeFrom(this.cells,t)},this),this.cellChange(i,!0))},i.cellSizeChange=function(t){t=this.getCell(t);t&&(t.getSize(),t=this.cells.indexOf(t),this.cellChange(t))},i.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();i=this.getCell(i);i&&(this.selectedIndex=this.getCellSlideIndex(i)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),function(t,i){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return i(0,t,e)}):"object"==typeof module&&module.exports?module.exports=i(0,require("./flickity"),require("fizzy-ui-utils")):i(0,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,o){"use strict";e.createMethods.push("_createLazyload");var i=e.prototype;function n(t,e){this.img=t,this.flickity=e,this.load()}return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var e,t=this.options.lazyLoad;t&&(t=this.getAdjacentCellElements("number"==typeof t?t:0),e=[],t.forEach(function(t){t=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),i=t.getAttribute("data-flickity-lazyload-src"),n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n)return[t]}t=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return o.makeArray(t)}(t);e=e.concat(t)}),e.forEach(function(t){new n(t,this)},this))},n.prototype.handleEvent=o.handleEvent,n.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},n.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},n.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},n.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),i=i&&i.element;this.flickity.cellSizeChange(i),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,i)},e.LazyLoader=n,e}),function(t){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],t):"object"==typeof module&&module.exports&&(module.exports=t(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}((window,function(t){return t})),function(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)}(window,function(i,n){i.createMethods.push("_createAsNavFor");var t=i.prototype;return t._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t,e=this.options.asNavFor;e&&(t=this,setTimeout(function(){t.setNavCompanion(e)}))},t.setNavCompanion=function(t){t=n.getQueryElement(t);var e,t=i.data(t);t&&t!=this&&(this.navCompanion=t,(e=this).onNavCompanionSelect=function(){e.navCompanionSelect()},t.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0))},t.navCompanionSelect=function(t){var e,i,n=this.navCompanion&&this.navCompanion.selectedCells;n&&(i=n[0],i=(e=this.navCompanion.cells.indexOf(i))+n.length-1,n=Math.floor((i-e)*this.navCompanion.cellAlign+e),this.selectCell(n,!1,t),this.removeNavSelectedElements(),n>=this.cells.length||(i=this.cells.slice(e,1+i),this.navSelectedElements=i.map(function(t){return t.element}),this.changeNavSelectedClass("add")))},t.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})},t.activateAsNavFor=function(){this.navCompanionSelect(!0)},t.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},t.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},t.deactivateAsNavFor=function(){this.removeNavSelectedElements()},t.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},i}),function(e,i){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){var r=e.jQuery,s=e.console;function a(t,e){for(var i in e)t[i]=e[i];return t}var l=Array.prototype.slice;function u(t,e,i){if(!(this instanceof u))return new u(t,e,i);var n,o=t;(o="string"==typeof t?document.querySelectorAll(t):o)?(this.elements=(n=o,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?l.call(n):[n]),this.options=a({},this.options),"function"==typeof e?i=e:a(this.options,e),i&&this.on("always",i),this.getImages(),r&&(this.jqDeferred=new r.Deferred),setTimeout(this.check.bind(this))):s.error("Bad element for imagesLoaded "+(o||t))}(u.prototype=Object.create(t.prototype)).options={},u.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},u.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background)for(var r=t.querySelectorAll(this.options.background),n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}};var c={1:!0,9:!0,11:!0};function i(t){this.img=t}function n(t,e){this.url=t,this.element=e,this.img=new Image}return u.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},u.prototype.addImage=function(t){t=new i(t);this.images.push(t)},u.prototype.addBackground=function(t,e){e=new n(t,e);this.images.push(e)},u.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},u.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&s&&s.log("progress: "+i,t,e)},u.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(n.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},n.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(u.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((r=t).fn.imagesLoaded=function(t,e){return new u(this,t,e).jqDeferred.promise(r(this))})})(),u}),function(t,i){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return i(0,t,e)}):"object"==typeof module&&module.exports?module.exports=i(0,require("flickity"),require("imagesloaded")):t.Flickity=i(0,t.Flickity,t.imagesLoaded)}(window,function(t,e,n){"use strict";e.createMethods.push("_createImagesLoaded");var i=e.prototype;return i._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},i.imagesLoaded=function(){var i;this.options.imagesLoaded&&n((i=this).slider).on("progress",function(t,e){e=i.getParentCell(e.img);i.cellSizeChange(e&&e.element),i.options.freeScroll||i.positionSliderAtSelected()})},e}),function(y){function p(t){if(null===t||t===y)throw TypeError();return Object(t)}var s,a,l,u,c,d,h,t,f,m;function e(t,e,i){Object.defineProperty(t,e,{value:i,writable:!0,enumerable:!1,configurable:!0})}function i(t){try{return(t.sentinel=0)===Object.getOwnPropertyDescriptor(t,"sentinel").value}catch(t){}}"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),1}catch(t){return}}()||(s=Object.defineProperty,a=Object.prototype.hasOwnProperty("__defineGetter__"),l="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(t,e,i){if(s&&(t===window||t===document||t===Element.prototype||t instanceof Element))return s(t,e,i);if(null===t||!(t instanceof Object||"object"==typeof t))throw new TypeError("Object.defineProperty called on non-object");if(!(i instanceof Object))throw new TypeError("Property description must be an object");var n=String(e),o="value"in i||"writable"in i,r="get"in i&&typeof i.get,e="set"in i&&typeof i.set;if(r){if("function"!==r)throw new TypeError("Getter must be a function");if(!a)throw new TypeError("Getters & setters cannot be defined on this javascript engine");if(o)throw new TypeError(l);Object.__defineGetter__.call(t,n,i.get)}else t[n]=i.value;if(e){if("function"!==e)throw new TypeError("Setter must be a function");if(!a)throw new TypeError("Getters & setters cannot be defined on this javascript engine");if(o)throw new TypeError(l);Object.__defineSetter__.call(t,n,i.set)}return"value"in i&&(t[n]=i.value),t}),"bind"in Function.prototype||e(Function.prototype,"bind",function(e){var t=Array,i=Object,n=t.prototype,t=function(){},o=n.slice,r=n.concat,s=n.push,n=Math.max,a=this;if("function"!=typeof a)throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var l,u=o.call(arguments,1),c=n(0,a.length-u.length),d=[],h=0;h<c;h++)s.call(d,"$"+h);return l=Function("binder","return function ("+d.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof l){var t=a.apply(this,r.call(u,o.call(arguments)));return i(t)===t?t:this}return a.apply(e,r.call(u,o.call(arguments)))}),a.prototype&&(t.prototype=a.prototype,l.prototype=new t,t.prototype=null),l}),"getOwnPropertyDescriptor"in Object&&"function"==typeof Object.getOwnPropertyDescriptor&&function(){try{var t={test:0};return 0===Object.getOwnPropertyDescriptor(t,"test").value}catch(t){return}}()||(t=Function.prototype.call,f=Object.prototype,m=t.bind(f.hasOwnProperty),(d=m(f,"__defineGetter__"))&&(u=t.bind(f.__lookupGetter__),c=t.bind(f.__lookupSetter__)),Object.defineProperty&&(t=i({}),("undefined"==typeof document||i(document.createElement("div")))&&t||(h=Object.getOwnPropertyDescriptor)),Object.getOwnPropertyDescriptor&&!h||e(Object,"getOwnPropertyDescriptor",function(t,e){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+t);if(h)try{return h.call(Object,t,e)}catch(t){}if(m(t,e)){var i={enumerable:!0,configurable:!0};if(d){var n=t.__proto__;t.__proto__=f;var o=u(t,e),r=c(t,e);if(t.__proto__=n,o||r)return o&&(i.get=o),r&&(i.set=r),i}return i.value=t[e],i.writable=!0,i}})),"keys"in Object&&function(){return 2===Object.keys(arguments).length}(1,2)&&function(){try{return Object.keys(""),1}catch(t){return}}()||e(Object,"keys",function(){"use strict";function d(t){var e=t.constructor;return e&&e.prototype===t}var h=Object.prototype.hasOwnProperty,p=Object.prototype.toString,t=Object.prototype.propertyIsEnumerable,f=!t.call({toString:null},"toString"),m=t.call(function(){},"prototype"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},v=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!e["$"+t]&&h.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();return function(t){var e,i,n="[object Function]"===p.call(t),i=(e=t,"[object Arguments]"===(i=p.call(e))||"[object Array]"!==i&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===p.call(e.callee)),e="[object String]"===p.call(t),o=[];if(t===y||null===t)throw new TypeError("Cannot convert undefined or null to object");var r=m&&n;if(e&&0<t.length&&!h.call(t,0))for(var s=0;s<t.length;++s)o.push(String(s));if(i&&0<t.length)for(var a=0;a<t.length;++a)o.push(String(a));else for(var l in t)r&&"prototype"===l||!h.call(t,l)||o.push(String(l));if(f)for(var u=function(t){if("undefined"==typeof window||!v)return d(t);try{return d(t)}catch(t){return!1}}(t),c=0;c<g.length;++c)u&&"constructor"===g[c]||!h.call(t,g[c])||o.push(g[c]);return o}}()),"assign"in Object||e(Object,"assign",function(t,e){var i=p(t);if(1===arguments.length)return i;for(var n,o=Array.prototype.slice.call(arguments,1),r=0;r<o.length;r++)for(var s=o[r],a=s===y||null===s?[]:(n=p(s),Object.keys(n)),l=0;l<a.length;l++){var u,c=a[l];try{var d=Object.getOwnPropertyDescriptor(n,c),h=d!==y&&!0===d.enumerable}catch(t){h=Object.prototype.propertyIsEnumerable.call(n,c)}h&&(u=n[c],i[c]=u)}return i})}.call("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Headroom=e()}(this,function(){"use strict";function t(){return"undefined"!=typeof window}function h(t){return(r=t)&&r.document&&9===r.document.nodeType?(r=(i=t).document,n=r.body,o=r.documentElement,{scrollHeight:function(){return Math.max(n.scrollHeight,o.scrollHeight,n.offsetHeight,o.offsetHeight,n.clientHeight,o.clientHeight)},height:function(){return i.innerHeight||o.clientHeight||n.clientHeight},scrollY:function(){return void 0!==i.pageYOffset?i.pageYOffset:(o||n.parentNode||n).scrollTop}}):(e=t,{scrollHeight:function(){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},height:function(){return Math.max(e.offsetHeight,e.clientHeight)},scrollY:function(){return e.scrollTop}});var e,i,n,o,r}function e(t,n,o){var e,i=function(){var e=!1;try{var t={get passive(){e=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}(),r=!1,s=h(t),a=s.scrollY(),l={};function u(){var t=Math.round(s.scrollY()),e=s.height(),i=s.scrollHeight();l.scrollY=t,l.lastScrollY=a,l.direction=a<t?"down":"up",l.distance=Math.abs(t-a),l.isOutOfBounds=t<0||i<t+e,l.top=t<=n.offset,l.bottom=i<=t+e,l.toleranceExceeded=l.distance>n.tolerance[l.direction],o(l),a=t,r=!1}function c(){r||(r=!0,e=requestAnimationFrame(u))}var d=!!i&&{passive:!0,capture:!1};return t.addEventListener("scroll",c,d),u(),{destroy:function(){cancelAnimationFrame(e),t.removeEventListener("scroll",c,d)}}}function i(t,e){e=e||{},Object.assign(this,i.options,e),this.classes=Object.assign({},i.options.classes,e.classes),this.elem=t,this.tolerance=(t=this.tolerance)===Object(t)?t:{down:t,up:t},this.initialised=!1,this.frozen=!1}return i.prototype={constructor:i,init:function(){return i.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=e(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(t){return this.classList.contains(t)},this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},i.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},i.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),i}),function(){"use strict";function t(){this.init()}t.prototype={init:function(){var t=this||y;return t._counter=1e3,t._html5AudioPool=[],t.html5PoolSize=10,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.autoUnlock=!0,t._setup(),t},volume:function(t){var e=this||y;if(t=parseFloat(t),e.ctx||d(),void 0!==t&&0<=t&&t<=1){if(e._volume=t,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t,y.ctx.currentTime);for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var n=e._howls[i]._getSoundIds(),o=0;o<n.length;o++){var r=e._howls[i]._soundById(n[o]);r&&r._node&&(r._node.volume=r._volume*t)}return e}return e._volume},mute:function(t){var e=this||y;e.ctx||d(),e._muted=t,e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t?0:e._volume,y.ctx.currentTime);for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var n=e._howls[i]._getSoundIds(),o=0;o<n.length;o++){var r=e._howls[i]._soundById(n[o]);r&&r._node&&(r._node.muted=!!t||r._muted)}return e},stop:function(){for(var t=this||y,e=0;e<t._howls.length;e++)t._howls[e].stop();return t},unload:function(){for(var t=this||y,e=t._howls.length-1;0<=e;e--)t._howls[e].unload();return t.usingWebAudio&&t.ctx&&void 0!==t.ctx.close&&(t.ctx.close(),t.ctx=null,d()),t},codecs:function(t){return(this||y)._codecs[t.replace(/^x-/,"")]},_setup:function(){var e=this||y;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||y,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var i=t.canPlayType("audio/mpeg;").replace(/^no$/,""),n=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),n=n&&parseInt(n[0].split("/")[1],10)<33;return e._codecs={mp3:!(n||!i&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!i,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var a=this||y;if(!a._audioUnlocked&&a.ctx){a._audioUnlocked=!1,a.autoUnlock=!1,a._mobileUnloaded||44100===a.ctx.sampleRate||(a._mobileUnloaded=!0,a.unload()),a._scratchBuffer=a.ctx.createBuffer(1,1,22050);var l=function(t){for(;a._html5AudioPool.length<a.html5PoolSize;)try{var e=new Audio;e._unlocked=!0,a._releaseHtml5Audio(e)}catch(t){a.noAudio=!0;break}for(var i=0;i<a._howls.length;i++)if(!a._howls[i]._webAudio)for(var n=a._howls[i]._getSoundIds(),o=0;o<n.length;o++){var r=a._howls[i]._soundById(n[o]);r&&r._node&&!r._node._unlocked&&(r._node._unlocked=!0,r._node.load())}a._autoResume();var s=a.ctx.createBufferSource();s.buffer=a._scratchBuffer,s.connect(a.ctx.destination),void 0===s.start?s.noteOn(0):s.start(0),"function"==typeof a.ctx.resume&&a.ctx.resume(),s.onended=function(){s.disconnect(0),a._audioUnlocked=!0,document.removeEventListener("touchstart",l,!0),document.removeEventListener("touchend",l,!0),document.removeEventListener("click",l,!0);for(var t=0;t<a._howls.length;t++)a._howls[t]._emit("unlock")}};return document.addEventListener("touchstart",l,!0),document.addEventListener("touchend",l,!0),document.addEventListener("click",l,!0),a}},_obtainHtml5Audio:function(){var t=this||y;if(t._html5AudioPool.length)return t._html5AudioPool.pop();t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(t){var e=this||y;return t._unlocked&&e._html5AudioPool.push(t),e},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&y.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var i=0;i<e._howls[t]._sounds.length;i++)if(!e._howls[t]._sounds[i]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){var t;e.autoSuspend&&(e._suspendTimer=null,e.state="suspending",t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())},e.ctx.suspend().then(t,t))},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&y.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};function e(t){t.src&&0!==t.src.length?this.init(t):console.error("An array of source files must be passed with any new Howl.")}var y=new t;e.prototype={init:function(t){var e=this;return y.ctx||d(),e._autoplay=t.autoplay||!1,e._format="string"!=typeof t.format?t.format:[t.format],e._html5=t.html5||!1,e._muted=t.mute||!1,e._loop=t.loop||!1,e._pool=t.pool||5,e._preload="boolean"!=typeof t.preload&&"metadata"!==t.preload||t.preload,e._rate=t.rate||1,e._sprite=t.sprite||{},e._src="string"!=typeof t.src?t.src:[t.src],e._volume=void 0!==t.volume?t.volume:1,e._xhr={method:t.xhr&&t.xhr.method?t.xhr.method:"GET",headers:t.xhr&&t.xhr.headers?t.xhr.headers:null,withCredentials:!(!t.xhr||!t.xhr.withCredentials)&&t.xhr.withCredentials},e._duration=0,e._state="unloaded",e._sounds=[],e._endTimers={},e._queue=[],e._playLock=!1,e._onend=t.onend?[{fn:t.onend}]:[],e._onfade=t.onfade?[{fn:t.onfade}]:[],e._onload=t.onload?[{fn:t.onload}]:[],e._onloaderror=t.onloaderror?[{fn:t.onloaderror}]:[],e._onplayerror=t.onplayerror?[{fn:t.onplayerror}]:[],e._onpause=t.onpause?[{fn:t.onpause}]:[],e._onplay=t.onplay?[{fn:t.onplay}]:[],e._onstop=t.onstop?[{fn:t.onstop}]:[],e._onmute=t.onmute?[{fn:t.onmute}]:[],e._onvolume=t.onvolume?[{fn:t.onvolume}]:[],e._onrate=t.onrate?[{fn:t.onrate}]:[],e._onseek=t.onseek?[{fn:t.onseek}]:[],e._onunlock=t.onunlock?[{fn:t.onunlock}]:[],e._onresume=[],e._webAudio=y.usingWebAudio&&!e._html5,void 0!==y.ctx&&y.ctx&&y.autoUnlock&&y._unlockAudio(),y._howls.push(e),e._autoplay&&e._queue.push({event:"play",action:function(){e.play()}}),e._preload&&"none"!==e._preload&&e.load(),e},load:function(){var t=this,e=null;if(!y.noAudio){"string"==typeof t._src&&(t._src=[t._src]);for(var i,n,o=0;o<t._src.length;o++){if(t._format&&t._format[o])i=t._format[o];else{if("string"!=typeof(n=t._src[o])){t._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}i=(i=(i=/^data:audio\/([^;,]+);/i.exec(n))||/\.([^.]+)$/.exec(n.split("?",1)[0]))&&i[1].toLowerCase()}if(i||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),i&&y.codecs(i)){e=t._src[o];break}}return e?(t._src=e,t._state="loading","https:"===window.location.protocol&&"http:"===e.slice(0,5)&&(t._html5=!0,t._webAudio=!1),new r(t),t._webAudio&&a(t),t):void t._emit("loaderror",null,"No codec support for selected audio sources.")}t._emit("loaderror",null,"No audio support.")},play:function(e,i){var n=this,t=null;if("number"==typeof e)t=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var o=0,r=0;r<n._sounds.length;r++)n._sounds[r]._paused&&!n._sounds[r]._ended&&(o++,t=n._sounds[r]._id);1===o?e=null:t=null}}var s=t?n._soundById(t):n._inactiveSound();if(!s)return null;if(t&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var a=s._id;return n._queue.push({event:"play",action:function(){n.play(a)}}),a}if(t&&!s._paused)return i||n._loadQueue("play"),s._id;n._webAudio&&y._autoResume();var l=Math.max(0,0<s._seek?s._seek:n._sprite[e][0]/1e3),u=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-l),c=1e3*u/Math.abs(s._rate),d=n._sprite[e][0]/1e3,h=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;function p(){s._paused=!1,s._seek=l,s._start=d,s._stop=h,s._loop=!(!s._loop&&!n._sprite[e][2])}if(!(h<=l)){var f,m,g,v=s._node;return n._webAudio?(m=function(){n._playLock=!1,p(),n._refreshBuffer(s);var t=s._muted||n._muted?0:s._volume;v.gain.setValueAtTime(t,y.ctx.currentTime),s._playStart=y.ctx.currentTime,void 0===v.bufferSource.start?s._loop?v.bufferSource.noteGrainOn(0,l,86400):v.bufferSource.noteGrainOn(0,l,u):s._loop?v.bufferSource.start(0,l,86400):v.bufferSource.start(0,l,u),c!=1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),c)),i||setTimeout(function(){n._emit("play",s._id),n._loadQueue()},0)},"running"===y.state&&"interrupted"!==y.ctx.state?m():(n._playLock=!0,n.once("resume",m),n._clearTimer(s._id))):(f=function(){v.currentTime=l,v.muted=s._muted||n._muted||y._muted||v.muted,v.volume=s._volume*y.volume(),v.playbackRate=s._rate;try{var t=v.play();if(t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)?(n._playLock=!0,p(),t.then(function(){n._playLock=!1,v._unlocked=!0,i||(n._emit("play",s._id),n._loadQueue())}).catch(function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0})):i||(n._playLock=!1,p(),n._emit("play",s._id),n._loadQueue()),v.playbackRate=s._rate,v.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),c):(n._endTimers[s._id]=function(){n._ended(s),v.removeEventListener("ended",n._endTimers[s._id],!1)},v.addEventListener("ended",n._endTimers[s._id],!1))}catch(t){n._emit("playerror",s._id,t)}},"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===v.src&&(v.src=n._src,v.load()),m=window&&window.ejecta||!v.readyState&&y._navigator.isCocoonJS,3<=v.readyState||m?f():(n._playLock=!0,g=function(){f(),v.removeEventListener(y._canPlayEvent,g,!1)},v.addEventListener(y._canPlayEvent,g,!1),n._clearTimer(s._id))),s._id}n._ended(s)},pause:function(t){var e=this;if("loaded"!==e._state||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(t)}}),e;for(var i=e._getSoundIds(t),n=0;n<i.length;n++){e._clearTimer(i[n]);var o=e._soundById(i[n]);if(o&&!o._paused&&(o._seek=e.seek(i[n]),o._rateSeek=0,o._paused=!0,e._stopFade(i[n]),o._node))if(e._webAudio){if(!o._node.bufferSource)continue;void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),e._cleanBuffer(o._node)}else isNaN(o._node.duration)&&o._node.duration!==1/0||o._node.pause();arguments[1]||e._emit("pause",o?o._id:null)}return e},stop:function(t,e){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"stop",action:function(){i.stop(t)}}),i;for(var n=i._getSoundIds(t),o=0;o<n.length;o++){i._clearTimer(n[o]);var r=i._soundById(n[o]);r&&(r._seek=r._start||0,r._rateSeek=0,r._paused=!0,r._ended=!0,i._stopFade(n[o]),r._node&&(i._webAudio?r._node.bufferSource&&(void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),i._cleanBuffer(r._node)):isNaN(r._node.duration)&&r._node.duration!==1/0||(r._node.currentTime=r._start||0,r._node.pause(),r._node.duration===1/0&&i._clearSound(r._node))),e||i._emit("stop",r._id))}return i},mute:function(t,e){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"mute",action:function(){i.mute(t,e)}}),i;if(void 0===e){if("boolean"!=typeof t)return i._muted;i._muted=t}for(var n=i._getSoundIds(e),o=0;o<n.length;o++){var r=i._soundById(n[o]);r&&(r._muted=t,r._interval&&i._stopFade(r._id),i._webAudio&&r._node?r._node.gain.setValueAtTime(t?0:r._volume,y.ctx.currentTime):r._node&&(r._node.muted=!!y._muted||t),i._emit("mute",r._id))}return i},volume:function(){var t,e,i=this,n=arguments;if(0===n.length)return i._volume;if(1===n.length||2===n.length&&void 0===n[1]?0<=i._getSoundIds().indexOf(n[0])?o=parseInt(n[0],10):t=parseFloat(n[0]):2<=n.length&&(t=parseFloat(n[0]),o=parseInt(n[1],10)),!(void 0!==t&&0<=t&&t<=1))return(e=o?i._soundById(o):i._sounds[0])?e._volume:0;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,n)}}),i;void 0===o&&(i._volume=t);for(var o=i._getSoundIds(o),r=0;r<o.length;r++)(e=i._soundById(o[r]))&&(e._volume=t,n[2]||i._stopFade(o[r]),i._webAudio&&e._node&&!e._muted?e._node.gain.setValueAtTime(t,y.ctx.currentTime):e._node&&!e._muted&&(e._node.volume=t*y.volume()),i._emit("volume",e._id));return i},fade:function(t,e,i,n){var o=this;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"fade",action:function(){o.fade(t,e,i,n)}}),o;t=Math.min(Math.max(0,parseFloat(t)),1),e=Math.min(Math.max(0,parseFloat(e)),1),i=parseFloat(i),o.volume(t,n);for(var r=o._getSoundIds(n),s=0;s<r.length;s++){var a,l,u=o._soundById(r[s]);u&&(n||o._stopFade(r[s]),o._webAudio&&!u._muted&&(l=(a=y.ctx.currentTime)+i/1e3,u._volume=t,u._node.gain.setValueAtTime(t,a),u._node.gain.linearRampToValueAtTime(e,l)),o._startFadeInterval(u,t,e,i,r[s],void 0===n))}return o},_startFadeInterval:function(e,i,n,o,t,r){var s=this,a=i,l=n-i,u=Math.abs(l/.01),u=Math.max(4,0<u?o/u:o),c=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var t=(Date.now()-c)/o;c=Date.now(),a+=l*t,a=Math.round(100*a)/100,a=l<0?Math.max(n,a):Math.min(n,a),s._webAudio?e._volume=a:s.volume(a,e._id,!0),r&&(s._volume=a),(n<i&&a<=n||i<n&&n<=a)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,s.volume(n,e._id),s._emit("fade",e._id))},u)},_stopFade:function(t){var e=this._soundById(t);return e&&e._interval&&(this._webAudio&&e._node.gain.cancelScheduledValues(y.ctx.currentTime),clearInterval(e._interval),e._interval=null,this.volume(e._fadeTo,t),e._fadeTo=null,this._emit("fade",t)),this},loop:function(){var t,e,i,n=arguments;if(0===n.length)return this._loop;if(1===n.length){if("boolean"!=typeof n[0])return!!(i=this._soundById(parseInt(n[0],10)))&&i._loop;this._loop=t=n[0]}else 2===n.length&&(t=n[0],e=parseInt(n[1],10));for(var o=this._getSoundIds(e),r=0;r<o.length;r++)(i=this._soundById(o[r]))&&(i._loop=t,this._webAudio&&i._node&&i._node.bufferSource&&((i._node.bufferSource.loop=t)&&(i._node.bufferSource.loopStart=i._start||0,i._node.bufferSource.loopEnd=i._stop)));return this},rate:function(){var t,e,i=this,n=arguments;if(0===n.length?r=i._sounds[0]._id:1===n.length?0<=i._getSoundIds().indexOf(n[0])?r=parseInt(n[0],10):t=parseFloat(n[0]):2===n.length&&(t=parseFloat(n[0]),r=parseInt(n[1],10)),"number"!=typeof t)return((e=i._soundById(r))||i)._rate;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,n)}}),i;void 0===r&&(i._rate=t);for(var o,r=i._getSoundIds(r),s=0;s<r.length;s++)(e=i._soundById(r[s]))&&(i.playing(r[s])&&(e._rateSeek=i.seek(r[s]),e._playStart=i._webAudio?y.ctx.currentTime:e._playStart),e._rate=t,i._webAudio&&e._node&&e._node.bufferSource?e._node.bufferSource.playbackRate.setValueAtTime(t,y.ctx.currentTime):e._node&&(e._node.playbackRate=t),o=i.seek(r[s]),o=1e3*((i._sprite[e._sprite][0]+i._sprite[e._sprite][1])/1e3-o)/Math.abs(e._rate),!i._endTimers[r[s]]&&e._paused||(i._clearTimer(r[s]),i._endTimers[r[s]]=setTimeout(i._ended.bind(i,e),o)),i._emit("rate",e._id));return i},seek:function(){var t,e,i=this,n=arguments;if(0===n.length?e=i._sounds[0]._id:1===n.length?0<=i._getSoundIds().indexOf(n[0])?e=parseInt(n[0],10):i._sounds.length&&(e=i._sounds[0]._id,t=parseFloat(n[0])):2===n.length&&(t=parseFloat(n[0]),e=parseInt(n[1],10)),void 0===e)return i;if("number"==typeof t&&("loaded"!==i._state||i._playLock))return i._queue.push({event:"seek",action:function(){i.seek.apply(i,n)}}),i;var o=i._soundById(e);if(o){if(!("number"==typeof t&&0<=t)){if(i._webAudio){var r=i.playing(e)?y.ctx.currentTime-o._playStart:0,s=o._rateSeek?o._rateSeek-o._seek:0;return o._seek+(s+r*Math.abs(o._rate))}return o._node.currentTime}var a=i.playing(e);a&&i.pause(e,!0),o._seek=t,o._ended=!1,i._clearTimer(e),i._webAudio||!o._node||isNaN(o._node.duration)||(o._node.currentTime=t);var l,u=function(){i._emit("seek",e),a&&i.play(e,!0)};a&&!i._webAudio?(l=function(){i._playLock?setTimeout(l,0):u()},setTimeout(l,0)):u()}return i},playing:function(t){if("number"==typeof t){t=this._soundById(t);return!!t&&!t._paused}for(var e=0;e<this._sounds.length;e++)if(!this._sounds[e]._paused)return!0;return!1},duration:function(t){var e=this._duration,t=this._soundById(t);return e=t?this._sprite[t._sprite][1]/1e3:e},state:function(){return this._state},unload:function(){for(var t=this,e=t._sounds,i=0;i<e.length;i++)e[i]._paused||t.stop(e[i]._id),t._webAudio||(t._clearSound(e[i]._node),e[i]._node.removeEventListener("error",e[i]._errorFn,!1),e[i]._node.removeEventListener(y._canPlayEvent,e[i]._loadFn,!1),e[i]._node.removeEventListener("ended",e[i]._endFn,!1),y._releaseHtml5Audio(e[i]._node)),delete e[i]._node,t._clearTimer(e[i]._id);var n=y._howls.indexOf(t);0<=n&&y._howls.splice(n,1);for(var o=!0,i=0;i<y._howls.length;i++)if(y._howls[i]._src===t._src||0<=t._src.indexOf(y._howls[i]._src)){o=!1;break}return s&&o&&delete s[t._src],y.noAudio=!1,t._state="unloaded",t._sounds=[],t=null},on:function(t,e,i,n){t=this["_on"+t];return"function"==typeof e&&t.push(n?{id:i,fn:e,once:n}:{id:i,fn:e}),this},off:function(t,e,i){var n=this["_on"+t],o=0;if("number"==typeof e&&(i=e,e=null),e||i)for(o=0;o<n.length;o++){var r=i===n[o].id;if(e===n[o].fn&&r||!e&&r){n.splice(o,1);break}}else if(t)this["_on"+t]=[];else for(var s=Object.keys(this),o=0;o<s.length;o++)0===s[o].indexOf("_on")&&Array.isArray(this[s[o]])&&(this[s[o]]=[]);return this},once:function(t,e,i){return this.on(t,e,i,1),this},_emit:function(t,e,i){for(var n=this["_on"+t],o=n.length-1;0<=o;o--)n[o].id&&n[o].id!==e&&"load"!==t||(setTimeout(function(t){t.call(this,e,i)}.bind(this,n[o].fn),0),n[o].once&&this.off(t,n[o].fn,n[o].id));return this._loadQueue(t),this},_loadQueue:function(t){var e;return 0<this._queue.length&&((e=this._queue[0]).event===t&&(this._queue.shift(),this._loadQueue()),t||e.action()),this},_ended:function(t){var e=this,i=t._sprite;if(!e._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime<t._stop)return setTimeout(e._ended.bind(e,t),100),e;var n=!(!t._loop&&!e._sprite[i][2]);return e._emit("end",t._id),!e._webAudio&&n&&e.stop(t._id,!0).play(t._id),e._webAudio&&n&&(e._emit("play",t._id),t._seek=t._start||0,t._rateSeek=0,t._playStart=y.ctx.currentTime,i=1e3*(t._stop-t._start)/Math.abs(t._rate),e._endTimers[t._id]=setTimeout(e._ended.bind(e,t),i)),e._webAudio&&!n&&(t._paused=!0,t._ended=!0,t._seek=t._start||0,t._rateSeek=0,e._clearTimer(t._id),e._cleanBuffer(t._node),y._autoSuspend()),e._webAudio||n||e.stop(t._id,!0),e},_clearTimer:function(t){var e;return this._endTimers[t]&&("function"!=typeof this._endTimers[t]?clearTimeout(this._endTimers[t]):(e=this._soundById(t))&&e._node&&e._node.removeEventListener("ended",this._endTimers[t],!1),delete this._endTimers[t]),this},_soundById:function(t){for(var e=0;e<this._sounds.length;e++)if(t===this._sounds[e]._id)return this._sounds[e];return null},_inactiveSound:function(){this._drain();for(var t=0;t<this._sounds.length;t++)if(this._sounds[t]._ended)return this._sounds[t].reset();return new r(this)},_drain:function(){var t=this,e=t._pool,i=0,n=0;if(!(t._sounds.length<e)){for(n=0;n<t._sounds.length;n++)t._sounds[n]._ended&&i++;for(n=t._sounds.length-1;0<=n;n--){if(i<=e)return;t._sounds[n]._ended&&(t._webAudio&&t._sounds[n]._node&&t._sounds[n]._node.disconnect(0),t._sounds.splice(n,1),i--)}}},_getSoundIds:function(t){if(void 0!==t)return[t];for(var e=[],i=0;i<this._sounds.length;i++)e.push(this._sounds[i]._id);return e},_refreshBuffer:function(t){return t._node.bufferSource=y.ctx.createBufferSource(),t._node.bufferSource.buffer=s[this._src],t._panner?t._node.bufferSource.connect(t._panner):t._node.bufferSource.connect(t._node),t._node.bufferSource.loop=t._loop,t._loop&&(t._node.bufferSource.loopStart=t._start||0,t._node.bufferSource.loopEnd=t._stop||0),t._node.bufferSource.playbackRate.setValueAtTime(t._rate,y.ctx.currentTime),this},_cleanBuffer:function(t){var e=y._navigator&&0<=y._navigator.vendor.indexOf("Apple");if(y._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),e))try{t.bufferSource.buffer=y._scratchBuffer}catch(t){}return t.bufferSource=null,this},_clearSound:function(t){/MSIE |Trident\//.test(y._navigator&&y._navigator.userAgent)||(t.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var r=function(t){this._parent=t,this.init()};r.prototype={init:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++y._counter,e._sounds.push(t),t.create(),t},create:function(){var t=this,e=t._parent,i=y._muted||t._muted||t._parent._muted?0:t._volume;return e._webAudio?(t._node=void 0===y.ctx.createGain?y.ctx.createGainNode():y.ctx.createGain(),t._node.gain.setValueAtTime(i,y.ctx.currentTime),t._node.paused=!0,t._node.connect(y.masterGain)):y.noAudio||(t._node=y._obtainHtml5Audio(),t._errorFn=t._errorListener.bind(t),t._node.addEventListener("error",t._errorFn,!1),t._loadFn=t._loadListener.bind(t),t._node.addEventListener(y._canPlayEvent,t._loadFn,!1),t._endFn=t._endListener.bind(t),t._node.addEventListener("ended",t._endFn,!1),t._node.src=e._src,t._node.preload=!0===e._preload?"auto":e._preload,t._node.volume=i*y.volume(),t._node.load()),t},reset:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._rateSeek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++y._counter,t},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var t=this._parent;t._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),this._node.removeEventListener(y._canPlayEvent,this._loadFn,!1)},_endListener:function(){var t=this._parent;t._duration===1/0&&(t._duration=Math.ceil(10*this._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}};var s={},a=function(e){var t=e._src;if(s[t])return e._duration=s[t].duration,void c(e);if(/^data:[^;]+;base64,/.test(t)){for(var i=atob(t.split(",")[1]),n=new Uint8Array(i.length),o=0;o<i.length;++o)n[o]=i.charCodeAt(o);u(n.buffer,e)}else{var r=new XMLHttpRequest;r.open(e._xhr.method,t,!0),r.withCredentials=e._xhr.withCredentials,r.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){r.setRequestHeader(t,e._xhr.headers[t])}),r.onload=function(){var t=(r.status+"")[0];"0"===t||"2"===t||"3"===t?u(r.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+r.status+".")},r.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete s[t],e.load())},l(r)}},l=function(e){try{e.send()}catch(t){e.onerror()}},u=function(t,e){function i(){e._emit("loaderror",null,"Decoding audio data failed.")}function n(t){t&&0<e._sounds.length?(s[e._src]=t,c(e,t)):i()}"undefined"!=typeof Promise&&1===y.ctx.decodeAudioData.length?y.ctx.decodeAudioData(t).then(n).catch(i):y.ctx.decodeAudioData(t,n,i)},c=function(t,e){e&&!t._duration&&(t._duration=e.duration),0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue())},d=function(){if(y.usingWebAudio){try{"undefined"!=typeof AudioContext?y.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?y.ctx=new webkitAudioContext:y.usingWebAudio=!1}catch(t){y.usingWebAudio=!1}y.ctx||(y.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(y._navigator&&y._navigator.platform),e=y._navigator&&y._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),e=e?parseInt(e[1],10):null;t&&e&&e<9&&(e=/safari/.test(y._navigator&&y._navigator.userAgent.toLowerCase()),y._navigator&&!e&&(y.usingWebAudio=!1)),y.usingWebAudio&&(y.masterGain=void 0===y.ctx.createGain?y.ctx.createGainNode():y.ctx.createGain(),y.masterGain.gain.setValueAtTime(y._muted?0:y._volume,y.ctx.currentTime),y.masterGain.connect(y.ctx.destination)),y._setup()}};"function"==typeof define&&define.amd&&define([],function(){return{Howler:y,Howl:e}}),"undefined"!=typeof exports&&(exports.Howler=y,exports.Howl=e),"undefined"!=typeof global?(global.HowlerGlobal=t,global.Howler=y,global.Howl=e,global.Sound=r):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=y,window.Howl=e,window.Sound=r)}(),function(c,d){function h(t,e){var i=t.getBoundingClientRect(),n=i.top,o=i.bottom,r=i.left,s=i.right,a=c.extend({tolerance:0,viewport:d},e),l=!1,u=a.viewport.jquery?a.viewport:c(a.viewport);u.length||(console.warn("isInViewport: The viewport selector you have provided matches no element on page."),console.warn("isInViewport: Defaulting to viewport as window"),u=c(d));var t=u.height(),i=u.width(),e=u[0].toString();return u[0]!==d&&"[object Window]"!==e&&"[object DOMWindow]"!==e&&(n-=(e=u[0].getBoundingClientRect()).top,o-=e.top,r-=e.left,s-=e.left,h.scrollBarWidth=h.scrollBarWidth||(e=u,u=c("<div></div>").css({width:"100%"}),e.append(u),e=e.width()-u.width(),u.remove(),e),i-=h.scrollBarWidth),a.tolerance=~~Math.round(parseFloat(a.tolerance)),a.tolerance<0&&(a.tolerance=t+a.tolerance),s<=0||i<=r?l:a.tolerance?n<=a.tolerance&&o>=a.tolerance:0<o&&n<=t}String.prototype.hasOwnProperty("trim")||(String.prototype.trim=function(){return this.replace(/^\s*(.*?)\s*$/,"$1")});function e(t){if(!((t=1===arguments.length&&"function"==typeof t?[t]:t)instanceof Array))throw new SyntaxError("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions");for(var e=0;e<t.length;e++)if("function"==typeof t[e])for(var i=0;i<this.length;i++)t[e].call(c(this[i]));else console.warn("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions"),console.warn("isInViewport: Ignoring non-function values in array and moving on");return this}c.fn.do=function(t){return console.warn("isInViewport: .do is deprecated as it causes issues in IE and some browsers since it's a reserved word. Use $.fn.run instead i.e., $(el).run(fn)."),e(t)},c.fn.run=e;function n(t){if(t){t=t.split(",");return 1===t.length&&isNaN(t[0])&&(t[1]=t[0],t[0]=void 0),{tolerance:t[0]?t[0].trim():void 0,viewport:t[1]?c(t[1].trim()):void 0}}return{}}c.extend(c.expr[":"],{"in-viewport":c.expr.createPseudo?c.expr.createPseudo(function(e){return function(t){return h(t,n(e))}}):function(t,e,i){return h(t,n(i[3]))}}),c.fn.isInViewport=function(i){return this.filter(function(t,e){return h(e,i)})}}(jQuery,window),function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";function i(l,u,c){(c=c||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){if("string"!=typeof t)return a=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(a),i._init()):(i=new u(e,a),c.data(e,l,i))}),this;var n,o,r,s,a,e=d.call(arguments,1);return o=e,s="$()."+l+'("'+(n=t)+'")',(t=this).each(function(t,e){var i=c.data(e,l);i?(e=i[n])&&"_"!=n.charAt(0)?(i=e.apply(i,o),r=void 0===r?i:r):h(s+" is not a valid method"):h(l+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:t},n(c))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var d=Array.prototype.slice,o=t.console,h=void 0===o?function(){}:function(t){o.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||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function p(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function f(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function m(t){if(b||(b=!0,(h=document.createElement("div")).style.width="200px",h.style.padding="1px 2px 3px 4px",h.style.borderStyle="solid",h.style.borderWidth="1px 2px 3px 4px",h.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(h),c=f(h),g=200==Math.round(p(c.width)),m.isBoxSizeOuter=g,d.removeChild(h)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=f(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<y;e++)t[v[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,o=0;o<y;o++){var r=v[o],s=e[r],s=parseFloat(s);i[r]=isNaN(s)?0:s}var a=i.paddingLeft+i.paddingRight,l=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,c=i.marginTop+i.marginBottom,d=i.borderLeftWidth+i.borderRightWidth,h=i.borderTopWidth+i.borderBottomWidth,t=n&&g,n=p(e.width);!1!==n&&(i.width=n+(t?0:a+d));n=p(e.height);return!1!==n&&(i.height=n+(t?0:l+h)),i.innerWidth=i.width-(a+d),i.innerHeight=i.height-(l+h),i.outerWidth=i.width+u,i.outerHeight=i.height+c,i}var h,d,c}var g,e="undefined"==typeof console?function(){}:function(t){console.error(t)},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],y=v.length,b=!1;return m}),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 i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(i,r){var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},l.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=i.console;return l.htmlInit=function(s,a){l.docReady(function(){var t=l.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),t=l.makeArray(e).concat(l.makeArray(t)),o=n+"-options",r=i.jQuery;t.forEach(function(e){var t=e.getAttribute(n)||e.getAttribute(o);try{i=t&&JSON.parse(t)}catch(t){return void(u&&u.error("Error parsing "+n+" on "+e.className+": "+t))}var i=new s(e,i);r&&r.data(e,a,i)})})},l}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var n=document.documentElement.style,o="string"==typeof n.transition?"transition":"WebkitTransition",r="string"==typeof n.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],a={transform:r,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"},t=i.prototype=Object.create(t.prototype);t.constructor=i,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[a[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),t=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*t.width),-1!=o.indexOf("%")&&(s=s/100*t.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?t.paddingLeft:t.paddingRight,s-=i?t.paddingTop:t.paddingBottom,this.position.x=r,this.position.y=s},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"right":"left",r=this.position.x+t[i?"paddingLeft":"paddingRight"];e[i?"left":"right"]=this.getXValue(r),e[o]="";o=n?"bottom":"top",t=this.position.y+t[n?"paddingTop":"paddingBottom"];e[n?"top":"bottom"]=this.getYValue(t),e[o]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),!o||this.isTransitioning?((o={}).transform=this.getTranslate(t-i,e-n),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var l="opacity,"+r.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});t.enableTransition=function(){var t;this.isTransitioning||(t=this.layout.options.transitionDuration,this.css({transitionProperty:l,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=u[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return t.removeTransitionStyles=function(){this.css(c)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(o,r){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return r(o,t,e,i,n)}):"object"==typeof module&&module.exports?module.exports=r(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=r(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(t,e,o,n,r){"use strict";function s(t,e){var i=n.getQueryElement(t);i?(this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++c,this.element.outlayerGUID=e,(d[e]=this)._create(),this._getOption("initLayout")&&this.layout()):l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function i(){}var l=t.console,u=t.jQuery,c=0,d={};s.namespace="outlayer",s.Item=r,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=s.prototype;n.extend(h,e.prototype),h.option=function(t){n.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=new i(e[o],this);n.push(r)}return n},h._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=o(this.element)},h._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},h.updateStagger=function(){var t=this.options.stagger;return null==t?void(this.stagger=0):(this.stagger=function(t){if("number"==typeof t)return t;var t=(e=t.match(/(^\d*\.?\d*)(\w*)/))&&e[1],e=e&&e[2];return t.length?(t=parseFloat(t))*(p[e]||1):0}(t),this.stagger)},h._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},h._getContainerSize=i,h._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},h._emitCompleteOnItems=function(e,t){function i(){r.dispatchEvent(e+"Complete",null,[t])}function n(){++o==s&&i()}var o,r=this,s=t.length;t&&s?(o=0,t.forEach(function(t){t.once(e,n)})):i()},h.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),u&&(this.$element=this.$element||u(this.element),e?((e=u.Event(e)).type=t,this.$element.trigger(e,i)):this.$element.trigger(t,i))},h.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},h.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},h.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),n.makeArray(t)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},h._manageStamp=i,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},h.handleEvent=n.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},n.debounceMethod(s,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},h.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},h.prepended=function(t){var e=this._itemize(t);e.length&&(t=this.items.slice(0),this.items=e.concat(t),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(t))},h.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},h.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},h.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},h.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},h.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},h.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();t=this.element.outlayerGUID;delete d[t],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&d[t]},s.create=function(t,e){var i=a(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=a(r),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var p={ms:1,s:1e3};return s.Item=r,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;this._getMeasurement(i,n),this[i]||(t=this.getFirstItemSize(),this[i]=t&&t[n]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";t=e.prototype;return t._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},t.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(i=(e=this.items[0])&&e.element,this.columnWidth=i&&a(i).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,t=t-e%t,i=Math[t&&t<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),e={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,r=i+n.col,s=n.col;s<r;s++)this.colYs[s]=o;return e},t._getTopColPosition=function(t){var e=this._getTopColGroup(t),t=Math.min.apply(Math,e);return{col:e.indexOf(t),y:t}},t._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},t._getColGroupY=function(t,e){if(e<2)return this.colYs[t];e=this.colYs.slice(t,t+e);return Math.max.apply(Math,e)},t._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},t._manageStamp=function(t){var e=a(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,t=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),o=Math.floor(t/this.columnWidth);o-=t%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),r=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,s=n;s<=o;s++)this.colYs[s]=Math.max(r,this.colYs[s])},t._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var s=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},t}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),t=e.prototype;return t._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),t=e.prototype;return t._resetLayout=function(){this.y=0},t._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t._getContainerSize=function(){return{height:this.y}},e}),function(s,a){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(t,e,i,n,o,r){return a(s,t,0,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=a(s,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):s.Isotope=a(s,s.Outlayer,s.getSize,s.matchesSelector,s.fizzyUIUtils,s.Isotope.Item,s.Isotope.LayoutMode)}(window,function(t,i,e,n,r,o,s){var a=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=o,u.LayoutMode=s;o=u.prototype;o._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},o.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},o._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},o._initLayoutMode=function(t){var e=s.modes[t],i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i,this.modes[t]=new e(this)},o.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},o._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},o.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},o._init=o.arrange,o._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},o._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},o._bindArrangeComplete=function(){function t(){e&&i&&n&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}var e,i,n,o=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},o._filter=function(t){for(var e=this.options.filter,i=[],n=[],o=[],r=this._getFilterTest(e=e||"*"),s=0;s<t.length;s++){var a,l=t[s];l.isIgnored||((a=r(l))&&i.push(l),a&&l.isHidden?n.push(l):a||l.isHidden||o.push(l))}return{matches:i,needReveal:n,needHide:o}},o._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},o.updateSortData=function(t){t=t?(t=r.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},o._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=c(i)}},o._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()};var c=function(t){if("string"!=typeof t)return t;var e,i,n=l(t).split(" "),o=n[0],t=(t=o.match(/^\[(.+)\]$/))&&t[1],r=(i=o,(e=t)?function(t){return t.getAttribute(e)}:function(t){t=t.querySelector(i);return t&&t.textContent}),s=u.sortDataParsers[n[1]];return s?function(t){return t&&s(r(t))}:function(t){return t&&r(t)}};u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},o._sort=function(){var t,s,a;this.options.sortBy&&(t=r.makeArray(this.options.sortBy),this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory)),s=this.sortHistory,a=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0;i<s.length;i++){var n=s[i],o=t.sortData[n],r=e.sortData[n];if(r<o||o<r)return(r<o?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0}))},o._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},o._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},o._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},o._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},o._manageStamp=function(t){this._mode()._manageStamp(t)},o._getContainerSize=function(){return this._mode()._getContainerSize()},o.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.appended=function(t){t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},o.prepended=function(t){var e=this._itemize(t);e.length&&(this._resetLayout(),this._manageStamps(),t=this._filterRevealAdded(e),this.layoutItems(this.filteredItems),this.filteredItems=t.concat(this.filteredItems),this.items=e.concat(this.items))},o._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,o=0;o<n;o++)i=e[o],this.element.appendChild(i.element);t=this._filter(e).matches;for(o=0;o<n;o++)e[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<n;o++)delete e[o].isLayoutInstant;this.reveal(t)}};var d=o.remove;return o.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},o.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},o._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;e=t.apply(this,e);return this.options.transitionDuration=i,e},o.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}),function(e){e.fn.downCount=function(t,l){var u=e.extend({date:null,offset:null},t);u.date||e.error("Date is not defined."),Date.parse(u.date)||e.error("Incorrect date format, it should look like this, 12/24/2012 12:00:00.");var c=this,d=function(){var t=new Date,t=t.getTime()+6e4*t.getTimezoneOffset();return new Date(t+36e5*u.offset)};var h=setInterval(function(){if((a=new Date(u.date)-d())<0)return clearInterval(h),void(l&&"function"==typeof l&&l());var t=Math.floor(a/864e5),e=Math.floor(a%864e5/36e5),i=Math.floor(a%36e5/6e4),n=Math.floor(a%6e4/1e3),o=1===(t=2<=String(t).length?t:"0"+t)?"day":"days",r=1===(e=2<=String(e).length?e:"0"+e)?"hour":"hours",s=1===(i=2<=String(i).length?i:"0"+i)?"minute":"minutes",a=1===(n=2<=String(n).length?n:"0"+n)?"second":"seconds";c.find(".days").text(t),c.find(".hours").text(e),c.find(".minutes").text(i),c.find(".seconds").text(n),c.find(".days_ref").text(o),c.find(".hours_ref").text(r),c.find(".minutes_ref").text(s),c.find(".seconds_ref").text(a)},1e3)}}(jQuery),function(o){o&&(o.fn.headroom=function(n){return this.each(function(){var t=o(this),e=t.data("headroom"),i="object"==typeof n&&n,i=o.extend(!0,{},Headroom.options,i);e||((e=new Headroom(this,i)).init(),t.data("headroom",e)),"string"==typeof n&&(e[n](),"destroy"===n&&t.removeData("headroom"))})},o("[data-headroom]").each(function(){var t=o(this);t.headroom(t.data())}))}(window.Zepto||window.jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&t(jQuery)}(function(o){"use strict";function u(t){r=t.pageX,s=t.pageY}var r,s,a={interval:100,sensitivity:6,timeout:0},c=0,d=function(t,e,i,n){if(Math.sqrt((i.pX-r)*(i.pX-r)+(i.pY-s)*(i.pY-s))<n.sensitivity)return e.off(i.event,u),delete i.timeoutId,i.isActive=!0,t.pageX=r,t.pageY=s,delete i.pX,delete i.pY,n.over.apply(e[0],[t]);i.pX=r,i.pY=s,i.timeoutId=setTimeout(function(){d(t,e,i,n)},n.interval)};o.fn.hoverIntent=function(t,e,i){var n=c++,l=o.extend({},a);o.isPlainObject(t)?(l=o.extend(l,t),o.isFunction(l.out)||(l.out=l.over)):l=o.isFunction(e)?o.extend(l,{over:t,out:e,selector:i}):o.extend(l,{over:t,out:t,selector:e});e=function(t){var r=o.extend({},t),s=o(this),e=s.data("hoverIntent");e||s.data("hoverIntent",e={});var a=e[n];a||(e[n]=a={id:n}),a.timeoutId&&(a.timeoutId=clearTimeout(a.timeoutId));e=a.event="mousemove.hoverIntent.hoverIntent"+n;"mouseenter"===t.type?a.isActive||(a.pX=r.pageX,a.pY=r.pageY,s.off(e,u).on(e,u),a.timeoutId=setTimeout(function(){d(r,s,a,l)},l.interval)):a.isActive&&(s.off(e,u),a.timeoutId=setTimeout(function(){var t,e,i,n,o;t=r,e=s,i=a,n=l.out,(o=e.data("hoverIntent"))&&delete o[i.id],n.apply(e[0],[t])},l.timeout))};return this.on({"mouseenter.hoverIntent":e,"mouseleave.hoverIntent":e},l.selector)}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(u){function t(){}function c(t,e){f.ev.on("mfp"+t+i,e)}function d(t,e,i,n){var o=document.createElement("div");return o.className="mfp-"+t,i&&(o.innerHTML=i),n?e&&e.appendChild(o):(o=u(o),e&&o.appendTo(e)),o}function h(t,e){f.ev.triggerHandler("mfp"+t,e),f.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),f.st.callbacks[t]&&f.st.callbacks[t].apply(f,u.isArray(e)?e:[e]))}function p(t){return t===e&&f.currTemplate.closeBtn||(f.currTemplate.closeBtn=u(f.st.closeMarkup.replace("%title%",f.st.tClose)),e=t),f.currTemplate.closeBtn}function r(){u.magnificPopup.instance||((f=new t).init(),u.magnificPopup.instance=f)}var f,n,m,o,g,e,a="Close",l="BeforeClose",v="MarkupParse",i=".mfp",y="mfp-ready",s="mfp-removing",b="mfp-prevent-close",T=!!window.jQuery,_=u(window);t.prototype={constructor:t,init:function(){var t=navigator.appVersion;f.isLowIE=f.isIE8=document.all&&!document.addEventListener,f.isAndroid=/android/gi.test(t),f.isIOS=/iphone|ipad|ipod/gi.test(t),f.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),f.probablyMobile=f.isAndroid||f.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),m=u(document),f.popupsCache={}},open:function(t){if(!1===t.isObj){f.items=t.items.toArray(),f.index=0;for(var e,i=t.items,n=0;n<i.length;n++)if((e=(e=i[n]).parsed?e.el[0]:e)===t.el[0]){f.index=n;break}}else f.items=u.isArray(t.items)?t.items:[t.items],f.index=t.index||0;if(!f.isOpen){f.types=[],g="",t.mainEl&&t.mainEl.length?f.ev=t.mainEl.eq(0):f.ev=m,t.key?(f.popupsCache[t.key]||(f.popupsCache[t.key]={}),f.currTemplate=f.popupsCache[t.key]):f.currTemplate={},f.st=u.extend(!0,{},u.magnificPopup.defaults,t),f.fixedContentPos="auto"===f.st.fixedContentPos?!f.probablyMobile:f.st.fixedContentPos,f.st.modal&&(f.st.closeOnContentClick=!1,f.st.closeOnBgClick=!1,f.st.showCloseBtn=!1,f.st.enableEscapeKey=!1),f.bgOverlay||(f.bgOverlay=d("bg").on("click.mfp",function(){f.close()}),f.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(t){f._checkIfClose(t.target)&&f.close()}),f.container=d("container",f.wrap)),f.contentContainer=d("content"),f.st.preloader&&(f.preloader=d("preloader",f.container,f.st.tLoading));var o=u.magnificPopup.modules;for(n=0;n<o.length;n++){var r=(r=o[n]).charAt(0).toUpperCase()+r.slice(1);f["init"+r].call(f)}h("BeforeOpen"),f.st.showCloseBtn&&(f.st.closeBtnInside?(c(v,function(t,e,i,n){i.close_replaceWith=p(n.type)}),g+=" mfp-close-btn-in"):f.wrap.append(p())),f.st.alignTop&&(g+=" mfp-align-top"),f.fixedContentPos?f.wrap.css({overflow:f.st.overflowY,overflowX:"hidden",overflowY:f.st.overflowY}):f.wrap.css({top:_.scrollTop(),position:"absolute"}),!1!==f.st.fixedBgPos&&("auto"!==f.st.fixedBgPos||f.fixedContentPos)||f.bgOverlay.css({height:m.height(),position:"absolute"}),f.st.enableEscapeKey&&m.on("keyup.mfp",function(t){27===t.keyCode&&f.close()}),_.on("resize.mfp",function(){f.updateSize()}),f.st.closeOnContentClick||(g+=" mfp-auto-cursor"),g&&f.wrap.addClass(g);var s=f.wH=_.height(),a={};f.fixedContentPos&&f._hasScrollBar(s)&&((l=f._getScrollbarSize())&&(a.marginRight=l)),f.fixedContentPos&&(f.isIE7?u("body, html").css("overflow","hidden"):a.overflow="hidden");var l=f.st.mainClass;return f.isIE7&&(l+=" mfp-ie7"),l&&f._addClassToMFP(l),f.updateItemHTML(),h("BuildControls"),u("html").css(a),f.bgOverlay.add(f.wrap).prependTo(f.st.prependTo||u(document.body)),f._lastFocusedEl=document.activeElement,setTimeout(function(){f.content?(f._addClassToMFP(y),f._setFocus()):f.bgOverlay.addClass(y),m.on("focusin.mfp",f._onFocusIn)},16),f.isOpen=!0,f.updateSize(s),h("Open"),t}f.updateItemHTML()},close:function(){f.isOpen&&(h(l),f.isOpen=!1,f.st.removalDelay&&!f.isLowIE&&f.supportsTransition?(f._addClassToMFP(s),setTimeout(function(){f._close()},f.st.removalDelay)):f._close())},_close:function(){h(a);var t=s+" "+y+" ";f.bgOverlay.detach(),f.wrap.detach(),f.container.empty(),f.st.mainClass&&(t+=f.st.mainClass+" "),f._removeClassFromMFP(t),f.fixedContentPos&&(t={marginRight:""},f.isIE7?u("body, html").css("overflow",""):t.overflow="",u("html").css(t)),m.off("keyup.mfp focusin.mfp"),f.ev.off(i),f.wrap.attr("class","mfp-wrap").removeAttr("style"),f.bgOverlay.attr("class","mfp-bg"),f.container.attr("class","mfp-container"),!f.st.showCloseBtn||f.st.closeBtnInside&&!0!==f.currTemplate[f.currItem.type]||f.currTemplate.closeBtn&&f.currTemplate.closeBtn.detach(),f.st.autoFocusLast&&f._lastFocusedEl&&u(f._lastFocusedEl).focus(),f.currItem=null,f.content=null,f.currTemplate=null,f.prevHeight=0,h("AfterClose")},updateSize:function(t){var e;f.isIOS?(e=document.documentElement.clientWidth/window.innerWidth,e=window.innerHeight*e,f.wrap.css("height",e),f.wH=e):f.wH=t||_.height(),f.fixedContentPos||f.wrap.css("height",f.wH),h("Resize")},updateItemHTML:function(){var t=f.items[f.index];f.contentContainer.detach(),f.content&&f.content.detach();var e=(t=!t.parsed?f.parseEl(f.index):t).type;h("BeforeChange",[f.currItem?f.currItem.type:"",e]),f.currItem=t,f.currTemplate[e]||(i=!!f.st[e]&&f.st[e].markup,h("FirstMarkupParse",i),f.currTemplate[e]=!i||u(i)),o&&o!==t.type&&f.container.removeClass("mfp-"+o+"-holder");var i=f["get"+e.charAt(0).toUpperCase()+e.slice(1)](t,f.currTemplate[e]);f.appendContent(i,e),t.preloaded=!0,h("Change",t),o=t.type,f.container.prepend(f.contentContainer),h("AfterChange")},appendContent:function(t,e){(f.content=t)?f.st.showCloseBtn&&f.st.closeBtnInside&&!0===f.currTemplate[e]?f.content.find(".mfp-close").length||f.content.append(p()):f.content=t:f.content="",h("BeforeAppend"),f.container.addClass("mfp-"+e+"-holder"),f.contentContainer.append(f.content)},parseEl:function(t){var e,i=f.items[t];if((i=i.tagName?{el:u(i)}:(e=i.type,{data:i,src:i.src})).el){for(var n=f.types,o=0;o<n.length;o++)if(i.el.hasClass("mfp-"+n[o])){e=n[o];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=e||f.st.type||"inline",i.index=t,i.parsed=!0,f.items[t]=i,h("ElementParse",i),f.items[t]},addGroup:function(e,i){function t(t){t.mfpEl=this,f._openClick(t,e,i)}var n="click.magnificPopup";(i=i||{}).mainEl=e,i.items?(i.isObj=!0,e.off(n).on(n,t)):(i.isObj=!1,i.delegate?e.off(n).on(n,i.delegate,t):(i.items=e).off(n).on(n,t))},_openClick:function(t,e,i){if((void 0!==i.midClick?i:u.magnificPopup.defaults).midClick||!(2===t.which||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)){var n=(void 0!==i.disableOn?i:u.magnificPopup.defaults).disableOn;if(n)if(u.isFunction(n)){if(!n.call(f))return!0}else if(_.width()<n)return!0;t.type&&(t.preventDefault(),f.isOpen&&t.stopPropagation()),i.el=u(t.mfpEl),i.delegate&&(i.items=e.find(i.delegate)),f.open(i)}},updateStatus:function(t,e){var i;f.preloader&&(n!==t&&f.container.removeClass("mfp-s-"+n),i={status:t,text:e=!e&&"loading"===t?f.st.tLoading:e},h("UpdateStatus",i),t=i.status,f.preloader.html(e=i.text),f.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),f.container.addClass("mfp-s-"+t),n=t)},_checkIfClose:function(t){if(!u(t).hasClass(b)){var e=f.st.closeOnContentClick,i=f.st.closeOnBgClick;if(e&&i)return!0;if(!f.content||u(t).hasClass("mfp-close")||f.preloader&&t===f.preloader[0])return!0;if(t===f.content[0]||u.contains(f.content[0],t)){if(e)return!0}else if(i&&u.contains(document,t))return!0;return!1}},_addClassToMFP:function(t){f.bgOverlay.addClass(t),f.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),f.wrap.removeClass(t)},_hasScrollBar:function(t){return(f.isIE7?m.height():document.body.scrollHeight)>(t||_.height())},_setFocus:function(){(f.st.focus?f.content.find(f.st.focus).eq(0):f.wrap).focus()},_onFocusIn:function(t){return t.target===f.wrap[0]||u.contains(f.wrap[0],t.target)?void 0:(f._setFocus(),!1)},_parseMarkup:function(o,t,e){var r;e.data&&(t=u.extend(e.data,t)),h(v,[o,t,e]),u.each(t,function(t,e){return void 0===e||!1===e||void(1<(r=t.split("_")).length?0<(i=o.find(".mfp-"+r[0])).length&&("replaceWith"===(n=r[1])?i[0]!==e[0]&&i.replaceWith(e):"img"===n?i.is("img")?i.attr("src",e):i.replaceWith(u("<img>").attr("src",e).attr("class",i.attr("class"))):i.attr(r[1],e)):o.find(".mfp-"+t).html(e));var i,n})},_getScrollbarSize:function(){var t;return void 0===f.scrollbarSize&&((t=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),f.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)),f.scrollbarSize}},u.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(t,e){return r(),(t=t?u.extend(!0,{},t):{}).isObj=!0,t.index=e||0,this.instance.open(t)},close:function(){return u.magnificPopup.instance&&u.magnificPopup.instance.close()},registerModule:function(t,e){e.options&&(u.magnificPopup.defaults[t]=e.options),u.extend(this.proto,e.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},u.fn.magnificPopup=function(t){r();var e,i,n,o=u(this);return"string"==typeof t?"open"===t?(e=T?o.data("magnificPopup"):o[0].magnificPopup,i=parseInt(arguments[1],10)||0,n=e.items?e.items[i]:(n=o,(n=e.delegate?n.find(e.delegate):n).eq(i)),f._openClick({mfpEl:n},o,e)):f.isOpen&&f[t].apply(f,Array.prototype.slice.call(arguments,1)):(t=u.extend(!0,{},t),T?o.data("magnificPopup",t):o[0].magnificPopup=t,f.addGroup(o,t)),o};function S(){C&&(w.after(C.addClass(D)).detach(),C=null)}var D,w,C,A="inline";u.magnificPopup.registerModule(A,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){f.types.push(A),c(a+"."+A,function(){S()})},getInline:function(t,e){if(S(),t.src){var i,n=f.st.inline,o=u(t.src);return o.length?((i=o[0].parentNode)&&i.tagName&&(w||(D=n.hiddenClass,w=d(D),D="mfp-"+D),C=o.after(w).detach().removeClass(D)),f.updateStatus("ready")):(f.updateStatus("error",n.tNotFound),o=u("<div>")),t.inlineElement=o}return f.updateStatus("ready"),f._parseMarkup(e,{},t),e}}});function E(){P&&u(document.body).removeClass(P)}function x(){E(),f.req&&f.req.abort()}var P,M="ajax";u.magnificPopup.registerModule(M,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){f.types.push(M),P=f.st.ajax.cursor,c(a+"."+M,x),c("BeforeChange.ajax",x)},getAjax:function(n){P&&u(document.body).addClass(P),f.updateStatus("loading");var t=u.extend({url:n.src,success:function(t,e,i){i={data:t,xhr:i};h("ParseAjax",i),f.appendContent(u(i.data),M),n.finished=!0,E(),f._setFocus(),setTimeout(function(){f.wrap.addClass(y)},16),f.updateStatus("ready"),h("AjaxContentAdded")},error:function(){E(),n.finished=n.loadError=!0,f.updateStatus("error",f.st.ajax.tError.replace("%url%",n.src))}},f.st.ajax.settings);return f.req=u.ajax(t),""}}});var k;u.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var t=f.st.image,e=".image";f.types.push("image"),c("Open"+e,function(){"image"===f.currItem.type&&t.cursor&&u(document.body).addClass(t.cursor)}),c(a+e,function(){t.cursor&&u(document.body).removeClass(t.cursor),_.off("resize.mfp")}),c("Resize"+e,f.resizeImage),f.isLowIE&&c("AfterChange",f.resizeImage)},resizeImage:function(){var t,e=f.currItem;e&&e.img&&f.st.image.verticalFit&&(t=0,f.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",f.wH-t))},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,k&&clearInterval(k),t.isCheckingImgSize=!1,h("ImageHasSize",t),t.imgHidden&&(f.content&&f.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(t){k&&clearInterval(k),k=setInterval(function(){return 0<n.naturalWidth?void f._onImageHasSize(e):(200<i&&clearInterval(k),void(3===++i?o(10):40===i?o(50):100===i&&o(500)))},t)};o(1)},getImage:function(t,e){var i,n=0,o=function(){t&&(t.img[0].complete?(t.img.off(".mfploader"),t===f.currItem&&(f._onImageHasSize(t),f.updateStatus("ready")),t.hasSize=!0,t.loaded=!0,h("ImageLoadComplete")):++n<200?setTimeout(o,100):r())},r=function(){t&&(t.img.off(".mfploader"),t===f.currItem&&(f._onImageHasSize(t),f.updateStatus("error",s.tError.replace("%url%",t.src))),t.hasSize=!0,t.loaded=!0,t.loadError=!0)},s=f.st.image,a=e.find(".mfp-img");return a.length&&((i=document.createElement("img")).className="mfp-img",t.el&&t.el.find("img").length&&(i.alt=t.el.find("img").attr("alt")),t.img=u(i).on("load.mfploader",o).on("error.mfploader",r),i.src=t.src,a.is("img")&&(t.img=t.img.clone()),0<(i=t.img[0]).naturalWidth?t.hasSize=!0:i.width||(t.hasSize=!1)),f._parseMarkup(e,{title:function(t){if(t.data&&void 0!==t.data.title)return t.data.title;var e=f.st.image.titleSrc;if(e){if(u.isFunction(e))return e.call(f,t);if(t.el)return t.el.attr(e)||""}return""}(t),img_replaceWith:t.img},t),f.resizeImage(),t.hasSize?(k&&clearInterval(k),t.loadError?(e.addClass("mfp-loading"),f.updateStatus("error",s.tError.replace("%url%",t.src))):(e.removeClass("mfp-loading"),f.updateStatus("ready"))):(f.updateStatus("loading"),t.loading=!0,t.hasSize||(t.imgHidden=!0,e.addClass("mfp-loading"),f.findImageSize(t))),e}}});var I;u.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,e,i,n,o,r,s=f.st.zoom;s.enabled&&f.supportsTransition&&(n=s.duration,o=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+s.duration/1e3+"s "+s.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},t="transition";return n["-webkit-"+t]=n["-moz-"+t]=n["-o-"+t]=n[t]=i,e.css(n),e},r=function(){f.content.css("visibility","visible")},c("BuildControls.zoom",function(){f._allowZoom()&&(clearTimeout(e),f.content.css("visibility","hidden"),(t=f._getItemToZoom())?((i=o(t)).css(f._getOffset()),f.wrap.append(i),e=setTimeout(function(){i.css(f._getOffset(!0)),e=setTimeout(function(){r(),setTimeout(function(){i.remove(),t=i=null,h("ZoomAnimationEnded")},16)},n)},16)):r())}),c(l+".zoom",function(){if(f._allowZoom()){if(clearTimeout(e),f.st.removalDelay=n,!t){if(!(t=f._getItemToZoom()))return;i=o(t)}i.css(f._getOffset(!0)),f.wrap.append(i),f.content.css("visibility","hidden"),setTimeout(function(){i.css(f._getOffset())},16)}}),c(a+".zoom",function(){f._allowZoom()&&(r(),i&&i.remove(),t=null)}))},_allowZoom:function(){return"image"===f.currItem.type},_getItemToZoom:function(){return!!f.currItem.hasSize&&f.currItem.img},_getOffset:function(t){var e=t?f.currItem.img:f.st.zoom.opener(f.currItem.el||f.currItem),i=e.offset(),n=parseInt(e.css("padding-top"),10),t=parseInt(e.css("padding-bottom"),10);i.top-=u(window).scrollTop()-n;n={width:e.width(),height:(T?e.innerHeight():e[0].offsetHeight)-t-n};return(I=void 0===I?void 0!==document.createElement("p").style.MozTransform:I)?n["-moz-transform"]=n.transform="translate("+i.left+"px,"+i.top+"px)":(n.left=i.left,n.top=i.top),n}}});function B(t){var e;!f.currTemplate[F]||(e=f.currTemplate[F].find("iframe")).length&&(t||(e[0].src="//about:blank"),f.isIE8&&e.css("display",t?"block":"none"))}var F="iframe";u.magnificPopup.registerModule(F,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){f.types.push(F),c("BeforeChange",function(t,e,i){e!==i&&(e===F?B():i===F&&B(!0))}),c(a+"."+F,function(){B()})},getIframe:function(t,e){var i=t.src,n=f.st.iframe;u.each(n.patterns,function(){return-1<i.indexOf(this.index)?(this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1):void 0});var o={};return n.srcAction&&(o[n.srcAction]=i),f._parseMarkup(e,o,t),f.updateStatus("ready"),e}}});function L(t){var e=f.items.length;return e-1<t?t-e:t<0?e+t:t}function O(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)}u.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var r=f.st.gallery,t=".mfp-gallery";return f.direction=!0,!(!r||!r.enabled)&&(g+=" mfp-gallery",c("Open"+t,function(){r.navigateByImgClick&&f.wrap.on("click"+t,".mfp-img",function(){return 1<f.items.length?(f.next(),!1):void 0}),m.on("keydown"+t,function(t){37===t.keyCode?f.prev():39===t.keyCode&&f.next()})}),c("UpdateStatus"+t,function(t,e){e.text&&(e.text=O(e.text,f.currItem.index,f.items.length))}),c(v+t,function(t,e,i,n){var o=f.items.length;i.counter=1<o?O(r.tCounter,n.index,o):""}),c("BuildControls"+t,function(){var t,e;1<f.items.length&&r.arrows&&!f.arrowLeft&&(e=r.arrowMarkup,t=f.arrowLeft=u(e.replace(/%title%/gi,r.tPrev).replace(/%dir%/gi,"left")).addClass(b),e=f.arrowRight=u(e.replace(/%title%/gi,r.tNext).replace(/%dir%/gi,"right")).addClass(b),t.click(function(){f.prev()}),e.click(function(){f.next()}),f.container.append(t.add(e)))}),c("Change"+t,function(){f._preloadTimeout&&clearTimeout(f._preloadTimeout),f._preloadTimeout=setTimeout(function(){f.preloadNearbyImages(),f._preloadTimeout=null},16)}),void c(a+t,function(){m.off(t),f.wrap.off("click"+t),f.arrowRight=f.arrowLeft=null}))},next:function(){f.direction=!0,f.index=L(f.index+1),f.updateItemHTML()},prev:function(){f.direction=!1,f.index=L(f.index-1),f.updateItemHTML()},goTo:function(t){f.direction=t>=f.index,f.index=t,f.updateItemHTML()},preloadNearbyImages:function(){for(var t=f.st.gallery.preload,e=Math.min(t[0],f.items.length),i=Math.min(t[1],f.items.length),n=1;n<=(f.direction?i:e);n++)f._preloadItem(f.index+n);for(n=1;n<=(f.direction?e:i);n++)f._preloadItem(f.index-n)},_preloadItem:function(t){var e;t=L(t),f.items[t].preloaded||((e=f.items[t]).parsed||(e=f.parseEl(t)),h("LazyLoad",e),"image"===e.type&&(e.img=u('<img class="mfp-img" />').on("load.mfploader",function(){e.hasSize=!0}).on("error.mfploader",function(){e.hasSize=!0,e.loadError=!0,h("LazyLoadError",e)}).attr("src",e.src)),e.preloaded=!0)}}});var H="retina";u.magnificPopup.registerModule(H,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){var i,n;1<window.devicePixelRatio&&(i=f.st.retina,n=i.ratio,1<(n=isNaN(n)?n():n)&&(c("ImageHasSize."+H,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/n,width:"100%"})}),c("ElementParse."+H,function(t,e){e.src=i.replaceSrc(e,n)})))}}}),r()}),function(c){var i="panr",n={moveTarget:!1,sensitivity:30,scale:!1,scaleOnHover:!0,scaleTo:1.1,scaleDuration:.25,panY:!0,panX:!0,panDuration:1.25,resetPanOnMouseLeave:!0,onEnter:function(){},onLeave:function(){}};function e(t,e){this.element=t,this.settings=c.extend({},n,e),this._defaults=n,this._name=i,this.init()}e.prototype={init:function(){var e,i,n,o,r=this.settings,t=(u=c(this.element)).width(),s=(u.height(),u.width()-r.sensitivity),a=(t-s)/s,l={scale:1.005,x:0,y:0,duration:r.scaleDuration},s=u.parents(".portfolio-holder").find(".thb-portfolio-video"),u=s.length?s:u;(r.scale||!r.scaleOnHover&&r.scale)&&gsap.set(u,{scale:r.scaleTo}),"string"===jQuery.type(r.moveTarget)&&(r.moveTarget=c(this.element).parent(r.moveTarget)),r.moveTarget||(r.moveTarget=c(this.element)),r.moveTarget.on("mousemove",function(t){e=t.pageX-u.offset().left,i=t.pageY-u.offset().top,r.panX&&(n={x:-a*e}),r.panY&&(o={y:-a*i}),o=c.extend({},n,o,{duration:r.panDuration}),gsap.to(u,o)}),r.moveTarget.on("mouseenter",function(t){r.scaleOnHover&&gsap.to(u,{duration:r.scaleDuration,scale:r.scaleTo}),r.onEnter(u)}),r.moveTarget.on("mouseleave",function(t){gsap.killTweensOf(u),gsap.to(u,l)})}},c.fn.panr=function(t){return this.each(function(){c.data(this,"plugin_panr")||c.data(this,"plugin_panr",new e(this,t))})}}(jQuery,(window,document)),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(t.jQuery)}(this,function(c){"use strict";var n="vide",o={volume:1,playbackRate:1,muted:!0,loop:!0,playsinline:"",autoplay:!0,position:"50% 50%",posterType:"detect",resizing:!0,bgColor:"transparent",className:""},d="Not implemented";function r(t){for(var e,i,n,o,r={},s=t.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(","),a=0,l=s.length;a<l&&(-1===(i=s[a]).search(/^(http|https|ftp):\/\//)&&-1!==i.search(":"));a++)e=i.indexOf(":"),n=i.substring(0,e),"string"==typeof(o="string"==typeof(o=(o=i.substring(e+1))||void 0)?"true"===o||"false"!==o&&o:o)&&(o=isNaN(o)?o:+o),r[n]=o;return null==n&&null==o?t:r}function s(t,e,i){if(this.$element=c(t),"string"==typeof e&&(e=r(e)),i?"string"==typeof i&&(i=r(i)):i={},"string"==typeof e)e=e.replace(/\.\w*$/,"");else if("object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&(e[n]=e[n]);this.settings=c.extend({},o,i),this.path=e;try{this.init()}catch(t){if(t.message!==d)throw t}}s.prototype.init=function(){var t,e=this,i=e.path,n=i,o="",r=e.$element,s=e.settings,a=function(t){for(var e,i=(t=""+t).split(/\s+/),n="50%",o="50%",r=0,s=i.length;r<s;r++)"left"===(e=i[r])?n="0%":"right"===e?n="100%":"top"===e?o="0%":"bottom"===e?o="100%":"center"===e?0===r?n="50%":o="50%":0===r?n=e:o=e;return{x:n,y:o}}(s.position),l=s.posterType,u=e.$wrapper=c("<div>").addClass(s.className).css({position:"absolute","z-index":1,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-color":s.bgColor,"background-repeat":"no-repeat","background-position":a.x+" "+a.y});"object"==typeof i&&(i.poster?n=i.poster:i.mp4?n=i.mp4:i.webm?n=i.webm:i.ogv&&(n=i.ogv)),"none"!==l&&u.css("background-image","url("+n+")"),"static"===r.css("position")&&r.css("position","relative"),r.prepend(u),i.mp4&&(o+='<source src="'+i.mp4+'" type="video/mp4">'),i.webm&&(o+='<source src="'+i.webm+'" type="video/webm">'),t=e.$video=c("<video>"+o+"</video>");try{t.prop({autoplay:s.autoplay,loop:s.loop,volume:s.volume,preload:"auto",muted:s.muted,defaultMuted:s.muted,playbackRate:s.playbackRate,defaultPlaybackRate:s.playbackRate})}catch(t){throw new Error(d)}t.attr("playsinline",s.playsinline),t.css({margin:"auto",position:"absolute","z-index":0,top:a.y,left:a.x,"-webkit-transform":"translate(-"+a.x+", -"+a.y+")","-ms-transform":"translate(-"+a.x+", -"+a.y+")","-moz-transform":"translate(-"+a.x+", -"+a.y+")",transform:"translate(-"+a.x+", -"+a.y+")",visibility:"hidden",opacity:0}).one("canplaythrough.vide",function(){e.resize()}).one("canplay playing.vide",function(){t.css({visibility:"visible"}).animate({opacity:1})}),r.on("resize.vide",function(){s.resizing&&e.resize()}),u.append(t)},s.prototype.getVideoObject=function(){return this.$video[0]},s.prototype.resize=function(){var t,e,i,n,o;this.$video&&(o=this.$wrapper,e=(n=(t=this.$video)[0]).videoHeight,i=n.videoWidth,(n=o.height())/e<(o=o.width())/i?t.css({width:o+2,height:"auto"}):t.css({width:"auto",height:n+2}))},s.prototype.destroy=function(){delete c.vide.lookup[this.index],this.$video&&this.$video.off(n),this.$element.off(n).removeData(n),this.$wrapper.remove()},c.vide={lookup:[]},c.fn.vide=function(t,e){var i;return this.each(function(){(i=c.data(this,n))&&i.destroy(),(i=new s(this,t,e)).index=c.vide.lookup.push(i)-1,c.data(this,n,i)}),this},c(document).ready(function(){var t=c(window);t.on("resize.vide",function(){for(var t,e=c.vide.lookup.length,i=0;i<e;i++)(t=c.vide.lookup[i])&&t.settings.resizing&&t.resize()}),t.on("unload.vide",function(){return!1}),c(document).find("[data-vide-bg]").each(function(t,e){var i=c(e),n=i.data("vide-options"),e=i.data("vide-bg");i.vide(e,n)})})}),function(t){var e,i,n;"function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),e||(i=window.Cookies,(n=window.Cookies=t()).noConflict=function(){return window.Cookies=i,n})}(function(){function a(){for(var t=0,e={};t<arguments.length;t++){var i,n=arguments[t];for(i in n)e[i]=n[i]}return e}function u(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function t(l){function s(){}function i(t,e,i){if("undefined"!=typeof document){"number"==typeof(i=a({path:"/"},s.defaults,i)).expires&&(i.expires=new Date(+new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var n=JSON.stringify(e);/^[\{\[]/.test(n)&&(e=n)}catch(t){}e=l.write?l.write(e,t):encodeURIComponent(e+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(t+"").replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var o,r="";for(o in i)i[o]&&(r+="; "+o,!0!==i[o]&&(r+="="+i[o].split(";")[0]));return document.cookie=t+"="+e+r}}function e(t,e){if("undefined"!=typeof document){for(var i={},n=document.cookie?document.cookie.split("; "):[],o=0;o<n.length;o++){var r=n[o].split("="),s=r.slice(1).join("=");e||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var a=u(r[0]),s=(l.read||l)(s,a)||u(s);if(e)try{s=JSON.parse(s)}catch(t){}if(i[a]=s,t===a)break}catch(t){}}return t?i[t]:i}}return s.set=i,s.get=function(t){return e(t,!1)},s.getJSON=function(t){return e(t,!0)},s.remove=function(t,e){i(t,"",a(e,{expires:-1}))},s.defaults={},s.withConverter=t,s}(function(){})}),function(t){var e=function(n,h,r){"use strict";var p,f;if(function(){var t,e={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in f=n.lazySizesConfig||n.lazysizesConfig||{},e)t in f||(f[t]=e[t])}(),!h||!h.getElementsByClassName)return{init:function(){},cfg:f,noSupport:!0};function s(t,e){return ut[e]||(ut[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),ut[e].test(t[it]("class")||"")&&ut[e]}function u(t,e){s(t,e)||t.setAttribute("class",(t[it]("class")||"").trim()+" "+e)}function c(t,e){(e=s(t,e))&&t.setAttribute("class",(t[it]("class")||"").replace(e," "))}function d(t,e,i,n,o){var r=h.createEvent("Event");return(i=i||{}).instance=p,r.initEvent(e,!n,!o),r.detail=i,t.dispatchEvent(r),r}function m(t,e){var i;!tt&&(i=n.picturefill||f.pf)?(e&&e.src&&!t[it]("srcset")&&t.setAttribute("srcset",e.src),i({reevaluate:!0,elements:[t]})):e&&e.src&&(t.src=e.src)}function g(t,e){return(getComputedStyle(t,null)||{})[e]}function o(t,e,i){for(i=i||t.offsetWidth;i<f.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i}function t(i,t){return t?function(){ht(i)}:function(){var t=this,e=arguments;ht(function(){i.apply(t,e)})}}function e(t){var e,i,n=function(){e=null,t()},o=function(){var t=r.now()-i;t<99?ot(o,99-t):(st||n)(n)};return function(){i=r.now(),e=e||ot(o,99)}}var i,a,l,v,y,b,T,_,S,D,w,C,A,E,x,P,M,k,I,B,F,L,O,H,G,z,$,R,N,W,j,X,V,q,U,Y,K,Q,Z,J=h.documentElement,tt=n.HTMLPictureElement,et="addEventListener",it="getAttribute",nt=n[et].bind(n),ot=n.setTimeout,rt=n.requestAnimationFrame||ot,st=n.requestIdleCallback,at=/^picture$/i,lt=["load","error","lazyincluded","_lazyloaded"],ut={},ct=Array.prototype.forEach,dt=function(e,i,t){var n=t?et:"removeEventListener";t&&dt(e,i),lt.forEach(function(t){e[n](t,i)})},ht=(Q=[],Z=K=[],Ct._lsFlush=wt,Ct),pt=(L=/^img$/i,O=/^iframe$/i,H="onscroll"in n&&!/(gle|ing)bot/.test(navigator.userAgent),$=-1,P=bt,k=z=G=0,I=f.throttleDelay,B=f.ricTimeout,F=st&&49<B?function(){st(Tt,{timeout:B}),B!==f.ricTimeout&&(B=f.ricTimeout)}:t(function(){ot(Tt)},!0),N=t(_t),W=function(t){N({target:t.target})},j=t(function(e,t,i,n,o){var r,s,a,l;(a=d(e,"lazybeforeunveil",t)).defaultPrevented||(n&&(i?u(e,f.autosizesClass):e.setAttribute("sizes",n)),i=e[it](f.srcsetAttr),n=e[it](f.srcAttr),o&&(s=(r=e.parentNode)&&at.test(r.nodeName||"")),l=t.firesLoad||"src"in e&&(i||n||s),a={target:e},u(e,f.loadingClass),l&&(clearTimeout(b),b=ot(vt,2500),dt(e,W,!0)),s&&ct.call(r.getElementsByTagName("source"),St),i?e.setAttribute("srcset",i):n&&!s&&(O.test(e.nodeName)?function(e,i){try{e.contentWindow.location.replace(i)}catch(t){e.src=i}}(e,n):e.src=n),o&&(i||s)&&m(e,{src:n})),e._lazyRace&&delete e._lazyRace,c(e,f.lazyClass),ht(function(){var t=e.complete&&1<e.naturalWidth;l&&!t||(t&&u(e,"ls-is-cached"),_t(a),e._lazyCache=!0,ot(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&z--},!0)}),V=e(function(){f.loadMode=3,R()}),q=function(){y||(r.now()-_<999?ot(q,999):(y=!0,f.loadMode=3,R(),nt("scroll",Dt,!0)))},{_:function(){_=r.now(),p.elements=h.getElementsByClassName(f.lazyClass),v=h.getElementsByClassName(f.lazyClass+" "+f.preloadClass),nt("scroll",R,!0),nt("resize",R,!0),nt("pageshow",function(t){var e;!t.persisted||(e=h.querySelectorAll("."+f.loadingClass)).length&&e.forEach&&rt(function(){e.forEach(function(t){t.complete&&X(t)})})}),n.MutationObserver?new MutationObserver(R).observe(J,{childList:!0,subtree:!0,attributes:!0}):(J[et]("DOMNodeInserted",R,!0),J[et]("DOMAttrModified",R,!0),setInterval(R,999)),nt("hashchange",R,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(t){h[et](t,R,!0)}),/d$|^c/.test(h.readyState)?q():(nt("load",q),h[et]("DOMContentLoaded",R),ot(q,2e4)),p.elements.length?(bt(),ht._lsFlush()):R()},checkElems:R=function(t){var e;(t=!0===t)&&(B=33),M||(M=!0,(e=I-(r.now()-k))<0&&(e=0),t||e<9?F():ot(F,e))},unveil:X=function(t){var e,i,n,o;t._lazyRace||(!(o="auto"==(n=(i=L.test(t.nodeName))&&(t[it](f.sizesAttr)||t[it]("sizes"))))&&y||!i||!t[it]("src")&&!t.srcset||t.complete||s(t,f.errorClass)||!s(t,f.lazyClass))&&(e=d(t,"lazyunveilread").detail,o&&ft.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,z++,j(t,e,o,n,i))},_aLSL:Dt}),ft=(a=t(function(t,e,i,n){var o,r,s;if(t._lazysizesWidth=n,t.setAttribute("sizes",n+="px"),at.test(e.nodeName||""))for(r=0,s=(o=e.getElementsByTagName("source")).length;r<s;r++)o[r].setAttribute("sizes",n);i.detail.dataAttr||m(t,i.detail)}),{_:function(){i=h.getElementsByClassName(f.autosizesClass),nt("resize",l)},checkElems:l=e(function(){var t,e=i.length;if(e)for(t=0;t<e;t++)gt(i[t])}),updateElem:gt}),mt=function(){!mt.i&&h.getElementsByClassName&&(mt.i=!0,ft._(),pt._())};function gt(t,e,i){var n=t.parentNode;n&&(i=o(t,n,i),(e=d(t,"lazybeforesizes",{width:i,dataAttr:!!e})).defaultPrevented||(i=e.detail.width)&&i!==t._lazysizesWidth&&a(t,n,e,i))}function vt(t){z--,t&&!(z<0)&&t.target||(z=0)}function yt(t){return(x=null==x?"hidden"==g(h.body,"visibility"):x)||!("hidden"==g(t.parentNode,"visibility")&&"hidden"==g(t,"visibility"))}function bt(){var t,e,i,n,o,r,s,a,l,u,c,d=p.elements;if((T=f.loadMode)&&z<8&&(t=d.length)){for(e=0,$++;e<t;e++)if(d[e]&&!d[e]._lazyRace)if(!H||p.prematureUnveil&&p.prematureUnveil(d[e]))X(d[e]);else if((s=d[e][it]("data-expand"))&&(o=+s)||(o=G),l||(l=!f.expand||f.expand<1?500<J.clientHeight&&500<J.clientWidth?500:370:f.expand,u=(p._defEx=l)*f.expFactor,c=f.hFac,x=null,G<u&&z<1&&2<$&&2<T&&!h.hidden?(G=u,$=0):G=1<T&&1<$&&z<6?l:0),a!==o&&(S=innerWidth+o*c,D=innerHeight+o,r=-1*o,a=o),u=d[e].getBoundingClientRect(),(E=u.bottom)>=r&&(w=u.top)<=D&&(A=u.right)>=r*c&&(C=u.left)<=S&&(E||A||C||w)&&(f.loadHidden||yt(d[e]))&&(y&&z<3&&!s&&(T<3||$<4)||function(t,e){var i,n=t,o=yt(t);for(w-=e,E+=e,C-=e,A+=e;o&&(n=n.offsetParent)&&n!=h.body&&n!=J;)(o=0<(g(n,"opacity")||1))&&"visible"!=g(n,"overflow")&&(i=n.getBoundingClientRect(),o=A>i.left&&C<i.right&&E>i.top-1&&w<i.bottom+1);return o}(d[e],o))){if(X(d[e]),n=!0,9<z)break}else!n&&y&&!i&&z<4&&$<4&&2<T&&(v[0]||f.preloadAfterLoad)&&(v[0]||!s&&(E||A||C||w||"auto"!=d[e][it](f.sizesAttr)))&&(i=v[0]||d[e]);i&&!n&&X(i)}}function Tt(){M=!1,k=r.now(),P()}function _t(t){var e=t.target;e._lazyCache?delete e._lazyCache:(vt(t),u(e,f.loadedClass),c(e,f.loadingClass),dt(e,W),d(e,"lazyloaded"))}function St(t){var e,i=t[it](f.srcsetAttr);(e=f.customMedia[t[it]("data-media")||t[it]("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)}function Dt(){3==f.loadMode&&(f.loadMode=2),V()}function wt(){var t=Z;for(Z=K.length?Q:K,Y=!(U=!0);t.length;)t.shift()();U=!1}function Ct(t,e){U&&!e?t.apply(this,arguments):(Z.push(t),Y||(Y=!0,(h.hidden?ot:rt)(wt)))}return ot(function(){f.init&&mt()}),p={cfg:f,autoSizer:ft,loader:pt,init:mt,uP:m,aC:u,rC:c,hC:s,fire:d,gW:o,rAF:ht}}(t,t.document,Date);t.lazySizes=e,"object"==typeof module&&module.exports&&(module.exports=e)}("undefined"!=typeof window?window:{}),function(r){(function(){if("undefined"!=typeof module&&module.exports)return function(t){module.exports=t()};if("function"==typeof define&&define.amd)return define;if("undefined"!=typeof window)return function(t){window.MobileDetect=t()};throw new Error("unknown environment")})()(function(){"use strict";function e(t,e){return null!=t&&null!=e&&t.toLowerCase()===e.toLowerCase()}function i(t,e){var i,n,o=t.length;if(!o||!e)return!1;for(i=e.toLowerCase(),n=0;n<o;++n)if(i===t[n].toLowerCase())return!0;return!1}function a(t){for(var e in t)c.call(t,e)&&(t[e]=new RegExp(t[e],"i"))}function o(t,e){this.ua=(t||"").substr(0,500),this._cache={},this.maxPhoneWidth=e||600}var l,u={mobileDetectRules:{phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+|\\b(BBA100|BBB100|BBD100|BBE100|BBF100|STH100)\\b-[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)|LM-G710",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo (3DS|Switch)",Amoi:"Amoi",INQ:"INQ",OnePlus:"ONEPLUS",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",GoogleTablet:"Android.*Pixel C",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-T830|SM-T837V|SM-T720|SM-T510|SM-T387V",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)(A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304X|TB-X304F|TB-X304L|TB-X505F|TB-X505L|TB-X505X|TB-X605F|TB-X605L|TB-8703F|TB-8703X|TB-8703N|TB-8704N|TB-8704F|TB-8704X|TB-8704V|TB-7304F|TB-7304I|TB-7304X|Tab2A7-10F|Tab2A7-20F|TB2-X30L|YT3-X50L|YT3-X50F|YT3-X50M|YT-X705F|YT-X703F|YT-X703L|YT-X705L|YT-X705X|TB2-X30F|TB2-X30L|TB2-X30M|A2107A-F|A2107A-H|TB3-730F|TB3-730M|TB3-730X|TB-7504F|TB-7504X",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|SGP612|SGP712",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*\\b(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))\\b|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-L09|CMR-AL19",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z930|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b(?!\\))",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4(HD)?|Visture V5(HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497|VFD 1400",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9|TECNO DP8D",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+|V10 \\b4G\\b",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Windows Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",iPadOS:"CPU OS 13",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",WeChat:"\\bMicroMessenger\\b",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|Google-AMPHTML|s~amp-validator|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom|contentkingapp",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},detectMobileBrowsers:{fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i}},c=Object.prototype.hasOwnProperty;return u.FALLBACK_PHONE="UnknownPhone",u.FALLBACK_TABLET="UnknownTablet",u.FALLBACK_MOBILE="UnknownMobile",l="isArray"in Array?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},function(){var t,e,i,n,o,r,s=u.mobileDetectRules;for(t in s.props)if(c.call(s.props,t)){for(e=s.props[t],o=(e=!l(e)?[e]:e).length,n=0;n<o;++n)0<=(r=(i=e[n]).indexOf("[VER]"))&&(i=i.substring(0,r)+"([\\w._\\+]+)"+i.substring(r+5)),e[n]=new RegExp(i,"i");s.props[t]=e}a(s.oss),a(s.phones),a(s.tablets),a(s.uas),a(s.utils),s.oss0={WindowsPhoneOS:s.oss.WindowsPhoneOS,WindowsMobileOS:s.oss.WindowsMobileOS}}(),u.findMatch=function(t,e){for(var i in t)if(c.call(t,i)&&t[i].test(e))return i;return null},u.findMatches=function(t,e){var i,n=[];for(i in t)c.call(t,i)&&t[i].test(e)&&n.push(i);return n},u.getVersionStr=function(t,e){var i,n,o,r,s=u.mobileDetectRules.props;if(c.call(s,t))for(o=(i=s[t]).length,n=0;n<o;++n)if(null!==(r=i[n].exec(e)))return r[1];return null},u.getVersion=function(t,e){e=u.getVersionStr(t,e);return e?u.prepareVersionNo(e):NaN},u.prepareVersionNo=function(t){var e=t.split(/[a-z._ \/\-]/i);return 1===e.length&&(t=e[0]),1<e.length&&(t=e[0]+".",e.shift(),t+=e.join("")),Number(t)},u.isMobileFallback=function(t){return u.detectMobileBrowsers.fullPattern.test(t)||u.detectMobileBrowsers.shortPattern.test(t.substr(0,4))},u.isTabletFallback=function(t){return u.detectMobileBrowsers.tabletPattern.test(t)},u.prepareDetectionCache=function(t,e,i){var n;if(t.mobile===r)return(n=u.findMatch(u.mobileDetectRules.tablets,e))?(t.mobile=t.tablet=n,void(t.phone=null)):(n=u.findMatch(u.mobileDetectRules.phones,e))?(t.mobile=t.phone=n,void(t.tablet=null)):void(u.isMobileFallback(e)?(i=o.isPhoneSized(i))===r?(t.mobile=u.FALLBACK_MOBILE,t.tablet=t.phone=null):i?(t.mobile=t.phone=u.FALLBACK_PHONE,t.tablet=null):(t.mobile=t.tablet=u.FALLBACK_TABLET,t.phone=null):u.isTabletFallback(e)?(t.mobile=t.tablet=u.FALLBACK_TABLET,t.phone=null):t.mobile=t.tablet=t.phone=null)},u.mobileGrade=function(t){var e=null!==t.mobile();return t.os("iOS")&&4.3<=t.version("iPad")||t.os("iOS")&&3.1<=t.version("iPhone")||t.os("iOS")&&3.1<=t.version("iPod")||2.1<t.version("Android")&&t.is("Webkit")||7<=t.version("Windows Phone OS")||t.is("BlackBerry")&&6<=t.version("BlackBerry")||t.match("Playbook.*Tablet")||1.4<=t.version("webOS")&&t.match("Palm|Pre|Pixi")||t.match("hp.*TouchPad")||t.is("Firefox")&&12<=t.version("Firefox")||t.is("Chrome")&&t.is("AndroidOS")&&4<=t.version("Android")||t.is("Skyfire")&&4.1<=t.version("Skyfire")&&t.is("AndroidOS")&&2.3<=t.version("Android")||t.is("Opera")&&11<t.version("Opera Mobi")&&t.is("AndroidOS")||t.is("MeeGoOS")||t.is("Tizen")||t.is("Dolfin")&&2<=t.version("Bada")||(t.is("UC Browser")||t.is("Dolfin"))&&2.3<=t.version("Android")||t.match("Kindle Fire")||t.is("Kindle")&&3<=t.version("Kindle")||t.is("AndroidOS")&&t.is("NookTablet")||11<=t.version("Chrome")&&!e||5<=t.version("Safari")&&!e||4<=t.version("Firefox")&&!e||7<=t.version("MSIE")&&!e||10<=t.version("Opera")&&!e?"A":t.os("iOS")&&t.version("iPad")<4.3||t.os("iOS")&&t.version("iPhone")<3.1||t.os("iOS")&&t.version("iPod")<3.1||t.is("Blackberry")&&5<=t.version("BlackBerry")&&t.version("BlackBerry")<6||5<=t.version("Opera Mini")&&t.version("Opera Mini")<=6.5&&(2.3<=t.version("Android")||t.is("iOS"))||t.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||11<=t.version("Opera Mobi")&&t.is("SymbianOS")?"B":(t.version("BlackBerry")<5||t.match("MSIEMobile|Windows CE.*Mobile")||t.version("Windows Mobile"),"C")},u.detectOS=function(t){return u.findMatch(u.mobileDetectRules.oss0,t)||u.findMatch(u.mobileDetectRules.oss,t)},u.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},o.prototype={constructor:o,mobile:function(){return u.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return u.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return u.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===r&&(this._cache.userAgent=u.findMatch(u.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===r&&(this._cache.userAgents=u.findMatches(u.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===r&&(this._cache.os=u.detectOS(this.ua)),this._cache.os},version:function(t){return u.getVersion(t,this.ua)},versionStr:function(t){return u.getVersionStr(t,this.ua)},is:function(t){return i(this.userAgents(),t)||e(t,this.os())||e(t,this.phone())||e(t,this.tablet())||i(u.findMatches(u.mobileDetectRules.utils,this.ua),t)},match:function(t){return(t=!(t instanceof RegExp)?new RegExp(t,"i"):t).test(this.ua)},isPhoneSized:function(t){return o.isPhoneSized(t||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===r&&(this._cache.grade=u.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?o.isPhoneSized=function(t){return t<0?r:u.getDeviceSmallerSide()<=t}:o.isPhoneSized=function(){},o._impl=u,o.version="1.4.4 2019-09-21",o})}(),function(){var u,n,c,d,t,s,l,x,o,h,p,r,f,i,m,P,a,e,g,v=[].slice;function y(t){var e,i,n,o,r,s,a,l=this;if(this.options=t,this.el=this.options.el,null!=this.el.odometer)return this.el.odometer;for(e in this.el.odometer=this,s=y.options)n=s[e],null==this.options[e]&&(this.options[e]=n);null==(t=this.options).duration&&(t.duration=u),this.MAX_VALUES=this.options.duration/d/c|0,this.resetFormat(),this.value=this.cleanValue(null!=(t=this.options.value)?t:""),this.renderInside(),this.render();try{for(o=0,r=(a=["innerHTML","innerText","textContent"]).length;o<r;o++)i=a[o],null!=this.el[i]&&function(e){Object.defineProperty(l.el,e,{get:function(){var t;return"innerHTML"===e?l.inside.outerHTML:null!=(t=l.inside.innerText)?t:l.inside.textContent},set:function(t){return l.update(t)}})}(i)}catch(t){this.watchForMutations()}}n=/^\(?([^)]*)\)?(?:(.)(d+))?$/,u=2e3,c=2,d=1e3/30,g=document.createElement("div").style,l=null!=g.transition||null!=g.webkitTransition||null!=g.mozTransition||null!=g.oTransition,f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,o=function(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]},r=function(t,e){return t.className=t.className.replace(new RegExp("(^|)"+e.split(" ").join("|")+"(|$)","gi")," ")},x=function(t,e){return r(t,e),t.className+=" "+e},m=function(t,e){var i;return null!=document.createEvent?((i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),t.dispatchEvent(i)):void 0},p=function(){var t;return null!=(t=null!=(t=window.performance)&&"function"==typeof t.now?t.now():void 0)?t:+new Date},i=function(t,e){return(e=null==e?0:e)?(t*=Math.pow(10,e),t+=.5,(t=Math.floor(t))/Math.pow(10,e)):Math.round(t)},P=function(t){return t<0?Math.ceil(t):Math.floor(t)},a=!(h=function(t){return t-i(t)}),(g=function(){var t,e,i,n,o;if(!a&&null!=window.jQuery){for(a=!0,o=[],e=0,i=(n=["html","text"]).length;e<i;e++)t=n[e],o.push(function(){var i=window.jQuery.fn[t];return window.jQuery.fn[t]=function(t){var e;return null==t||null==(null!=(e=this[0])?e.odometer:void 0)?i.apply(this,arguments):this[0].odometer.update(t)}}());return o}})(),setTimeout(g,0),y.prototype.renderInside=function(){return this.inside=document.createElement("div"),this.inside.className="odometer-inside",this.el.innerHTML="",this.el.appendChild(this.inside)},y.prototype.watchForMutations=function(){var i=this;if(null!=t)try{return null==this.observer&&(this.observer=new t(function(t){var e=i.el.innerText;return i.renderInside(),i.render(i.value),i.update(e)})),this.watchMutations=!0,this.startWatchingMutations()}catch(t){0}},y.prototype.startWatchingMutations=function(){return this.watchMutations?this.observer.observe(this.el,{childList:!0}):void 0},y.prototype.stopWatchingMutations=function(){var t;return null!=(t=this.observer)?t.disconnect():void 0},y.prototype.cleanValue=function(t){var e;return"string"==typeof t&&(t=(t=(t=t.replace(null!=(e=this.format.radix)?e:".","<radix>")).replace(/[.,]/g,"")).replace("<radix>","."),t=parseFloat(t,10)||0),i(t,this.format.precision)},y.prototype.bindTransitionEnd=function(){var t,e,i,n,o,r,s=this;if(!this.transitionEndBound){for(this.transitionEndBound=!0,e=!1,r=[],i=0,n=(o="transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd".split(" ")).length;i<n;i++)t=o[i],r.push(this.el.addEventListener(t,function(){return e||(e=!0,setTimeout(function(){return s.render(),e=!1,m(s.el,"odometerdone")},0)),!0},!1));return r}},y.prototype.resetFormat=function(){var t,e,i=null!=(e=this.options.format)?e:"(,ddd).dd";if(!(t=n.exec(i=i||"d")))throw new Error("Odometer: Unparsable digit format");return i=(e=t.slice(1,4))[0],t=e[1],e=(null!=(e=e[2])?e.length:void 0)||0,this.format={repeating:i,radix:t,precision:e}},y.prototype.render=function(t){var e,i,n,o,r,s,a;for(null==t&&(t=this.value),this.stopWatchingMutations(),this.resetFormat(),this.inside.innerHTML="",r=this.options.theme,o=[],s=0,a=(e=this.el.className.split(" ")).length;s<a;s++)(i=e[s]).length&&((n=/^odometer-theme-(.+)$/.exec(i))?r=n[1]:/^odometer(-|$)/.test(i)||o.push(i));return o.push("odometer"),l||o.push("odometer-no-transitions"),r?o.push("odometer-theme-"+r):o.push("odometer-auto-theme"),this.el.className=o.join(" "),this.ribbons={},this.formatDigits(t),this.startWatchingMutations()},y.prototype.formatDigits=function(t){var e,i,n,o,r,s,a,l,u;if(this.digits=[],this.options.formatFunction)for(o=0,s=(l=this.options.formatFunction(t).split("").reverse()).length;o<s;o++)(i=l[o]).match(/0-9/)?((e=this.renderDigit()).querySelector(".odometer-value").innerHTML=i,this.digits.push(e),this.insertDigit(e)):this.addSpacer(i);else for(n=!this.format.precision||!h(t)||!1,r=0,a=(u=t.toString().split("").reverse()).length;r<a;r++)e=u[r],this.addDigit(e,n="."===e?!0:n)},y.prototype.update=function(t){var e,i=this;return(e=(t=this.cleanValue(t))-this.value)?(r(this.el,"odometer-animating-up odometer-animating-down odometer-animating"),x(this.el,0<e?"odometer-animating-up":"odometer-animating-down"),this.stopWatchingMutations(),this.animate(t),this.startWatchingMutations(),setTimeout(function(){return i.el.offsetHeight,x(i.el,"odometer-animating")},0),this.value=t):void 0},y.prototype.renderDigit=function(){return o('<span class="odometer-digit"><span class="odometer-digit-spacer">8</span><span class="odometer-digit-inner"><span class="odometer-ribbon"><span class="odometer-ribbon-inner"><span class="odometer-value"></span></span></span></span></span>')},y.prototype.insertDigit=function(t,e){return null!=e?this.inside.insertBefore(t,e):this.inside.children.length?this.inside.insertBefore(t,this.inside.children[0]):this.inside.appendChild(t)},y.prototype.addSpacer=function(t,e,i){var n=o('<span class="odometer-formatting-mark"></span>');return n.innerHTML=t,i&&x(n,i),this.insertDigit(n,e)},y.prototype.addDigit=function(t,e){var i,n,o;if(null==e&&(e=!0),"-"===t)return this.addSpacer(t,null,"odometer-negation-mark");if("."===t)return this.addSpacer(null!=(o=this.format.radix)?o:".",null,"odometer-radix-mark");if(e)for(n=!1;;){if(!this.format.repeating.length){if(n)throw new Error("Bad odometer format without digits");this.resetFormat(),n=!0}if(i=this.format.repeating[this.format.repeating.length-1],this.format.repeating=this.format.repeating.substring(0,this.format.repeating.length-1),"d"===i)break;this.addSpacer(i)}return(e=this.renderDigit()).querySelector(".odometer-value").innerHTML=t,this.digits.push(e),this.insertDigit(e)},y.prototype.animate=function(t){return l&&"count"!==this.options.animation?this.animateSlide(t):this.animateCount(t)},y.prototype.animateCount=function(e){var i,n,o,r,s,a=this;if(n=+e-this.value)return r=o=p(),i=this.value,(s=function(){var t;return p()-r>a.options.duration?(a.value=e,a.render(),void m(a.el,"odometerdone")):(50<(t=p()-o)&&(o=p(),t=t/a.options.duration,i+=n*t,a.render(Math.round(i))),null!=f?f(s):setTimeout(s,50))})()},y.prototype.getDigitCount=function(){for(var t,e,i,n=1<=arguments.length?v.call(arguments,0):[],o=i=0,r=n.length;i<r;o=++i)e=n[o],n[o]=Math.abs(e);return t=Math.max.apply(Math,n),Math.ceil(Math.log(t+1)/Math.log(10))},y.prototype.getFractionalDigitCount=function(){for(var t,e,i=1<=arguments.length?v.call(arguments,0):[],n=/^\-?\d*\.(\d*?)0*$/,o=e=0,r=i.length;e<r;o=++e)t=i[o],i[o]=t.toString(),t=n.exec(i[o]),i[o]=null==t?0:t[1].length;return Math.max.apply(Math,i)},y.prototype.resetDigits=function(){return this.digits=[],this.ribbons=[],this.inside.innerHTML="",this.resetFormat()},y.prototype.animateSlide=function(t){var e,i,n,o,r,s,a,l,u,c,d,h,p,f,m,g,v,y,b,T,_,S,D,w,C,A=this.value,E=this.getFractionalDigitCount(A,t);if(E&&(t*=Math.pow(10,E),A*=Math.pow(10,E)),n=t-A){for(this.bindTransitionEnd(),o=this.getDigitCount(A,t),r=[],c=v=e=0;0<=o?v<o:o<v;c=0<=o?++v:--v){if(m=P(A/Math.pow(10,o-c-1)),s=(a=P(t/Math.pow(10,o-c-1)))-m,Math.abs(s)>this.MAX_VALUES){for(u=[],d=s/(this.MAX_VALUES+this.MAX_VALUES*e*.5),i=m;0<s&&i<a||s<0&&a<i;)u.push(Math.round(i)),i+=d;u[u.length-1]!==a&&u.push(a),e++}else u=function(){C=[];for(var t=m;m<=a?t<=a:a<=t;m<=a?t++:t--)C.push(t);return C}.apply(this);for(c=y=0,T=u.length;y<T;c=++y)l=u[c],u[c]=Math.abs(l%10);r.push(u)}for(this.resetDigits(),c=b=0,_=(w=r.reverse()).length;b<_;c=++b)for(u=w[c],this.digits[c]||this.addDigit(" ",E<=c),null==(g=this.ribbons)[c]&&(g[c]=this.digits[c].querySelector(".odometer-ribbon-inner")),this.ribbons[c].innerHTML="",S=(u=n<(h=D=0)?u.reverse():u).length;D<S;h=++D)l=u[h],(f=document.createElement("div")).className="odometer-value",f.innerHTML=l,this.ribbons[c].appendChild(f),h===u.length-1&&x(f,"odometer-last-value"),0===h&&x(f,"odometer-first-value");return m<0&&this.addDigit("-"),null!=(p=this.inside.querySelector(".odometer-radix-mark"))&&p.parent.removeChild(p),E?this.addSpacer(this.format.radix,this.digits[E-1],"odometer-radix-mark"):void 0}},(s=y).options=null!=(g=window.odometerOptions)?g:{},setTimeout(function(){var t,e,i,n,o;if(window.odometerOptions){for(t in o=[],n=window.odometerOptions)e=n[t],o.push(null!=(i=s.options)[t]?(i=s.options)[t]:i[t]=e);return o}},0),s.init=function(){var t,e,i,n,o,r;if(null!=document.querySelectorAll){for(r=[],i=0,n=(e=document.querySelectorAll(s.options.selector||".odometer")).length;i<n;i++)t=e[i],r.push(t.odometer=new s({el:t,value:null!=(o=t.innerText)?o:t.textContent}));return r}},null!=(null!=(g=document.documentElement)?g.doScroll:void 0)&&null!=document.createEventObject?(e=document.onreadystatechange,document.onreadystatechange=function(){return"complete"===document.readyState&&!1!==s.options.auto&&s.init(),null!=e?e.apply(this,arguments):void 0}):document.addEventListener("DOMContentLoaded",function(){return!1!==s.options.auto?s.init():void 0},!1),"function"==typeof define&&define.amd?define([],function(){return s}):"undefined"!=typeof exports&&null!==exports?module.exports=s:window.Odometer=s}.call(this),function(t,e){"function"==typeof define&&define.amd?define("packery/js/rect",e):"object"==typeof module&&module.exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window,function(){function a(t){for(var e in a.defaults)this[e]=a.defaults[e];for(e in t)this[e]=t[e]}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},t.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,n=t.x+t.width,o=t.y+t.height;return this.x<n&&e>t.x&&this.y<o&&i>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var e,i=[],n=this.x+this.width,o=this.y+this.height,r=t.x+t.width,s=t.y+t.height;return this.y<t.y&&(e=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),i.push(e)),r<n&&(e=new a({x:r,y:this.y,width:n-r,height:this.height}),i.push(e)),s<o&&(e=new a({x:this.x,y:s,width:this.width,height:o-s}),i.push(e)),this.x<t.x&&(e=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),i.push(e)),i},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/packer",["./rect"],e):"object"==typeof module&&module.exports?module.exports=e(require("./rect")):(t=t.Packery=t.Packery||{}).Packer=e(t.Rect)}(window,function(e){function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=t.prototype;i.reset=function(){this.spaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=n[this.sortDirection]||n.downwardLeftToRight},i.pack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.canFit(t)){this.placeInSpace(t,i);break}}},i.columnPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.x<=t.x&&i.x+i.width>=t.x+t.width&&i.height>=t.height-.01){t.y=i.y,this.placed(t);break}}},i.rowPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.y<=t.y&&i.y+i.height>=t.y+t.height&&i.width>=t.width-.01){t.x=i.x,this.placed(t);break}}},i.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},i.placed=function(t){for(var e=[],i=0;i<this.spaces.length;i++){var n=this.spaces[i],o=n.getMaximalFreeRects(t);o?e.push.apply(e,o):e.push(n)}this.spaces=e,this.mergeSortSpaces()},i.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},i.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){var e=0,i=t[e];t:for(;i;){for(var n=0,o=t[e+n];o;){if(o==i)n++;else{if(o.contains(i)){t.splice(e,1),i=t[e];continue t}i.contains(o)?t.splice(e+n,1):n++}o=t[e+n]}i=t[++e]}return t};var n={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return t}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("./rect")):t.Packery.Item=e(t.Outlayer,t.Packery.Rect)}(window,function(t,e){function i(){t.Item.apply(this,arguments)}var n="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",o=i.prototype=Object.create(t.Item.prototype),r=o._create;o._create=function(){r.call(this),this.rect=new e};var s=o.moveTo;return o.moveTo=function(t,e){var i=Math.abs(this.position.x-t),n=Math.abs(this.position.y-e);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&i<1&&n<1?this.goTo(t,e):s.apply(this,arguments)},o.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&n&&(this.element.style[n]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},o.disablePlacing=function(){this.isPlacing=!1},o.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},o.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},o.positionDropPlaceholder=function(){this.dropPlaceholder.style[n]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},o.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},i}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/packery",["get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(u,t,s,e,i){s.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var n=t.create("packery");n.Item=i;i=n.prototype;function o(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function r(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}i._create=function(){t.prototype._create.call(this),this.packer=new e,this.shiftPacker=new e,this.isEnabled=!0,this.dragItemCount=0;var i=this;this.handleDraggabilly={dragStart:function(){i.itemDragStart(this.element)},dragMove:function(){i.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){i.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,e){e&&i.itemDragStart(t.currentTarget)},drag:function(t,e){e&&i.itemDragMove(t.currentTarget,e.position.left,e.position.top)},stop:function(t,e){e&&i.itemDragEnd(t.currentTarget)}}},i._resetLayout=function(){var t,e,i;this.getSize(),this._getMeasurements(),i=this._getOption("horizontal")?(t=1/0,e=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,e=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},i._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},i._getItemLayoutPosition=function(t){var e;return this._setRectSize(t.element,t.rect),this.isShifting||0<this.dragItemCount?(e=this._getPackMethod(),this.packer[e](t.rect)):this.packer.pack(t.rect),this._setMaxXY(t.rect),t.rect},i.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},i._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},i._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},i._setRectSize=function(t,e){var i=u(t),t=i.outerWidth,i=i.outerHeight;(t||i)&&(t=this._applyGridGutter(t,this.columnWidth),i=this._applyGridGutter(i,this.rowHeight)),e.width=Math.min(t,this.packer.width),e.height=Math.min(i,this.packer.height)},i._applyGridGutter=function(t,e){if(!e)return t+this.gutter;var i=t%(e+=this.gutter);return t=Math[i&&i<1?"round":"ceil"](t/e)*e},i._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},i._manageStamp=function(t){var e,i=this.getItem(t);e=i&&i.isPlacing?i.rect:(e=this._getElementOffset(t),new s({x:this._getOption("originLeft")?e.left:e.right,y:this._getOption("originTop")?e.top:e.bottom})),this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},i.sortItemsByPosition=function(){var t=this._getOption("horizontal")?r:o;this.items.sort(t)},i.fit=function(t,e,i){t=this.getItem(t);t&&(this.stamp(t.element),t.enablePlacing(),this.updateShiftTargets(t),e=void 0===e?t.rect.x:e,i=void 0===i?t.rect.y:i,this.shift(t,e,i),this._bindFitEvents(t),t.moveTo(t.rect.x,t.rect.y),this.shiftLayout(),this.unstamp(t.element),this.sortItemsByPosition(),t.disablePlacing())},i._bindFitEvents=function(t){var e=this,i=0;function n(){2==++i&&e.dispatchEvent("fitComplete",null,[t])}t.once("layout",n),this.once("layoutComplete",n)},i.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},i.needsResizeLayout=function(){var t=u(this.element),e=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[e]!=this.size[e]},i.resizeShiftPercentLayout=function(){var i,e,n,t=this._getItemsForLayout(this.items),o=this._getOption("horizontal"),r=o?"y":"x",s=o?"height":"width",a=o?"rowHeight":"columnWidth",o=o?"innerHeight":"innerWidth",l=this[a];(l=l&&l+this.gutter)?(this._getMeasurements(),i=this[a]+this.gutter,t.forEach(function(t){var e=Math.round(t.rect[r]/l);t.rect[r]=e*i})):(e=u(this.element)[o]+this.gutter,n=this.packer[s],t.forEach(function(t){t.rect[r]=t.rect[r]/n*e})),this.shiftLayout()},i.itemDragStart=function(t){this.isEnabled&&(this.stamp(t),(t=this.getItem(t))&&(t.enablePlacing(),t.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(t)))},i.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var i=this._getOption("originLeft"),n=this._getOption("originTop");this.stamps.forEach(function(t){var e=this.getItem(t);e&&e.isPlacing||(e=this._getElementOffset(t),e=new s({x:i?e.left:e.right,y:n?e.top:e.bottom}),this._setRectSize(t,e),this.shiftPacker.placed(e))},this);var l=this._getOption("horizontal"),e=l?"rowHeight":"columnWidth",u=l?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var c=this[e];if(c=c&&c+this.gutter)for(var e=Math.ceil(t.rect[u]/c),o=Math.floor((this.shiftPacker[u]+this.gutter)/c),d=(o-e)*c,r=0;r<o;r++)this._addShiftTarget(r*c,0,d);else d=this.shiftPacker[u]+this.gutter-t.rect[u],this._addShiftTarget(0,0,d);var t=this._getItemsForLayout(this.items),h=this._getPackMethod();t.forEach(function(t){var e=t.rect;this._setRectSize(t.element,e),this.shiftPacker[h](e),this._addShiftTarget(e.x,e.y,d);var i=l?e.x+e.width:e.x,n=l?e.y:e.y+e.height;if(this._addShiftTarget(i,n,d),c)for(var o=Math.round(e[u]/c),r=1;r<o;r++){var s=l?i:e.x+c*r,a=l?e.y+c*r:n;this._addShiftTarget(s,a,d)}},this)},i._addShiftTarget=function(t,e,i){var n=this._getOption("horizontal")?e:t;0!==n&&i<n||(-1!=this.shiftTargetKeys.indexOf(n=t+","+e)||(this.shiftTargetKeys.push(n),this.shiftTargets.push({x:t,y:e})))},i.shift=function(t,e,i){var n,o=1/0,r={x:e,y:i};this.shiftTargets.forEach(function(t){var e,i,e=(i=r.x-(e=t).x,e=r.y-e.y,Math.sqrt(i*i+e*e));e<o&&(n=t,o=e)}),t.rect.x=n.x,t.rect.y=n.y};i.itemDragMove=function(t,e,i){var n,o=this.isEnabled&&this.getItem(t);function r(){n.shift(o,e,i),o.positionDropPlaceholder(),n.layout()}o&&(e-=this.size.paddingLeft,i-=this.size.paddingTop,n=this,t=new Date,this._itemDragTime&&t-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(r,120)):(r(),this._itemDragTime=t))},i.itemDragEnd=function(t){var e,i,n=this.isEnabled&&this.getItem(t);function o(){2==++e&&(n.element.classList.remove("is-positioning-post-drag"),n.hideDropPlaceholder(),i.dispatchEvent("dragItemPositioned",null,[n]))}n&&(clearTimeout(this.dragTimeout),n.element.classList.add("is-positioning-post-drag"),e=0,i=this,n.once("layout",o),this.once("layoutComplete",o),n.moveTo(n.rect.x,n.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),n.disablePlacing(),this.unstamp(n.element))},i.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},i.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},i._bindDraggabillyEvents=function(t,e){var i=this.handleDraggabilly;t[e]("dragStart",i.dragStart),t[e]("dragMove",i.dragMove),t[e]("dragEnd",i.dragEnd)},i.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},i.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},i._bindUIDraggableEvents=function(t,e){var i=this.handleUIDraggable;t[e]("dragstart",i.start)[e]("drag",i.drag)[e]("dragstop",i.stop)};var a=i.destroy;return i.destroy=function(){a.apply(this,arguments),this.isEnabled=!1},n.Rect=s,n.Packer=e,n}),function(t,e){"function"==typeof define&&define.amd?define(["isotope-layout/js/layout-mode","packery/js/packery"],e):"object"==typeof module&&module.exports?module.exports=e(require("isotope-layout/js/layout-mode"),require("packery")):e(t.Isotope.LayoutMode,t.Packery)}(window,function(t,e){var i,t=t.create("packery"),n=t.prototype,o={_getElementOffset:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n._resetLayout;n._resetLayout=function(){this.packer=this.packer||new e.Packer,this.shiftPacker=this.shiftPacker||new e.Packer,r.apply(this,arguments)};var s=n._getItemLayoutPosition;n._getItemLayoutPosition=function(t){return t.rect=t.rect||new e.Rect,s.call(this,t)};var a=n.needsResizeLayout;n.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():a.call(this)};var l=n._getOption;return n._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:l.apply(this.isotope,arguments)},t}),function n(o,r,s){function a(i,t){if(!r[i]){if(!o[i]){var e="function"==typeof require&&require;if(!t&&e)return e(i,!0);if(l)return l(i,!0);e=new Error("Cannot find module '"+i+"'");throw e.code="MODULE_NOT_FOUND",e}e=r[i]={exports:{}};o[i][0].call(e.exports,function(t){var e=o[i][1][t];return a(e||t)},e,e.exports,n,o,r,s)}return r[i].exports}for(var l="function"==typeof require&&require,t=0;t<s.length;t++)a(s[t]);return a}({1:[function(t,e,i){"use strict";function n(t){t.fn.perfectScrollbar=function(e){return this.each(function(){var t;"object"==typeof e||void 0===e?(t=e,r.get(this)||o.initialize(this,t)):"update"===(t=e)?o.update(this):"destroy"===t&&o.destroy(this)})}}var o=t("../main"),r=t("../plugin/instances");"function"==typeof define&&define.amd?define(["jquery"],n):void 0!==(t=window.jQuery||window.$)&&n(t),e.exports=n},{"../main":7,"../plugin/instances":18}],2:[function(t,e,i){"use strict";i.add=function(t,e){var i;t.classList?t.classList.add(e):(i=e,(t=(e=t).className.split(" ")).indexOf(i)<0&&t.push(i),e.className=t.join(" "))},i.remove=function(t,e){var i;t.classList?t.classList.remove(e):(i=e,t=(e=t).className.split(" "),0<=(i=t.indexOf(i))&&t.splice(i,1),e.className=t.join(" "))},i.list=function(t){return t.classList?Array.prototype.slice.apply(t.classList):t.className.split(" ")}},{}],3:[function(t,e,i){"use strict";var n={e:function(t,e){t=document.createElement(t);return t.className=e,t},appendTo:function(t,e){return e.appendChild(t),t}};n.css=function(t,e,i){return"object"==typeof e?function(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n=n.toString()+"px"),t.style[i]=n}return t}(t,e):void 0===i?(n=e,window.getComputedStyle(t)[n]):(t=t,e=e,"number"==typeof(i=i)&&(i=i.toString()+"px"),t.style[e]=i,t);var n},n.matches=function(t,e){return void 0!==t.matches?t.matches(e):void 0!==t.matchesSelector?t.matchesSelector(e):void 0!==t.webkitMatchesSelector?t.webkitMatchesSelector(e):void 0!==t.mozMatchesSelector?t.mozMatchesSelector(e):void 0!==t.msMatchesSelector?t.msMatchesSelector(e):void 0},n.remove=function(t){void 0!==t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)},n.queryChildren=function(t,e){return Array.prototype.filter.call(t.childNodes,function(t){return n.matches(t,e)})},e.exports=n},{}],4:[function(t,e,i){"use strict";function n(t){this.element=t,this.events={}}n.prototype.bind=function(t,e){void 0===this.events[t]&&(this.events[t]=[]),this.events[t].push(e),this.element.addEventListener(t,e,!1)},n.prototype.unbind=function(e,i){var n=void 0!==i;this.events[e]=this.events[e].filter(function(t){return!(!n||t===i)||(this.element.removeEventListener(e,t,!1),!1)},this)},n.prototype.unbindAll=function(){for(var t in this.events)this.unbind(t)};function o(){this.eventElements=[]}o.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return void 0===t&&(t=new n(e),this.eventElements.push(t)),t},o.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},o.prototype.unbind=function(t,e,i){this.eventElement(t).unbind(e,i)},o.prototype.unbindAll=function(){for(var t=0;t<this.eventElements.length;t++)this.eventElements[t].unbindAll()},o.prototype.once=function(t,e,i){var n=this.eventElement(t),o=function(t){n.unbind(e,o),i(t)};n.bind(e,o)},e.exports=o},{}],5:[function(t,e,i){"use strict";function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}e.exports=function(){return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}},{}],6:[function(t,e,i){"use strict";var o=t("./class"),n=t("./dom"),r=i.toInt=function(t){return parseInt(t,10)||0},s=i.clone=function(t){if(t){if(Array.isArray(t))return t.map(s);if("object"!=typeof t)return t;var e,i={};for(e in t)i[e]=s(t[e]);return i}return null};i.extend=function(t,e){var i,n=s(t);for(i in e)n[i]=s(e[i]);return n},i.isEditable=function(t){return n.matches(t,"input,[contenteditable]")||n.matches(t,"select,[contenteditable]")||n.matches(t,"textarea,[contenteditable]")||n.matches(t,"button,[contenteditable]")},i.removePsClasses=function(t){for(var e=o.list(t),i=0;i<e.length;i++){var n=e[i];0===n.indexOf("ps-")&&o.remove(t,n)}},i.outerWidth=function(t){return r(n.css(t,"width"))+r(n.css(t,"paddingLeft"))+r(n.css(t,"paddingRight"))+r(n.css(t,"borderLeftWidth"))+r(n.css(t,"borderRightWidth"))},i.startScrolling=function(t,e){o.add(t,"ps-in-scrolling"),void 0!==e?o.add(t,"ps-"+e):(o.add(t,"ps-x"),o.add(t,"ps-y"))},i.stopScrolling=function(t,e){o.remove(t,"ps-in-scrolling"),void 0!==e?o.remove(t,"ps-"+e):(o.remove(t,"ps-x"),o.remove(t,"ps-y"))},i.env={isWebKit:"WebkitAppearance"in document.documentElement.style,supportsTouch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,supportsIePointer:null!==window.navigator.msMaxTouchPoints}},{"./class":2,"./dom":3}],7:[function(t,e,i){"use strict";var n=t("./plugin/destroy"),o=t("./plugin/initialize"),t=t("./plugin/update");e.exports={initialize:o,update:t,destroy:n}},{"./plugin/destroy":9,"./plugin/initialize":17,"./plugin/update":21}],8:[function(t,e,i){"use strict";e.exports={handlers:["click-rail","drag-scrollbar","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1,theme:"default"}},{}],9:[function(t,e,i){"use strict";var n=t("../lib/helper"),o=t("../lib/dom"),r=t("./instances");e.exports=function(t){var e=r.get(t);e&&(e.event.unbindAll(),o.remove(e.scrollbarX),o.remove(e.scrollbarY),o.remove(e.scrollbarXRail),o.remove(e.scrollbarYRail),n.removePsClasses(t),r.remove(t))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18}],10:[function(t,e,i){"use strict";function n(i,n){function o(t){return t.getBoundingClientRect()}function t(t){t.stopPropagation()}n.event.bind(n.scrollbarY,"click",t),n.event.bind(n.scrollbarYRail,"click",function(t){var e=t.pageY-window.pageYOffset-o(n.scrollbarYRail).top>n.scrollbarYTop?1:-1;s(i,"top",i.scrollTop+e*n.containerHeight),r(i),t.stopPropagation()}),n.event.bind(n.scrollbarX,"click",t),n.event.bind(n.scrollbarXRail,"click",function(t){var e=t.pageX-window.pageXOffset-o(n.scrollbarXRail).left>n.scrollbarXLeft?1:-1;s(i,"left",i.scrollLeft+e*n.containerWidth),r(i),t.stopPropagation()})}var o=t("../instances"),r=t("../update-geometry"),s=t("../update-scroll");e.exports=function(t){n(t,o.get(t))}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],11:[function(t,e,i){"use strict";function n(n,o){function e(t){var e,i;e=t.pageX-s,i=r+e*o.railXRatio,e=Math.max(0,o.scrollbarXRail.getBoundingClientRect().left)+o.railXRatio*(o.railXWidth-o.scrollbarXWidth),o.scrollbarXLeft=i<0?0:e<i?e:i,i=a.toInt(o.scrollbarXLeft*(o.contentWidth-o.containerWidth)/(o.containerWidth-o.railXRatio*o.scrollbarXWidth))-o.negativeScrollAdjustment,c(n,"left",i),u(n),t.stopPropagation(),t.preventDefault()}function i(){a.stopScrolling(n,"x"),o.event.unbind(o.ownerDocument,"mousemove",e)}var r=null,s=null;o.event.bind(o.scrollbarX,"mousedown",function(t){s=t.pageX,r=a.toInt(l.css(o.scrollbarX,"left"))*o.railXRatio,a.startScrolling(n,"x"),o.event.bind(o.ownerDocument,"mousemove",e),o.event.once(o.ownerDocument,"mouseup",i),t.stopPropagation(),t.preventDefault()})}function o(n,o){function e(t){var e,i;e=t.pageY-s,i=r+e*o.railYRatio,e=Math.max(0,o.scrollbarYRail.getBoundingClientRect().top)+o.railYRatio*(o.railYHeight-o.scrollbarYHeight),o.scrollbarYTop=i<0?0:e<i?e:i,i=a.toInt(o.scrollbarYTop*(o.contentHeight-o.containerHeight)/(o.containerHeight-o.railYRatio*o.scrollbarYHeight)),c(n,"top",i),u(n),t.stopPropagation(),t.preventDefault()}function i(){a.stopScrolling(n,"y"),o.event.unbind(o.ownerDocument,"mousemove",e)}var r=null,s=null;o.event.bind(o.scrollbarY,"mousedown",function(t){s=t.pageY,r=a.toInt(l.css(o.scrollbarY,"top"))*o.railYRatio,a.startScrolling(n,"y"),o.event.bind(o.ownerDocument,"mousemove",e),o.event.once(o.ownerDocument,"mouseup",i),t.stopPropagation(),t.preventDefault()})}var a=t("../../lib/helper"),l=t("../../lib/dom"),r=t("../instances"),u=t("../update-geometry"),c=t("../update-scroll");e.exports=function(t){var e=r.get(t);n(t,e),o(t,e)}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],12:[function(t,e,i){"use strict";function n(r,s){var a=!1;s.event.bind(r,"mouseenter",function(){a=!0}),s.event.bind(r,"mouseleave",function(){a=!1});s.event.bind(s.ownerDocument,"keydown",function(t){if(!(t.isDefaultPrevented&&t.isDefaultPrevented()||t.defaultPrevented)){var e=u.matches(s.scrollbarX,":focus")||u.matches(s.scrollbarY,":focus");if(a||e){var i=document.activeElement||s.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(l.isEditable(i))return}var n=0,o=0;switch(t.which){case 37:n=t.metaKey?-s.contentWidth:t.altKey?-s.containerWidth:-30;break;case 38:o=t.metaKey?s.contentHeight:t.altKey?s.containerHeight:30;break;case 39:n=t.metaKey?s.contentWidth:t.altKey?s.containerWidth:30;break;case 40:o=t.metaKey?-s.contentHeight:t.altKey?-s.containerHeight:-30;break;case 33:o=90;break;case 32:o=t.shiftKey?90:-90;break;case 34:o=-90;break;case 35:o=t.ctrlKey?-s.contentHeight:-s.containerHeight;break;case 36:o=t.ctrlKey?r.scrollTop:s.containerHeight;break;default:return}d(r,"top",r.scrollTop-o),d(r,"left",r.scrollLeft+n),c(r),function(t,e){var i=r.scrollTop;if(0===t){if(!s.scrollbarYActive)return!1;if(0===i&&0<e||i>=s.contentHeight-s.containerHeight&&e<0)return!s.settings.wheelPropagation}if(i=r.scrollLeft,0===e){if(!s.scrollbarXActive)return!1;if(0===i&&t<0||i>=s.contentWidth-s.containerWidth&&0<t)return!s.settings.wheelPropagation}return!0}(n,o)&&t.preventDefault()}}})}var l=t("../../lib/helper"),u=t("../../lib/dom"),o=t("../instances"),c=t("../update-geometry"),d=t("../update-scroll");e.exports=function(t){n(t,o.get(t))}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],13:[function(t,e,i){"use strict";function n(o,r){function t(t){var e,i,n,i=(i=(e=t).deltaX,n=-1*e.deltaY,void 0!==i&&void 0!==n||(i=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(i*=10,n*=10),i!=i&&n!=n&&(i=0,n=e.wheelDelta),e.shiftKey?[-n,-i]:[i,n]),n=i[0],i=i[1];!function(t,e){var i=o.querySelector("textarea:hover, select[multiple]:hover, .ps-child:hover");if(i){var n=window.getComputedStyle(i);if(![n.overflow,n.overflowX,n.overflowY].join("").match(/(scroll|auto)/))return;n=i.scrollHeight-i.clientHeight;if(0<n&&!(0===i.scrollTop&&0<e||i.scrollTop===n&&e<0))return 1;e=i.scrollLeft-i.clientWidth;if(0<e&&!(0===i.scrollLeft&&t<0||i.scrollLeft===e&&0<t))return 1}}(n,i)&&(s=!1,r.settings.useBothWheelAxes?r.scrollbarYActive&&!r.scrollbarXActive?(l(o,"top",i?o.scrollTop-i*r.settings.wheelSpeed:o.scrollTop+n*r.settings.wheelSpeed),s=!0):r.scrollbarXActive&&!r.scrollbarYActive&&(l(o,"left",n?o.scrollLeft+n*r.settings.wheelSpeed:o.scrollLeft-i*r.settings.wheelSpeed),s=!0):(l(o,"top",o.scrollTop-i*r.settings.wheelSpeed),l(o,"left",o.scrollLeft+n*r.settings.wheelSpeed)),a(o),(s=s||function(t,e){var i=o.scrollTop;if(0===t){if(!r.scrollbarYActive)return!1;if(0===i&&0<e||i>=r.contentHeight-r.containerHeight&&e<0)return!r.settings.wheelPropagation}if(i=o.scrollLeft,0===e){if(!r.scrollbarXActive)return!1;if(0===i&&t<0||i>=r.contentWidth-r.containerWidth&&0<t)return!r.settings.wheelPropagation}return!0}(n,i))&&(t.stopPropagation(),t.preventDefault()))}var s=!1;void 0!==window.onwheel?r.event.bind(o,"wheel",t):void 0!==window.onmousewheel&&r.event.bind(o,"mousewheel",t)}var o=t("../instances"),a=t("../update-geometry"),l=t("../update-scroll");e.exports=function(t){n(t,o.get(t))}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],14:[function(t,e,i){"use strict";var n=t("../instances"),o=t("../update-geometry");e.exports=function(t){var e,i=n.get(t);e=t,i.event.bind(e,"scroll",function(){o(e)})}},{"../instances":18,"../update-geometry":19}],15:[function(t,e,i){"use strict";function n(s,t){function a(){l&&(clearInterval(l),l=null),d.stopScrolling(s)}var l=null,u={top:0,left:0},c=!1;t.event.bind(t.ownerDocument,"selectionchange",function(){var t;s.contains(0===(t=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"").toString().length?null:t.getRangeAt(0).commonAncestorContainer)?c=!0:(c=!1,a())}),t.event.bind(window,"mouseup",function(){c&&(c=!1,a())}),t.event.bind(window,"keyup",function(){c&&(c=!1,a())}),t.event.bind(window,"mousemove",function(t){var e,i,n,o,r;c&&(e=t.pageX,i=t.pageY,n=s.offsetLeft,o=s.offsetLeft+s.offsetWidth,r=s.offsetTop,t=s.offsetTop+s.offsetHeight,e<n+3?(u.left=-5,d.startScrolling(s,"x")):o-3<e?(u.left=5,d.startScrolling(s,"x")):u.left=0,i<r+3?(u.top=r+3-i<5?-5:-20,d.startScrolling(s,"y")):t-3<i?(u.top=i-t+3<5?5:20,d.startScrolling(s,"y")):u.top=0,0===u.top&&0===u.left?a():l=l||setInterval(function(){return h.get(s)?(f(s,"top",s.scrollTop+u.top),f(s,"left",s.scrollLeft+u.left),void p(s)):void clearInterval(l)},50))})}var d=t("../../lib/helper"),h=t("../instances"),p=t("../update-geometry"),f=t("../update-scroll");e.exports=function(t){n(t,h.get(t))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],16:[function(t,e,i){"use strict";function n(s,a,t,e){function r(t,e){T(s,"top",s.scrollTop-e),T(s,"left",s.scrollLeft-t),b(s)}function i(){g=!0}function n(){g=!1}function l(t){return t.targetTouches?t.targetTouches[0]:t}function u(t){return t.targetTouches&&1===t.targetTouches.length||t.pointerType&&"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE}function c(t){var e;u(t)&&(v=!0,e=l(t),h.pageX=e.pageX,h.pageY=e.pageY,p=(new Date).getTime(),null!==m&&clearInterval(m),t.stopPropagation())}function o(t){var e,i,n,o;!v&&a.settings.swipePropagation&&c(t),!g&&v&&u(t)&&(r(e=(o={pageX:(n=l(t)).pageX,pageY:n.pageY}).pageX-h.pageX,i=o.pageY-h.pageY),h=o,0<(o=(n=(new Date).getTime())-p)&&(f.x=e/o,f.y=i/o,p=n),function(t,e){var i=s.scrollTop,n=s.scrollLeft,o=Math.abs(t),r=Math.abs(e);if(o<r){if(e<0&&i===a.contentHeight-a.containerHeight||0<e&&0===i)return!a.settings.swipePropagation}else if(r<o&&(t<0&&n===a.contentWidth-a.containerWidth||0<t&&0===n))return!a.settings.swipePropagation;return 1}(e,i)&&(t.stopPropagation(),t.preventDefault()))}function d(){!g&&v&&(v=!1,a.settings.swipeEasing&&(clearInterval(m),m=setInterval(function(){return!y.get(s)||!f.x&&!f.y||Math.abs(f.x)<.01&&Math.abs(f.y)<.01?void clearInterval(m):(r(30*f.x,30*f.y),f.x*=.8,void(f.y*=.8))},10)))}var h={},p=0,f={},m=null,g=!1,v=!1;t?(a.event.bind(window,"touchstart",i),a.event.bind(window,"touchend",n),a.event.bind(s,"touchstart",c),a.event.bind(s,"touchmove",o),a.event.bind(s,"touchend",d)):e&&(window.PointerEvent?(a.event.bind(window,"pointerdown",i),a.event.bind(window,"pointerup",n),a.event.bind(s,"pointerdown",c),a.event.bind(s,"pointermove",o),a.event.bind(s,"pointerup",d)):window.MSPointerEvent&&(a.event.bind(window,"MSPointerDown",i),a.event.bind(window,"MSPointerUp",n),a.event.bind(s,"MSPointerDown",c),a.event.bind(s,"MSPointerMove",o),a.event.bind(s,"MSPointerUp",d)))}var o=t("../../lib/helper"),y=t("../instances"),b=t("../update-geometry"),T=t("../update-scroll");e.exports=function(t){(o.env.supportsTouch||o.env.supportsIePointer)&&n(t,y.get(t),o.env.supportsTouch,o.env.supportsIePointer)}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],17:[function(t,e,i){"use strict";var n=t("../lib/helper"),o=t("../lib/class"),r=t("./instances"),s=t("./update-geometry"),a={"click-rail":t("./handler/click-rail"),"drag-scrollbar":t("./handler/drag-scrollbar"),keyboard:t("./handler/keyboard"),wheel:t("./handler/mouse-wheel"),touch:t("./handler/touch"),selection:t("./handler/selection")},l=t("./handler/native-scroll");e.exports=function(e,t){t="object"==typeof t?t:{},o.add(e,"ps");var i=r.add(e);i.settings=n.extend(i.settings,t),o.add(e,"ps--theme_"+i.settings.theme),i.settings.handlers.forEach(function(t){a[t](e)}),l(e),s(e)}},{"../lib/class":2,"../lib/helper":6,"./handler/click-rail":10,"./handler/drag-scrollbar":11,"./handler/keyboard":12,"./handler/mouse-wheel":13,"./handler/native-scroll":14,"./handler/selection":15,"./handler/touch":16,"./instances":18,"./update-geometry":19}],18:[function(t,e,i){"use strict";function n(t){function e(){a.add(t,"ps--focus")}function i(){a.remove(t,"ps--focus")}var n,o,r=this;r.settings=s.clone(l),r.containerWidth=null,r.containerHeight=null,r.contentWidth=null,r.contentHeight=null,r.isRtl="rtl"===u.css(t,"direction"),r.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,n=t.scrollLeft<0,t.scrollLeft=o,n),r.negativeScrollAdjustment=r.isNegativeScroll?t.scrollWidth-t.clientWidth:0,r.event=new c,r.ownerDocument=t.ownerDocument||document,r.scrollbarXRail=u.appendTo(u.e("div","ps__scrollbar-x-rail"),t),r.scrollbarX=u.appendTo(u.e("div","ps__scrollbar-x"),r.scrollbarXRail),r.scrollbarX.setAttribute("tabindex",0),r.event.bind(r.scrollbarX,"focus",e),r.event.bind(r.scrollbarX,"blur",i),r.scrollbarXActive=null,r.scrollbarXWidth=null,r.scrollbarXLeft=null,r.scrollbarXBottom=s.toInt(u.css(r.scrollbarXRail,"bottom")),r.isScrollbarXUsingBottom=r.scrollbarXBottom==r.scrollbarXBottom,r.scrollbarXTop=r.isScrollbarXUsingBottom?null:s.toInt(u.css(r.scrollbarXRail,"top")),r.railBorderXWidth=s.toInt(u.css(r.scrollbarXRail,"borderLeftWidth"))+s.toInt(u.css(r.scrollbarXRail,"borderRightWidth")),u.css(r.scrollbarXRail,"display","block"),r.railXMarginWidth=s.toInt(u.css(r.scrollbarXRail,"marginLeft"))+s.toInt(u.css(r.scrollbarXRail,"marginRight")),u.css(r.scrollbarXRail,"display",""),r.railXWidth=null,r.railXRatio=null,r.scrollbarYRail=u.appendTo(u.e("div","ps__scrollbar-y-rail"),t),r.scrollbarY=u.appendTo(u.e("div","ps__scrollbar-y"),r.scrollbarYRail),r.scrollbarY.setAttribute("tabindex",0),r.event.bind(r.scrollbarY,"focus",e),r.event.bind(r.scrollbarY,"blur",i),r.scrollbarYActive=null,r.scrollbarYHeight=null,r.scrollbarYTop=null,r.scrollbarYRight=s.toInt(u.css(r.scrollbarYRail,"right")),r.isScrollbarYUsingRight=r.scrollbarYRight==r.scrollbarYRight,r.scrollbarYLeft=r.isScrollbarYUsingRight?null:s.toInt(u.css(r.scrollbarYRail,"left")),r.scrollbarYOuterWidth=r.isRtl?s.outerWidth(r.scrollbarY):null,r.railBorderYWidth=s.toInt(u.css(r.scrollbarYRail,"borderTopWidth"))+s.toInt(u.css(r.scrollbarYRail,"borderBottomWidth")),u.css(r.scrollbarYRail,"display","block"),r.railYMarginHeight=s.toInt(u.css(r.scrollbarYRail,"marginTop"))+s.toInt(u.css(r.scrollbarYRail,"marginBottom")),u.css(r.scrollbarYRail,"display",""),r.railYHeight=null,r.railYRatio=null}function o(t){return t.getAttribute("data-ps-id")}var s=t("../lib/helper"),a=t("../lib/class"),l=t("./default-setting"),u=t("../lib/dom"),c=t("../lib/event-manager"),r=t("../lib/guid"),d={};i.add=function(t){var e=r();return t.setAttribute("data-ps-id",e),d[e]=new n(t),d[e]},i.remove=function(t){delete d[o(t)],t.removeAttribute("data-ps-id")},i.get=function(t){return d[o(t)]}},{"../lib/class":2,"../lib/dom":3,"../lib/event-manager":4,"../lib/guid":5,"../lib/helper":6,"./default-setting":8}],19:[function(t,e,i){"use strict";function r(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),e=t.settings.maxScrollbarLength?Math.min(e,t.settings.maxScrollbarLength):e}var s=t("../lib/helper"),a=t("../lib/class"),l=t("../lib/dom"),u=t("./instances"),c=t("./update-scroll");e.exports=function(t){var e,i,n,o=u.get(t);o.containerWidth=t.clientWidth,o.containerHeight=t.clientHeight,o.contentWidth=t.scrollWidth,o.contentHeight=t.scrollHeight,t.contains(o.scrollbarXRail)||(0<(n=l.queryChildren(t,".ps__scrollbar-x-rail")).length&&n.forEach(function(t){l.remove(t)}),l.appendTo(o.scrollbarXRail,t)),t.contains(o.scrollbarYRail)||(0<(n=l.queryChildren(t,".ps__scrollbar-y-rail")).length&&n.forEach(function(t){l.remove(t)}),l.appendTo(o.scrollbarYRail,t)),!o.settings.suppressScrollX&&o.containerWidth+o.settings.scrollXMarginOffset<o.contentWidth?(o.scrollbarXActive=!0,o.railXWidth=o.containerWidth-o.railXMarginWidth,o.railXRatio=o.containerWidth/o.railXWidth,o.scrollbarXWidth=r(o,s.toInt(o.railXWidth*o.containerWidth/o.contentWidth)),o.scrollbarXLeft=s.toInt((o.negativeScrollAdjustment+t.scrollLeft)*(o.railXWidth-o.scrollbarXWidth)/(o.contentWidth-o.containerWidth))):o.scrollbarXActive=!1,!o.settings.suppressScrollY&&o.containerHeight+o.settings.scrollYMarginOffset<o.contentHeight?(o.scrollbarYActive=!0,o.railYHeight=o.containerHeight-o.railYMarginHeight,o.railYRatio=o.containerHeight/o.railYHeight,o.scrollbarYHeight=r(o,s.toInt(o.railYHeight*o.containerHeight/o.contentHeight)),o.scrollbarYTop=s.toInt(t.scrollTop*(o.railYHeight-o.scrollbarYHeight)/(o.contentHeight-o.containerHeight))):o.scrollbarYActive=!1,o.scrollbarXLeft>=o.railXWidth-o.scrollbarXWidth&&(o.scrollbarXLeft=o.railXWidth-o.scrollbarXWidth),o.scrollbarYTop>=o.railYHeight-o.scrollbarYHeight&&(o.scrollbarYTop=o.railYHeight-o.scrollbarYHeight),e=t,n={width:(i=o).railXWidth},i.isRtl?n.left=i.negativeScrollAdjustment+e.scrollLeft+i.containerWidth-i.contentWidth:n.left=e.scrollLeft,i.isScrollbarXUsingBottom?n.bottom=i.scrollbarXBottom-e.scrollTop:n.top=i.scrollbarXTop+e.scrollTop,l.css(i.scrollbarXRail,n),n={top:e.scrollTop,height:i.railYHeight},i.isScrollbarYUsingRight?i.isRtl?n.right=i.contentWidth-(i.negativeScrollAdjustment+e.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth:n.right=i.scrollbarYRight-e.scrollLeft:i.isRtl?n.left=i.negativeScrollAdjustment+e.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:n.left=i.scrollbarYLeft+e.scrollLeft,l.css(i.scrollbarYRail,n),l.css(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),l.css(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth}),o.scrollbarXActive?a.add(t,"ps--active-x"):(a.remove(t,"ps--active-x"),o.scrollbarXWidth=0,o.scrollbarXLeft=0,c(t,"left",0)),o.scrollbarYActive?a.add(t,"ps--active-y"):(a.remove(t,"ps--active-y"),o.scrollbarYHeight=0,o.scrollbarYTop=0,c(t,"top",0))}},{"../lib/class":2,"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-scroll":20}],20:[function(t,e,i){"use strict";function o(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}var r=t("./instances");e.exports=function(t,e,i){if(void 0===t)throw"You must provide an element to the update-scroll function";if(void 0===e)throw"You must provide an axis to the update-scroll function";if(void 0===i)throw"You must provide a value to the update-scroll function";"top"===e&&i<=0&&(t.scrollTop=i=0,t.dispatchEvent(o("ps-y-reach-start"))),"left"===e&&i<=0&&(t.scrollLeft=i=0,t.dispatchEvent(o("ps-x-reach-start")));var n=r.get(t);"top"===e&&i>=n.contentHeight-n.containerHeight&&((i=n.contentHeight-n.containerHeight)-t.scrollTop<=1?i=t.scrollTop:t.scrollTop=i,t.dispatchEvent(o("ps-y-reach-end"))),"left"===e&&i>=n.contentWidth-n.containerWidth&&((i=n.contentWidth-n.containerWidth)-t.scrollLeft<=1?i=t.scrollLeft:t.scrollLeft=i,t.dispatchEvent(o("ps-x-reach-end"))),void 0===n.lastTop&&(n.lastTop=t.scrollTop),void 0===n.lastLeft&&(n.lastLeft=t.scrollLeft),"top"===e&&i<n.lastTop&&t.dispatchEvent(o("ps-scroll-up")),"top"===e&&i>n.lastTop&&t.dispatchEvent(o("ps-scroll-down")),"left"===e&&i<n.lastLeft&&t.dispatchEvent(o("ps-scroll-left")),"left"===e&&i>n.lastLeft&&t.dispatchEvent(o("ps-scroll-right")),"top"===e&&i!==n.lastTop&&(t.scrollTop=n.lastTop=i,t.dispatchEvent(o("ps-scroll-y"))),"left"===e&&i!==n.lastLeft&&(t.scrollLeft=n.lastLeft=i,t.dispatchEvent(o("ps-scroll-x")))}},{"./instances":18}],21:[function(t,e,i){"use strict";var n=t("../lib/helper"),o=t("../lib/dom"),r=t("./instances"),s=t("./update-geometry"),a=t("./update-scroll");e.exports=function(t){var e=r.get(t);e&&(e.negativeScrollAdjustment=e.isNegativeScroll?t.scrollWidth-t.clientWidth:0,o.css(e.scrollbarXRail,"display","block"),o.css(e.scrollbarYRail,"display","block"),e.railXMarginWidth=n.toInt(o.css(e.scrollbarXRail,"marginLeft"))+n.toInt(o.css(e.scrollbarXRail,"marginRight")),e.railYMarginHeight=n.toInt(o.css(e.scrollbarYRail,"marginTop"))+n.toInt(o.css(e.scrollbarYRail,"marginBottom")),o.css(e.scrollbarXRail,"display","none"),o.css(e.scrollbarYRail,"display","none"),s(t),a(t,"top",t.scrollTop),a(t,"left",t.scrollLeft),o.css(e.scrollbarXRail,"display",""),o.css(e.scrollbarYRail,"display",""))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-geometry":19,"./update-scroll":20}]},{},[1]),function(t,e,i){var o=[];function n(){o=[]}function r(){o.splice(0,1)}function s(t){t.touches.length-t.changedTouches.length<=0&&(t=t.changedTouches[0],o.push([t.clientX,t.clientY]),setTimeout(r,2500))}"ontouchstart"in t?(t[i]=function(t){t.addEventListener("touchstart",n,!0),t.addEventListener("touchend",s,!0)},e.addEventListener("click",function(t){for(var e=0;e<o.length;e++){var i=o[e][0],n=o[e][1];if(Math.abs(t.clientX-i)<25&&Math.abs(t.clientY-n)<25){t.stopPropagation(),t.preventDefault();break}}},!0)):t[i]=function(){}}(window,document,"PreventGhostClick"),window.requestAnimationFrame||function(){for(var r=0,t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-r)),o=window.setTimeout(function(){t(i+n)},n);return r=i+n,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),function(o){"use strict";function n(t,e){this.$body=o(document.body),this.$scrollElement=o(t).is(document.body)?o(window):o(t),this.options=o.extend({},n.DEFAULTS,e),".thb_row_pagination"===this.options.target?this.selector=(this.options.target||"")+" li":this.selector=(this.options.target||"")+" li a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new n(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}n.VERSION="3.3.7",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var t=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),t=!!e&&o("#"+(-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):""));return t&&t.length&&t.is(":visible")?[[t[i]().top+n,e]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},n.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=e)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=r[t]&&e>=o[t]&&(void 0===o[t+1]||e<o[t+1])&&this.activate(r[t])},n.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href$="'+t+'"]',t=o(t).addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},n.prototype.clear=function(){o(this.selector).removeClass("active")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=n,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),i(e),e}:i(jQuery)}(function(e){var t,i,n,o,h,r,s,p,f,m,g,v,y,a,l,b,o=((t=e&&e.fn&&e.fn.select2&&e.fn.select2.amd?e.fn.select2.amd:t)&&t.requirejs||(t?n=t:t={},m={},g={},v={},y={},a=Object.prototype.hasOwnProperty,l=[].slice,b=/\.js$/,p=function(t,e){var i,n,o=c(t),r=o[0],e=e[1];return t=o[1],r&&(i=S(r=u(r,e))),r?t=i&&i.normalize?i.normalize(t,(n=e,function(t){return u(t,n)})):u(t,e):(r=(o=c(t=u(t,e)))[0],t=o[1],r&&(i=S(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:i}},f={require:function(t){return _(t)},exports:function(t){var e=m[t];return void 0!==e?e:m[t]={}},module:function(t){return{id:t,uri:"",exports:m[t],config:(e=t,function(){return v&&v.config&&v.config[e]||{}})};var e}},r=function(t,e,i,n){var o,r,s,a,l,u=[],c=typeof i,d=D(n=n||t);if("undefined"==c||"function"==c){for(e=!e.length&&i.length?["require","exports","module"]:e,a=0;a<e.length;a+=1)if("require"===(r=(s=p(e[a],d)).f))u[a]=f.require(t);else if("exports"===r)u[a]=f.exports(t),l=!0;else if("module"===r)o=u[a]=f.module(t);else if(T(m,r)||T(g,r)||T(y,r))u[a]=S(r);else{if(!s.p)throw new Error(t+" missing "+r);s.p.load(s.n,_(n,!0),function(e){return function(t){m[e]=t}}(r),{}),u[a]=m[r]}c=i?i.apply(m[t],u):void 0,t&&(o&&o.exports!==h&&o.exports!==m[t]?m[t]=o.exports:c===h&&l||(m[t]=c))}else t&&(m[t]=i)},i=n=s=function(t,e,i,n,o){if("string"==typeof t)return f[t]?f[t](e):S(p(t,D(e)).f);if(!t.splice){if((v=t).deps&&s(v.deps,v.callback),!e)return;e.splice?(t=e,e=i,i=null):t=h}return e=e||function(){},"function"==typeof i&&(i=n,n=o),n?r(h,t,e,i):setTimeout(function(){r(h,t,e,i)},4),s},s.config=function(t){return s(t)},i._defined=m,(o=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),T(m,t)||T(g,t)||(g[t]=[t,e,i])}).amd={jQuery:!0},t.requirejs=i,t.require=n,t.define=o),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(r){var n={};function u(t){var e,i=t.prototype,n=[];for(e in i)"function"==typeof i[e]&&"constructor"!==e&&n.push(e);return n}function t(){this.listeners={}}n.Extend=function(t,e){var i,n={}.hasOwnProperty;function o(){this.constructor=t}for(i in e)n.call(e,i)&&(t[i]=e[i]);return o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype,t},n.Decorate=function(n,o){var t=u(o),e=u(n);function r(){var t=Array.prototype.unshift,e=o.prototype.constructor.length,i=n.prototype.constructor;0<e&&(t.call(arguments,n.prototype.constructor),i=o.prototype.constructor),i.apply(this,arguments)}o.displayName=n.displayName,r.prototype=new function(){this.constructor=r};for(var i=0;i<e.length;i++){var s=e[i];r.prototype[s]=n.prototype[s]}for(var a=0;a<t.length;a++){var l=t[a];r.prototype[l]=function(t){var e=function(){};t in r.prototype&&(e=r.prototype[t]);var i=o.prototype[t];return function(){return Array.prototype.unshift.call(arguments,e),i.apply(this,arguments)}}(l)}return r},t.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},t.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1);this.listeners=this.listeners||{},0===(i=null==i?[]:i).length&&i.push({}),(i[0]._type=t)in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},n.Observable=t,n.generateChars=function(t){for(var e="",i=0;i<t;i++)e+=Math.floor(36*Math.random()).toString(36);return e},n.bind=function(t,e){return function(){t.apply(e,arguments)}},n._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var o=0;o<i.length;o++){var r=i[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in n||(n[r]={}),o==i.length-1&&(n[r]=t[e]),n=n[r]}delete t[e]}}return t},n.hasScroll=function(t,e){var i=r(e),n=e.style.overflowX,o=e.style.overflowY;return(n!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===n||"scroll"===o||i.innerHeight()<e.scrollHeight||i.innerWidth()<e.scrollWidth)},n.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},n.appendMany=function(t,e){var i;"1.7"===r.fn.jquery.substr(0,3)&&(i=r(),r.map(e,function(t){i=i.add(t)}),e=i),t.append(e)},n.__cache={};var i=0;return n.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++i),e=i.toString())),e},n.StoreData=function(t,e,i){t=n.GetUniqueElementId(t);n.__cache[t]||(n.__cache[t]={}),n.__cache[t][e]=i},n.GetData=function(t,e){var i=n.GetUniqueElementId(t);return e?n.__cache[i]&&null!=n.__cache[i][e]?n.__cache[i][e]:r(t).data(e):n.__cache[i]},n.RemoveData=function(t){var e=n.GetUniqueElementId(t);null!=n.__cache[e]&&delete n.__cache[e],t.removeAttribute("data-select2-id")},n}),t.define("select2/results",["jquery","./utils"],function(d,h){function n(t,e,i){this.$element=t,this.data=i,this.options=e,n.__super__.constructor.call(this)}return h.Extend(n,h.Observable),n.prototype.render=function(){var t=d('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var e=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=d('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),n=this.options.get("translations").get(t.message);i.append(e(n(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],n=this.option(n);e.push(n)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(t,e){e.find(".select2-results").append(t)},n.prototype.sort=function(t){return this.options.get("sorter")(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");(0<e.length?e:t).first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var e=this;this.data.current(function(t){var n=d.map(t,function(t){return t.id.toString()});e.$results.find(".select2-results__option[aria-selected]").each(function(){var t=d(this),e=h.GetData(this,"data"),i=""+e.id;null!=e.element&&e.element.selected||null==e.element&&-1<d.inArray(i,n)?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},n.prototype.showLoading=function(t){this.hideLoading();t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},t=this.option(t);t.className+=" loading-results",this.$results.prepend(t)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var e=document.createElement("li");e.className="select2-results__option";var i,n={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(i in(null!=t.element&&o.call(t.element,":disabled")||null==t.element&&t.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==t.id&&delete n["aria-selected"],null!=t._resultId&&(e.id=t._resultId),t.title&&(e.title=t.title),t.children&&(n.role="group",n["aria-label"]=t.text,delete n["aria-selected"]),n){var r=n[i];e.setAttribute(i,r)}if(t.children){var s=d(e),a=document.createElement("strong");a.className="select2-results__group",d(a),this.template(t,a);for(var l=[],u=0;u<t.children.length;u++){var c=t.children[u],c=this.option(c);l.push(c)}o=d("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});o.append(l),s.append(a),s.append(o)}else this.template(t,e);return h.StoreData(e,"data",t),e},n.prototype.bind=function(e,t){var o=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",function(t){o.clear(),o.append(t.data),e.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),e.on("results:append",function(t){o.append(t.data),e.isOpen()&&o.setClasses()}),e.on("query",function(t){o.hideMessages(),o.showLoading(t)}),e.on("select",function(){e.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())}),e.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()}),e.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=o.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t,e=o.getHighlightedResults();0!==e.length&&(t=h.GetData(e[0],"data"),"true"==e.attr("aria-selected")?o.trigger("close",{}):o.trigger("select",{data:t}))}),e.on("results:previous",function(){var t,e=o.getHighlightedResults(),i=o.$results.find("[aria-selected]"),n=i.index(e);n<=0||(t=n-1,0===e.length&&(t=0),(n=i.eq(t)).trigger("mouseenter"),e=o.$results.offset().top,i=n.offset().top,n=o.$results.scrollTop()+(i-e),0===t?o.$results.scrollTop(0):i-e<0&&o.$results.scrollTop(n))}),e.on("results:next",function(){var t,e=o.getHighlightedResults(),i=o.$results.find("[aria-selected]"),n=i.index(e)+1;n>=i.length||((t=i.eq(n)).trigger("mouseenter"),e=o.$results.offset().top+o.$results.outerHeight(!1),i=t.offset().top+t.outerHeight(!1),t=o.$results.scrollTop()+i-e,0===n?o.$results.scrollTop(0):e<i&&o.$results.scrollTop(t))}),e.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),e.on("results:message",function(t){o.displayMessage(t)}),d.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=o.$results.scrollTop(),i=o.$results.get(0).scrollHeight-e+t.deltaY,e=0<t.deltaY&&e-t.deltaY<=0,i=t.deltaY<0&&i<=o.$results.height();e?(o.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):i&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var e=d(this),i=h.GetData(this,"data");"true"!==e.attr("aria-selected")?o.trigger("select",{originalEvent:t,data:i}):o.options.get("multiple")?o.trigger("unselect",{originalEvent:t,data:i}):o.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var e=h.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted"),o.trigger("results:focus",{data:e,element:d(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t,e,i,n,o=this.getHighlightedResults();0!==o.length&&(t=this.$results.find("[aria-selected]").index(o),n=this.$results.offset().top,e=o.offset().top,i=this.$results.scrollTop()+(e-n),n=e-n,i-=2*o.outerHeight(!1),t<=2?this.$results.scrollTop(0):(n>this.$results.outerHeight()||n<0)&&this.$results.scrollTop(i))},n.prototype.template=function(t,e){var i=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),t=i(t,e);null==t?e.style.display="none":"string"==typeof t?e.innerHTML=n(t):d(e).append(t)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(i,n,o){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return n.Extend(r,n.Observable),r.prototype.render=function(){var t=i('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=n.GetData(this.$element[0],"old-tabindex")?this._tabindex=n.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),t.attr("aria-disabled","false"),this.$selection=t},r.prototype.bind=function(t,e){var i=this,n=t.id+"-results";this.container=t,this.$selection.on("focus",function(t){i.trigger("focus",t)}),this.$selection.on("blur",function(t){i._handleBlur(t)}),this.$selection.on("keydown",function(t){i.trigger("keypress",t),t.which===o.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){i.update(t.data)}),t.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",n),i._attachCloseHandler(t)}),t.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(t)}),t.on("enable",function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")}),t.on("disable",function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")})},r.prototype._handleBlur=function(t){var e=this;window.setTimeout(function(){document.activeElement==e.$selection[0]||i.contains(e.$selection[0],document.activeElement)||e.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){i(document.body).on("mousedown.select2."+t.id,function(t){var e=i(t.target).closest(".select2");i(".select2.select2-container--open").each(function(){this!=e[0]&&n.GetData(this,"element").select2("close")})})},r.prototype._detachCloseHandler=function(t){i(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(t,e){e.find(".selection").append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,i,n){function o(){o.__super__.constructor.apply(this,arguments)}return i.Extend(o,e),o.prototype.render=function(){var t=o.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},o.prototype.bind=function(e,t){var i=this;o.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),e.on("focus",function(t){e.isOpen()||i.$selection.trigger("focus")})},o.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},o.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},o.prototype.selectionContainer=function(){return t("<span></span>")},o.prototype.update=function(t){var e,i;0!==t.length?(i=t[0],e=this.$selection.find(".select2-selection__rendered"),t=this.display(i,e),e.empty().append(t),(i=i.title||i.text)?e.attr("title",i):e.removeAttr("title")):this.clear()},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,a){function o(t,e){o.__super__.constructor.apply(this,arguments)}return a.Extend(o,t),o.prototype.render=function(){var t=o.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},o.prototype.bind=function(t,e){var i=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){i.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){var e;i.isDisabled()||(e=n(this).parent(),e=a.GetData(e[0],"data"),i.trigger("unselect",{originalEvent:t,data:e}))})},o.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},o.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},o.prototype.selectionContainer=function(){return n('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},o.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=0;i<t.length;i++){var n=t[i],o=this.selectionContainer(),r=this.display(n,o);o.append(r);r=n.title||n.text;r&&o.attr("title",r),a.StoreData(o[0],"data",n),e.push(o)}var s=this.$selection.find(".select2-selection__rendered");a.appendMany(s,e)}},o}),t.define("select2/selection/placeholder",["../utils"],function(t){function e(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return e.prototype.normalizePlaceholder=function(t,e){return e="string"==typeof e?{id:"",text:e}:e},e.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},e.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(1<e.length||i)return t.call(this,e);this.clear();e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},e}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,n,a){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){n._handleClear(t)}),e.on("keypress",function(t){n._handleKeyboardClear(t,e)})},t.prototype._handleClear=function(t,e){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();var n=a.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var r={data:n};if(this.trigger("clear",r),r.prevented)this.$element.val(o);else{for(var s=0;s<n.length;s++)if(r={data:n[s]},this.trigger("unselect",r),r.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},t.prototype._handleKeyboardClear=function(t,e,i){i.isOpen()||e.which!=n.DELETE&&e.which!=n.BACKSPACE||this._handleClear(e)},t.prototype.update=function(t,e){t.call(this,e),0<this.$selection.find(".select2-selection__placeholder").length||0===e.length||(t=this.options.get("translations").get("removeAllItems"),t=i('<span class="select2-selection__clear" title="'+t()+'">&times;</span>'),a.StoreData(t[0],"data",e),this.$selection.find(".select2-selection__rendered").prepend(t))},t}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(i,s,a){function t(t,e,i){t.call(this,e,i)}return t.prototype.render=function(t){var e=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=e,this.$search=e.find("input");t=t.call(this);return this._transferTabIndex(),t},t.prototype.bind=function(t,e,i){var n=this,o=e.id+"-results";t.call(this,e,i),e.on("open",function(){n.$search.attr("aria-controls",o),n.$search.trigger("focus")}),e.on("close",function(){n.$search.val(""),n.$search.removeAttr("aria-controls"),n.$search.removeAttr("aria-activedescendant"),n.$search.trigger("focus")}),e.on("enable",function(){n.$search.prop("disabled",!1),n._transferTabIndex()}),e.on("disable",function(){n.$search.prop("disabled",!0)}),e.on("focus",function(t){n.$search.trigger("focus")}),e.on("results:focus",function(t){t.data._resultId?n.$search.attr("aria-activedescendant",t.data._resultId):n.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(t){n.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){n._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){var e;t.stopPropagation(),n.trigger("keypress",t),n._keyUpPrevented=t.isDefaultPrevented(),t.which===a.BACKSPACE&&""===n.$search.val()&&0<(e=n.$searchContainer.prev(".select2-selection__choice")).length&&(e=s.GetData(e[0],"data"),n.searchRemoveChoice(e),t.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(t){n.$search.val()&&t.stopPropagation()});var e=document.documentMode,r=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){r?n.$selection.off("input.search input.searchcheck"):n.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){var e;r&&"input"===t.type?n.$selection.off("input.search input.searchcheck"):(e=t.which)!=a.SHIFT&&e!=a.CTRL&&e!=a.ALT&&e!=a.TAB&&n.handleSearch(t)})},t.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},t.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.trigger("focus")},t.prototype.handleSearch=function(){var t;this.resizeSearch(),this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="",t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em";this.$search.css("width",t)},t}),t.define("select2/selection/eventRelay",["jquery"],function(s){function t(){}return t.prototype.bind=function(t,e,i){var n=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];t.call(this,e,i),e.on("*",function(t,e){var i;-1!==s.inArray(t,o)&&(i=s.Event("select2:"+t,{params:e=e||{}}),n.$element.trigger(i),-1!==s.inArray(t,r)&&(e.prevented=i.isDefaultPrevented()))})},t}),t.define("select2/translation",["jquery","require"],function(e,i){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(t){var e;return t in n._cache||(e=i(t),n._cache[t]=e),new n(n._cache[t])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),t.define("select2/data/base",["../utils"],function(i){function n(t,e){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(t,e){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(t,e){t=t.id+"-result-";return t+=i.generateChars(4),null!=e.id?t+="-"+e.id.toString():t+="-"+i.generateChars(4),t},n}),t.define("select2/data/select",["./base","../utils","jquery"],function(t,s,a){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return s.Extend(i,t),i.prototype.current=function(t){var e=[],i=this;this.$element.find(":selected").each(function(){var t=a(this),t=i.item(t);e.push(t)}),t(e)},i.prototype.select=function(o){var t,r=this;if(o.selected=!0,a(o.element).is("option"))return o.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current(function(t){var e=[];(o=[o]).push.apply(o,t);for(var i=0;i<o.length;i++){var n=o[i].id;-1===a.inArray(n,e)&&e.push(n)}r.$element.val(e),r.$element.trigger("input").trigger("change")}):(t=o.id,this.$element.val(t),this.$element.trigger("input").trigger("change"))},i.prototype.unselect=function(o){var r=this;if(this.$element.prop("multiple")){if(o.selected=!1,a(o.element).is("option"))return o.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i].id;n!==o.id&&-1===a.inArray(n,e)&&e.push(n)}r.$element.val(e),r.$element.trigger("input").trigger("change")})}},i.prototype.bind=function(t,e){var i=this;(this.container=t).on("select",function(t){i.select(t.data)}),t.on("unselect",function(t){i.unselect(t.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){s.RemoveData(this)})},i.prototype.query=function(e,t){var i=[],n=this;this.$element.children().each(function(){var t=a(this);(t.is("option")||t.is("optgroup"))&&(t=n.item(t),null!==(t=n.matches(e,t))&&i.push(t))}),t({results:i})},i.prototype.addOptions=function(t){s.appendMany(this.$element,t)},i.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup")).label=t.text:void 0!==(e=document.createElement("option")).textContent?e.textContent=t.text:e.innerText=t.text,void 0!==t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var i=a(e),t=this._normalizeItem(t);return t.element=e,s.StoreData(e,"data",t),i},i.prototype.item=function(t){var e={};if(null!=(e=s.GetData(t[0],"data")))return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){for(var e={text:t.prop("label"),children:[],title:t.prop("title")},i=t.children("option"),n=[],o=0;o<i.length;o++){var r=a(i[o]),r=this.item(r);n.push(r)}e.children=n}return(e=this._normalizeItem(e)).element=t[0],s.StoreData(t[0],"data",e),e},i.prototype._normalizeItem=function(t){return t!==Object(t)&&(t={id:t,text:t}),null!=(t=a.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),a.extend({},{selected:!1,disabled:!1},t)},i.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(t,u,c){function n(t,e){this._dataToConvert=e.get("data")||[],n.__super__.constructor.call(this,t,e)}return u.Extend(n,t),n.prototype.bind=function(t,e){n.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(i){var t;0===(t=this.$element.find("option").filter(function(t,e){return e.value==i.id.toString()})).length&&(t=this.option(i),this.addOptions(t)),n.__super__.select.call(this,i)},n.prototype.convertToOptions=function(t){var e=this,i=this.$element.find("option"),n=i.map(function(){return e.item(c(this)).id}).get(),o=[];for(var r=0;r<t.length;r++){var s,a,l=this._normalizeItem(t[r]);0<=c.inArray(l.id,n)?(s=i.filter(function(t){return function(){return c(this).val()==t.id}}(l)),a=this.item(s),a=c.extend(!0,{},l,a),a=this.option(a),s.replaceWith(a)):(a=this.option(l),l.children&&(l=this.convertToOptions(l.children),u.appendMany(a,l)),o.push(a))}return o},n}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,r){function i(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype._applyDefaults=function(t){var e={data:function(t){return r.extend({},t,{q:t.term})},transport:function(t,e,i){t=r.ajax(t);return t.then(e),t.fail(i),t}};return r.extend({},e,t,!0)},i.prototype.processResults=function(t){return t},i.prototype.query=function(e,i){var n=this;null!=this._request&&(r.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=r.extend({type:"GET"},this.ajaxOptions);function t(){var t=o.transport(o,function(t){t=n.processResults(t,e);n.options.get("debug")&&window.console&&console.error&&(t&&t.results&&r.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in t&&(0===t.status||"0"===t.status)||n.trigger("results:message",{message:"errorLoading"})});n._request=t}"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(t,this.ajaxOptions.delay)):t()},i}),t.define("select2/data/tags",["jquery"],function(a){function t(t,e,i){var n=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);o=i.get("insertTag");if(void 0!==o&&(this.insertTag=o),t.call(this,e,i),a.isArray(n))for(var r=0;r<n.length;r++){var s=n[r],s=this._normalizeItem(s),s=this.option(s);this.$element.append(s)}}return t.prototype.query=function(t,u,c){var d=this;this._removeOldTags(),null!=u.term&&null==u.page?t.call(this,u,function t(e,i){for(var n=e.results,o=0;o<n.length;o++){var r=n[o],s=null!=r.children&&!t({results:r.children},!0);if((r.text||"").toUpperCase()===(u.term||"").toUpperCase()||s)return!i&&(e.data=n,void c(e))}if(i)return!0;var a,l=d.createTag(u);null!=l&&((a=d.option(l)).attr("data-select2-tag",!0),d.addOptions([a]),d.insertTag(n,l)),e.results=n,c(e)}):t.call(this,u,c)},t.prototype.createTag=function(t,e){e=a.trim(e.term);return""===e?null:{id:e,text:e}},t.prototype.insertTag=function(t,e,i){e.unshift(i)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(u){function t(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,e,i){var n=this;e.term=e.term||"";var o=this.tokenizer(e,this.options,function(t){var e=n._normalizeItem(t);n.$element.find("option").filter(function(){return u(this).val()===e.id}).length||((t=n.option(e)).attr("data-select2-tag",!0),n._removeOldTags(),n.addOptions([t])),n.trigger("select",{data:e})});o.term!==e.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),e.term=o.term),t.call(this,e,i)},t.prototype.tokenizer=function(t,e,i,n){for(var o=i.get("tokenSeparators")||[],r=e.term,s=0,a=this.createTag||function(t){return{id:t.term,text:t.term}};s<r.length;){var l=r[s];-1!==u.inArray(l,o)?(l=r.substr(0,s),null!=(l=a(u.extend({},e,{term:l})))?(n(l),r=r.substr(s+1)||"",s=0):s++):s++}return{term:r}},t}),t.define("select2/data/minimumInputLength",[],function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t}),t.define("select2/data/maximumInputLength",[],function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",0<this.maximumInputLength&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t}),t.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",function(){n._checkIfMaximumSelected()})},t.prototype.query=function(t,e,i){var n=this;this._checkIfMaximumSelected(function(){t.call(n,e,i)})},t.prototype._checkIfMaximumSelected=function(t,e){var i=this;this.current(function(t){t=null!=t?t.length:0;0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e&&e()})},t}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(r,t){function e(){}return e.prototype.render=function(t){var e=t.call(this),t=r('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=t,this.$search=t.find("input"),e.prepend(t),e},e.prototype.bind=function(t,e,i){var n=this,o=e.id+"-results";t.call(this,e,i),this.$search.on("keydown",function(t){n.trigger("keypress",t),n._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(t){r(this).off("keyup")}),this.$search.on("keyup input",function(t){n.handleSearch(t)}),e.on("open",function(){n.$search.attr("tabindex",0),n.$search.attr("aria-controls",o),n.$search.trigger("focus"),window.setTimeout(function(){n.$search.trigger("focus")},0)}),e.on("close",function(){n.$search.attr("tabindex",-1),n.$search.removeAttr("aria-controls"),n.$search.removeAttr("aria-activedescendant"),n.$search.val(""),n.$search.trigger("blur")}),e.on("focus",function(){e.isOpen()||n.$search.trigger("focus")}),e.on("results:all",function(t){null!=t.query.term&&""!==t.query.term||(n.showSearch(t)?n.$searchContainer.removeClass("select2-search--hide"):n.$searchContainer.addClass("select2-search--hide"))}),e.on("results:focus",function(t){t.data._resultId?n.$search.attr("aria-activedescendant",t.data._resultId):n.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(t){var e;this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e}),t.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return e="string"==typeof e?{id:"",text:e}:e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;0<=n;n--){var o=e[n];this.placeholder.id===o.id&&i.splice(n,1)}return i},t}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(i){function t(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("query",function(t){n.lastParams=t,n.loading=!0}),e.on("query:append",function(t){n.lastParams=t,n.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=i.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(t=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=i.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},t.prototype.createLoadingMore=function(){var t=i('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),e=this.options.get("translations").get("loadingMore");return t.html(e(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(c,s){function t(t,e,i){this.$dropdownParent=c(i.get("dropdownParent")||document.body),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("open",function(){n._showDropdown(),n._attachPositioningHandler(e),n._bindContainerResultHandlers(e)}),e.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},t.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},t.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},t.prototype.render=function(t){var e=c("<span></span>"),t=t.call(this);return e.append(t),this.$dropdownContainer=e},t.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},t.prototype._bindContainerResultHandlers=function(t,e){var i;this._containerResultsHandlersBound||(i=this,e.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),e.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}),e.on("results:message",function(){i._positionDropdown(),i._resizeDropdown()}),e.on("select",function(){i._positionDropdown(),i._resizeDropdown()}),e.on("unselect",function(){i._positionDropdown(),i._resizeDropdown()}),this._containerResultsHandlersBound=!0)},t.prototype._attachPositioningHandler=function(t,e){var i=this,n="scroll.select2."+e.id,o="resize.select2."+e.id,r="orientationchange.select2."+e.id,e=this.$container.parents().filter(s.hasScroll);e.each(function(){s.StoreData(this,"select2-scroll-position",{x:c(this).scrollLeft(),y:c(this).scrollTop()})}),e.on(n,function(t){var e=s.GetData(this,"select2-scroll-position");c(this).scrollTop(e.y)}),c(window).on(n+" "+o+" "+r,function(t){i._positionDropdown(),i._resizeDropdown()})},t.prototype._detachPositioningHandler=function(t,e){var i="scroll.select2."+e.id,n="resize.select2."+e.id,e="orientationchange.select2."+e.id;this.$container.parents().filter(s.hasScroll).off(i),c(window).off(i+" "+n+" "+e)},t.prototype._positionDropdown=function(){var t=c(window),e=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),n=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=o.top,r.bottom=o.top+r.height;var s=this.$dropdown.outerHeight(!1),a=t.scrollTop(),l=t.scrollTop()+t.height(),u=a<o.top-s,t=l>o.bottom+s,a={left:o.left,top:r.bottom},l=this.$dropdownParent;"static"===l.css("position")&&(l=l.offsetParent());o={top:0,left:0};(c.contains(document.body,l[0])||l[0].isConnected)&&(o=l.offset()),a.top-=o.top,a.left-=o.left,e||i||(n="below"),t||!u||e?!u&&t&&e&&(n="below"):n="above",("above"==n||e&&"below"!==n)&&(a.top=r.top-o.top-s),null!=n&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+n),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+n)),this.$dropdownContainer.css(a)},t.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},t.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},t}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var i=0,n=0;n<e.length;n++){var o=e[n];o.children?i+=t(o.children):i++}return i}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t}),t.define("select2/dropdown/selectOnClose",["../utils"],function(n){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",function(t){n._handleSelectOnClose(t)})},t.prototype._handleSelectOnClose=function(t,e){if(e&&null!=e.originalSelect2Event){var i=e.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}i=this.getHighlightedResults();i.length<1||(null!=(i=n.GetData(i[0],"data")).element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i}))},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",function(t){n._selectTriggered(t)}),e.on("unselect",function(t){n._selectTriggered(t)})},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(l,a,u,c,d,h,p,f,m,g,s,e,v,y,b,T,_,S,D,w,C,A,E,x,P,M,k,I,t){function i(){this.reset()}return i.prototype.apply=function(t){var e,i,n;null==(t=l.extend(!0,{},this.defaults,t)).dataAdapter&&(null!=t.ajax?t.dataAdapter=b:null!=t.data?t.dataAdapter=y:t.dataAdapter=v,0<t.minimumInputLength&&(t.dataAdapter=g.Decorate(t.dataAdapter,S)),0<t.maximumInputLength&&(t.dataAdapter=g.Decorate(t.dataAdapter,D)),0<t.maximumSelectionLength&&(t.dataAdapter=g.Decorate(t.dataAdapter,w)),t.tags&&(t.dataAdapter=g.Decorate(t.dataAdapter,T)),null==t.tokenSeparators&&null==t.tokenizer||(t.dataAdapter=g.Decorate(t.dataAdapter,_)),null!=t.query&&(e=a(t.amdBase+"compat/query"),t.dataAdapter=g.Decorate(t.dataAdapter,e)),null!=t.initSelection&&(i=a(t.amdBase+"compat/initSelection"),t.dataAdapter=g.Decorate(t.dataAdapter,i))),null==t.resultsAdapter&&(t.resultsAdapter=u,null!=t.ajax&&(t.resultsAdapter=g.Decorate(t.resultsAdapter,x)),null!=t.placeholder&&(t.resultsAdapter=g.Decorate(t.resultsAdapter,E)),t.selectOnClose&&(t.resultsAdapter=g.Decorate(t.resultsAdapter,k))),null==t.dropdownAdapter&&(t.multiple?t.dropdownAdapter=C:(i=g.Decorate(C,A),t.dropdownAdapter=i),0!==t.minimumResultsForSearch&&(t.dropdownAdapter=g.Decorate(t.dropdownAdapter,M)),t.closeOnSelect&&(t.dropdownAdapter=g.Decorate(t.dropdownAdapter,I)),null==t.dropdownCssClass&&null==t.dropdownCss&&null==t.adaptDropdownCssClass||(n=a(t.amdBase+"compat/dropdownCss"),t.dropdownAdapter=g.Decorate(t.dropdownAdapter,n)),t.dropdownAdapter=g.Decorate(t.dropdownAdapter,P)),null==t.selectionAdapter&&(t.multiple?t.selectionAdapter=d:t.selectionAdapter=c,null!=t.placeholder&&(t.selectionAdapter=g.Decorate(t.selectionAdapter,h)),t.allowClear&&(t.selectionAdapter=g.Decorate(t.selectionAdapter,p)),t.multiple&&(t.selectionAdapter=g.Decorate(t.selectionAdapter,f)),null==t.containerCssClass&&null==t.containerCss&&null==t.adaptContainerCssClass||(n=a(t.amdBase+"compat/containerCss"),t.selectionAdapter=g.Decorate(t.selectionAdapter,n)),t.selectionAdapter=g.Decorate(t.selectionAdapter,m)),t.language=this._resolveLanguage(t.language),t.language.push("en");for(var o=[],r=0;r<t.language.length;r++){var s=t.language[r];-1===o.indexOf(s)&&o.push(s)}return t.language=o,t.translations=this._processTranslations(t.language,t.debug),t},i.prototype.reset=function(){function a(t){return t.replace(/[^\u0000-\u007E]/g,function(t){return e[t]||t})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:g.escapeMarkup,language:{},matcher:function t(e,i){if(""===l.trim(e.term))return i;if(i.children&&0<i.children.length){for(var n=l.extend(!0,{},i),o=i.children.length-1;0<=o;o--)null==t(e,i.children[o])&&n.children.splice(o,1);return 0<n.children.length?n:t(e,n)}var r=a(i.text).toUpperCase(),s=a(e.term).toUpperCase();return-1<r.indexOf(s)?i:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},i.prototype.applyFromElement=function(t,e){var i=t.language,n=this.defaults.language,o=e.prop("lang"),e=e.closest("[lang]").prop("lang"),e=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(e));return t.language=e,t},i.prototype._resolveLanguage=function(t){if(!t)return[];if(l.isEmptyObject(t))return[];if(l.isPlainObject(t))return[t];for(var e,i=l.isArray(t)?t:[t],n=[],o=0;o<i.length;o++)n.push(i[o]),"string"==typeof i[o]&&0<i[o].indexOf("-")&&(e=i[o].split("-")[0],n.push(e));return n},i.prototype._processTranslations=function(t,e){for(var i=new s,n=0;n<t.length;n++){var o=new s,r=t[n];if("string"==typeof r)try{o=s.loadPath(r)}catch(t){try{r=this.defaults.amdLanguageBase+r,o=s.loadPath(r)}catch(t){e&&window.console&&console.warn&&console.warn('Select2: The language file for "'+r+'" could not be automatically loaded. A fallback will be used instead.')}}else o=l.isPlainObject(r)?new s(r):r;i.extend(o)}return i},i.prototype.set=function(t,e){var i={};i[l.camelCase(t)]=e;i=g._convertData(i);l.extend(!0,this.defaults,i)},new i}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(i,u,n,c){function t(t,e){this.options=t,null!=e&&this.fromElement(e),null!=e&&(this.options=n.applyFromElement(this.options,e)),this.options=n.apply(this.options),e&&e.is("input")&&(e=i(this.get("amdBase")+"compat/inputData"),this.options.dataAdapter=c.Decorate(this.options.dataAdapter,e))}return t.prototype.fromElement=function(t){var e=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),c.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),c.StoreData(t[0],"data",c.GetData(t[0],"select2Tags")),c.StoreData(t[0],"tags",!0)),c.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",c.GetData(t[0],"ajaxUrl")),c.StoreData(t[0],"ajax-Url",c.GetData(t[0],"ajaxUrl")));var i={};function n(t,e){return e.toUpperCase()}for(var o=0;o<t[0].attributes.length;o++){var r,s=t[0].attributes[o].name;"data-"==s.substr(0,"data-".length)&&(r=s.substring("data-".length),s=c.GetData(t[0],r),i[r.replace(/-([a-z])/g,n)]=s)}u.fn.jquery&&"1."==u.fn.jquery.substr(0,2)&&t[0].dataset&&(i=u.extend(!0,{},t[0].dataset,i));var a,l=u.extend(!0,{},c.GetData(t[0]),i);for(a in l=c._convertData(l))-1<u.inArray(a,e)||(u.isPlainObject(this.options[a])?u.extend(this.options[a],l[a]):this.options[a]=l[a]);return this},t.prototype.get=function(t){return this.options[t]},t.prototype.set=function(t,e){this.options[t]=e},t}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(r,o,s,n){var a=function(t,e){null!=s.GetData(t[0],"select2")&&s.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),this.options=new o(e=e||{},t),a.__super__.constructor.call(this);var i=t.attr("tabindex")||0;s.StoreData(t[0],"old-tabindex",i),t.attr("tabindex","-1");e=this.options.get("dataAdapter");this.dataAdapter=new e(t,this.options);i=this.render();this._placeContainer(i);e=this.options.get("selectionAdapter");this.selection=new e(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);e=this.options.get("dropdownAdapter");this.dropdown=new e(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);i=this.options.get("resultsAdapter");this.results=new i(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var n=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){n.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),s.StoreData(t[0],"select2",this),t.data("select2",this)};return s.Extend(a,s.Observable),a.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+s.generateChars(2):s.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},a.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},a.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){n=t.outerWidth(!1);return n<=0?"auto":n+"px"}if("style"!=e)return"computedstyle"!=e?e:window.getComputedStyle(t[0]).width;t=t.attr("style");if("string"!=typeof t)return null;for(var o=t.split(";"),r=0,s=o.length;r<s;r+=1){var a=o[r].replace(/\s/g,"").match(i);if(null!==a&&1<=a.length)return a[1]}return null},a.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},a.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=s.bind(this._syncAttributes,this),this._syncS=s.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t(function(t){e._syncA(),e._syncS(null,t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},a.prototype._registerDataEvents=function(){var i=this;this.dataAdapter.on("*",function(t,e){i.trigger(t,e)})},a.prototype._registerSelectionEvents=function(){var i=this,n=["toggle","focus"];this.selection.on("toggle",function(){i.toggleDropdown()}),this.selection.on("focus",function(t){i.focus(t)}),this.selection.on("*",function(t,e){-1===r.inArray(t,n)&&i.trigger(t,e)})},a.prototype._registerDropdownEvents=function(){var i=this;this.dropdown.on("*",function(t,e){i.trigger(t,e)})},a.prototype._registerResultsEvents=function(){var i=this;this.results.on("*",function(t,e){i.trigger(t,e)})},a.prototype._registerEvents=function(){var i=this;this.on("open",function(){i.$container.addClass("select2-container--open")}),this.on("close",function(){i.$container.removeClass("select2-container--open")}),this.on("enable",function(){i.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){i.$container.addClass("select2-container--disabled")}),this.on("blur",function(){i.$container.removeClass("select2-container--focus")}),this.on("query",function(e){i.isOpen()||i.trigger("open",{}),this.dataAdapter.query(e,function(t){i.trigger("results:all",{data:t,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(t){i.trigger("results:append",{data:t,query:e})})}),this.on("keypress",function(t){var e=t.which;i.isOpen()?e===n.ESC||e===n.TAB||e===n.UP&&t.altKey?(i.close(t),t.preventDefault()):e===n.ENTER?(i.trigger("results:select",{}),t.preventDefault()):e===n.SPACE&&t.ctrlKey?(i.trigger("results:toggle",{}),t.preventDefault()):e===n.UP?(i.trigger("results:previous",{}),t.preventDefault()):e===n.DOWN&&(i.trigger("results:next",{}),t.preventDefault()):(e===n.ENTER||e===n.SPACE||e===n.DOWN&&t.altKey)&&(i.open(),t.preventDefault())})},a.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},a.prototype._isChangeMutation=function(t,e){var i=!1,n=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&0<e.addedNodes.length)for(var o=0;o<e.addedNodes.length;o++)e.addedNodes[o].selected&&(i=!0);else e.removedNodes&&0<e.removedNodes.length?i=!0:r.isArray(e)&&r.each(e,function(t,e){if(n._isChangeMutation(t,e))return!(i=!0)});else i=!0;return i}},a.prototype._syncSubtree=function(t,e){var e=this._isChangeMutation(t,e),i=this;e&&this.dataAdapter.current(function(t){i.trigger("selection:update",{data:t})})},a.prototype.trigger=function(t,e){var i=a.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in n){var o={prevented:!1,name:t,args:e};if(i.call(this,n[t],o),o.prevented)return void(e.prevented=!0)}i.call(this,t,e)},a.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},a.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},a.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},a.prototype.isEnabled=function(){return!this.isDisabled()},a.prototype.isDisabled=function(){return this.options.get("disabled")},a.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},a.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},a.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},a.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');t=!(t=null==t||0===t.length?[!0]:t)[0];this.$element.prop("disabled",t)},a.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},a.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();t=t[0];r.isArray(t)&&(t=r.map(t,function(t){return t.toString()})),this.$element.val(t).trigger("input").trigger("change")},a.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",s.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),s.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},a.prototype.render=function(){var t=r('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),s.StoreData(t[0],"element",this.$element),t},a}),t.define("jquery-mousewheel",["jquery"],function(t){return t}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(o,t,r,e,s){var a;return null==o.fn.select2&&(a=["open","close","destroy"],o.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each(function(){var t=o.extend(!0,{},e);new r(o(this),t)}),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var i,n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=s.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,n)}),-1<o.inArray(e,a)?this:i}),null==o.fn.select2.defaults&&(o.fn.select2.defaults=e),r}),{define:t.define,require:t.require}),t=o.require("jquery.select2");function T(t,e){return a.call(t,e)}function u(t,e){var i,n,o,r,s,a,l,u,c,d,h=e&&e.split("/"),p=v.map,f=p&&p["*"]||{};if(t){for(e=(t=t.split("/")).length-1,v.nodeIdCompat&&b.test(t[e])&&(t[e]=t[e].replace(b,"")),"."===t[0].charAt(0)&&h&&(t=h.slice(0,h.length-1).concat(t)),u=0;u<t.length;u++)if("."===(d=t[u]))t.splice(u,1),--u;else if(".."===d){if(0===u||1===u&&".."===t[2]||".."===t[u-1])continue;0<u&&(t.splice(u-1,2),u-=2)}t=t.join("/")}if((h||f)&&p){for(u=(i=t.split("/")).length;0<u;--u){if(n=i.slice(0,u).join("/"),h)for(c=h.length;0<c;--c)if(o=(o=p[h.slice(0,c).join("/")])&&o[n]){r=o,s=u;break}if(r)break;!a&&f&&f[n]&&(a=f[n],l=u)}!r&&a&&(r=a,s=l),r&&(i.splice(0,s,r),t=i.join("/"))}return t}function _(e,i){return function(){var t=l.call(arguments,0);return"string"!=typeof t[0]&&1===t.length&&t.push(null),s.apply(h,t.concat([e,i]))}}function S(t){var e;if(T(g,t)&&(e=g[t],delete g[t],y[t]=!0,r.apply(h,e)),!T(m,t)&&!T(y,t))throw new Error("No "+t);return m[t]}function c(t){var e,i=t?t.indexOf("!"):-1;return-1<i&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function D(t){return t?c(t):[]}return e.fn.select2.amd=o,t}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(u){"use strict";var n,r=window.Slick||{};n=0,(r=function(t,e){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:u(t),appendDots:u(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return u('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},u.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=u(t),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,t=u(t).data("slick")||{},i.options=u.extend({},i.defaults,e,t),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=u.proxy(i.autoPlay,i),i.autoPlayClear=u.proxy(i.autoPlayClear,i),i.autoPlayIterator=u.proxy(i.autoPlayIterator,i),i.changeSlide=u.proxy(i.changeSlide,i),i.clickHandler=u.proxy(i.clickHandler,i),i.selectHandler=u.proxy(i.selectHandler,i),i.setPosition=u.proxy(i.setPosition,i),i.swipeHandler=u.proxy(i.swipeHandler,i),i.dragHandler=u.proxy(i.dragHandler,i),i.keyHandler=u.proxy(i.keyHandler,i),i.instanceUid=n++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},r.prototype.addSlide=r.prototype.slickAdd=function(t,e,i){var n=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=n.slideCount)return!1;n.unload(),"number"==typeof e?0===e&&0===n.$slides.length?u(t).appendTo(n.$slideTrack):i?u(t).insertBefore(n.$slides.eq(e)):u(t).insertAfter(n.$slides.eq(e)):!0===i?u(t).prependTo(n.$slideTrack):u(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(t,e){u(e).attr("data-slick-index",t)}),n.$slidesCache=n.$slides,n.reinit()},r.prototype.animateHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.animate({height:t},this.options.speed))},r.prototype.animateSlide=function(t,e){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,e):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,e):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),u({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate("+t+"px, 0px)":i[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate3d("+t+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(i),e&&setTimeout(function(){n.disableTransition(),e.call()},n.options.speed))},r.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t=t&&null!==t?u(t).not(this.$slider):t},r.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=u(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},r.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(i)},r.prototype.autoPlay=function(){this.autoPlayClear(),this.slideCount>this.options.slidesToShow&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},r.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},r.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},r.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=u(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=u(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},r.prototype.buildDots=function(){var t,e;if(!0===this.options.dots){for(this.$slider.addClass("slick-dotted"),e=u("<ul />").addClass(this.options.dotsClass),t=0;t<=this.getDotCount();t+=1)e.append(u("<li />").append(this.options.customPaging.call(this,this,t)));this.$dots=e.appendTo(this.options.appendDots),this.$dots.find("li").first().addClass("slick-active")}},r.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){u(e).attr("data-slick-index",t).data("originalStyling",u(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?u('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),u("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},r.prototype.buildRows=function(){var t,e,i,n=this,o=document.createDocumentFragment(),r=n.$slider.children();if(1<n.options.rows){for(i=n.options.slidesPerRow*n.options.rows,e=Math.ceil(r.length/i),t=0;t<e;t++){for(var s=document.createElement("div"),a=0;a<n.options.rows;a++){for(var l=document.createElement("div"),u=0;u<n.options.slidesPerRow;u++){var c=t*i+(a*n.options.slidesPerRow+u);r.get(c)&&l.appendChild(r.get(c))}s.appendChild(l)}o.appendChild(s)}n.$slider.empty().append(o),n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}},r.prototype.checkResponsive=function(t,e){var i,n,o,r=this,s=!1,a=r.$slider.width(),l=window.innerWidth||u(window).width();if("window"===r.respondTo?o=l:"slider"===r.respondTo?o=a:"min"===r.respondTo&&(o=Math.min(l,a)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(i in n=null,r.breakpoints)r.breakpoints.hasOwnProperty(i)&&(!1===r.originalSettings.mobileFirst?o<r.breakpoints[i]&&(n=r.breakpoints[i]):o>r.breakpoints[i]&&(n=r.breakpoints[i]));null!==n?null!==r.activeBreakpoint&&n===r.activeBreakpoint&&!e||(r.activeBreakpoint=n,"unslick"===r.breakpointSettings[n]?r.unslick(n):(r.options=u.extend({},r.originalSettings,r.breakpointSettings[n]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),s=n):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),s=n),t||!1===s||r.$slider.trigger("breakpoint",[r,s])}},r.prototype.changeSlide=function(t,e){var i,n=this,o=u(t.currentTarget);switch(o.is("a")&&t.preventDefault(),o.is("li")||(o=o.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,t.data.message){case"previous":r=0==i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-r,!1,e);break;case"next":r=0==i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+r,!1,e);break;case"index":var r=0===t.data.index?0:t.data.index||o.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(r),!1,e),o.children().trigger("focus");break;default:return}},r.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},r.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(u("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",u.proxy(t.interrupt,t,!0)).off("mouseleave.slick",u.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),u(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&u(t.$slideTrack).children().off("click.slick",t.selectHandler),u(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),u(window).off("resize.slick.slick-"+t.instanceUid,t.resize),u("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),u(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},r.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",u.proxy(this.interrupt,this,!0)),this.$list.off("mouseleave.slick",u.proxy(this.interrupt,this,!1))},r.prototype.cleanUpRows=function(){var t;1<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},r.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},r.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),u(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){u(this).attr("style",u(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},r.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},r.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},r.prototype.fadeSlideOut=function(t){!1===this.cssTransitions?this.$slides.eq(t).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(t),this.$slides.eq(t).css({opacity:0,zIndex:this.options.zIndex-2}))},r.prototype.filterSlides=r.prototype.slickFilter=function(t){null!==t&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(t).appendTo(this.$slideTrack),this.reinit())},r.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=u(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())},0)})},r.prototype.getCurrent=r.prototype.slickCurrentSlide=function(){return this.currentSlide},r.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},r.prototype.getLeft=function(t){var e,i,n=this,o=0;return n.slideOffset=0,e=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,i=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?i=-1.5:1===n.options.slidesToShow&&(i=-2)),o=e*n.options.slidesToShow*i),n.slideCount%n.options.slidesToScroll!=0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(o=t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,(n.options.slidesToShow-(t-n.slideCount))*e*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,n.slideCount%n.options.slidesToScroll*e*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,o=(t+n.options.slidesToShow-n.slideCount)*e),n.slideCount<=n.options.slidesToShow&&(o=n.slideOffset=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?t*n.slideWidth*-1+n.slideOffset:t*e*-1+o,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},r.prototype.getOption=r.prototype.slickGetOption=function(t){return this.options[t]},r.prototype.getNavigableIndexes=function(){for(var t=this,e=0,i=0,n=[],o=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,2*t.slideCount);e<o;)n.push(e),e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},r.prototype.getSlick=function(){return this},r.prototype.getSlideCount=function(){var i,n=this,o=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0;return!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-o+u(e).outerWidth()/2>-1*n.swipeLeft)return i=e,!1}),Math.abs(u(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},r.prototype.goTo=r.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},r.prototype.init=function(t){var e=this;u(e.$slider).hasClass("slick-initialized")||(u(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},r.prototype.initADA=function(){var i=this,n=Math.ceil(i.slideCount/i.options.slidesToShow),o=i.getNavigableIndexes().filter(function(t){return 0<=t&&t<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(t){var e=o.indexOf(t);u(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+t,tabindex:-1}),-1!==e&&u(this).attr({"aria-describedby":"slick-slide-control"+i.instanceUid+e})}),i.$dots.attr("role","tablist").find("li").each(function(t){var e=o[t];u(this).attr({role:"presentation"}),u(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+t,"aria-controls":"slick-slide"+i.instanceUid+e,"aria-label":t+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=i.currentSlide,e=t+i.options.slidesToShow;t<e;t++)i.$slides.eq(t).attr("tabindex",0);i.activateADA()},r.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},r.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(u("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&u("li",t.$dots).on("mouseenter.slick",u.proxy(t.interrupt,t,!0)).on("mouseleave.slick",u.proxy(t.interrupt,t,!1))},r.prototype.initSlideEvents=function(){this.options.pauseOnHover&&(this.$list.on("mouseenter.slick",u.proxy(this.interrupt,this,!0)),this.$list.on("mouseleave.slick",u.proxy(this.interrupt,this,!1)))},r.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),u(document).on(t.visibilityChange,u.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&u(t.$slideTrack).children().on("click.slick",t.selectHandler),u(window).on("orientationchange.slick.slick-"+t.instanceUid,u.proxy(t.orientationChange,t)),u(window).on("resize.slick.slick-"+t.instanceUid,u.proxy(t.resize,t)),u("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),u(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),u(t.setPosition)},r.prototype.initUI=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.show(),this.$nextArrow.show()),!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()},r.prototype.keyHandler=function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))},r.prototype.lazyLoad=function(){function t(t){u("img[data-lazy]",t).each(function(){var t=u(this),e=u(this).attr("data-lazy"),i=u(this).attr("data-srcset"),n=u(this).attr("data-sizes")||r.$slider.attr("data-sizes"),o=document.createElement("img");o.onload=function(){t.animate({opacity:0},100,function(){i&&(t.attr("srcset",i),n&&t.attr("sizes",n)),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,t,e])})},o.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,e])},o.src=e})}var e,i,n,r=this;if(!0===r.options.centerMode?n=!0===r.options.infinite?(i=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(i=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),r.options.slidesToShow/2+1+2+r.currentSlide):(i=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(i+r.options.slidesToShow),!0===r.options.fade&&(0<i&&i--,n<=r.slideCount&&n++)),e=r.$slider.find(".slick-slide").slice(i,n),"anticipated"===r.options.lazyLoad)for(var o=i-1,s=n,a=r.$slider.find(".slick-slide"),l=0;l<r.options.slidesToScroll;l++)o<0&&(o=r.slideCount-1),e=(e=e.add(a.eq(o))).add(a.eq(s)),o--,s++;t(e),r.slideCount<=r.options.slidesToShow?t(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?t(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&t(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},r.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},r.prototype.next=r.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},r.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},r.prototype.pause=r.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},r.prototype.play=r.prototype.slickPlay=function(){this.autoPlay(),this.options.autoplay=!0,this.paused=!1,this.focussed=!1,this.interrupted=!1},r.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange&&u(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus()))},r.prototype.prev=r.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},r.prototype.preventDefault=function(t){t.preventDefault()},r.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,n,o,r=this,s=u("img[data-lazy]",r.$slider);s.length?(e=s.first(),i=e.attr("data-lazy"),n=e.attr("data-srcset"),o=e.attr("data-sizes")||r.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){n&&(e.attr("srcset",n),o&&e.attr("sizes",o)),e.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===r.options.adaptiveHeight&&r.setPosition(),r.$slider.trigger("lazyLoaded",[r,e,i]),r.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout(function(){r.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,i]),r.progressiveLazyLoad())},s.src=i):r.$slider.trigger("allImagesLoaded",[r])},r.prototype.refresh=function(t){var e=this,i=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>i&&(e.currentSlide=i),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),i=e.currentSlide,e.destroy(!0),u.extend(e,e.initials,{currentSlide:i}),e.init(),t||e.changeSlide({data:{message:"index",index:i}},!1)},r.prototype.registerBreakpoints=function(){var t,e,i,n=this,o=n.options.responsive||null;if("array"===u.type(o)&&o.length){for(t in n.respondTo=n.options.respondTo||"window",o)if(i=n.breakpoints.length-1,o.hasOwnProperty(t)){for(e=o[t].breakpoint;0<=i;)n.breakpoints[i]&&n.breakpoints[i]===e&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(e),n.breakpointSettings[e]=o[t].settings}n.breakpoints.sort(function(t,e){return n.options.mobileFirst?t-e:e-t})}},r.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&u(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},r.prototype.resize=function(){var t=this;u(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=u(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},r.prototype.removeSlide=r.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),(!0===i?n.$slideTrack.children():n.$slideTrack.children(this.options.slide).eq(t)).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},r.prototype.setCSS=function(t){var e,i,n=this,o={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",o[n.positionProp]=t,!1===n.transformsEnabled||(!(o={})===n.cssTransitions?o[n.animType]="translate("+e+", "+i+")":o[n.animType]="translate3d("+e+", "+i+", 0px)"),n.$slideTrack.css(o)},r.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},r.prototype.setFade=function(){var i,n=this;n.$slides.each(function(t,e){i=n.slideWidth*t*-1,!0===n.options.rtl?u(e).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}):u(e).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},r.prototype.setHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.css("height",t))},r.prototype.setOption=r.prototype.slickSetOption=function(){var t,e,i,n,o,r=this,s=!1;if("object"===u.type(arguments[0])?(i=arguments[0],s=arguments[1],o="multiple"):"string"===u.type(arguments[0])&&(i=arguments[0],n=arguments[1],s=arguments[2],"responsive"===arguments[0]&&"array"===u.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)r.options[i]=n;else if("multiple"===o)u.each(i,function(t,e){r.options[t]=e});else if("responsive"===o)for(e in n)if("array"!==u.type(r.options.responsive))r.options.responsive=[n[e]];else{for(t=r.options.responsive.length-1;0<=t;)r.options.responsive[t].breakpoint===n[e].breakpoint&&r.options.responsive.splice(t,1),t--;r.options.responsive.push(n[e])}s&&(r.unload(),r.reinit())},r.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},r.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},r.prototype.setSlideClasses=function(t){var e,i,n,o=this,r=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode?(i=o.options.slidesToShow%2==0?1:0,n=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(n<=t&&t<=o.slideCount-1-n?o.$slides.slice(t-n+i,t+n+1).addClass("slick-active").attr("aria-hidden","false"):(e=o.options.slidesToShow+t,r.slice(e-n+1+i,e+n+2).addClass("slick-active").attr("aria-hidden","false")),0===t?r.eq(r.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&r.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):0<=t&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):r.length<=o.options.slidesToShow?r.addClass("slick-active").attr("aria-hidden","false"):(n=o.slideCount%o.options.slidesToShow,e=!0===o.options.infinite?o.options.slidesToShow+t:t,(o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?r.slice(e-(o.options.slidesToShow-n),e+n):r.slice(e,e+o.options.slidesToShow)).addClass("slick-active").attr("aria-hidden","false")),"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},r.prototype.setupInfinite=function(){var t,e,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(e=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-i;--t)u(n.$slides[e=t-1]).clone(!0).attr("id","").attr("data-slick-index",e-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<i+n.slideCount;t+=1)u(n.$slides[e=t]).clone(!0).attr("id","").attr("data-slick-index",e+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){u(this).attr("id","")})}},r.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},r.prototype.selectHandler=function(t){t=u(t.target).is(".slick-slide")?u(t.target):u(t.target).parents(".slick-slide"),t=(t=parseInt(t.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(t,!1,!0):this.slideHandler(t)},r.prototype.slideHandler=function(t,e,i){var n,o,r,s,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===t))if(!1===e&&a.asNavFor(t),s=a.getLeft(n=t),e=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?e:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(t<0||t>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(n=a.currentSlide,!0!==i?a.animateSlide(e,function(){a.postSlide(n)}):a.postSlide(n));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(t<0||t>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(n=a.currentSlide,!0!==i?a.animateSlide(e,function(){a.postSlide(n)}):a.postSlide(n));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),o=n<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+n:n>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:n-a.slideCount:n,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,o]),e=a.currentSlide,a.currentSlide=o,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(r=(r=a.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==i?(a.fadeSlideOut(e),a.fadeSlide(o,function(){a.postSlide(o)})):a.postSlide(o),void a.animateHeight();!0!==i?a.animateSlide(s,function(){a.postSlide(o)}):a.postSlide(o)}},r.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},r.prototype.swipeDirection=function(){var t=this.touchObject.startX-this.touchObject.curX,e=this.touchObject.startY-this.touchObject.curY,t=Math.atan2(e,t);return(t=(t=Math.round(180*t/Math.PI))<0?360-Math.abs(t):t)<=45&&0<=t||t<=360&&315<=t?!1===this.options.rtl?"left":"right":135<=t&&t<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=t&&t<=135?"down":"up":"vertical"},r.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1;if(n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},r.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},r.prototype.swipeMove=function(t){var e,i,n=this,o=void 0!==t.originalEvent?t.originalEvent.touches:null;return!(!n.dragging||n.scrolling||o&&1!==o.length)&&(e=n.getLeft(n.currentSlide),n.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,n.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),i=Math.round(Math.sqrt(Math.pow(n.touchObject.curY-n.touchObject.startY,2))),!n.options.verticalSwiping&&!n.swiping&&4<i?!(n.scrolling=!0):(!0===n.options.verticalSwiping&&(n.touchObject.swipeLength=i),o=n.swipeDirection(),void 0!==t.originalEvent&&4<n.touchObject.swipeLength&&(n.swiping=!0,t.preventDefault()),i=(!1===n.options.rtl?1:-1)*(n.touchObject.curX>n.touchObject.startX?1:-1),!0===n.options.verticalSwiping&&(i=n.touchObject.curY>n.touchObject.startY?1:-1),t=n.touchObject.swipeLength,(n.touchObject.edgeHit=!1)===n.options.infinite&&(0===n.currentSlide&&"right"===o||n.currentSlide>=n.getDotCount()&&"left"===o)&&(t=n.touchObject.swipeLength*n.options.edgeFriction,n.touchObject.edgeHit=!0),!1===n.options.vertical?n.swipeLeft=e+t*i:n.swipeLeft=e+t*(n.$list.height()/n.listWidth)*i,!0===n.options.verticalSwiping&&(n.swipeLeft=e+t*i),!0!==n.options.fade&&!1!==n.options.touchMove&&(!0===n.animating?(n.swipeLeft=null,!1):void n.setCSS(n.swipeLeft))))},r.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},r.prototype.unfilterSlides=r.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},r.prototype.unload=function(){var t=this;u(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},r.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},r.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},r.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").end(),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active"))},r.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},u.fn.slick=function(){for(var t,e=arguments[0],i=Array.prototype.slice.call(arguments,1),n=this.length,o=0;o<n;o++)if("object"==typeof e||void 0===e?this[o].slick=new r(this[o],e):t=this[o].slick[e].apply(this[o].slick,i),void 0!==t)return t;return this}}),function(){var M=window.jQuery,k=M(window);M.fn.stick_in_parent=function(t){var _,e,i,n,S,D=(t=null==t?{}:t).sticky_class,w=t.inner_scrolling,C=t.recalc_every,A=t.parent,E=t.offset_top,x=t.spacer,P=t.bottoming;for(null==E&&(E=0),null==A&&(A=void 0),null==w&&(w=!0),null==D&&(D="is_stuck"),_=M(document),null==P&&(P=!0),S=function(t){var e;return window.getComputedStyle?(t=window.getComputedStyle(t[0]),e=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(e+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),e):t.outerWidth(!0)},e=function(o,r,s,a,l,u,c,d){var h,t,p,f,m,g,v,y,e,b,T,n;if(!o.data("sticky_kit")){if(o.data("sticky_kit",!0),m=_.height(),v=o.parent(),!(v=null!=A?v.closest(A):v).length)throw"failed to find stick parent";if(h=p=!1,(T=null!=x?x&&o.closest(x):M("<div />"))&&T.css("position",o.css("position")),(y=function(){var t,e,i;if(!d&&(m=_.height(),t=parseInt(v.css("border-top-width"),10),e=parseInt(v.css("padding-top"),10),r=parseInt(v.css("padding-bottom"),10),s=v.offset().top+t+e,a=v.height(),p&&(h=p=!1,null==x&&(o.insertAfter(T),T.detach()),o.css({position:"",top:"",width:"",bottom:""}).removeClass(D),i=!0),l=o.offset().top-(parseInt(o.css("margin-top"),10)||0)-E,u=o.outerHeight(!0),c=o.css("float"),T&&T.css({width:S(o),height:u,display:o.css("display"),"vertical-align":o.css("vertical-align"),float:c}),i))return n()})(),u!==a)return f=void 0,g=E,b=C,n=function(){var t,e,i,n;if(!d&&(i=!1,null!=b&&(--b<=0&&(b=C,y(),i=!0)),i||_.height()===m||y(),i=k.scrollTop(),null!=f&&(e=i-f),f=i,p?(P&&(n=a+s<i+u+g,h&&!n&&(h=!1,o.css({position:"fixed",bottom:"",top:g}).trigger("sticky_kit:unbottom"))),i<l&&(p=!1,g=E,null==x&&("left"!==c&&"right"!==c||o.insertAfter(T),T.detach()),o.css(t={position:"",width:"",top:""}).removeClass(D).trigger("sticky_kit:unstick")),w&&((t=k.height())<u+E&&!h&&(g-=e,g=Math.max(t-u,g),g=Math.min(E,g),p&&o.css({top:g+"px"})))):l<i&&(p=!0,(t={position:"fixed",top:g}).width="border-box"===o.css("box-sizing")?o.outerWidth()+"px":o.width()+"px",o.css(t).addClass(D),null==x&&(o.after(T),"left"!==c&&"right"!==c||T.append(o)),o.trigger("sticky_kit:stick")),p&&P&&(null==n&&(n=a+s<i+u+g),!h&&n)))return h=!0,"static"===v.css("position")&&v.css({position:"relative"}),o.css({position:"absolute",bottom:r,top:"auto"}).trigger("sticky_kit:bottom")},e=function(){return y(),n()},t=function(){if(d=!0,k.off("touchmove",n),k.off("scroll",n),k.off("resize",e),M(document.body).off("sticky_kit:recalc",e),o.off("sticky_kit:detach",t),o.removeData("sticky_kit"),o.css({position:"",bottom:"",top:"",width:""}),v.position("position",""),p)return null==x&&("left"!==c&&"right"!==c||o.insertAfter(T),T.remove()),o.removeClass(D)},k.on("touchmove",n),k.on("scroll",n),k.on("resize",e),M(document.body).on("sticky_kit:recalc",e),o.on("sticky_kit:detach",t),setTimeout(n,0)}},i=0,n=this.length;i<n;i++)t=this[i],e(M(t));return this}}.call(this),function(D,w){"use strict";D.fn.thb_3dImg=function(t){var m=D(w),e=D(this),i=document,g=(i.documentElement,i.getElementsByTagName("body")[0]),v=i.getElementsByTagName("html")[0],y=(e.length,new MobileDetect(w.navigator.userAgent)),b="ontouchstart"in m||navigator.msMaxTouchPoints;function T(t,e,i,n,o){var r=i.find(".atvImg-container"),s=g.scrollTop||v.scrollTop,a=g.scrollLeft,l=(e?t.touches[0]:t).pageX,u=(e?t.touches[0]:t).pageY,c=i[0].getBoundingClientRect(),e=i.width(),t=i.height(),d=320/e,h=.52-(l-c.left-a)/e,p=.52-(u-c.top-s)/t,t=u-c.top-s-t/2,e=l-c.left-a-e/2,i=i.parents(".type-portfolio").hasClass("masonry-tall")?.03:.05;gsap.to(r,{rotationX:i*d*(t-p)+"deg",rotationY:.03*d*(h-e)+"deg",scale:1.07,force3D:!0,duration:.15});var f=o;D.each(n,function(t,e){gsap.set(D(this),{x:h*f*(2.5*t/d),y:p*o*(2.5*t/d)}),f--})}function _(t,e){e.addClass("over")}function S(t,e,i){e.removeClass("over"),gsap.to(e,{duration:.15,scale:1,rotationX:"0deg",rotationY:"0deg"}),D.each(i,function(){gsap.set(D(this),{clearProps:"transform"})})}e.each(function(){var t=D(this),e=t.find(".atvImg-layer"),i=e.length,n=D("<div />").addClass("atvImg-container"),o=D("<div />").addClass("atvImg-shadow"),r=D("<div />").addClass("atvImg-layers"),s=[];e.each(function(){var t=D(this);t.addClass("atvImg-rendered-layer"),t.appendTo(r),s.push(t)}),n.append(o),n.append(r),t.append(n);var a,l,u,c,d,h,p,f,o=t.width();gsap.set(t,{perspective:3*o}),b&&!y.mobile()?(m.preventScroll=!1,h=s,p=i,f=n,(d=t).on("touchstart",function(t){m.preventScroll=!0,_(0,f)}),t.on("touchmove",function(t){m.preventScroll&&t.preventDefault(),w.requestAnimationFrame(function(){T(t,!0,d,h,p)})}),t.on("touchend",function(t){m.preventScroll=!1,S(0,f,h)})):(l=s,u=i,c=n,(a=t).on("mouseenter",function(t){_(0,c)}),t.on("mousemove",function(t){T(t,!1,a,l,u)}),t.on("mouseleave",function(t){S(0,c,l)}))})}}(jQuery,this),function(o){"use strict";function r(t,e){this.el=o(t),this.options=o.extend({},o.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()}r.prototype={constructor:r,init:function(){var e=this;e.timeout=setTimeout(function(){for(var t=0;t<e.strings.length;++t)e.sequence[t]=t;e.shuffle&&(e.sequence=e.shuffleArray(e.sequence)),e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos)},e.startDelay)},build:function(){var t,i=this;!0===this.showCursor&&(this.cursor=o('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement&&(this.strings=[],this.stringsElement.hide(),console.log(this.stringsElement.children()),t=this.stringsElement.children(),o.each(t,function(t,e){i.strings.push(o(e).html())})),this.init()},typewrite:function(o,r){var t,s;!0!==this.stop&&(t=Math.round(70*Math.random())+this.typeSpeed,(s=this).timeout=setTimeout(function(){var t=0,e=o.substr(r);if("^"===e.charAt(0)&&(i=1,/^\^\d+/.test(e)&&(i+=(e=/\d+/.exec(e)[0]).length,t=parseInt(e)),o=o.substring(0,r)+o.substring(r+i)),"html"===s.contentType){var i=o.substr(r).charAt(0);if("<"===i||"&"===i){for(var n="<"===i?">":";";o.substr(r+1).charAt(0)!==n&&(o.substr(r).charAt(0),!(++r+1>o.length)););r++,0}}s.timeout=setTimeout(function(){var t;r===o.length?(s.options.onStringTyped(s.arrayPos),s.arrayPos===s.strings.length-1&&(s.options.callback(),s.curLoop++,!1===s.loop||s.curLoop===s.loopCount)||(s.timeout=setTimeout(function(){s.backspace(o,r)},s.backDelay))):(0===r&&s.options.preStringTyped(s.arrayPos),t=o.substr(0,r+1),s.attr?s.el.attr(s.attr,t):s.isInput?s.el.val(t):"html"===s.contentType?s.el.html(t):s.el.text(t),r++,s.typewrite(o,r))},t)},t))},backspace:function(e,i){var t,n;!0!==this.stop&&(t=Math.round(70*Math.random())+this.backSpeed,(n=this).timeout=setTimeout(function(){if("html"===n.contentType&&">"===e.substr(i).charAt(0)){for(;"<"!==e.substr(i-1).charAt(0)&&(e.substr(i).charAt(0),!(--i<0)););i--,0}var t=e.substr(0,i);n.attr?n.el.attr(n.attr,t):n.isInput?n.el.val(t):"html"===n.contentType?n.el.html(t):n.el.text(t),i>n.stopNum?(i--,n.backspace(e,i)):i<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.shuffle&&(n.sequence=n.shuffleArray(n.sequence)),n.init()):n.typewrite(n.strings[n.sequence[n.arrayPos]],i))},t))},shuffleArray:function(t){var e,i,n=t.length;if(n)for(;--n;)e=t[i=Math.floor(Math.random()*(n+1))],t[i]=t[n],t[n]=e;return t},reset:function(){clearInterval(this.timeout),this.el.attr("id"),this.el.empty(),void 0!==this.cursor&&this.cursor.remove(),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},o.fn.typed=function(n){return this.each(function(){var t=o(this),e=t.data("typed"),i="object"==typeof n&&n;e&&e.reset(),t.data("typed",e=new r(this,i)),"string"==typeof n&&e[n]()})},o.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery);
!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.7",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+o];switch(o){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(o+1),r=0;r<o;r++)e[r]=arguments[r];return e[o]=t,u.apply(this,e)}}function o(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),tn=i("Error"),rn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=i("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,t){return null!=n&&q.call(n,t)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,o="constructor";for(y(n,o)&&!t.contains(o)&&t.push(o);r--;)(o=J[r])in n&&n[o]!==u[o]&&!t.contains(o)&&t.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var t,r=[];for(t in n)y(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=b(t),e=r.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=r[o];if(t[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,t,r,e){var u;return n===t?0!==n||1/n==1/t:null!=n&&null!=t&&(n!=n?t!=t:("function"==(u=typeof n)||"object"==u||"object"==typeof t)&&function n(t,r,e,u){t instanceof m&&(t=t._wrapped);r instanceof m&&(r=r._wrapped);var o=s.call(t);if(o!==s.call(r))return!1;if(un&&"[object Object]"==o&&h(t)){if(!h(r))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+r;case"[object Number]":return+t!=+t?+r!=+r:0==+t?1/+t==1/r:+t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object Symbol]":return F.valueOf.call(t)===F.valueOf.call(r);case"[object ArrayBuffer]":case bn:return n(gn(t),gn(r),e,u)}o="[object Array]"===o;if(!o&&vn(t)){var i=d(t);if(i!==d(r))return!1;if(t.buffer===r.buffer&&t.byteOffset===r.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof r)return!1;var i=t.constructor,a=r.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in t&&"constructor"in r)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===t)return u[f]===r;e.push(t);u.push(r);if(o){if((f=t.length)!==r.length)return!1;for(;f--;)if(!mn(t[f],r[f],e,u))return!1}else{var c,l=b(t);if(f=l.length,b(r).length!==f)return!1;for(;f--;)if(c=l[f],!y(r,c)||!mn(t[c],r[c],e,u))return!1}e.pop();u.pop();return!0}(n,t,r,e))}function c(n){if(!o(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var t=c(n);if(g(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==_n||!p(n[wn])}}var wn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(wn,u),_n=t.concat(u),r=["add"].concat(t,wn,"has"),u=a?jn(U):i("Map"),t=a?jn(_n):i("WeakMap"),U=a?jn(r):i("Set"),a=i("WeakSet");function j(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function An(n){for(var t={},r=b(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function xn(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function Sn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),w=Sn(b),Mn=Sn(c,!0);function En(n){var t;return o(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function _(n){return m.toPath(n)}function Nn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function In(n,t,r){n=Nn(n,_(t));return H(n)?r:n}function Tn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function kn(t){return t=_(t),function(n){return Nn(n,t)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,t,r){return u.call(o,n,t,r)};case 4:return function(n,t,r,e){return u.call(o,n,t,r,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,t,r){return null==n?Tn:p(n)?x(n,t,r):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,t){return Dn(n,t,1/0)}function S(n,t,r){return m.iteratee!==Rn?m.iteratee(n,t):Dn(n,t,r)}function Vn(){}function Fn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(t){function r(n){return t[n]}var n="(?:"+b(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(r),r=Pn(An(r)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,t,r,e,u){return e instanceof t?(e=En(n.prototype),o(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,o){function i(){for(var n=0,t=o.length,r=Array(t),e=0;e<t;e++)r[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)r.push(arguments[n++]);return Jn(u,i,this,this,r)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Jn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,t,r,e){if(e=e||[],t||0===t){if(t<=0)return e.concat(n)}else t=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<t)B(a,t-1,r,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else r||(e[u++]=a)}return e}var Hn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var nt=M(Zn,2);function tt(n,t,r){t=S(t,r);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(t(n[e=u[o]],e,n))return e}function rt(o){return function(n,t,r){t=S(t,r);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(t(n[u],u,n))return u;return-1}}var et=rt(1),ut=rt(-1);function ot(n,t,r,e){for(var u=(r=S(r,e,1))(t),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);r(n[a])<u?o=a+1:i=a}return o}function it(o,i,a){return function(n,t,r){var e=0,u=g(n);if("number"==typeof r)0<o?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=i(f.call(n,e,u),fn))?r+e:-1;for(r=0<o?e:u-1;0<=r&&r<u;r+=o)if(n[r]===t)return r;return-1}}var at=it(1,et,ot),ft=it(-1,ut);function ct(n,t,r){t=(E(n)?et:tt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,o=n.length;u<o;u++)t(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)t(n[e[u]],e[u],n);return n}function I(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=t(n[a],a,n)}return o}function lt(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&b(n),o=(u||n).length,i=0<f?0:o-1;for(e||(r=n[u?u[i]:i],i+=f);0<=i&&i<o;i+=f){var a=u?u[i]:i;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var st=lt(1),pt=lt(-1);function T(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!t(n[i],i,n))return!1}return!0}function vt(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(t(n[i],i,n))return!0}return!1}function k(n,t,r,e){return E(n)||(n=j(n)),0<=at(n,t,r="number"==typeof r&&!e?r:0)}var yt=l(function(n,r,e){var u,o;return p(r)?o=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),I(n,function(n){var t=o;if(!t){if(null==(n=u&&u.length?Nn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function dt(n,t){return I(n,kn(t))}function gt(n,e,t){var r,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&o<r&&(o=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var bt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mt(n){return n?v(n)?f.call(n):X(n)?n.match(bt):E(n)?I(n,Tn):j(n):[]}function jt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Fn(n.length-1)];for(var e=mt(n),r=g(e),u=(t=Math.max(Math.min(t,r),0),r-1),o=0;o<t;o++){var i=Fn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,t)}function D(o,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);o(u,n,t)}),u}}var wt=D(function(n,t,r){y(n,r)?n[r].push(t):n[r]=[t]}),_t=D(function(n,t,r){n[r]=t}),At=D(function(n,t,r){y(n,r)?n[r]++:n[r]=1}),xt=D(function(n,t,r){n[r?0:1].push(t)},!0);function St(n,t,r){return t in r}var Ot=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=c(n)):(e=St,t=B(t,!1,!1),n=Object(n));for(var u=0,o=t.length;u<o;u++){var i=t[u],a=n[i];e(a,i,n)&&(r[i]=a)}}return r}),Mt=l(function(n,r){var t,e=r[0];return p(e)?(e=Yn(e),1<r.length&&(t=r[1])):(r=I(B(r,!1,!1),String),e=function(n,t){return!k(r,t)}),Ot(n,e,t)});function Et(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Bt(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Et(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Nt=l(function(n,t){return t=B(t,!0,!0),T(n,function(n){return!k(t,n)})}),It=l(function(n,t){return Nt(n,t)});function Tt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=r?r(f,i,n):f;t&&!r?(i&&o===c||u.push(f),o=c):r?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kt=l(function(n){return Tt(B(n,!0,!0))});function Dt(n){for(var t=n&&gt(n,g).length||0,r=Array(t),e=0;e<t;e++)r[e]=dt(n,e);return r}var Rt=l(Dt);function Vt(n,t){return n._chain?m(t).chain():t}function Ft(r){return N(xn(r),function(n){var t=m[n]=r[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Vt(this,t.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];m.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Vt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];m.prototype[n]=function(){var n=this._wrapped;return Vt(this,n=null!=n?t.apply(n,arguments):n)}});n=Ft({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=g(n))&&(v(n)||X(n)||an(n))?0===t:0===g(b(n)))},isMatch:dn,isEqual:function(n,t){return mn(n,t)},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:w,assign:w,defaults:Mn,create:function(n,t){return n=En(n),t&&w(n,t),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,t){return t(n),n},get:In,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!y(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=t(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Vn,toPath:Bn,property:kn,propertyOf:function(t){return null==t?Vn:function(n){return In(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Fn,now:O,escape:qn,unescape:r,templateSettings:Un,template:function(o,n,t){n=Mn({},n=!n&&t?t:n,m.templateSettings);var r,t=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(t,function(n,t,r,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!Cn.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,m)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var o=null==n?void 0:n[t[u]];void 0===o&&(o=r,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var t=++Kn+"";return n?n+t:t},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var t=o.cache,r=""+(u?u.apply(this,arguments):n);return y(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(r,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=r.apply(a,f),i||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(i&&(clearTimeout(i),i=null),l=n,c=r.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,t)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-i;n<r?o=setTimeout(u,r-n):(o=null,e||(f=t.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Yn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Zn,once:nt,findKey:tt,findIndex:et,findLastIndex:ut,sortedIndex:ot,indexOf:at,lastIndexOf:ft,find:ct,detect:ct,findWhere:function(n,t){return ct(n,A(t))},each:N,forEach:N,map:I,collect:I,reduce:st,foldl:st,inject:st,reduceRight:pt,foldr:pt,filter:T,select:T,reject:function(n,t,r){return T(n,Yn(S(t)),r)},every:ht,all:ht,some:vt,any:vt,contains:k,includes:k,include:k,invoke:yt,pluck:dt,where:function(n,t){return T(n,A(t))},max:gt,min:function(n,e,t){var r,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<o&&(o=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jt(n,1/0)},sample:jt,sortBy:function(n,e,t){var u=0;return e=S(e,t),dt(I(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:wt,indexBy:_t,countBy:At,partition:xt,toArray:mt,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Ot,omit:Mt,first:Bt,head:Bt,take:Bt,initial:Et,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:It,uniq:Tt,unique:Tt,union:kt,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(t,o)){for(var i=1;i<r&&k(arguments[i],o);i++);i===r&&t.push(o)}}return t},difference:Nt,unzip:Dt,transpose:Dt,zip:Rt,object:function(n,t){for(var r={},e=0,u=g(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),o=0;o<e;o++,n+=r)u[o]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Ft,default:m});return n._=n});
window.onpageshow=function(t){t.persisted&&window.location.reload()},function(H,L){"use strict";var q=H(document),I=H(L),M=H("body"),o=H("#wpadminbar"),r=H(".click-capture"),d=H(".header"),c=H("#wrapper"),n=H(".subheader"),s=H(".thb-borders"),i=H(".mobile-toggle-holder"),t=new BezierEasing(.35,.3,.2,.85),l=new MobileDetect(L.navigator.userAgent),O=O||{};gsap.defaults({ease:t}),gsap.config({nullTargetWarn:!1}),L.lazySizesConfig=L.lazySizesConfig||{},L.lazySizesConfig.expand=250,L.lazySizesConfig.loadMode=1,L.lazySizesConfig.loadHidden=!1,gsap.registerPlugin({name:"onRewindComplete",rawVars:!0,init:function(t,e,a,o,i){this.c=o===i.length-1?e:0,this.s=a.vars.callbackScope||a,this.t=a,this.l=0},render:function(t,e){var a;e.c&&(!(a=e.t.time())&&e.l&&e.c.call(e.s),e.l=a)}}),O={activeSlider:!1,menuscroll:H("#menu-scroll"),h_offset:0,init:function(){var e,t,a=this;function o(){for(e in a){var t;!a.hasOwnProperty(e)||void 0!==(t=a[e]).selector&&void 0!==t.init&&0<H(t.selector).length&&t.init()}}function i(){var t;H(".thb-page-preloader").length&&gsap.to(H(".thb-page-preloader"),{duration:.5,autoAlpha:0}),H(".post-gallery.parallax .parallax_bg").addClass("animate-scale-in"),H(".close-label",d).length&&H(".close-label",d).outerWidth()>H(".menu-label",d).outerWidth()&&H(".mobile-toggle-holder strong",d).width(function(){return H(".close-label",d).outerWidth()+"px"}),s.length&&(t=s.data("width"),gsap.to(s,{duration:.4,borderWidth:t}))}I.on("resize.thb-init",function(){var t=H("body:not(.header-padding-off) .header-spacer-force").length?H(".header-spacer-force"):H("body:not(.header-padding-off):not(.error404) .header-spacer"),e=H(".header:not(.fixed)").outerHeight()+(M.hasClass("page")||M.hasClass("single")&&M.hasClass("thb-article-style1")?0:I.outerHeight()/10),e=H(".blog-header-style2").length?0:e;e=H(".header-spacer-ignore").length?0:e,O.h_offset=H(".header:not(.fixed)").length?e:O.h_offset,H(".header:not(.fixed)").length&&(O.h_offset=n.length&&640<I.width()?O.h_offset+H(".subheader").outerHeight():O.h_offset,t.css({height:O.h_offset}))}).trigger("resize.thb-init"),H(".header").imagesLoaded(function(){I.trigger("resize.thb-init")}),O.headroom.light="light-header"===d.data("header-color"),"on"!==themeajax.settings.page_transition||M.hasClass("compose-mode")||M.hasClass("elementor-editor-active")?(o(),i(),O.header_style10.run()):(t=-1<H.inArray(themeajax.settings.page_transition_style,["thb-swipe-left"]),H(".thb-page-transition-on").animsition({inClass:themeajax.settings.page_transition_style+"-in",outClass:themeajax.settings.page_transition_style+"-out",inDuration:parseInt(themeajax.settings.page_transition_in_speed,10),outDuration:parseInt(themeajax.settings.page_transition_out_speed,10),touchSupport:!1,overlay:t,overlayClass:"thb-page-transition-overlay",linkElement:'.animsition-link,a[href]:not([target=" _blank"]):not([target="_blank"]):not([href^="'+themeajax.settings.current_url+'#"]):not([href^="#"]):not([href*="javascript"]):not([href*=".rar"]):not([href*=".zip"]):not([href*=".jpg"]):not([href*=".jpeg"]):not([href*=".gif"]):not([href*=".png"]):not([href*=".mov"]):not([href*=".swf"]):not([href*=".mp4"]):not([href*=".flv"]):not([href*=".avi"]):not([href*=".mp3"]):not([href^="tel:"]):not([href^="mailto:"]):not([class="no-animation"]):not(.ajax_add_to_cart):not([class*="ftg-lightbox"]):not(.wpcf7-submit):not(.comment-reply-link):not(.mfp-image):not(.mfp-video):not([id*="cancel-comment-reply-link"]):not(.do-not-animate):not(.mfp-inline):not(.remove):not(.ngg-fancybox):not([href^="'+location.protocol+"//"+location.host+location.pathname+'#"]):not([href="#"]):not(.add_to_wishlist):not(.tribe-common-cta)'}).on("animsition-instart",function(){O.header_style10.run(),_.delay(function(){o(),i()},parseInt(themeajax.settings.page_transition_in_speed,10)/.8)}).on("animsition-outstart",function(){s.length&&gsap.to(s,{duration:.4,borderWidth:0})}))},headroom:{selector:".fixed-header-on .header:not(.style8)",light:!1,init:function(){"on"===themeajax.settings.fixed_header_scroll&&Headroom.cutsTheMustard&&d.headroom({offset:l.mobile()?150:600}),I.on("scroll.fixed-header",_.debounce(this.scroll,10)).trigger("scroll.fixed-header")},scroll:function(){var t=I.scrollTop(),e=d.data("fixed-header-color"),a="fixed",o=10+(n.length?n.outerHeight():0);M.hasClass("header-style1-open")||c.hasClass("open-cc")||(o<t?(O.headroom.light&&"light-header"!==e?(d.removeClass("light-header"),d.addClass("dark-header")):"light-header"===e&&(d.removeClass("dark-header"),d.addClass("light-header")),d.hasClass(a)||(d.addClass(a),d.data("fixed",!0))):(O.headroom.light?(d.removeClass("dark-header"),d.addClass("light-header")):(d.removeClass("light-header"),d.addClass("dark-header")),d.hasClass(a)&&(d.removeClass(a),d.data("fixed",!1),_.delay(function(){I.trigger("resize.thb-init")},270))))}},subheader:{selector:".fixed-header-on .subheader",init:function(){var e=H(this.selector);I.on("scroll.thb-subheader",function(){var t=I.scrollTop()<e.outerHeight()?I.scrollTop():e.outerHeight();gsap.set(d,{marginTop:-1*t,immediateRender:!0})}).trigger("scroll.thb-subheader")}},search_toggle:{selector:".thb-search-holder",searchTl:!1,init:function(){var n=this;H(n.selector).each(function(){var t=H(this),e=H("span",t),a=H(".thb-search-popup"),o=H("fieldset",a),i=H(".searchform-bar",a);n.searchTl=gsap.timeline({paused:!0,reversed:!0,onComplete:function(){setTimeout(function(){a.find(".s").get(0).focus()},0)},onStart:function(){d.removeClass("fixed"),c.addClass("open-cc open-search"),d.data("light")||d.addClass("light-header"),d.addClass("hide-header-items")},onReverseComplete:function(){c.removeClass("open-cc open-search"),d.data("light")||d.removeClass("light-header"),d.removeClass("hide-header-items"),H(".header").data("fixed")?d.addClass("fixed"):d.removeClass("fixed")}}),n.searchTl.set(H(".search-header-spacer",a),{height:d.height()}).to(a,{duration:.5,yPercent:"+=100"},"start").to(e.eq(0),{duration:.25,scaleX:1,rotationZ:"45deg"},"start+=0.25").to(e.eq(1),{duration:.25,scaleX:1,rotationZ:"-45deg"},"start+=0.35").to(o,{duration:.5,opacity:1},"start+=0.25").to(i,{duration:.5,scaleX:1,opacity:"0.2"}),t.on("click",function(){return n.searchTl.reversed()?(d.hasClass("light-header")?d.data("light",!0):d.data("light",!1),n.searchTl.timeScale(1).play()):n.searchTl.timeScale(1.2).reverse(),!1}),q.keyup(function(t){27===t.keyCode&&0<n.searchTl.progress()&&n.searchTl.reverse()}),r.on("click",function(){return 0<n.searchTl.progress()&&n.searchTl.reverse(),!1})})}},mobile_toggle:{selector:".mobile-toggle-holder",target:H("#mobile-menu"),mobileTl:gsap.timeline({paused:!0}),init:function(){var e=this,t=H(".thb-mobile-close",e.target),a=gsap.timeline({paused:!0});(d.hasClass("style1")||d.hasClass("style3"))&&a.add(e.getHeaderAni().play(),"main-middle"),a.add(e.getMobileToggleAni().play(),"main-middle"),e.mobileTl.add(e.getMobileToggleAni().play(),"mobile-middle").add(e.getMobileAni().play(),"mobile-middle"),i.on("click",function(){return l.mobile()||H(L).width()<themeajax.settings.mobile_menu_breakpoint||d.is(".style6, .style7, .style8, .style9")?(0<a.progress()&&a.timeScale(1.2).reverse(),0<e.mobileTl.progress()?e.mobileTl.timeScale(1.2).reverse():e.mobileTl.timeScale(1).play()):(0<e.mobileTl.progress()&&e.mobileTl.timeScale(1.2).reverse(),0<a.progress()?a.timeScale(1.4).reverse():a.timeScale(1).play()),!1}),q.keyup(function(t){27===t.keyCode&&(0<e.mobileTl.progress()&&e.mobileTl.reverse(),0<a.progress()&&a.timeScale(1.2).reverse())}),r.add(t).on("click",function(){return 0<e.mobileTl.progress()&&e.mobileTl.reverse(),!1})},getHeaderAni:function(){return d.hasClass("style1")?O.header_style1.animation():!!d.hasClass("style3")&&O.header_style3.animation()},getMobileAni:function(){var t=gsap.timeline({paused:!0,onStart:function(){c.addClass("open-cc")},onComplete:function(){O.menuscroll.perfectScrollbar("update")}}),e=H(".logo-holder",this.target),a=H(".header-style-8-content .widget",this.target),o=H(".thb-mobile-menu>li, .thb-header-button",this.target),i=H(".thb-secondary-bar",this.target),n=H(".thb-secondary-menu>li",this.target),s=H(".menu-footer>*",this.target),r=H(".socials>a",this.target),l=H(".thb-mobile-close",this.target);return d.hasClass("style8")?t.set(this.target,{marginTop:function(){return H(L).width()<641?d.outerHeight():0},onRewindComplete:function(){c.removeClass("open-cc")}}).to(this.target,{duration:.7,scaleY:1}).from(e,{duration:.3,autoAlpha:0},"start").from(a,{duration:.3,autoAlpha:0,stagger:.1},"start+=0.2").from(s.add(r),{duration:.3,autoAlpha:0,stagger:.1},"start+=0.4"):O.mobile_toggle.target.hasClass("style1")?t.to(this.target,{duration:.3,x:"0",onRewindComplete:function(){c.removeClass("open-cc")}},"start").to(l,{duration:.3,scale:1},"start+=0.2").from(o,{duration:.4,autoAlpha:0,stagger:.1},"start+=0.2").to(i,{duration:.3,scaleX:1,opacity:"0.2"},"start+=0.2").from(n.add(s).add(r),{duration:.3,autoAlpha:0,stagger:.1},"start+=0.2"):O.mobile_toggle.target.hasClass("style2")?t.to(this.target,{duration:.3,display:"flex",autoAlpha:1,scale:1,onRewindComplete:function(){c.removeClass("open-cc")}},"start").to(l,{duration:.3,scale:1},"start+=0.2").from(o,{duration:.4,autoAlpha:0,stagger:.1},"start+=0.2").from(n.add(s).add(r),{duration:.3,autoAlpha:0,stagger:.1},"start+=0.2"):O.mobile_toggle.target.hasClass("style3")&&t.to(this.target.find(".menubg-placeholder"),{duration:.5,x:"0",onRewindComplete:function(){c.removeClass("open-cc")}},"start").to(this.target,{duration:.5,x:"0"},"start").to(l,{duration:.3,scale:1},"start+=0.2").from(o,{duration:.4,autoAlpha:0,stagger:.1},"start+=0.2").to(i,{duration:.3,scaleX:1,opacity:"0.2"},"start+=0.2").from(n.add(s).add(r),{duration:.3,autoAlpha:0,stagger:.1},"start+=0.2"),t},getMobileToggleAni:function(){var t=H(".mobile-toggle>span",i),e=H("strong>span",i),a=gsap.timeline({paused:!0,onStart:function(){i.addClass("active")}});return i.hasClass("style1")?a.to(t.eq(1),{duration:.3,autoAlpha:0,onRewindComplete:function(){i.removeClass("active"),gsap.set(t,{clearProps:"all"}),c.removeClass("open-cc")}},"mobile-start").to(t.eq(0),{duration:.3,rotationZ:45},"mobile-start").to(t.eq(2),{duration:.3,rotationZ:-45,y:1},"mobile-start"):i.hasClass("style2")&&a.to(t.eq(1),{duration:.1,autoAlpha:0,onRewindComplete:function(){i.removeClass("active"),gsap.set(t,{clearProps:"all"}),c.removeClass("open-cc")}},"mobile-start").to(t.eq(0),{duration:.3,rotationZ:45,width:"20px"},"mobile-start").to(t.eq(2),{duration:.3,rotationZ:-45,width:"20px",y:1},"mobile-start"),e.length&&a.to(e,{duration:.3,y:"-=100%"},"mobile-start"),a}},header_style1:{selector:".header.style1",animation:function(){var t=H(".header_overlay_menu",d),e=H(".thb-secondary-line",t),a=gsap.timeline({paused:!0,defaults:{duration:.5},onStart:function(){d.removeClass("fixed"),d.addClass("hide-secondary-items"),d.addClass("light-header"),M.addClass("header-style1-open")}});return a.set(H(".header_overlay_padding",d),{marginTop:H(".logolink",d).outerHeight()}).to(t,{y:0,onRewindComplete:function(){H(".header").data("fixed")?(d.addClass("fixed"),"dark-header"===d.data("fixed-header-color")&&d.removeClass("light-header")):(d.removeClass("fixed"),O.headroom.light||d.removeClass("light-header")),d.removeClass("hide-secondary-items"),M.removeClass("header-style1-open")}},"header-first").fromTo(H(".thb-header-menu>li>a",d),{autoAlpha:0},{autoAlpha:1,stagger:.1},"header-start").to(e,{scaleX:1,opacity:"0.2"},"header-start").fromTo(H(".thb-secondary-menu-container a",d),{autoAlpha:0},{autoAlpha:1,stagger:.1},"header-start"),a}},header_style3:{selector:".header.style3",animation:function(){var t=H(".thb-full-menu>li",d),e=gsap.timeline({paused:!0});return e.set(H("#full-menu"),{autoAlpha:1}).to(t.get().reverse(),{duration:.75,autoAlpha:1,stagger:.1}),e}},header_style10:{selector:".header.style10",run:function(){var t=H(this.selector),e=H(".full-menu",t),a=H(".logo-holder",e),o=_.debounce(function(){gsap.set(e,{x:"0px"});var t=a.offset().left+a.width()/2,t=I.width()/2-t;t<I.width()/2&&(gsap.set(e,{x:t+"px"}),0)},5);t.length&&(I.on("resize.center_full_menu",o).trigger("resize.center_full_menu"),t.imagesLoaded(function(){I.trigger("resize.center_full_menu")}))}},mobileMenu:{selector:"#mobile-menu",init:function(){var t=H(this.selector);("thb-submenu"===t.data("behaviour")?t.find(".thb-mobile-menu li.menu-item-has-children>a"):t.find(".thb-mobile-menu li.menu-item-has-children>a .thb-arrow")).on("click",function(t){var e=H(this),a=e.parents("a").length?e.parents("a"):e,e=a.next(".sub-menu");a.hasClass("active")?(a.removeClass("active"),e.slideUp("200",function(){O.menuscroll.perfectScrollbar("update")})):(a.addClass("active"),e.slideDown("200",function(){O.menuscroll.perfectScrollbar("update")})),t.stopPropagation(),t.preventDefault()})}},mmBgFill:{selector:"a[data-menubg]",init:function(){var t=H(this.selector,"#mobile-menu"),e=H(".menubg-placeholder","#mobile-menu"),a=H("#mobile-menu").hasClass("style3");t.each(function(){""!==H(this).data("menubg")&&((new Image).src=H(this).data("menubg"))}),t.hoverIntent(function(){e.css({"background-image":"url("+H(this).data("menubg")+")",opacity:a?"1":"0.2"})},function(){a||e.css({"background-image":"",opacity:"0"})}),a&&""!==t.eq(0).data("menubg")&&e.css({"background-image":"url("+t.eq(0).data("menubg")+")",opacity:a?1:.2})}},retinaJS:{selector:"img.retina_size:not(.retina_active)",init:function(){H(this.selector).each(function(){H(this).attr("width",function(){return H(this).attr("width")/2}).addClass("retina_active")})}},fullMenu:{selector:".thb-full-menu, .thb-header-menu",init:function(){var t=H(this.selector),e=(t.find("a"),M.hasClass("thb-header-style-style2"),M.hasClass("thb-header-style-style3"),t.find("li.menu-item-has-children:not(.menu-item-mega-parent)")),a=t.find("li.menu-item-has-children.menu-item-mega-parent");e.each(function(){var t=H(this),e=t.find(">.sub-menu"),a=e.find(">li>a"),o=gsap.timeline({paused:!0});t.parents(".thb-full-menu").length&&e.length&&e.offset().left+e.outerWidth()>I.outerWidth()&&e.addClass("is_right"),e.length&&o.to(e,{duration:.5,autoAlpha:1},"start"),a.length&&o.to(a,{duration:.1,opacity:1,y:0,stagger:.03},"start"),t.hoverIntent(function(){t.addClass("sfHover"),o.timeScale(1).restart()},function(){t.removeClass("sfHover"),o.timeScale(1.5).reverse()})}),a.each(function(){var t=H(this),e=t.find(">.sub-menu"),a=e.find(">li"),o=gsap.timeline({paused:!0});o.fromTo(e,{autoAlpha:0,display:"none"},{duration:.5,autoAlpha:1,display:"flex"},"start").to(a,{duration:.1,opacity:1,x:0,stagger:.02},"start"),a.each(function(t){H(this).css("zIndex",50-t)}),t.hoverIntent(function(){t.addClass("sfHover"),o.timeScale(1).restart()},function(){t.removeClass("sfHover"),o.timeScale(1.5).reverse()})});e=_.debounce(function(){a.find(">.sub-menu").each(function(){var t,e=H(this);e.css("display","flex"),e.offset().left<=0?t=-1*e.offset().left+30:e.offset().left+e.outerWidth()>H(L).outerWidth()&&(t=-1*Math.round(e.offset().left+e.outerWidth()-H(L).outerWidth()+30)),e.hide(),e.css({marginLeft:t+"px"})})},30);I.on("resize.resizeMegaMenu",e).trigger("resize.resizeMegaMenu")}},hashLinks:{selector:'a[href*="#"]',init:function(){H(this.selector).on("click",function(t){var e,a,o=H(this),i=o.attr("href");o.parents(".woocommerce-tabs").length||o.hasClass("comment-reply-link")||"cancel-comment-reply-link"===o.attr("id")||(i&&(a=(e=-1!==i.indexOf("#")?i.substring(i.indexOf("#")+1):"")&&H("#"+e).length?H("#"+e).offset().top-(H("#wpadminbar").outerHeight()||0):0),!H(".fixed-header-on").length||"on"===themeajax.settings.fixed_header_scroll||(i=H(".header>.row").outerHeight()+parseInt(themeajax.settings.fixed_header_padding.top,10)+parseInt(themeajax.settings.fixed_header_padding.bottom,10))&&(a-=i),e&&a&&H("#"+e).length&&(a="footer"===e?"max":a,o.parents(".thb-mobile-menu").length&&O.mobile_toggle.mobileTl.reverse(),H("#"+e).hasClass("vc_tta-panel")||gsap.to(I,{duration:.5,scrollTo:{y:a,autoKill:!1}}),t.preventDefault()))})}},cookieBar:{selector:".thb-cookie-bar",init:function(){var t=H(this.selector),e=H(".button-accept",t);"hide"!==Cookies.get("thb-revolution-cookiebar")&&gsap.to(t,{duration:.5,opacity:"1",y:"0%"}),e.on("click",function(){return Cookies.set("thb-revolution-cookiebar","hide",{expires:30}),gsap.to(t,{duration:.5,opacity:"0",y:"100%"}),!1})}},postNavStyle1:{selector:".thb_post_nav.style1",init:function(){var t=H(this.selector),e=H("#scroll_to_top");I.on("scroll.fixed_nav",function(){(l.mobile()?150:I.outerHeight()/2)<I.scrollTop()?(t.addClass("active"),e&&e.addClass("nav_active")):(t.removeClass("active"),e&&e.removeClass("nav_active"))}).trigger("scroll.fixed_nav")}},portfolioNavStyle3:{selector:".thb_portfolio_nav.style3",init:function(){var t=H(this.selector),o=H(".inner",t),e=H("a",t),a="on"===t.data("hide");e.hoverIntent(function(){var t,e,a=H(this).parents("li").index();t=a,e=this,a=gsap.timeline({defaults:{duration:.5}}),o.eq(t).is(":visible")||a.to(o.filter(":visible"),{opacity:0,scale:1.05,display:"none"}).fromTo(o.eq(t),{opacity:0,scale:1.05,display:"none"},{opacity:.8,scale:1,display:"block"},"-=0.25"),e.animation=a},function(){a&&gsap.to(o,{duration:.5,opacity:0,scale:1,display:"none"})})}},shareArticleDetail:{selector:".share-post-link",init:function(){H(this.selector).each(function(){var t=H(this),e=H(".share_container"),a=e.find(".spacer"),o=e.find("h4, .boxed-icon, form"),i=e.find(".copy-value"),n=e.find(".btn"),s=n.text(),r=new ClipboardJS(n[0],{target:function(){return i[0]}}),l=gsap.timeline({paused:!0,onStart:function(){e.css("display","flex")},onReverseComplete:function(){e.css("display","none"),n.text(s)}});r.on("success",function(t){n.text(themeajax.l10n.copied)}),l.to(e,{duration:.5,autoAlpha:1}).from(o,{duration:.2,y:"50",opacity:0,stagger:.05},.05,"-=0.25"),t.on("click",function(){return l.timeScale(1).restart(),!1}),a.on("click",function(){l.timeScale(1.6).reverse()})})}},social_popup:{selector:".social:not(.menu-social)",init:function(){H(this.selector).on("click",function(){var t=screen.width/2-320,e=screen.height/2-220-100;return L.open(H(this).attr("href"),"mywin","left="+t+",top="+e+",width=640,height=440,toolbar=0"),!1})}},custom_scroll:{selector:".custom_scroll, #side-cart .woocommerce-mini-cart",init:function(){H(this.selector).each(function(){H(this).perfectScrollbar({suppressScrollX:!0})})}},postShortcodeLoadmore:{selector:".posts-pagination-style2",init:function(){H(this.selector).each(function(){var h=H(this),p=h.data("security"),t=H(h.data("loadmore")),u=!1,g=2;t.on("click",function(){var o=H(this),t=o.data("posts-id"),i=o.text(),e="thb_postsajax_"+t,n=L[e].count,a=L[e].loop,s=L[e].style,r=L[e].columns,l=L[e].thb_i,d=L[e].thb_date,c=L[e].thb_cat,t=L[e].thb_excerpt,e=L[e].thb_animation;return!1===u&&(o.prop("title",themeajax.l10n.loading),o.text(themeajax.l10n.loading).addClass("loading"),u=!0,H.ajax(themeajax.url,{method:"POST",data:{action:"thb_posts_ajax",security:p,page:g++,loop:a,columns:r,style:s,thb_i:l,thb_date:d,thb_cat:c,thb_excerpt:t,thb_animation:e},beforeSend:function(){u=!0},success:function(t){var e=H.parseHTML(H.trim(t)),a=e?e.length:0;""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?o.html(themeajax.l10n.nomore).removeClass("loading").off("click"):(H(e).appendTo(h).hide().imagesLoaded(function(){h.data("isotope")&&h.isotope("appended",H(e)),H(e).show();var t=H(e).find(".animation").length?H(e).find(".animation"):H(e).filter(function(){return 1===this.nodeType});gsap.to(t,{duration:.5,autoAlpha:1,x:0,y:0,z:0,rotationZ:"0deg",rotationX:"0deg",rotationY:"0deg",onComplete:function(){u=!1},stagger:.15}),O.toggleBlog.init(H(e))}),(a<n?o.html(themeajax.l10n.nomore):o.html(i)).removeClass("loading"))}})),!1})})}},paginationStyle2:{selector:".pagination-style2",init:function(){var n=H(this.selector),t=n.data("security"),e=H(".thb_load_more"),s=!1,r=n.data("count"),a=2;e.on("click",function(){var o=H(this),i=o.text();return!1===s&&(o.html(themeajax.l10n.loading).addClass("loading"),H.ajax(themeajax.url,{method:"POST",data:{action:"thb_blog_ajax",security:t,page:a++},beforeSend:function(){s=!0},success:function(t){var e=H.parseHTML(H.trim(t)),a=e?e.length:0;""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?o.html(themeajax.l10n.nomore).removeClass("loading").off("click"):(H(e).appendTo(n).hide().imagesLoaded(function(){n.data("isotope")&&n.isotope("appended",H(e)),H(e).show();var t=H(e).find(".animation").length?H(e).find(".animation"):H(e).filter(function(){return 1===this.nodeType});gsap.to(t,{duration:.5,autoAlpha:1,x:0,y:0,z:0,rotationZ:"0deg",rotationX:"0deg",rotationY:"0deg",onComplete:function(){s=!1},stagger:.15}),O.toggleBlog.init(H(e))}),(a<r?o.html(themeajax.l10n.nomore):o.html(i)).removeClass("loading"))}})),!1})}},paginationStyle3:{selector:".pagination-style3",init:function(){var o=H(this.selector),t=o.data("security"),e=2,i=!1,n=o.data("count"),s=o.parents(".blog-container").find(".thb-content-preloader"),r=_.debounce(function(){!1===i&&I.scrollTop()+I.height()+150>=o.offset().top+o.outerHeight()&&(s.length&&gsap.set(s,{autoAlpha:1}),H.ajax(themeajax.url,{method:"POST",data:{action:"thb_blog_ajax",security:t,page:e++},beforeSend:function(){i=!0},success:function(t){var e=H.parseHTML(H.trim(t)),a=e?e.length:0;s.length&&gsap.to(s,{duration:.25,autoAlpha:0}),""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?I.off("scroll",r):(H(e).appendTo(o).hide().imagesLoaded(function(){o.data("isotope")&&o.isotope("appended",H(e)),H(e).show();var t=H(e).find(".animation").length?H(e).find(".animation"):H(e).filter(function(){return 1===this.nodeType});gsap.to(t,{duration:.5,autoAlpha:1,x:0,y:0,z:0,rotationZ:"0deg",rotationX:"0deg",rotationY:"0deg",onComplete:function(){i=!1},stagger:.15}),O.toggleBlog.init(H(e))}),n<=a&&I.on("scroll",r))}}))},30);I.scroll(r)}},magnificInline:{selector:".mfp-inline",init:function(){var t=H(this.selector);t.magnificPopup({tClose:themeajax.l10n.lightbox_close,type:"inline",fixedContentPos:themeajax.settings.lightbox_fixedcontent,tLoading:themeajax.l10n.lightbox_loading,mainClass:"mfp-zoom-in",removalDelay:400,closeBtnInside:!1,callbacks:{imageLoadComplete:function(){var t=this;_.delay(function(){t.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")},close:function(){t.hasClass("newsletter-popup")&&Cookies.set("newsletter_popup","1",{expires:parseInt(themeajax.settings.newsletter_length,10)})}}})}},magnificGallery:{selector:".mfp-gallery, .post-content .gallery",init:function(t){(t||H(this.selector)).each(function(){var t=H(this),e=t.hasClass("thb-portfolio")?".thb-portfolio-link.mfp-image, .thb-portfolio-link.mfp-video":"a";t.hasClass("vc_grid-container")&&(e="a.mfp-image"),t.magnificPopup({tClose:themeajax.l10n.lightbox_close,delegate:e,tLoading:themeajax.l10n.lightbox_loading,mainClass:"mfp-zoom-in",removalDelay:400,fixedContentPos:themeajax.settings.lightbox_fixedcontent,gallery:{enabled:!0,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir% mfp-prevent-close thb-animated-arrow circular">'+themeajax.svg.prev_arrow+"</button>",tPrev:themeajax.l10n.prev_arrow_key,tNext:themeajax.l10n.next_arrow_key,tCounter:'<span class="mfp-counter">'+themeajax.l10n.of+"</span>"},image:{verticalFit:!0,titleSrc:function(t){return t.img.attr("alt")}},callbacks:{elementParse:function(t){t.type=t.el.hasClass("mfp-video")?"iframe":"image"},imageLoadComplete:function(){var t=this;_.delay(function(){t.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")},open:function(){H.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){H.magnificPopup.proto.next.call(t)},125)},H.magnificPopup.instance.prev=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){H.magnificPopup.proto.prev.call(t)},125)}}}})})}},magnificImage:{selector:".mfp-image:not(.thb-portfolio-link)",init:function(){var a=H(this.selector),o=[],i=[],n={tClose:themeajax.l10n.lightbox_close,type:"image",mainClass:"mfp-zoom-in",tLoading:themeajax.l10n.lightbox_loading,removalDelay:400,fixedContentPos:themeajax.settings.lightbox_fixedcontent,callbacks:{imageLoadComplete:function(){var t=this;_.delay(function(){t.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")}}},s={tClose:themeajax.l10n.lightbox_close,type:"image",tLoading:themeajax.l10n.lightbox_loading,mainClass:"mfp-zoom-in",removalDelay:400,fixedContentPos:themeajax.settings.lightbox_fixedcontent,gallery:{enabled:!0,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir% mfp-prevent-close thb-animated-arrow circular">'+themeajax.svg.prev_arrow+"</button>",tPrev:themeajax.l10n.prev_arrow_key,tNext:themeajax.l10n.next_arrow_key,tCounter:'<span class="mfp-counter">'+themeajax.l10n.of+"</span>"},image:{verticalFit:!0,titleSrc:function(t){return t.img.attr("alt")}},callbacks:{imageLoadComplete:function(){var t=this;_.delay(function(){t.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")},open:function(){H.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){H.magnificPopup.proto.next.call(t)},125)},H.magnificPopup.instance.prev=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){H.magnificPopup.proto.prev.call(t)},125)}}}};a.each(function(){var t=H(this),e=t.data("thb-group");e&&""!==e?i.push(e):t.parents(".vc_grid-container").length||a.magnificPopup(n)});var t=_.uniq(i);H.each(t,function(t,e){o.push(H('.mfp-image[data-thb-group="'+e+'"]'))}),t.length&&H.each(o,function(t,e){e.magnificPopup(s)})}},magnificVideo:{selector:".mfp-video:not(.thb-portfolio-link)",init:function(){H(this.selector).magnificPopup({tClose:themeajax.l10n.lightbox_close,type:"iframe",tLoading:themeajax.l10n.lightbox_loading,mainClass:"mfp-zoom-in",removalDelay:400,fixedContentPos:themeajax.settings.lightbox_fixedcontent})}},vcMediaGrid:{selector:".vc_grid-container",init:function(){H(this.selector);H(L).on("grid:items:added",function(t,e){H(e).each(function(){var t=H(this);t.find(".mfp-image").length&&!t.hasClass("mfp-gallery")&&t.addClass("mfp-gallery"),O.magnificGallery.init(t)})}).trigger("resize")}},newsletterPopup:{selector:".newsletter-popup",init:function(){H(this.selector);"1"!==Cookies.get("newsletter_popup")&&"off"!==themeajax.settings.newsletter&&_.delay(function(){H.magnificPopup.open({type:"inline",items:{src:"#newsletter-popup",type:"inline"},tClose:themeajax.l10n.lightbox_close,mainClass:"newsletter-popup mfp-zoom-in",tLoading:themeajax.l10n.lightbox_loading,removalDelay:400,fixedBgPos:!0,fixedContentPos:!0,callbacks:{close:function(){Cookies.set("newsletter_popup","1",{expires:parseInt(themeajax.settings.newsletter_length,10)})}}})},1e3*parseInt(themeajax.settings.newsletter_delay,10))}},accordion:{selector:".thb-accordion",init:function(){H(this.selector).each(function(){var t=H(this),o=t.hasClass("has-accordion"),e=parseInt(t.data("index"),10)||0,i=t.find(".vc_tta-panel"),n=t.data("scroll"),e=i.eq(e);o&&e&&e.addClass("active").find(".vc_tta-panel-body").show(),t.on("click",".vc_tta-panel-heading a",function(){var a=H(this),t=a.parents(".vc_tta-panel");return o&&(i.not(t).removeClass("active"),i.not(t).find(".vc_tta-panel-body").slideUp("400")),H(this).parents(".vc_tta-panel").toggleClass("active"),t.find(".vc_tta-panel-body").slideToggle("400",function(){var t,e=H(this);o&&(t=a.parents(".vc_tta-panel-heading").offset().top-(H("#wpadminbar").outerHeight()||0),n&&("off"===themeajax.settings.fixed_header_scroll&&(t-=H(".header").outerHeight()),gsap.to(I,{duration:.5,scrollTo:{y:t,autoKill:!1},onComplete:function(){"on"===themeajax.settings.fixed_header_scroll&&d.addClass("headroom--unpinned")}}))),e.find(".masonry")&&(e.find(".masonry").isotope("layout"),I.trigger("resize")),_.delay(function(){I.trigger("scroll.thb-animation")},400)}),!1})})}},tabs:{selector:".thb-tabs",init:function(){H(this.selector).each(function(){var n=H(this),s=(n.hasClass("has-accordion"),n.data("animation")),t=n.data("active-section")?n.data("active-section"):1,r=n.find(".vc_tta-panel"),l=(r.eq(0),H('<div class="thb-tab-menu" />').prependTo(n));function e(){var t=r.filter(":visible").height()+l.outerHeight(!0);n.css("height",t)}r.each(function(){H(this).find(".vc_tta-panel-heading").appendTo(l)}),H(".vc_tta-panel-heading",l).eq(0).find("a").addClass("active"),r.eq(0).addClass("visible"),n.find(".vc_toggle .vc_toggle_title").on("click",function(){_.delay(e,300)}),I.on("resize.tabs",e).trigger("resize.tabs"),H(this).on("click",".vc_tta-panel-heading a",function(t){var e=H(this),a=s?"300":0,o=(parseInt(a),e.parents(".vc_tta-panel-heading").index()),i=r.eq(o);return r.not(i).fadeOut(a,function(){n.height();var t=i.height()+l.outerHeight(!0);i.fadeIn(a,function(){I.trigger("scroll.thb-animation"),i.find(".thb-carousel")&&i.find(".thb-carousel").slick("setPosition"),i.find(".masonry")&&(i.find(".masonry").isotope("layout"),I.trigger("resize"))}),n.css({height:t})}),n.find(".vc_tta-panel-heading a").removeClass("active"),e.addClass("active"),!1}),1<t&&(n.find(".vc_tta-panel-heading a").removeClass("active"),n.find(".vc_tta-panel-heading").eq(t-1).find("a").addClass("active"),n.find(".vc_tta-panel").removeClass("visible"),n.find(".vc_tta-panel").eq(t-1).addClass("visible")),n.find(".vc_tta-panel.visible").imagesLoaded(function(){I.trigger("resize.tabs")})})}},freeScroll:{selector:".thb-freescroll",init:function(){H(this.selector).each(function(){var e=H(this),t=e.data("direction"),a=e.data("pause"),o=!!e.hasClass("thb-adaptive-height");e.flickity({prevNextButtons:!1,wrapAround:!0,pageDots:!1,freeScroll:!0,adaptiveHeight:o,imagesLoaded:!0});var i=e.data("flickity");function n(){"thb-left-to-right"===t?i.x++:i.x--,i.integratePhysics(),i.settle(i.x),i.paused||(i.raf=L.requestAnimationFrame(n))}i.paused=!0,a&&e.on("mouseenter",function(){l.mobile()||l.tablet()||(i.paused=!0)}).on("mouseleave",function(){l.mobile()||l.tablet()||(i.paused=!1,n())}),I.on("scroll.flkty",function(t){e.is(":in-viewport")?i.paused&&(i.paused=!1,n()):i.paused=!0}).trigger("scroll.flkty"),e.find("img").on("lazyloaded imagesLoaded",function(){e.flickity("resize")}),M.on("jetpack-lazy-images-load",function(){e.find(".jetpack-lazy-image")&&e.flickity("resize")})})}},countdown:{selector:".thb-countdown",init:function(){H(this.selector).each(function(){var t=H(this),e=t.data("date"),a=t.attr("offset");t.downCount({date:e,offset:a})})}},select2:{selector:".thb-select2",init:function(){var t=H(this.selector),o=t.parents(".thb-portfolio-filter.style2").data("style2-color");t.select2({minimumResultsForSearch:1/0,dropdownParent:t.parent(),templateResult:function(t,e){return t.id?H("<span>"+t.text+"</span>"):t.text}}).on("select2:open",function(t){var e=H(".select2-dropdown");e.removeClass("select2-dropdown--above").addClass("select2-dropdown--below");var a=e.find(".select2-results__options");_.defer(function(){var t=gsap.timeline({paused:!0,onStart:function(){"dark"!==o||d.hasClass("light-header")||d.addClass("light-header changed-color-dropdown")},onReverseComplete:function(){"dark"!==o||d.hasClass("light-header")||d.removeClass("light-header changed-color-dropdown")}}),e=a.find(".select2-results__option");t.to(e,.8,{duration:.8,opacity:1,x:"0",stagger:.08}),t.restart()})}).on("select2:close",function(t){"dark"===o&&d.hasClass("changed-color-dropdown")&&d.removeClass("light-header changed-color-dropdown")})}},isotope:{selector:".masonry",init:function(){var t=H(this.selector);Outlayer.prototype._setContainerMeasure=function(t,e){var a;void 0!==t&&((a=this.size).isBorderBox&&(t+=e?a.paddingLeft+a.paddingRight+a.borderLeftWidth+a.borderRightWidth:a.paddingBottom+a.paddingTop+a.borderTopWidth+a.borderBottomWidth),t=Math.max(t,0),t=Math.floor(t),this.element.style[e?"width":"height"]=t+"px")},t.each(function(t){var a,o,e,i,n,s,r,l=H(this),d=l.data("security"),c=l.data("layoutmode")?l.data("layoutmode"):"masonry",h=l.hasClass("variable-height"),p=l.hasClass("thb-true-aspect-true"),u=(l.find(".columns"),l.data("thb-animation")),g=H(l.data("loadmore")),f=2,m={layoutMode:c,percentPosition:!0,itemSelector:".columns",transitionDuration:0,originLeft:!M.hasClass("rtl"),hiddenStyle:{},visibleStyle:{}},v=H("#"+l.data("filter")),b=.5,y=b/2,c=b/5,C=(l.data("grid_type"),H(".masonry-large",l)),x=H(".masonry-tall",l),w=H(".masonry-small",l),k=H(".masonry-wide",l),j=H(".columns",l),T=!1,z=function(){l.isotope({filter:i})};function S(){var t,e=(t=parseInt(l.css("marginLeft"),10),Math.abs(t)),a=".wp-post-image:not(.thb_3dimage)";j.find(a).css("height",""),C.length?C.eq(0).imagesLoaded(function(){C.find(a).height(function(){return parseInt(C.eq(0).outerHeight(),10)+"px"}),x.length&&x.find(a).height(function(){return C.eq(0).outerHeight()+"px"}),w.length&&w.find(a).height(function(){return C.eq(0).outerHeight()/2-e+"px"}),k.length&&k.find(a).height(function(){return C.eq(0).outerHeight()/2-e+"px"})}):x.length?x.eq(0).imagesLoaded(function(){x.find(a).height(function(){return parseInt(x.eq(0).outerHeight(),10)+"px"}),w.length&&w.find(a).height(function(){return x.eq(0).outerHeight()/2-e+"px"}),k.length&&k.find(a).height(function(){return x.eq(0).outerHeight()/2-e+"px"})}):k.length&&w.eq(0).imagesLoaded(function(){k.length&&k.find(a).height(function(){return w.eq(0).outerHeight()+"px"})})}function A(){H(".wp-post-image:not(.thb_3dimage)",l).each(function(){H(this).height(function(){if(0<H(this).outerHeight())return Math.round(H(this).outerHeight(),10)+"px"})})}function P(){var t=H(l.isotope("getFilteredItemElements")).find(".portfolio-holder");t.length?(t.removeClass("thb-added"),t.data("thb-in-viewport",!1),gsap.to(t,e)):z()}e="thb-fade"===u?(o={opacity:1},{opacity:0}):"thb-scale"===u?(o={opacity:1,scale:1},{opacity:0,scale:0}):"thb-none"===u?(b=y=0,o={opacity:1},{opacity:c=0}):"thb-vertical-flip"===u?(o={opacity:1,y:0,rotationX:"0deg"},{opacity:0,y:350,rotationX:"25deg"}):"thb-reveal-left"===u?(b=1,y=.5,c=.3,o={clipPath:"polygon(100% 0, 0 0, 0 100%, 100% 100%)"},{clipPath:"polygon(0% 0, 0 0, 0 100%, 0% 100%)"}):(o={y:0,opacity:1},{y:30,opacity:0}),o.duration=b,e.duration=y,o.stagger=c,e.stagger=c,e.onComplete=z,g.on("click",function(){var t=g.data("portfolio-id"),i=g.text(),e="thb_portfolioajax_"+t,a=L[e].aspect,o=L[e].columns,n=L[e].style,s=L[e].masonry,r=L[e].count,t=L[e].grid_type,e=L[e].loop;return!1===T&&H.ajax(themeajax.url,{method:"POST",data:{action:"thb_ajax",security:d,loop:e,aspect:a,columns:o,masonry:s,style:n,page:f,grid_type:t},beforeSend:function(){g.prop("title",themeajax.l10n.loading),g.text(themeajax.l10n.loading).addClass("loading"),T=!0},success:function(t){T=!1,f++;var e,a=H.parseHTML(H.trim(t)),o=a?a.length:0;""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?(g.prop("title",themeajax.l10n.nomore),g.text(themeajax.l10n.nomore).removeClass("loading").off("click")):(e=H(a)).imagesLoaded(function(){e.appendTo(l).hide(),C=H(".masonry-large",l),x=H(".masonry-tall",l),w=H(".masonry-small",l),k=H(".masonry-wide",l),I.trigger("resize.variables"),l.isotope("appended",e),e.show(),e.find(".thb_3dimg").length&&O.thb_3dImg.init(e),e.find(".thb_panr").length&&O.thb_panr.init(e),e.find(".thb-portfolio-video").length&&O.portfolio_video.init(e),o<r?(g.prop("title",themeajax.l10n.nomore),g.text(themeajax.l10n.nomore).removeClass("loading")):(g.prop("title",i),g.text(i).removeClass("loading"))})}}),!1}),l.addClass("thb-loaded"),h&&(S(),I.on("resize.variables",function(){S()}),q.on("lazyloaded",function(t){I.trigger("resize.variables")}),j.find(".wp-post-image.lazyload:not(.thb_3dimage)").on("load",function(){l.isotope("layout")})),p&&(A(),I.on("resize.true-aspect",function(){A()}),q.on("lazyloaded",function(t){I.trigger("resize.true-aspect")})),I.on("scroll.masonry-animation",_.debounce(function(t,e){(a=H(e||n).filter(":in-viewport").filter(function(){return void 0===H(this).data("thb-in-viewport")||!1===H(this).data("thb-in-viewport")})).length&&(a.addClass("thb-added"),gsap.to(a.find(".portfolio-holder"),o))},20)),l.on("layoutComplete",function(t,e){n=_.map(e,"element"),I.trigger("scroll.masonry-animation",[n]),I.trigger("resize")}).isotope(m),v.length&&(v.hasClass("style1")||v.hasClass("style3")?(s=v.find("a")).on("click",function(){var t=H(this);return i=t.data("filter"),s.not(t).removeClass("active"),t.hasClass("active")?(t.removeClass("active"),i="*",s.filter('[data-filter="*"]').addClass("active")):t.addClass("active"),P(),!1}):v.hasClass("style2")&&(r=v.find("select")).on("change",function(){var e="*"===this.value?"":this.value;r.not(this).each(function(){var t=H(this).val();t&&"*"!==t&&(e+=t)}),""===(i=e)&&(i="*"),P()})),l.imagesLoaded(function(){l.isotope("layout")}),l.parents(".vc_tta-tabs").on("show.vc.tab",function(){l.parents(".vc_active").length&&(l.isotope("layout"),I.trigger("resize"),_.delay(function(){l.isotope("layout")},150))})})}},videoPlayButton:{selector:".thb_video_play_button_enabled",init:function(){H(this.selector).each(function(){var t,e=H(this),a=e.find(".thb_video_play"),o=H("svg",a),i=e.data("vide");i&&(t=i.getVideoObject(),a&&a.on("click",function(){return t&&(t.paused?(e.addClass("thb_video_active"),t.play(),o.addClass("playing")):(e.removeClass("thb_video_active"),t.pause(),o.removeClass("playing"))),!1}))})}},thb_3dImg:{selector:".thb_3dimg",init:function(t){var e=H(this.selector);(t?t.find(this.selector):e).thb_3dImg()}},portfolio_video:{selector:".thb-video-item",init:function(t){var e=t||H(this.selector),i=!!t;e.each(function(){var t,e,a=H(this),o=a.find(".thb-portfolio-video").data("vide");i&&(t=a.find(".thb-portfolio-video").data("vide-options"),e=a.find(".thb-portfolio-video").data("vide-bg"),a.find(".thb-portfolio-video").vide(e,t),o=a.find(".thb-portfolio-video").data("vide")),o&&(o=o.getVideoObject(),isNaN(o.duration)||(o.currentTime=.15)),a.hoverIntent(function(){o&&(o.currentTime=.15,o.play())},function(){o&&(o.pause(),o.currentTime=.15)})})}},slick:{selector:".thb-carousel",init:function(t){(t||H(this.selector)).each(function(){var l=H(this),t=l.data("columns"),e=2<t.length?parseInt(t.substr(t.length-1)):t,a=l.find(".columns"),o=2<t.length?5===e?5:12/e:t,i=!(!l.data("fade")&&!l.hasClass("thb-fade")),n=!0===l.data("navigation"),s=!0===l.data("autoplay"),r=!0===l.data("pagination"),d=!!l.data("center")&&(!!(a.length>o&&o%2)&&l.data("center")),c=!1!==l.data("infinite"),h=l.data("autoplay-speed")?l.data("autoplay-speed"):4e3,p=!!l.data("disablepadding")&&l.data("disablepadding"),u=!0===l.data("vertical"),g=l.data("asnavfor"),f=!0===l.data("adaptive"),m=M.hasClass("rtl"),e="",t="",a=!0===themeajax.settings.carousel_slides_scroll?o:1;l.hasClass("thb-testimonial-style1")||!r||l.hasClass("thb-arrows-style2")||l.hasClass("thb-portfolio-slider-style7")?l.hasClass("thb-portfolio-slider-style7")?l.append('<div class="portfolio-style7-dots-wrapper"><div class="row max_width"><div class="small-12 columns"></div></div></div>'):l.hasClass("thb-arrows-style2")&&(e=themeajax.l10n.prev,t=themeajax.l10n.next,l.append('<div class="slick-style2-arrows"><div class="slick-dots-wrapper"></div></div>')):l.append('<div class="slick-dots-wrapper"></div>');p={dots:r,arrows:n,infinite:c,speed:1e3,fade:i,centerPadding:"10%",centerMode:d,slidesToShow:o,adaptiveHeight:f,slidesToScroll:a,rtl:m,cssEase:"cubic-bezier(0.35, 0.3, 0.2, 0.85)",autoplay:s,autoplaySpeed:h,touchThreshold:themeajax.settings.touch_threshold,slide:":not(.slick-dots-wrapper):not(.slick-style2-arrows):not(.portfolio-style7-dots-wrapper):not(.portfolio-style9-dots-wrapper):not(style):not(.label-wrap)",pauseOnHover:!0,accessibility:themeajax.settings.accessibility,focusOnSelect:!0,prevArrow:'<button type="button" class="slick-nav slick-prev thb-animated-arrow circular">'+themeajax.svg.prev_arrow+e+"</button>",nextArrow:'<button type="button" class="slick-nav slick-next thb-animated-arrow circular">'+t+themeajax.svg.next_arrow+"</button>",responsive:[{breakpoint:1441,settings:{slidesToShow:o<6?o:u?o-1:6,slidesToScroll:!0===themeajax.settings.carousel_slides_scroll?o<6?o:u?o-1:6:1,centerPadding:p?0:"40px"}},{breakpoint:1201,settings:{slidesToShow:o<4?o:u?o-1:4,slidesToScroll:!0===themeajax.settings.carousel_slides_scroll?o<4?o:u?o-1:4:1,centerPadding:p?0:"40px"}},{breakpoint:1025,settings:{slidesToShow:o<3?o:u?o-1:3,slidesToScroll:!0===themeajax.settings.carousel_slides_scroll?o<3?o:u?o-1:3:1,centerPadding:p?0:"40px"}},{breakpoint:641,settings:{slidesToShow:1,slidesToScroll:1}}]};l.hasClass("thb-portfolio-slider-style8")&&(p.adaptiveHeight=!0,p.draggable=!1),l.hasClass("thb-testimonial-style1")||l.hasClass("thb-arrows-style2")||(p.appendDots=l.find(".slick-dots-wrapper")),!l.hasClass("thb-testimonial-style1")&&l.hasClass("thb-arrows-style2")&&(p.appendArrows=l.find(".slick-style2-arrows"),p.appendDots=l.find(".slick-style2-arrows>.slick-dots-wrapper")),l.hasClass("thb-portfolio-slider-style7")&&(p.appendDots=l.find(".portfolio-style7-dots-wrapper .columns")),g&&H(g).is(":visible")&&(p.asNavFor=g),!i&&u&&(p.vertical=!0,p.verticalSwiping=!0),l.hasClass("product-images")&&"undefined"!=typeof wc_single_product_params&&L.wc_single_product_params.zoom_enabled&&H.fn.zoom&&l.on("afterChange",function(t,e,a){var o=e.$slides.eq(a),e=o.width(),a=!1;(a=o.find("img").data("large_image_width")>e?!0:a)&&(a=H.extend({touch:!1},L.wc_single_product_params.zoom_options),"ontouchstart"in L&&(a.on="click"),o.trigger("zoom.destroy"),o.zoom(a),o.trigger("mouseenter.zoom"))}),l.hasClass("product-thumbnails")&&(p.vertical=!0,p.responsive[2].settings.vertical=!1,p.responsive[2].settings.slidesToShow=4,p.responsive[3].settings.vertical=!1,p.responsive[3].settings.slidesToShow=4),l.hasClass("products")&&(p.responsive[3].settings.slidesToShow=2),l.on("init",function(){I.trigger("resize.position_arrows"),l.parents(".vc_tta-tabs").length&&l.parents(".vc_tta-tabs").on("show.vc.tab",function(){l.slick("setPosition")})}),d&&l.on("init",function(){l.addClass("centered")}),l.on("breakpoint",function(t,e,a){e.$slides.data("thb-animated",!1),e.$slider.find(O.animation.selector).length&&(e.$slider.find(O.animation.selector).data("thb-animated",!1),e.$slider.find(O.animation.selector).data("thb-in-viewport",!1)),I.trigger("scroll.thb-animation")}),l.on("afterChange",function(t,e,a){e.$slides&&I.trigger("scroll.thb-animation")}),l.hasClass("thb-portfolio-slider-style8")&&(p.customPaging=function(t,e){e=H(t.$slides[e]).find("h1").text()||"";return'<a class="thb-text-bullet" title="'+e+'">'+e+"</a>"}),l.hasClass("thb-testimonial-style1")||l.hasClass("thb-testimonial-style9")?p.customPaging=function(t,e){var a=H(t.$slides[e]).find(".author_image").attr("src");return'<a class="portrait_bullet" title="'+H(t.$slides[e]).find(".title").text()+'" style="background-image:url('+(a="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="===a?H(t.$slides[e]).find(".author_image").attr("data-src"):a)+');"></a>'}:l.hasClass("thb-portfolio-slider-style7")?p.customPaging=function(t,e){return'<div class="thb-portfolio-slider-style7-bullets"><span>'+H(t.$slides[e]).data("categories")+"</span></div>"}:r&&(l.on("init breakpoint",function(){(l.hasClass("thb-arrows-style2")?l.find(".slick-style2-arrows"):l.find(".slick-dots-wrapper")).appendTo(l),l.find(".select").length||l.find(".slick-dots").append('<div class="select"></div>'),I.trigger("scroll.thb-animation")}),l.on("beforeChange",function(t,e,a,o){var i,n,s=l.find(".slick-dots"),r=H("li",s);1<r.length&&(!0!==themeajax.settings.carousel_slides_scroll?(i=r.eq(a),a=r.eq(o),r=H(".select",s),o=i.position().left,i=a.position().left,a=gsap.timeline(),o<i?(n={duration:.2,right:"auto",left:i,width:6},a.to(r,{duration:.2,width:i-o+6}).to(r,n)):a.to(r,n={duration:.2,left:i,width:o-i+6}).to(r,{duration:.2,width:6})):s.find(".select").hide())})),l.hasClass("thb-portfolio-slider")&&(I.on("resize.position_arrows",function(){var t,e;l.hasClass("position-arrows")&&(t=H("h1, h2",l.find(".slick-current")),0<(e=t.length?t.offset().left-l.offset().left:0)&&(H(".slick-prev",l).css("left",function(){return e+"px"}),H(".slick-next",l).css("left",function(){return 55+e+"px"})))}),l.on("beforeChange",function(t,e,a,o){var i,a=e.$slides.eq(a).find(".thb-portfolio-video"),o=e.$slides.eq(o).find(".thb-portfolio-video");a.length&&(i=a.data("vide").getVideoObject(),isNaN(i.duration)||(i.currentTime=0),i.pause()),o.length&&(H("#vc_inline-anchor").length&&(a=o.data("vide-options"),i=o.data("vide-bg"),o.vide(i,a)),o.data("vide").getVideoObject().play())}),l.on("init",function(t,e){var a,o=e.$slides.eq(0).find(".thb-portfolio-video");o.length&&(H("#vc_inline-anchor").length&&(a=o.data("vide-options"),e=o.data("vide-bg"),o.vide(e,a)),a=o.data("vide").getVideoObject(),o.data("vide").resize(),a.play()),l.find(".mfp-image")&&O.magnificImage.init()})),(l.hasClass("thb-image-slider")||l.hasClass("thb-testimonial-style5")||l.hasClass("thb-content-carousel"))&&l.on("init",function(t,e){q.on("lazyloaded",function(t){l.slick("setPosition")}),L.lazySizes&&lazySizes.autoSizer.checkElems()}),l.slick(p)})}},thb_panr:{selector:".thb_panr",init:function(t){var e=H(this.selector);(t?t.find(this.selector):e).each(function(){var t=H(this),e=t.parents(".portfolio-holder").length?t.parents(".portfolio-holder"):t;t.find("img").panr({moveTarget:e,scaleDuration:1,sensitivity:10,scaleTo:1.07,panDuration:2})})}},widget_nav_menu:{selector:".widget_nav_menu, .widget_pages",init:function(){H(this.selector).find(".menu-item-has-children, .page_item_has_children").each(function(){var t=H(this),e=H(">a",t);e.append('<div class="thb-arrow"><i class="fa fa-angle-down"></i></div>'),H(".thb-arrow",t).on("click",function(t){var e=H(this).parents("a"),a=e.next(".sub-menu, .children");e.hasClass("active")?(e.removeClass("active"),a.slideUp("200")):(e.addClass("active"),a.slideDown("200")),t.stopPropagation(),t.preventDefault()}),"#"===e.attr("href")&&e.on("click",function(t){var e=H(this),a=e.next(".sub-menu");e.hasClass("active")?(e.removeClass("active"),a.slideUp("200")):(e.addClass("active"),a.slideDown("200")),t.preventDefault()})})}},pricingStyle2:{selector:".thb-pricing-table.style2",init:function(t){H(this.selector).each(function(){var t=H(this),e=H(".pricing-container",t),a=H(".pricing-style2-highlight",t),o=a.parents(".pricing-container");function i(t){gsap.set(a,{left:t.position().left,width:t.outerWidth(),height:t.parents(".thb-pricing-column").outerHeight(),top:t.position().top})}a.length&&(e.on("mouseenter",function(){i(H(this))}).on("mouseleave",function(){i(o)}),I.on("resize.move_highlight",function(){i(o)}).trigger("resize.move_highlight"),t.addClass("active"))})}},pricingToggle:{selector:".thb-pricing-toggle",init:function(){H(this.selector).each(function(){var t=H(this),e=t.parents(".row").find(".thb-pricing-table");if(!e)return!1;H("[data-second]",e).each(function(){H(this).data("original",H(this).contents().first()[0].textContent)}),t.on("click",function(){t.toggleClass("active"),t.hasClass("active")?H("[data-second]",e).each(function(){var t=H(this).data("second");t&&(H(this).contents().first()[0].textContent=t)}):H("[data-second]",e).each(function(){H(this).contents().first()[0].textContent=H(this).data("original")})})})}},toTop:{selector:"#scroll_to_top",init:function(){var t=this;H(t.selector).on("click",function(){return gsap.to(I,{duration:1,scrollTo:{y:0,autoKill:!1}}),!1}),I.scroll(_.debounce(function(){t.control()},20))},control:function(){var t=H(this.selector);100<I.scrollTop()?t.addClass("active"):t.removeClass("active")}},toBottom:{selector:".scroll-bottom",init:function(){H(this.selector).each(function(){var o=H(this);o.on("click",function(){var t=o.parents(".post-gallery").length?o.parents(".post-gallery"):o.closest(".row"),e=t.outerHeight(),a=H("#wpadminbar").outerHeight()||0,e=t.offset().top+e;return H(".fixed-header-on").length&&"on"!==themeajax.settings.fixed_header_scroll&&(d.hasClass("style8")||(e-=H(".header.fixed").outerHeight())),e-=a,gsap.to(I,{duration:1,scrollTo:{y:e,autoKill:!1}}),!1})})}},bg_list:{selector:".thb-bg-list-parent",init:function(){H(this.selector).each(function(){var t=H(this),o=t.data("zoom-effect"),e=t.find(".thb-bg-list"),i=t.find(".thb-bg-list-bg");function a(t,e){var a=gsap.timeline({defaults:{duration:.5}});return i.eq(t).is(":visible")||a.to(i.filter(":visible"),{autoAlpha:0,scale:1,display:"none"},0).to(i.eq(t),{autoAlpha:1,display:"block"},0),o&&a.to(i.eq(t),{duration:5,scale:1.05}),e.animation=a}e.hoverIntent(function(){a(e.index(this),this)}),a(0,e.eq(0))})}},animation:{selector:".animation, .thb-counter, .thb-iconbox, .portfolio-title:not(.not-activated), .thb-fadetype, .thb-slidetype, .thb-progressbar, .thb-autotype",init:function(){var t=this,e=H(t.selector);H(".animation.bottom-to-top-3d, .animation.top-to-bottom-3d, .animation.bottom-to-top-3d-small, .animation.top-to-bottom-3d-small").parent(":not(.slick-track)").addClass("perspective-wrap"),I.on("scroll.thb-animation",function(){t.control(e,!0)}).trigger("scroll.thb-animation")},container:function(t){t=H(this.selector,t);this.control(t,!1)},control:function(t,e){var a=0,o=.5,i=.15;(e?t.filter(":in-viewport"):t).each(function(){var t=H(this),e={autoAlpha:1,x:0,y:0,z:0,rotationZ:"0deg",rotationX:"0deg",rotationY:"0deg",delay:a*i};i=t.hasClass("thb-client")||t.hasClass("thb-counter")||t.hasClass("thb-iconlist-li")?(o=.2,.05):t.hasClass("thb-team-member")?(o=.4,.1):(o=.5,.15),!0!==t.data("thb-animated")&&(t.data("thb-animated",!0),t.hasClass("thb-iconbox")?O.iconbox.control(t,a*i):t.hasClass("thb-counter")?O.counter.control(t,a*i):t.hasClass("portfolio-title")?O.portfolioTitle.control(t,a*i):t.hasClass("thb-autotype")?O.autoType.control(t,a*i):t.hasClass("thb-fadetype")?O.fadeType.control(t,a*i):t.hasClass("thb-slidetype")?O.slideType.control(t,a*i):t.hasClass("thb-progressbar")?O.progressBar.control(t,a*i):(t.hasClass("scale")&&(e.scale=1),e.duration=o,gsap.to(t,e)),a++)})}},perspective:{selector:".perspective-enabled",init:function(){var o=H(this.selector),i=I.scrollTop();requestAnimationFrame(function t(){var e=I.scrollTop(),a=e+I.height()+"px";i!==e&&(gsap.set(o,{"perspective-origin":"50% "+a}),i=e),requestAnimationFrame(t)})}},fixedMe:{selector:".thb-fixed, .thb-product-style2 .summary, .thb-product-style4 .summary, .thb-product-style5 .summary",init:function(t){var e=t||H(this.selector),t=H(".header").hasClass("style7")||H(".header").hasClass("style8")?30:H(".header").outerHeight(),a=o.outerHeight()+t;l.mobile()||(e.each(function(){H(this).stick_in_parent({offset_top:a||0,spacer:".sticky-content-spacer",recalc_every:30})}),H(".post-content, .products, .product-images").imagesLoaded(function(){H(document.body).trigger("sticky_kit:recalc")}),I.on("resize",_.debounce(function(){H(document.body).trigger("sticky_kit:recalc")},30)))}},autoType:{selector:".thb-autotype",control:function(t,e,a){var o,i,n,s;void 0!==t.data("thb-in-viewport")&&!a||(t.data("thb-in-viewport",!0),n=(i=(o=t).find(".thb-autotype-entry")).data("strings"),s=i.data("speed")?i.data("speed"):50,a=1===i.data("thb-loop"),t=1===i.data("thb-cursor"),o.find(".thb-autotype-entry").length&&i.typed({strings:n,loop:a,showCursor:t,cursorChar:"|",contentType:"html",typeSpeed:s,backDelay:1e3}))}},fadeType:{selector:".thb-fadetype",control:function(t,e,a){if(void 0===t.data("thb-in-viewport")||a){t.data("thb-in-viewport",!0);var o=new SplitText(H(".thb-fadetype-entry",t),{type:"chars"}),i=gsap.timeline({onComplete:function(){o.revert()}});if(i.set(t,{visibility:"visible"}),t.hasClass("thb-fadetype-style1"))i.from(o.chars,{duration:.25,autoAlpha:0,y:10,rotationX:"-90deg",delay:e,stagger:.05});else if(t.hasClass("thb-fadetype-style2"))for(var n=o.chars.length,s=0;s<n;s++){var r=o.chars[s],l=.5*Math.random();i.from(r,{duration:2,opacity:0,ease:Linear.easeNone},l).from(r,{duration:2,yPercent:-50,ease:Expo.easeOut},l)}}}},progressBar:{selector:".thb-progressbar",control:function(t,e,a){var o;void 0!==t.data("thb-in-viewport")&&!a||(a=(o=t.find(".thb-progress")).data("progress"),gsap.timeline().to(t,{duration:.6,autoAlpha:1,delay:e}).to(o.find("span"),{duration:1,scaleX:a/100}))}},slideType:{selector:".thb-slidetype",control:function(t,e,a){var o,i,n,s,r;void 0!==t.data("thb-in-viewport")&&!a||(t.data("thb-in-viewport",!0),o=t.data("style"),n=gsap.timeline({onComplete:function(){"style1"!==o&&i.revert()}}),r=.25,a=.05,t.find(".thb-slidetype-entry").length&&("style1"===o?(s=t.find(".thb-slidetype-entry .lines"),r=.65,a=.15):"style2"===o?(s=(i=new SplitText(t.find(".thb-slidetype-entry"),{type:"words"})).words,r=.65,a=.15):"style3"===o&&(s=(i=new SplitText(t.find(".thb-slidetype-entry"),{type:"chars"})).chars),n.set(t,{visibility:"visible"}).from(s,{duration:r,y:"200%",delay:e,stagger:a},"+=0")))}},keyNavigation:{selector:".thb_portfolio_nav, .thb_post_nav.blog_nav_keyboard-on",init:function(){function t(t){78===t.keyCode&&e.find(".post_nav_link.next").length&&e.find(".post_nav_link.next")[0].click(),80===t.keyCode&&e.find(".post_nav_link.prev").length&&e.find(".post_nav_link.prev")[0].click()}var e=H(this.selector);q.bind("keyup",t),H("input, textarea").on("focus",function(){q.unbind("keyup",t)}),H("input, textarea").on("blur",function(){q.bind("keyup",t)})}},counter:{selector:".thb-counter",control:function(t,e){var a,o,i,n,s,r,l,d,c;void 0===t.data("thb-in-viewport")&&(t.data("thb-in-viewport",!0),l=(r=(a=t).find(".h1:not(.counter-text), .counter:not(.counter-text)").eq(0))[0],o=r.data("count"),i=r.data("speed"),n=a.find("svg"),s=a.data("separator"),t=a.data("format"),r=n.find("path, circle, rect, ellipse"),l={el:l,value:0,duration:i,theme:"minimal"},d=gsap.timeline({paused:!0}),l.format=s&&""!==s?t:"",c=new Odometer(l),d.set(a,{visibility:"visible"}),n.length&&d.set(n,{display:"block"}).from(r,{duration:i/2e3,drawSVG:"0%",stagger:i/1e4}),setTimeout(function(){d.play(),c.update(o)},e))}},like:{selector:".thb-like-button",init:function(){H(this.selector).each(function(){var a=H(this),t=a.find(".counter"),e=t.data("count"),o=(a.find(".fa"),new Odometer({el:t[0],value:0,duration:500,theme:"minimal"}));o.update(e),a.hasClass("loading")||a.on("click",function(){return H.ajax(themeajax.url,{method:"POST",data:{action:"thb_update_likes",id:a.data("id")},beforeSend:function(){a.addClass("loading")},success:function(t){a.removeClass("loading");var e=JSON.parse(t),t=e.count;e.like?a.addClass("active"):a.removeClass("active"),o.update(t)}}),!1})})}},toggleBlog:{selector:".thb-toggle-blog",init:function(t){t=t||H(this.selector);H(".post.style9",t).each(function(){var t=H(this);H(".style9-arrow",t).on("click",function(){return t.toggleClass("active"),!1})})}},iconbox:{selector:".thb-iconbox",control:function(t,e){var a,o,i,n,s,r,l,d;void 0!==t.data("thb-in-viewport")&&!1!==t.data("thb-in-viewport")||t.hasClass("animation-off")||(t.data("thb-in-viewport",!0),o=""!==(a=t).data("animation_speed")?a.data("animation_speed"):"1.5",i=a.find("svg"),d=a.find("img:not(.thb_image_hover)"),n=i.find("path, circle, rect, ellipse"),s=a.find("h5"),l=a.find("p"),r=a.find(".thb-iconbox-line"),t=a.find(".thb-iconbox-line em"),e=gsap.timeline({delay:e,paused:!0,clearProps:"all"}),l=s.add(l).add(d),d=a.find(".thb-read-more"),a.hasClass("left")||a.hasClass("right")||!d.length||(l=l.add(d)),e.set(a.add(i),{visibility:"visible"}).from(n,{duration:o,drawSVG:"0%",stagger:.2},"s").fromTo(l,{autoAlpha:0,y:"20px"},{duration:o/1.5,autoAlpha:1,y:"0px",stagger:.15},"s"),t.length&&e.to(t,{duration:o/2,scale:"1"},"s-="+o/1.5),r.length&&e.to(r,{duration:o/2,scaleX:"1"},"s-="+o/1.5),e.play())}},officeLocations:{selector:".thb_office_location:not(.disabled)",init:function(){H(this.selector).each(function(){var u=H(this),g=u.data("style")||"style1",f=u.prev(".thb_location_container").find(".thb_location"),t=u.data("map-zoom"),e=u.data("map-style"),a=u.data("map-type"),o=u.data("pan-control"),i=u.data("zoom-control"),n=u.data("maptype-control"),s=u.data("scale-control"),r=u.data("streetview-control"),m=u.find(".thb-location"),v=0,b=new google.maps.LatLngBounds,y=new google.maps.Map(u[0],{styles:e,zoom:t,scrollwheel:!1,panControl:o,zoomControl:i,mapTypeControl:n,scaleControl:s,streetViewControl:r,fullscreenControl:!1,mapTypeId:a,gestureHandling:"cooperative"});google.maps.event.addListenerOnce(y,"tilesloaded",function(){f.on("click",function(){var t,e,a,o,i,n,s,r=H(this),l="style1"===g?r.parents(".columns").index():r.parents(".thb_location_container").children(".thb_location").index(r),d=m.eq(l),c=d.data("option"),h=c.latitude,p=c.longitude,c=new google.maps.LatLng(h,p);d.data("rendered")||(t=l,l=(p=(h=d).data("option")).latitude,d=p.longitude,e=new google.maps.LatLng(l,d),a=p.marker_image,o=p.marker_size,i=p.retina_marker,n=p.marker_title,s=p.marker_description,p=new Image,b.extend(e),p.src=a,h.data("rendered",!0),H(p).on("load",function(){O.contactMap.setMarkers(t,y,e,a,o,n,s,i)})),f.removeClass("active"),r.addClass("active"),y.panTo(c),"style2"===g&&(v=-1*u.prev(".thb_location_container").outerHeight()/2,y.panBy(0,v))}),f.eq(0).trigger("click"),0<t?(y.setCenter(b.getCenter()),y.setZoom(t)):(y.setCenter(b.getCenter()),y.fitBounds(b)),"style2"===g&&(v=-1*u.prev(".thb_location_container").outerHeight()/2,y.panBy(0,v))}),I.on("resize.google_map",_.debounce(function(){y.setCenter(b.getCenter()),"style2"===g&&(v=-1*u.prev(".thb_location_container").outerHeight()/2,y.panBy(0,v))},50)).trigger("resize.google_map")})}},contactMap:{selector:".contact_map:not(.disabled)",init:function(){var g=this;H(g.selector).each(function(){var h,e=H(this),t=e.data("map-zoom"),a=e.data("map-style"),o=e.data("map-type"),i=e.data("pan-control"),n=e.data("zoom-control"),s=e.data("maptype-control"),r=e.data("scale-control"),l=e.data("streetview-control"),d=e.find(".thb-location"),c=e.next(".thb-expand"),p=e.width(),u=new google.maps.LatLngBounds,o={styles:a,zoom:t,scrollwheel:!1,panControl:i,zoomControl:n,mapTypeControl:s,scaleControl:r,streetViewControl:l,fullscreenControl:!1,mapTypeId:o,gestureHandling:"cooperative"};c&&c.toggle(function(){var t=e.parents(".row").width();return e.parents(".contact_map_parent").css("overflow","visible"),gsap.to(e,{duration:1,width:t,onUpdate:function(){google.maps.event.trigger(h,"resize"),h.setCenter(u.getCenter())}}),!1},function(){return gsap.to(e,{duration:1,width:p,onUpdate:function(){google.maps.event.trigger(h,"resize"),h.setCenter(u.getCenter())},onComplete:function(){e.parents(".contact_map_parent").css("overflow","hidden")}}),!1}),h=new google.maps.Map(e[0],o),d.each(function(t){var e,a,o,i,n,s,r,l,d,c=H(this);e=t,t=(d=(a=c).data("option")).latitude,c=d.longitude,o=new google.maps.LatLng(t,c),i=d.marker_image,n=d.marker_size,s=d.retina_marker,r=d.marker_title,l=d.marker_description,d=new Image,u.extend(o),d.src=i,a.data("rendered",!0),H(d).on("load",function(){g.setMarkers(e,h,o,i,n,r,l,s)})}),google.maps.event.addListenerOnce(h,"tilesloaded",function(){0<t?(h.setCenter(u.getCenter()),h.setZoom(t)):(h.setCenter(u.getCenter()),h.fitBounds(u))}),I.on("resize.google_map",_.debounce(function(){h.setCenter(u.getCenter())},50)).trigger("resize.google_map")})},setMarkers:function(t,a,o,i,n,e,s,r){var l=new google.maps.InfoWindow({content:"<h3>"+e+"</h3><div>"+s+"</div>"});function d(t,e){this.latlng=t,this.setMap(e)}r&&(n[0]=n[0]/2,n[1]=n[1]/2),(d.prototype=new google.maps.OverlayView).draw=function(){var t=this.div_;t||(t=this.div_=H('<div class="thb_pin"><div class="pulse"></div><div class="shadow"></div><div class="pin-wrap"><img src="'+i+'" width="'+n[0]+'" height="'+n[1]+'"/></div></div>'),this.pinShadow=this.div_.find(".shadow"),this.pulse=this.div_.find(".pulse"),this.div_[0].style.position="absolute",this.div_[0].style.cursor="pointer",this.getPanes().overlayImage.appendChild(this.div_[0]),google.maps.event.addDomListener(t[0],"click",function(t){l.setPosition(o),l.open(a)}));var e=this.getProjection().fromLatLngToDivPixel(o);e&&(t=(n[0]-40)/2,this.div_[0].style.left=e.x-n[0]/2+"px",this.div_[0].style.top=e.y-n[1]/2+"px",this.div_[0].style.width=n[0]+"px",this.div_[0].style.height=n[1]+"px",this.pinShadow[0].style.marginLeft=t+"px",this.pulse[0].style.marginLeft=t+"px")},d.prototype.remove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},d.prototype.getPosition=function(){return this.latlng};new d(o,a)}},ajaxAddToCart:{selector:".ajax_add_to_cart",init:function(){H(this.selector);M.on("added_to_cart",function(t,e,a,o){o.find(".thb_button_icon").html(themeajax.l10n.added_svg),o.find("span").text(themeajax.l10n.added)})}},loginForm:{selector:".thb-overflow-container",init:function(){var e=H(this.selector),t=H("ul",e),a=H("a",t);a.on("click",function(){var t=H(this);return t.hasClass("active")||(a.removeClass("active"),t.addClass("active"),H(".thb-form-container",e).toggleClass("register-active")),!1})}},productAjaxAddtoCart:{selector:".thb-single-product-ajax-on.single-product .product-type-variable form.cart, .thb-single-product-ajax-on.single-product .product-type-simple form.cart",init:function(){var t=H(this.selector),a=H(".single_add_to_cart_button",t);"undefined"!=typeof wc_add_to_cart_params&&"yes"===wc_add_to_cart_params.cart_redirect_after_add||q.on("submit","body.single-product form.cart",function(t){t.preventDefault();var t=H(this),e=a.text();a.is(".disabled")||a.is(".wc-variation-selection-needed")||(t={product_id:t.find("[name*='add-to-cart']").val(),product_variation_data:t.serialize()},H.ajax({method:"POST",data:t.product_variation_data,dataType:"html",url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","add-to-cart="+t.product_id+"&thb-ajax-add-to-cart=1"),cache:!1,headers:{"cache-control":"no-cache"},beforeSend:function(){M.trigger("adding_to_cart"),a.addClass("disabled").text(themeajax.l10n.adding_to_cart)},success:function(t){t=H.parseHTML(t),t={".float_count":H(t).find(".float_count").html(),".thb_prod_ajax_to_cart_notices":H(t).find(".thb_prod_ajax_to_cart_notices").html(),".widget_shopping_cart_content":H(t).find(".widget_shopping_cart_content").html()};H.each(t,function(t,e){H(t).html(e)}),M.trigger("wc_fragments_refreshed"),a.removeClass("disabled").text(e)},error:function(t){M.trigger("wc_fragments_ajax_error"),a.removeClass("disabled").text(e)}}))})}},variations:{selector:"form.variations_form",init:function(){var t=H(this.selector),a=H("#product-images"),e=H("#product-thumbnails"),o=H(".first",a),i=H("img",o),n=H("a",o),s=n.attr("href"),r=i.attr("src"),l=H(".first img",e),d=l.attr("src"),c=H("p.price",".product-information").eq(0),h=c.html();t.on("show_variation",function(t,e){e.price_html?c.html(e.price_html):c.html(h),e.hasOwnProperty("image")&&e.image.src&&(i.attr("src",e.image.src).attr("srcset",""),l.attr("src",e.image.thumb_src).attr("srcset",""),n.attr("href",e.image.full_src),a.hasClass("slick-initialized")&&a.slick("slickGoTo",0),"undefined"!=typeof wc_single_product_params&&"1"===wc_single_product_params.zoom_enabled&&i.attr("data-src",e.image.full_src))}).on("reset_image",function(){c.html(h),i.attr("src",r).attr("srcset",""),l.attr("src",d).attr("srcset",""),n.attr("href",s),"undefined"!=typeof wc_single_product_params&&"1"===wc_single_product_params.zoom_enabled&&i.attr("data-src",r)})}},quantity:{selector:".quantity:not(.hidden)",init:function(){var t=this;H(t.selector);t.initialize(),M.on("updated_cart_totals",function(){t.initialize()})},initialize:function(){H("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />').end().find('input[type="number"]').attr("type","text"),H(".plus, .minus").on("click",function(){var t=H(this).closest(".quantity").find(".qty"),e=parseFloat(t.val()),a=parseFloat(t.attr("max")),o=parseFloat(t.attr("min")),i=t.attr("step");return e&&""!==e&&"NaN"!==e||(e=0),""!==a&&"NaN"!==a||(a=""),""!==o&&"NaN"!==o||(o=0),"any"!==i&&""!==i&&void 0!==i&&"NaN"!==parseFloat(i)||(i=1),H(this).is(".plus")?a&&(a===e||a<e)?t.val(a):t.val(e+parseFloat(i)):o&&(o===e||e<o)?t.val(o):0<e&&t.val(e-parseFloat(i)),t.trigger("change"),!1})}},sounds:{selector:"#wrapper",init:function(){var t,e,a=H(".music_toggle");if("on"===themeajax.sounds.music_sound&&("on"!==themeajax.sounds.music_sound_toggle_home||M.hasClass("home"))){if("on"===themeajax.sounds.music_disable_mobile&&(l.mobile()||l.tablet()))return;var o=new Howl({src:[themeajax.sounds.music_sound_file],preload:!0,loop:!0,volume:.5}).on("load",function(){o.play(),a.length&&(a.data("state","on").addClass("on"),a.on("click",function(){return a.toggleClass("on"),"on"===a.data("state")?(o.pause(),a.data("state","off")):(o.play(),a.data("state","on")),!1}))})}"on"===themeajax.sounds.link_hover_sound&&(t=new Howl({src:[themeajax.sounds.link_hover_sound_file],preload:!0,volume:.5}),H("a").hoverIntent(function(){t.play()},function(){})),"on"===themeajax.sounds.click_sound&&(e=new Howl({src:[themeajax.sounds.click_sound_file],preload:!0,volume:.3}),H(document).on("click",function(){e.play()}))}},footerUnfold:{selector:".footer-effect-on .fixed-footer-container",init:function(){var t=this,e=H(t.selector);t.run(e),I.on("resize",_.debounce(function(){t.run(e)},50))},run:function(t){var e;t.imagesLoaded(function(){e=1024<=I.outerWidth()?t.outerHeight():0,M.css("padding-bottom",e)})}},responsiveNav:{selector:"#wrapper",init:function(){var t=H("#side-filters"),e=H("#side-cart"),a=H("#thb-featured-portfolio"),o=H(".thb-mobile-close"),i=gsap.timeline({paused:!0,onStart:function(){c.addClass("open-cc")},onReverseComplete:function(){c.removeClass("open-cc")}}),n=gsap.timeline({paused:!0,onStart:function(){c.addClass("open-cc")},onReverseComplete:function(){c.removeClass("open-cc")}}),s=gsap.timeline({paused:!0,onStart:function(){c.addClass("open-cc")},onReverseComplete:function(){c.removeClass("open-cc")}});H("#side-cart").length&&(i.to(H("#side-cart"),{duration:.25,x:0},"start"),H("#side-cart").find(".mini_cart_item").length&&i.from(H("#side-cart").find(".mini_cart_item"),{duration:.25,delay:.25,x:"30",opacity:0,stagger:.05},"start"),i.to(H(".thb-mobile-close",e),{duration:.3,scale:1},"start+=0.2")),t.length&&(n.to(t,{duration:.25,x:0},"start"),t.find(".widget").length&&n.from(t.find(".widget"),{duration:.25,delay:.25,x:"-30",opacity:0,stagger:.05},.05,"start"),n.to(H(".thb-mobile-close",t),{duration:.3,scale:1},"start+=0.2")),a.length&&(a.find(".portfolio").length&&s.to(a,{duration:.25,x:0},"start").to(a.find(".portfolio"),{duration:.25,autoAlpha:1,x:0,y:0,z:0,rotationZ:"0deg",rotationX:"0deg",rotationY:"0deg",stagger:.05},"start"),s.to(H(".thb-mobile-close",a),{duration:.3,scale:1},"start+=0.2")),H(".header").on("click","#quick_cart",function(){return themeajax.settings.is_cart||themeajax.settings.is_checkout?L.location=themeajax.settings.cart_url:(i.play(),O.custom_scroll.init()),!1}),H(".featured-portfolio").on("click",function(){return s.play(),!1}),c.on("click","#thb-shop-filters",function(){return n.play(),!1}),q.keyup(function(t){27===t.keyCode&&(i.reverse(),n.reverse(),s.reverse())}),r.add(o).on("click",function(){return i.reverse(),n.reverse(),s.reverse(),!1}),M.on("wc_fragments_refreshed added_to_cart",function(){H(".thb-close").on("click",function(){return i.reverse(),n.reverse(),!1})}),M.on("updated_wc_div checkout_error",function(){(M.hasClass("woocommerce-checkout")||M.hasClass("woocommerce-cart"))&&setTimeout(function(){H("html, body").stop()},10)})}},updateCart:{selector:"#quick_cart",init:function(){H(this.selector);M.bind("wc_fragments_refreshed added_to_cart",O.updateCart.update_cart_dropdown)},update_cart_dropdown:function(t){"added_to_cart"===t.type&&H("#quick_cart").trigger("click")}},shopSidebar:{selector:"#side-filters .widget",init:function(){H(this.selector).each(function(){var t=H(this).find(">h6");t.append(H("<span/>")).on("click",function(){t.toggleClass("active"),t.next().animate({height:"toggle",opacity:"toggle"},300)})}),H(".widget_layered_nav span.count, .widget_product_categories span.count, .widget_tag_cloud .tag-link-count").each(function(){var t=(t=H.trim(H(this).html())).substring(1,t.length-1);H(this).html(t)})}},shopLoading:{selector:".post-type-archive-product ul.products.thb-main-products, .tax-product_cat ul.products.thb-main-products",thb_loading:!1,scrollInfinite:!1,href:!1,init:function(){var t=H(this.selector),e=themeajax.settings.shop_product_listing_pagination;H(".woocommerce-pagination").length&&M.hasClass("post-type-archive-product")&&("style2"===e?this.loadButton(t):"style3"===e&&this.loadInfinite(t))},loadButton:function(a){var o=this;H(".woocommerce-pagination").before('<div class="thb_load_more_container pagination-space text-center"><a class="thb_load_more button">'+themeajax.l10n.loadmore+"</a></div>"),0===H(".woocommerce-pagination a.next").length&&H(".thb_load_more_container").addClass("is-hidden"),H(".woocommerce-pagination").hide(),M.on("click",".thb_load_more:not(.no-ajax)",function(t){var e=H(this);return o.href=H(".woocommerce-pagination a.next").attr("href"),!1===o.thb_loading&&(e.html(themeajax.l10n.loading).addClass("loading"),o.loadProducts(e,a)),!1})},loadInfinite:function(t){var e=this;0===H(".woocommerce-pagination a.next").length&&H(".thb_load_more_container").addClass("is-hidden"),H(".woocommerce-pagination").hide(),e.scrollInfinite=_.debounce(function(){!1===e.thb_loading&&I.scrollTop()+I.height()+150>=t.offset().top+t.outerHeight()&&(e.href=H(".woocommerce-pagination a.next").attr("href"),e.loadProducts(!1,t,!0))},30),I.on("scroll",e.scrollInfinite)},loadProducts:function(a,o,i){var n=this;H.ajax(n.href,{method:"GET",beforeSend:function(){n.thb_loading=!0,i&&I.off("scroll",n.scrollInfinite)},success:function(t){var e=H(t),t=e.find("ul.products.thb-main-products li");H(".woocommerce-pagination").html(e.find(".woocommerce-pagination").html()),a?e.find(".woocommerce-pagination .next").length?a.html(themeajax.l10n.loadmore).removeClass("loading"):a.html(themeajax.l10n.nomore_products).removeClass("loading").addClass("no-ajax"):i&&e.find(".woocommerce-pagination .next").length&&I.on("scroll",n.scrollInfinite),t.length&&(t.addClass("will-animate").appendTo(o),gsap.set(t,{opacity:0,y:30}),gsap.to(t,{duration:.3,y:0,opacity:1,stagger:.15})),n.thb_loading=!1}})}},wpcf7:{selector:".wpcf7",init:function(){var t=H(this.selector);t.find("form").on("submit",function(){H(this).parents(".wpcf7").addClass("loading")}),t.on("wpcf7submit",function(){H(this).removeClass("loading")})}},right_click:{selector:".right-click-on",init:function(){var t=H("#right_click_content"),e=gsap.timeline({paused:!0,onStart:function(){t.css("display","flex")},onReverseComplete:function(){t.css("display","none")}}),a=t.find(".columns>*");e.to(t,{duration:.25,opacity:1},"start").from(a,{duration:.5,y:20,opacity:0,stagger:.1}),I.on("contextmenu",function(t){if(3===t.which)return e.play(),!1}),q.keyup(function(t){27===t.keyCode&&e.reverse()}),t.on("click",function(){e.reverse()})}}},H(function(){H("#vc_inline-anchor").length?I.on("vc_reload",function(){O.init()}):O.init()})}(jQuery,this);
jQuery(document).ready(function ($){
$('.zoom-social_icons-list__link').on({
'mouseenter': function (e){
e.preventDefault();
var $this=$(this).find('.zoom-social_icons-list-span');
var $rule=$this.data('hover-rule');
var $color=$this.data('hover-color');
if($color!==undefined){
$this.attr('data-old-color', $this.css($rule));
$this.css($rule, $color);
}},
'mouseleave': function (e){
e.preventDefault();
var $this=$(this).find('.zoom-social_icons-list-span');
var $rule=$this.data('hover-rule');
var $oldColor=$this.data('old-color');
if($oldColor!==undefined){
$this.css($rule, $oldColor);
}}
});
});