PageSourceSearch

https://www.uniconf.ru/assets/build/app.js?1772542156822374

js uniconf.ru collected 2026-10-02 04:02:33 UTC 822,374 bytes, 2 lines download raw bytes

vendor: 45,211 bytes, lines 1-2
1/*! For license information please see app.js.LICENSE.txt */
2(self.webpackChunkuniconf_layout=self.webpackChunkuniconf_layout||[]).push([[143],{511:(t,e,r)=>{"use strict";var n=r(931),i=r(184);function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var s,l,c,u,h,p,f,d,m,y,g,v,b,w,x,S={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_={duration:.5,overwrite:!1,delay:0},E=1e8,T=1e-8,P=2*Math.PI,k=P/4,C=0,M=Math.sqrt,D=Math.cos,A=Math.sin,O=function(t){return"string"==typeof t},L=function(t){return"function"==typeof t},I=function(t){return"number"==typeof t},F=function(t){return void 0===t},R=function(t){return"object"==typeof t},j=function(t){return!1!==t},B=function(){return"undefined"!=typeof window},V=function(t){return L(t)||O(t)},z="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},N=Array.isArray,G=/(?:-?\.?\d|\.)+/gi,H=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,q=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Y=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,$=/[+-]=-?[.\d]+/,W=/[^,'"\[\]\s]+/gi,X=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,U={},Z={},Q=function(t){return(Z=Pt(t,U))&&Pr},K=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},J=function(t,e){return!e&&console.warn(t)},tt=function(t,e){return t&&(U[t]=e)&&Z&&(Z[t]=e)||U},et=function(){return 0},rt={suppressEvents:!0,isStart:!0,kill:!1},nt={suppressEvents:!0,kill:!1},it={suppressEvents:!0},ot={},at=[],st={},lt={},ct={},ut=30,ht=[],pt="",ft=function(t){var e,r,n=t[0];if(R(n)||L(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ht.length;r--&&!ht[r].targetTest(n););e=ht[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ne(t[r],e)))||t.splice(r,1);return t},dt=function(t){return t._gsap||ft(oe(t))[0]._gsap},mt=function(t,e,r){return(r=t[e])&&L(r)?t[e]():F(r)&&t.getAttribute&&t.getAttribute(e)||r},yt=function(t,e){return(t=t.split(",")).forEach(e)||t},gt=function(t){return Math.round(1e5*t)/1e5||0},vt=function(t){return Math.round(1e7*t)/1e7||0},bt=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},wt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},xt=function(){var t,e,r=at.length,n=at.slice(0);for(st={},at.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},St=function(t,e,r,n){at.length&&!l&&xt(),t.render(e,r,n||l&&e<0&&(t._initted||t._startAt)),at.length&&!l&&xt()},_t=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(W).length<2?e:O(t)?t.trim():t},Et=function(t){return t},Tt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Pt=function(t,e){for(var r in e)t[r]=e[r];return t},kt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=R(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Ct=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Mt=function(t){var e,r=t.parent||u,n=t.keyframes?(e=N(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Tt;if(j(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Dt=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var o,a=t[n];if(i)for(o=e[i];a&&a[i]>o;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t,e},At=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,o=e._next;i?i._next=o:t[r]===e&&(t[r]=o),o?o._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},Ot=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Lt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},It=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Ft=function(t,e,r,n){return t._startAt&&(l?t._startAt.revert(nt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Rt=function t(e){return!e||e._ts&&t(e.parent)},jt=function(t){return t._repeat?Bt(t._tTime,t=t.duration()+t._rDelay)*t:0},Bt=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},Vt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},zt=function(t){return t._end=vt(t._start+(t._tDur/Math.abs(t._ts||t._rts||T)||0))},Nt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=vt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),zt(t),r._dirty||Lt(r,t)),t},Gt=function(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=Vt(t.rawTime(),e),(!e._dur||te(0,e.totalDuration(),r)-e._tTime>T)&&e.render(r,!0)),Lt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},Ht=function(t,e,r,n){return e.parent&&Ot(e),e._start=vt((I(r)?r:r||t!==u?Qt(t,r,e):t._time)+e._delay),e._end=vt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Dt(t,e,"_first","_last",t._sort?"_start":0),Wt(e)||(t._recent=e),n||Gt(t,e),t._ts<0&&Nt(t,t._tTime),t},qt=function(t,e){return(U.ScrollTrigger||K("scrollTrigger",e))&&U.ScrollTrigger.create(e,t)},Yt=function(t,e,r,n,i){return Ue(t,e,i),t._initted?!r&&t._pt&&!l&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&m!==Ce.frame?(at.push(t),t._lazy=[i,n],1):void 0:1},$t=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Wt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Xt=function(t,e,r,n){var i=t._repeat,o=vt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:vt(o*(i+1)+t._rDelay*i):o,a>0&&!n&&Nt(t,t._tTime=t._tDur*a),t.parent&&zt(t),r||Lt(t.parent,t),t},Ut=function(t){return t instanceof He?Lt(t):Xt(t,t._dur)},Zt={_start:0,endTime:et,totalDuration:et},Qt=function t(e,r,n){var i,o,a,s=e.labels,l=e._recent||Zt,c=e.duration()>=E?l.endTime(!1):e._dur;return O(r)&&(isNaN(r)||r in s)?(o=r.charAt(0),a="%"===r.substr(-1),i=r.indexOf("="),"<"===o||">"===o?(i>=0&&(r=r.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?l:n).totalDuration()/100:1)):i<0?(r in s||(s[r]=c),s[r]):(o=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(o=o/100*(N(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+o:c+o)):null==r?c:+r},Kt=function(t,e,r){var n,i,o=I(e[1]),a=(o?2:1)+(t<2?0:1),s=e[a];if(o&&(s.duration=e[1]),s.parent=r,t){for(n=s,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=j(i.vars.inherit)&&i.parent;s.immediateRender=j(n.immediateRender),t<2?s.runBackwards=1:s.startAt=e[a-1]}return new tr(e[0],s,e[a+1])},Jt=function(t,e){return t||0===t?e(t):e},te=function(t,e,r){return r<t?t:r>e?e:r},ee=function(t,e){return O(t)&&(e=X.exec(t))?e[1]:""},re=[].slice,ne=function(t,e){return t&&R(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&R(t[0]))&&!t.nodeType&&t!==h},ie=function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return O(t)&&!e||ne(t,1)?(n=r).push.apply(n,oe(t)):r.push(t)}))||r},oe=function(t,e,r){return c&&!e&&c.selector?c.selector(t):!O(t)||r||!p&&Me()?N(t)?ie(t,r):ne(t)?re.call(t,0):t?[t]:[]:re.call((e||f).querySelectorAll(t),0)},ae=function(t){return t=oe(t)[0]||J("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return oe(e,r.querySelectorAll?r:r===t?J("Invalid scope")||f.createElement("div"):t)}},se=function(t){return t.sort((function(){return.5-Math.random()}))},le=function(t){if(L(t))return t;var e=R(t)?t:{each:t},r=Re(e.ease),n=e.from||0,i=parseFloat(e.base)||0,o={},a=n>0&&n<1,s=isNaN(n)||a,l=e.axis,c=n,u=n;return O(n)?c=u={center:.5,edges:.5,end:1}[n]||0:!a&&s&&(c=n[0],u=n[1]),function(t,a,h){var p,f,d,m,y,g,v,b,w,x=(h||e).length,S=o[x];if(!S){if(!(w="auto"===e.grid?0:(e.grid||[1,E])[1])){for(v=-E;v<(v=h[w++].getBoundingClientRect().left)&&w<x;);w--}for(S=o[x]=[],p=s?Math.min(w,x)*c-.5:n%w,f=w===E?0:s?x*u/w-.5:n/w|0,v=0,b=E,g=0;g<x;g++)d=g%w-p,m=f-(g/w|0),S[g]=y=l?Math.abs("y"===l?m:d):M(d*d+m*m),y>v&&(v=y),y<b&&(b=y);"random"===n&&se(S),S.max=v-b,S.min=b,S.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(w>x?x-1:l?"y"===l?x/w:w:Math.max(w,x/w))||0)*("edges"===n?-1:1),S.b=x<0?i-x:i,S.u=ee(e.amount||e.each)||0,r=r&&x<0?Ie(r):r}return x=(S[t]-S.min)/S.max||0,vt(S.b+(r?r(x):x)*S.v)+S.u}},ce=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=vt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(I(r)?0:ee(r))}},ue=function(t,e){var r,n,i=N(t);return!i&&R(t)&&(r=i=t.radius||E,t.values?(t=oe(t.values),(n=!I(t[0]))&&(r*=r)):t=ce(t.increment)),Jt(e,i?L(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,o,a=parseFloat(n?e.x:e),s=parseFloat(n?e.y:0),l=E,c=0,u=t.length;u--;)(i=n?(i=t[u].x-a)*i+(o=t[u].y-s)*o:Math.abs(t[u]-a))<l&&(l=i,c=u);return c=!r||l<=r?t[c]:e,n||c===e||I(e)?c:c+ee(e)}:ce(t))},he=function(t,e,r,n){return Jt(N(t)?!e:!0===r?!!(r=0):!n,(function(){return N(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n}))},pe=function(t,e,r){return Jt(r,(function(r){return t[~~e(r)]}))},fe=function(t){for(var e,r,n,i,o=0,a="";~(e=t.indexOf("random(",o));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?W:G),a+=t.substr(o,e-o)+he(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),o=n+1;return a+t.substr(o,t.length-o)},de=function(t,e,r,n,i){var o=e-t,a=n-r;return Jt(i,(function(e){return r+((e-t)/o*a||0)}))},me=function(t,e,r){var n,i,o,a=t.labels,s=E;for(n in a)(i=a[n]-e)<0==!!r&&i&&s>(i=Math.abs(i))&&(o=n,s=i);return o},ye=function(t,e,r){var n,i,o,a=t.vars,s=a[e],l=c,u=t._ctx;if(s)return n=a[e+"Params"],i=a.callbackScope||t,r&&at.length&&xt(),u&&(c=u),o=n?s.apply(i,n):s.call(i),c=l,o},ge=function(t){return Ot(t),t.scrollTrigger&&t.scrollTrigger.kill(!!l),t.progress()<1&&ye(t,"onInterrupt"),t},ve=function(t){var e=(t=!t.name&&t.default||t).name,r=L(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:et,render:cr,add:We,kill:hr,modifier:ur,rawVars:0},o={targetTest:0,get:0,getSetter:or,aliases:{},register:0};if(Me(),t!==n){if(lt[e])return;Tt(n,Tt(Ct(t,i),o)),Pt(n.prototype,Pt(i,Ct(t,o))),lt[n.prop=e]=n,t.targetTest&&(ht.push(n),ot[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}tt(e,n),t.register&&t.register(Pr,n,dr)},be=255,we={aqua:[0,be,be],lime:[0,be,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,be],navy:[0,0,128],white:[be,be,be],olive:[128,128,0],yellow:[be,be,0],orange:[be,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[be,0,0],pink:[be,192,203],cyan:[0,be,be],transparent:[be,be,be,0]},xe=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*be+.5|0},Se=function(t,e,r){var n,i,o,a,s,l,c,u,h,p,f=t?I(t)?[t>>16,t>>8&be,t&be]:0:we.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),we[t])f=we[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+n+n+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&be,f&be,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&be,t&be]}else if("hsl"===t.substr(0,3))if(f=p=t.match(G),e){if(~t.indexOf("="))return f=t.match(H),r&&f.length<4&&(f[3]=1),f}else a=+f[0]%360/360,s=+f[1]/100,n=2*(l=+f[2]/100)-(i=l<=.5?l*(s+1):l+s-l*s),f.length>3&&(f[3]*=1),f[0]=xe(a+1/3,n,i),f[1]=xe(a,n,i),f[2]=xe(a-1/3,n,i);else f=t.match(G)||we.transparent;f=f.map(Number)}return e&&!p&&(n=f[0]/be,i=f[1]/be,o=f[2]/be,l=((c=Math.max(n,i,o))+(u=Math.min(n,i,o)))/2,c===u?a=s=0:(h=c-u,s=l>.5?h/(2-c-u):h/(c+u),a=c===n?(i-o)/h+(i<o?6:0):c===i?(o-n)/h+2:(n-i)/h+4,a*=60),f[0]=~~(a+.5),f[1]=~~(100*s+.5),f[2]=~~(100*l+.5)),r&&f.length<4&&(f[3]=1),f},_e=function(t){var e=[],r=[],n=-1;return t.split(Te).forEach((function(t){var i=t.match(q)||[];e.push.apply(e,i),r.push(n+=i.length+1)})),e.c=r,e},Ee=function(t,e,r){var n,i,o,a,s="",l=(t+s).match(Te),c=e?"hsla(":"rgba(",u=0;if(!l)return t;if(l=l.map((function(t){return(t=Se(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),r&&(o=_e(t),(n=r.c).join(s)!==o.c.join(s)))for(a=(i=t.replace(Te,"1").split(q)).length-1;u<a;u++)s+=i[u]+(~n.indexOf(u)?l.shift()||c+"0,0,0,0)":(o.length?o:l.length?l:r).shift());if(!i)for(a=(i=t.split(Te)).length-1;u<a;u++)s+=i[u]+l[u];return s+i[a]},Te=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in we)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Pe=/hsl[a]?\(/,ke=function(t){var e,r=t.join(" ");if(Te.lastIndex=0,Te.test(r))return e=Pe.test(r),t[1]=Ee(t[1],e),t[0]=Ee(t[0],e,_e(t[1])),!0},Ce=function(){var t,e,r,n,i,o,a=Date.now,s=500,l=33,c=a(),u=c,m=1e3/240,y=m,v=[],b=function r(h){var p,f,d,g,b=a()-u,w=!0===h;if(b>s&&(c+=b-l),((p=(d=(u+=b)-c)-y)>0||w)&&(g=++n.frame,i=d-1e3*n.time,n.time=d/=1e3,y+=p+(p>=m?4:m-p),f=1),w||(t=e(r)),f)for(o=0;o<v.length;o++)v[o](d,i,g,h)};return n={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){d&&(!p&&B()&&(h=p=window,f=h.document||{},U.gsap=Pr,(h.gsapVersions||(h.gsapVersions=[])).push(Pr.version),Q(Z||h.GreenSockGlobals||!h.gsap&&h||{}),r=h.requestAnimationFrame),t&&n.sleep(),e=r||function(t){return setTimeout(t,y-1e3*n.time+1|0)},g=1,b(2))},sleep:function(){(r?h.cancelAnimationFrame:clearTimeout)(t),g=0,e=et},lagSmoothing:function(t,e){s=t||1/0,l=Math.min(e||33,s)},fps:function(t){m=1e3/(t||240),y=1e3*n.time+m},add:function(t,e,r){var i=e?function(e,r,o,a){t(e,r,o,a),n.remove(i)}:t;return n.remove(t),v[r?"unshift":"push"](i),Me(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&o>=e&&o--},_listeners:v},n}(),Me=function(){return!g&&Ce.wake()},De={},Ae=/^[\d.\-M][\d.\-,\s]/,Oe=/["']/g,Le=function(t){for(var e,r,n,i={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,l=o.length;s<l;s++)r=o[s],e=s!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[a]=isNaN(n)?n.replace(Oe,"").trim():+n,a=r.substr(e+1).trim();return i},Ie=function(t){return function(e){return 1-t(1-e)}},Fe=function t(e,r){for(var n,i=e._first;i;)i instanceof He?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},Re=function(t,e){return t&&(L(t)?t:De[t]||function(t){var e=(t+"").split("("),r=De[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[Le(e[1])]:function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),n=t.indexOf("(",e);return t.substring(e,~n&&n<r?t.indexOf(")",r+1):r)}(t).split(",").map(_t)):De._CE&&Ae.test(t)?De._CE("",t):r}(t))||e},je=function(t,e,r,n){void 0===r&&(r=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 i,o={easeIn:e,easeOut:r,easeInOut:n};return yt(t,(function(t){for(var e in De[t]=U[t]=o,De[i=t.toLowerCase()]=r,o)De[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=De[t+"."+e]=o[e]})),o},Be=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ve=function t(e,r,n){var i=r>=1?r:1,o=(n||(e?.3:.45))/(r<1?r:1),a=o/P*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*A((t-a)*o)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Be(s);return o=P/o,l.config=function(r,n){return t(e,r,n)},l},ze=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Be(n);return i.config=function(r){return t(e,r)},i};yt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;je(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},(function(t){return 1-Math.pow(1-t,r)}),(function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),De.Linear.easeNone=De.none=De.Linear.easeIn,je("Elastic",Ve("in"),Ve("out"),Ve()),v=7.5625,w=1/(b=2.75),je("Bounce",(function(t){return 1-x(1-t)}),x=function(t){return t<w?v*t*t:t<.7272727272727273?v*Math.pow(t-1.5/b,2)+.75:t<.9090909090909092?v*(t-=2.25/b)*t+.9375:v*Math.pow(t-2.625/b,2)+.984375}),je("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),je("Circ",(function(t){return-(M(1-t*t)-1)})),je("Sine",(function(t){return 1===t?1:1-D(t*k)})),je("Back",ze("in"),ze("out"),ze()),De.SteppedEase=De.steps=U.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*te(0,.99999999,t)|0)+i)*r}}},_.ease=De["quad.out"],yt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return pt+=t+","+t+"Params,"}));var Ne=function(t,e){this.id=C++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:mt,this.set=e?e.getSetter:or},Ge=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Xt(this,+t.duration,1,1),this.data=t.data,c&&(this._ctx=c,c.data.push(this)),g||Ce.wake()}var e=t.prototype;return e.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},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Xt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Me(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Nt(this,t),!r._dp||r.parent||Gt(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Ht(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===T||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),St(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+jt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+jt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Bt(this._tTime,r)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Vt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(te(-this._delay,this._tDur,e),!0),zt(this),It(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Me(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==T&&(this._tTime-=T)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Ht(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(j(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.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?Vt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=it);var e=l;return l=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),l=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1:this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Ut(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Ut(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Qt(this,t),j(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,j(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-T))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=L(t)?t:Et,i=function(){var t=e.then;e.then=null,L(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){ge(this)},t}();Tt(Ge.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:-1e-8,_prom:0,_ps:!1,_rts:1});var He=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=j(e.sortChildren),u&&Ht(e.parent||u,o(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&qt(o(n),e.scrollTrigger),n}a(e,t);var r=e.prototype;return r.to=function(t,e,r){return Kt(0,arguments,this),this},r.from=function(t,e,r){return Kt(1,arguments,this),this},r.fromTo=function(t,e,r,n){return Kt(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Mt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new tr(t,e,Qt(this,r),1),this},r.call=function(t,e,r){return Ht(this,tr.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,i,o,a){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=o,r.onCompleteParams=a,r.parent=this,new tr(t,r,Qt(this,i)),this},r.staggerFrom=function(t,e,r,n,i,o,a){return r.runBackwards=1,Mt(r).immediateRender=j(r.immediateRender),this.staggerTo(t,e,r,n,i,o,a)},r.staggerFromTo=function(t,e,r,n,i,o,a,s){return n.startAt=r,Mt(n).immediateRender=j(n.immediateRender),this.staggerTo(t,e,n,i,o,a,s)},r.render=function(t,e,r){var n,i,o,a,s,c,h,p,f,d,m,y,g=this._time,v=this._dirty?this.totalDuration():this._tDur,b=this._dur,w=t<=0?0:vt(t),x=this._zTime<0!=t<0&&(this._initted||!b);if(this!==u&&w>v&&t>=0&&(w=v),w!==this._tTime||r||x){if(g!==this._time&&b&&(w+=this._time-g,t+=this._time-g),n=w,f=this._start,c=!(p=this._ts),x&&(b||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(m=this._yoyo,s=b+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,r);if(n=vt(w%s),w===v?(a=this._repeat,n=b):((a=~~(w/s))&&a===w/s&&(n=b,a--),n>b&&(n=b)),d=Bt(this._tTime,s),!g&&this._tTime&&d!==a&&(d=a),m&&1&a&&(n=b-n,y=1),a!==d&&!this._lock){var S=m&&1&d,_=S===(m&&1&a);if(a<d&&(S=!S),g=S?0:b,this._lock=1,this.render(g||(y?0:vt(a*s)),e,!b)._lock=0,this._tTime=w,!e&&this.parent&&ye(this,"onRepeat"),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1),g&&g!==this._time||c!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(b=this._dur,v=this._tDur,_&&(this._lock=2,g=S?b:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!c)return this;Fe(this,y)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,vt(g),vt(n)),h&&(w-=n-(n=h._start))),this._tTime=w,this._time=n,this._act=!p,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&n&&!e&&(ye(this,"onStart"),this._tTime!==w))return this;if(n>=g&&t>=0)for(i=this._first;i;){if(o=i._next,(i._act||n>=i._start)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!c){h=0,o&&(w+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var E=t<0?t:n;i;){if(o=i._prev,(i._act||E<=i._end)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(E-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(E-i._start)*i._ts,e,r||l&&(i._initted||i._startAt)),n!==this._time||!this._ts&&!c){h=0,o&&(w+=this._zTime=E?-1e-8:T);break}}i=o}}if(h&&!e&&(this.pause(),h.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=f,zt(this),this.render(t,e,r);this._onUpdate&&!e&&ye(this,"onUpdate",!0),(w===v&&this._tTime>=this.totalDuration()||!w&&g)&&(f!==this._start&&Math.abs(p)===Math.abs(this._ts)||this._lock||((t||!b)&&(w===v&&this._ts>0||!w&&this._ts<0)&&Ot(this,1),e||t<0&&!g||!w&&!g&&v||(ye(this,w===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(w<v&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(I(e)||(e=Qt(this,e,t)),!(t instanceof Ge)){if(N(t))return t.forEach((function(t){return r.add(t,e)})),this;if(O(t))return this.addLabel(t,e);if(!L(t))return this;t=tr.delayedCall(0,t)}return this!==t?Ht(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-E);for(var i=[],o=this._first;o;)o._start>=n&&(o instanceof tr?e&&i.push(o):(r&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,r)))),o=o._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return O(t)?this.removeLabel(t):L(t)?this.killTweensOf(t):(At(this,t),t===this._recent&&(this._recent=this._last),Lt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=vt(Ce.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=Qt(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=tr.delayedCall(0,e||et,r);return n.data="isPause",this._hasPause=1,Ht(this,n,Qt(this,t))},r.removePause=function(t){var e=this._first;for(t=Qt(this,t);e;)e._start===t&&"isPause"===e.data&&Ot(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)qe!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=oe(t),o=this._first,a=I(e);o;)o instanceof tr?wt(o._targets,i)&&(a?(!qe||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&n.push(o):(r=o.getTweensOf(i,e)).length&&n.push.apply(n,r),o=o._next;return n},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=Qt(n,t),o=e,a=o.startAt,s=o.onStart,l=o.onStartParams,c=o.immediateRender,u=tr.to(n,Tt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale())||T,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());u._dur!==t&&Xt(u,t,0,1).render(u._time,!0,!0),r=1}s&&s.apply(u,l||[])}},e));return c?u.render(0):u},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Tt({startAt:{time:Qt(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),me(this,Qt(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),me(this,Qt(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+T)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,o=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in o)o[n]>=r&&(o[n]+=t);return Lt(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Lt(this)},r.totalDuration=function(t){var e,r,n,i=0,o=this,a=o._last,s=E;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(n=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>s&&o._sort&&a._ts&&!o._lock?(o._lock=1,Ht(o,a,r-a._delay,1)._lock=0):s=r,r<0&&a._ts&&(i-=r,(!n&&!o._dp||n&&n.smoothChildTiming)&&(o._start+=r/o._ts,o._time-=r,o._tTime-=r),o.shiftChildren(-r,!1,-Infinity),s=0),a._end>i&&a._ts&&(i=a._end),a=e;Xt(o,o===u&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(u._ts&&(St(u,Vt(t,u)),m=Ce.frame),Ce.frame>=ut){ut+=S.autoSleep||120;var e=u._first;if((!e||!e._ts)&&S.autoSleep&&Ce._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ce.sleep()}}},e}(Ge);Tt(He.prototype,{_lock:0,_hasPause:0,_forcing:0});var qe,Ye,$e=function(t,e,r,n,i,o,a){var s,l,c,u,h,p,f,d,m=new dr(this._pt,t,e,0,1,lr,null,i),y=0,g=0;for(m.b=r,m.e=n,r+="",(f=~(n+="").indexOf("random("))&&(n=fe(n)),o&&(o(d=[r,n],t,e),r=d[0],n=d[1]),l=r.match(Y)||[];s=Y.exec(n);)u=s[0],h=n.substring(y,s.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),u!==l[g++]&&(p=parseFloat(l[g-1])||0,m._pt={_next:m._pt,p:h||1===g?h:",",s:p,c:"="===u.charAt(1)?bt(p,u)-p:parseFloat(u)-p,m:c&&c<4?Math.round:0},y=Y.lastIndex);return m.c=y<n.length?n.substring(y,n.length):"",m.fp=a,($.test(n)||f)&&(m.e=0),this._pt=m,m},We=function(t,e,r,n,i,o,a,s,l,c){L(n)&&(n=n(i||0,t,o));var u,h=t[e],p="get"!==r?r:L(h)?l?t[e.indexOf("set")||!L(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,f=L(h)?l?nr:rr:er;if(O(n)&&(~n.indexOf("random(")&&(n=fe(n)),"="===n.charAt(1)&&((u=bt(p,n)+(ee(p)||0))||0===u)&&(n=u)),!c||p!==n||Ye)return isNaN(p*n)||""===n?(!h&&!(e in t)&&K(e,n),$e.call(this,t,e,p,n,f,s||S.stringFilter,l)):(u=new dr(this._pt,t,e,+p||0,n-(p||0),"boolean"==typeof h?sr:ar,0,f),l&&(u.fp=l),a&&u.modifier(a,this,t),this._pt=u)},Xe=function(t,e,r,n,i,o){var a,s,l,c;if(lt[t]&&!1!==(a=new lt[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(L(t)&&(t=Qe(t,i,e,r,n)),!R(t)||t.style&&t.nodeType||N(t)||z(t))return O(t)?Qe(t,i,e,r,n):t;var o,a={};for(o in t)a[o]=Qe(t[o],i,e,r,n);return a}(e[t],n,i,o,r),r,n,o)&&(r._pt=s=new dr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==y))for(l=r._ptLookup[r._targets.indexOf(i)],c=a._props.length;c--;)l[a._props[c]]=s;return a},Ue=function t(e,r,n){var i,o,a,c,h,p,f,d,m,y,g,v,b,w=e.vars,x=w.ease,S=w.startAt,P=w.immediateRender,k=w.lazy,C=w.onUpdate,M=w.onUpdateParams,D=w.callbackScope,A=w.runBackwards,O=w.yoyoEase,L=w.keyframes,I=w.autoRevert,F=e._dur,R=e._startAt,B=e._targets,V=e.parent,z=V&&"nested"===V.data?V.vars.targets:B,N="auto"===e._overwrite&&!s,G=e.timeline;if(G&&(!L||!x)&&(x="none"),e._ease=Re(x,_.ease),e._yEase=O?Ie(Re(!0===O?x:O,_.ease)):0,O&&e._yoyo&&!e._repeat&&(O=e._yEase,e._yEase=e._ease,e._ease=O),e._from=!G&&!!w.runBackwards,!G||L&&!w.stagger){if(v=(d=B[0]?dt(B[0]).harness:0)&&w[d.prop],i=Ct(w,ot),R&&(R._zTime<0&&R.progress(1),r<0&&A&&P&&!I?R.render(-1,!0):R.revert(A&&F?nt:rt),R._lazy=0),S){if(Ot(e._startAt=tr.set(B,Tt({data:"isStart",overwrite:!1,parent:V,immediateRender:!0,lazy:!R&&j(k),startAt:null,delay:0,onUpdate:C,onUpdateParams:M,callbackScope:D,stagger:0},S))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(l||!P&&!I)&&e._startAt.revert(nt),P&&F&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(A&&F&&!R)if(r&&(P=!1),a=Tt({overwrite:!1,data:"isFromStart",lazy:P&&!R&&j(k),immediateRender:P,stagger:0,parent:V},i),v&&(a[d.prop]=v),Ot(e._startAt=tr.set(B,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(l?e._startAt.revert(nt):e._startAt.render(-1,!0)),e._zTime=r,P){if(!r)return}else t(e._startAt,T,T);for(e._pt=e._ptCache=0,k=F&&j(k)||k&&!F,o=0;o<B.length;o++){if(f=(h=B[o])._gsap||ft(B)[o]._gsap,e._ptLookup[o]=y={},st[f.id]&&at.length&&xt(),g=z===B?o:z.indexOf(h),d&&!1!==(m=new d).init(h,v||i,e,g,z)&&(e._pt=c=new dr(e._pt,h,m.name,0,1,m.render,m,0,m.priority),m._props.forEach((function(t){y[t]=c})),m.priority&&(p=1)),!d||v)for(a in i)lt[a]&&(m=Xe(a,i,e,g,h,z))?m.priority&&(p=1):y[a]=c=We.call(e,h,a,"get",i[a],g,z,0,w.stringFilter);e._op&&e._op[o]&&e.kill(h,e._op[o]),N&&e._pt&&(qe=e,u.killTweensOf(h,y,e.globalTime(r)),b=!e.parent,qe=0),e._pt&&k&&(st[f.id]=1)}p&&fr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!b,L&&r<=0&&G.render(E,!0,!0)},Ze=function(t,e,r,n){var i,o,a=e.ease||n||"power1.inOut";if(N(e))o=r[t]||(r[t]=[]),e.forEach((function(t,r){return o.push({t:r/(e.length-1)*100,v:t,e:a})}));else for(i in e)o=r[i]||(r[i]=[]),"ease"===i||o.push({t:parseFloat(t),v:e[i],e:a})},Qe=function(t,e,r,n,i){return L(t)?t.call(e,r,n,i):O(t)&&~t.indexOf("random(")?fe(t):t},Ke=pt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Je={};yt(Ke+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return Je[t]=1}));var tr=function(t){function e(e,r,n,i){var a;"number"==typeof r&&(n.duration=r,r=n,n=null);var l,c,h,p,f,d,m,y,g=(a=t.call(this,i?r:Mt(r))||this).vars,v=g.duration,b=g.delay,w=g.immediateRender,x=g.stagger,_=g.overwrite,E=g.keyframes,T=g.defaults,P=g.scrollTrigger,k=g.yoyoEase,C=r.parent||u,M=(N(e)||z(e)?I(e[0]):"length"in r)?[e]:oe(e);if(a._targets=M.length?ft(M):J("GSAP target "+e+" not found. https://greensock.com",!S.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,E||x||V(v)||V(b)){if(r=a.vars,(l=a.timeline=new He({data:"nested",defaults:T||{},targets:C&&"nested"===C.data?C.vars.targets:M})).kill(),l.parent=l._dp=o(a),l._start=0,x||V(v)||V(b)){if(p=M.length,m=x&&le(x),R(x))for(f in x)~Ke.indexOf(f)&&(y||(y={}),y[f]=x[f]);for(c=0;c<p;c++)(h=Ct(r,Je)).stagger=0,k&&(h.yoyoEase=k),y&&Pt(h,y),d=M[c],h.duration=+Qe(v,o(a),c,d,M),h.delay=(+Qe(b,o(a),c,d,M)||0)-a._delay,!x&&1===p&&h.delay&&(a._delay=b=h.delay,a._start+=b,h.delay=0),l.to(d,h,m?m(c,d,M):0),l._ease=De.none;l.duration()?v=b=0:a.timeline=0}else if(E){Mt(Tt(l.vars.defaults,{ease:"none"})),l._ease=Re(E.ease||r.ease||"none");var D,A,O,L=0;if(N(E))E.forEach((function(t){return l.to(M,t,">")})),l.duration();else{for(f in h={},E)"ease"===f||"easeEach"===f||Ze(f,E[f],h,E.easeEach);for(f in h)for(D=h[f].sort((function(t,e){return t.t-e.t})),L=0,c=0;c<D.length;c++)(O={ease:(A=D[c]).e,duration:(A.t-(c?D[c-1].t:0))/100*v})[f]=A.v,l.to(M,O,L),L+=O.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||a.duration(v=l.duration())}else a.timeline=0;return!0!==_||s||(qe=o(a),u.killTweensOf(M),qe=0),Ht(C,o(a),n),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(w||!v&&!E&&a._start===vt(C._time)&&j(w)&&Rt(o(a))&&"nested"!==C.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-b)||0)),P&&qt(o(a),P),a}a(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,o,a,s,c,u,h,p,f=this._time,d=this._tDur,m=this._dur,y=t<0,g=t>d-T&&!y?d:t<T?0:t;if(m){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==y){if(n=g,h=this.timeline,this._repeat){if(a=m+this._rDelay,this._repeat<-1&&y)return this.totalTime(100*a+t,e,r);if(n=vt(g%a),g===d?(o=this._repeat,n=m):((o=~~(g/a))&&o===g/a&&(n=m,o--),n>m&&(n=m)),(c=this._yoyo&&1&o)&&(p=this._yEase,n=m-n),s=Bt(this._tTime,a),n===f&&!r&&this._initted)return this._tTime=g,this;o!==s&&(h&&this._yEase&&Fe(h,c),!this.vars.repeatRefresh||c||this._lock||(this._lock=r=1,this.render(vt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Yt(this,y?t:n,r,e,g))return this._tTime=0,this;if(f!==this._time)return this;if(m!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(p||this._ease)(n/m),this._from&&(this.ratio=u=1-u),n&&!f&&!e&&(ye(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;h&&h.render(t<0?t:!n&&c?-1e-8:h._dur*h._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(y&&Ft(this,t,0,r),ye(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&ye(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(y&&!this._onUpdate&&Ft(this,t,0,!0),(t||!m)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Ot(this,1),e||y&&!f||!(g||f||c)||(ye(this,g===d?"onComplete":"onReverseComplete",!0),this._prom&&!(g<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,o,a,s=t.ratio,c=e<0||!e&&(!t._start&&$t(t)&&(t._initted||!Wt(t))||(t._ts<0||t._dp._ts<0)&&!Wt(t))?0:1,u=t._rDelay,h=0;if(u&&t._repeat&&(h=te(0,t._tDur,e),o=Bt(h,u),t._yoyo&&1&o&&(c=1-c),o!==Bt(t._tTime,u)&&(s=1-c,t.vars.repeatRefresh&&t._initted&&t.invalidate())),c!==s||l||n||t._zTime===T||!e&&t._zTime){if(!t._initted&&Yt(t,e,n,r,h))return;for(a=t._zTime,t._zTime=e||(r?T:0),r||(r=e&&!a),t.ratio=c,t._from&&(c=1-c),t._time=0,t._tTime=h,i=t._pt;i;)i.r(c,i.d),i=i._next;e<0&&Ft(t,e,0,!0),t._onUpdate&&!r&&ye(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&ye(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===c&&(c&&Ot(t,1),r||l||(ye(t,c?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n){g||Ce.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ue(this,i),function(t,e,r,n,i,o,a){var s,l,c,u,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,u=t._targets.length;u--;){if((s=c[u][e])&&s.d&&s.d._pt)for(s=s.d._pt;s&&s.p!==e&&s.fp!==e;)s=s._next;if(!s)return Ye=1,t.vars[e]="+=0",Ue(t,a),Ye=0,1;h.push(s)}for(u=h.length;u--;)(s=(l=h[u])._pt||l).s=!n&&0!==n||i?s.s+(n||0)+o*s.c:n,s.c=r-s.s,l.e&&(l.e=gt(r)+ee(l.e)),l.b&&(l.b=s.s+ee(l.b))}(this,t,e,r,n,this._ease(i/this._dur),i)?this.resetTo(t,e,r,n):(Nt(this,0),this.parent||Dt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ge(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,qe&&!0!==qe.vars.overwrite)._first||ge(this),this.parent&&r!==this.timeline.totalDuration()&&Xt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,o,a,s,l,c,u=this._targets,h=t?oe(t):u,p=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(u,h))return"all"===e&&(this._pt=0),ge(this);for(n=this._op=this._op||[],"all"!==e&&(O(e)&&(s={},yt(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var r,n,i,o,a=t[0]?dt(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(n in r=Pt({},e),s)if(n in r)for(i=(o=s[n].split(",")).length;i--;)r[o[i]]=r[n];return r}(u,e)),c=u.length;c--;)if(~h.indexOf(u[c]))for(s in i=p[c],"all"===e?(n[c]=e,a=i,o={}):(o=n[c]=n[c]||{},a=e),a)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||At(this,l,"_pt"),delete i[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&f&&ge(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Kt(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return Kt(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return u.killTweensOf(t,e,r)},e}(Ge);Tt(tr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),yt("staggerTo,staggerFrom,staggerFromTo",(function(t){tr[t]=function(){var e=new He,r=re.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var er=function(t,e,r){return t[e]=r},rr=function(t,e,r){return t[e](r)},nr=function(t,e,r,n){return t[e](n.fp,r)},ir=function(t,e,r){return t.setAttribute(e,r)},or=function(t,e){return L(t[e])?rr:F(t[e])&&t.setAttribute?ir:er},ar=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},sr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},lr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},cr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ur=function(t,e,r,n){for(var i,o=this._pt;o;)i=o._next,o.p===n&&o.modifier(t,e,r),o=i},hr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?At(this,n,"_pt"):n.dep||(e=1),n=r;return!e},pr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},fr=function(t){for(var e,r,n,i,o=t._pt;o;){for(e=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:i)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:i=o,o=e}t._pt=n},dr=function(){function t(t,e,r,n,i,o,a,s,l){this.t=e,this.s=n,this.c=i,this.p=r,this.r=o||ar,this.d=a||this,this.set=s||er,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=pr,this.m=t,this.mt=r,this.tween=e},t}();yt(pt+"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 ot[t]=1})),U.TweenMax=U.TweenLite=tr,U.TimelineLite=U.TimelineMax=He,u=new He({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),S.stringFilter=ke;var mr=[],yr={},gr=[],vr=0,br=function(t){return(yr[t]||gr).map((function(t){return t()}))},wr=function(){var t=Date.now(),e=[];t-vr>2&&(br("matchMediaInit"),mr.forEach((function(t){var r,n,i,o,a=t.queries,s=t.conditions;for(n in a)(r=h.matchMedia(a[n]).matches)&&(i=1),r!==s[n]&&(s[n]=r,o=1);o&&(t.revert(),i&&e.push(t))})),br("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),vr=t,br("matchMedia"))},xr=function(){function t(t,e){this.selector=e&&ae(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){L(t)&&(r=e,e=t,t=L);var n=this,i=function(){var t,i=c,o=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=ae(r)),c=n,t=e.apply(n,arguments),L(t)&&n._r.push(t),c=i,n.selector=o,n.isReverted=!1,t};return n.last=i,t===L?i(n):t?n[t]=i:i},e.ignore=function(t){var e=c;c=null,t(this),c=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof tr&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t){var n=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(t){return n.splice(n.indexOf(t),1)})))})),n.map((function(t){return{g:t.globalTime(0),t}})).sort((function(t,e){return e.g-t.g||-1})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof Ge)&&e.revert&&e.revert(t)})),this._r.forEach((function(e){return e(t,r)})),this.isReverted=!0}else this.data.forEach((function(t){return t.kill&&t.kill()}));if(this.clear(),e){var i=mr.indexOf(this);~i&&mr.splice(i,1)}},e.revert=function(t){this.kill(t||{})},t}(),Sr=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,r){R(t)||(t={matches:t});var n,i,o,a=new xr(0,r||this.scope),s=a.conditions={};for(i in this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?o=1:(n=h.matchMedia(t[i]))&&(mr.indexOf(a)<0&&mr.push(a),(s[i]=n.matches)&&(o=1),n.addListener?n.addListener(wr):n.addEventListener("change",wr));return o&&e(a),this},e.revert=function(t){this.kill(t||{})}
vendor: 6,920 bytes, line 2
2,e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),_r={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach((function(t){return ve(t)}))},timeline:function(t){return new He(t)},getTweensOf:function(t,e){return u.getTweensOf(t,e)},getProperty:function(t,e,r,n){O(t)&&(t=oe(t)[0]);var i=dt(t||{}).get,o=r?Et:_t;return"native"===r&&(r=""),t?e?o((lt[e]&&lt[e].get||i)(t,e,r,n)):function(e,r,n){return o((lt[e]&&lt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=oe(t)).length>1){var n=t.map((function(t){return Pr.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var o=lt[e],a=dt(t),s=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(e){var n=new o;y._pt=0,n.init(t,r?e+r:e,y,0,[t]),n.render(1,n),y._pt&&cr(1,y)}:a.set(t,s);return o?l:function(e){return l(t,s,r?e+r:e,a,1)}},quickTo:function(t,e,r){var n,i=Pr.to(t,Pt(((n={})[e]="+=0.1",n.paused=!0,n),r||{})),o=function(t,r,n){return i.resetTo(e,t,r,n)};return o.tween=i,o},isTweening:function(t){return u.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Re(t.ease,_.ease)),kt(_,t||{})},config:function(t){return kt(S,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!lt[t]&&!U[t]&&J(e+" effect requires "+t+" plugin.")})),ct[e]=function(t,e,n){return r(oe(t),Tt(e||{},i),n)},o&&(He.prototype[e]=function(t,r,n){return this.add(ct[e](t,R(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){De[t]=Re(e)},parseEase:function(t,e){return arguments.length?Re(t,e):De},getById:function(t){return u.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new He(t);for(i.smoothChildTiming=j(t.smoothChildTiming),u.remove(i),i._dp=0,i._time=i._tTime=u._time,r=u._first;r;)n=r._next,!e&&!r._dur&&r instanceof tr&&r.vars.onComplete===r._targets[0]||Ht(i,r,r._start-r._delay),r=n;return Ht(u,i,0),i},context:function(t,e){return t?new xr(t,e):c},matchMedia:function(t){return new Sr(t)},matchMediaRefresh:function(){return mr.forEach((function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()}))||wr()},addEventListener:function(t,e){var r=yr[t]||(yr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=yr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return N(e)?pe(e,t(0,e.length),r):Jt(n,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,r,n){var i=r-e,o=2*i;return N(e)?pe(e,t(0,e.length-1),r):Jt(n,(function(t){return e+((t=(o+(t-e)%o)%o||0)>i?o-t:t)}))},distribute:le,random:he,snap:ue,normalize:function(t,e,r){return de(t,e,0,1,r)},getUnit:ee,clamp:function(t,e,r){return Jt(r,(function(r){return te(t,e,r)}))},splitColor:Se,toArray:oe,selector:ae,mapRange:de,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||ee(r))}},interpolate:function t(e,r,n,i){var o=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!o){var a,s,l,c,u,h=O(e),p={};if(!0===n&&(i=1)&&(n=null),h)e={p:e},r={p:r};else if(N(e)&&!N(r)){for(l=[],c=e.length,u=c-2,s=1;s<c;s++)l.push(t(e[s-1],e[s]));c--,o=function(t){t*=c;var e=Math.min(u,~~t);return l[e](t-e)},n=r}else i||(e=Pt(N(e)?[]:{},e));if(!l){for(a in r)We.call(p,e,a,"get",r[a]);o=function(t){return cr(t,p)||(h?e.p:e)}}}return Jt(n,o)},shuffle:se},install:Q,effects:ct,ticker:Ce,updateRoot:He.updateRoot,plugins:lt,globalTimeline:u,core:{PropTween:dr,globals:tt,Tween:tr,Timeline:He,Animation:Ge,getCache:dt,_removeLinkedListItem:At,reverting:function(){return l},context:function(t){return t&&c&&(c.data.push(t),t._ctx=c),c},suppressOverwrites:function(t){return s=t}}};yt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return _r[t]=tr[t]})),Ce.add(He.updateRoot),y=_r.to({},{duration:0});var Er=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Tr=function(t,e){return{name:t,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(O(r)&&(n={},yt(r,(function(t){return n[t]=1})),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,o=t._targets;for(r in e)for(n=o.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=Er(i,r)),i&&i.modifier&&i.modifier(e[r],t,o[n],r))}(t,r)}}}},Pr=_r.registerPlugin({name:"attr",init:function(t,e,r,n,i){var o,a,s;for(o in this.tween=r,e)s=t.getAttribute(o)||"",(a=this.add(t,"setAttribute",(s||0)+"",e[o],n,i,0,0,o)).op=o,a.b=s,this._props.push(o)},render:function(t,e){for(var r=e._pt;r;)l?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Tr("roundProps",ce),Tr("modifiers"),Tr("snap",ue))||_r;tr.version=He.version=Pr.version="3.11.4",d=1,B()&&Me();De.Power0;var kr,Cr,Mr,Dr,Ar,Or,Lr,Ir,Fr=De.Power1,Rr=(De.Power2,De.Power3,De.Power4,De.Linear,De.Quad,De.Cubic,De.Quart,De.Quint,De.Strong,De.Elastic,De.Back,De.SteppedEase,De.Bounce,De.Sine,De.Expo,De.Circ,{}),jr=180/Math.PI,Br=Math.PI/180,Vr=Math.atan2,zr=/([A-Z])/g,Nr=/(left|right|width|margin|padding|x)/i,Gr=/[\s,\(]\S/,Hr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},qr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Yr=function(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)},$r=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Wr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Xr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Ur=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Zr=function(t,e,r){return t.style[e]=r},Qr=function(t,e,r){return t.style.setProperty(e,r)},Kr=function(t,e,r){return t._gsap[e]=r},Jr=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},tn=function(t,e,r,n,i){var o=t._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},en=function(t,e,r,n,i){var o=t._gsap;o[e]=r,o.renderTransform(i,o)},rn="transform",nn=rn+"Origin",on=function(t,e){var r=this,n=this.target,i=n.style;if(t in Rr){if(this.tfm=this.tfm||{},"transform"!==t&&(~(t=Hr[t]||t).indexOf(",")?t.split(",").forEach((function(t){return r.tfm[t]=_n(n,t)})):this.tfm[t]=n._gsap.x?n._gsap[t]:_n(n,t)),this.props.indexOf(rn)>=0)return;n._gsap.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(nn,e,"")),t=rn}(i||e)&&this.props.push(t,e,i[t])},an=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},sn=function(){var t,e,r=this.props,n=this.target,i=n.style,o=n._gsap;for(t=0;t<r.length;t+=3)r[t+1]?n[r[t]]=r[t+2]:r[t+2]?i[r[t]]=r[t+2]:i.removeProperty(r[t].replace(zr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];
vendor: 4,486 bytes, line 2
2o.svg&&(o.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),!(t=Lr())||t.isStart||i[rn]||(an(i),o.uncache=1)}},ln=function(t,e){var r={target:t,props:[],revert:sn,save:on};return e&&e.split(",").forEach((function(t){return r.save(t)})),r},cn=function(t,e){var r=Cr.createElementNS?Cr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Cr.createElement(t);return r.style?r:Cr.createElement(t)},un=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(zr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,pn(r)||r,1)||""},hn="O,Moz,ms,Ms,Webkit".split(","),pn=function(t,e,r){var n=(e||Ar).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(hn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?hn[i]:"")+t},fn=function(){"undefined"!=typeof window&&window.document&&(kr=window,Cr=kr.document,Mr=Cr.documentElement,Ar=cn("div")||{style:{}},cn("div"),rn=pn(rn),nn=rn+"Origin",Ar.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ir=!!pn("perspective"),Lr=Pr.core.reverting,Dr=1)},dn=function t(e){var r,n=cn("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(Mr.appendChild(n),n.appendChild(this),this.style.display="block",e)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(r=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),Mr.removeChild(n),this.style.cssText=a,r},mn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},yn=function(t){var e;try{e=t.getBBox()}catch(r){e=dn.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===dn||(e=dn.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+mn(t,["x","cx","x1"])||0,y:+mn(t,["y","cy","y1"])||0,width:0,height:0}},gn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!yn(t))},vn=function(t,e){if(e){var r=t.style;e in Rr&&e!==nn&&(e=rn),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(zr,"-$1").toLowerCase())):r.removeAttribute(e)}},bn=function(t,e,r,n,i,o){var a=new dr(t._pt,e,r,0,1,o?Ur:Xr);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},wn={deg:1,rad:1,turn:1},xn={grid:1,flex:1},Sn=function t(e,r,n,i){var o,a,s,l,c=parseFloat(n)||0,u=(n+"").trim().substr((c+"").length)||"px",h=Ar.style,p=Nr.test(r),f="svg"===e.tagName.toLowerCase(),d=(f?"client":"offset")+(p?"Width":"Height"),m=100,y="px"===i,g="%"===i;return i===u||!c||wn[i]||wn[u]?c:("px"!==u&&!y&&(c=t(e,r,n,"px")),l=e.getCTM&&gn(e),!g&&"%"!==u||!Rr[r]&&!~r.indexOf("adius")?(h[p?"width":"height"]=m+(y?u:i),a=~r.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Cr&&a.appendChild||(a=Cr.body),(s=a._gsap)&&g&&s.width&&p&&s.time===Ce.time&&!s.uncache?gt(c/s.width*m):((g||"%"===u)&&!xn[un(a,"display")]&&(h.position=un(e,"position")),a===e&&(h.position="static"),a.appendChild(Ar),o=Ar[d],a.removeChild(Ar),h.position="absolute",p&&g&&((s=dt(a)).time=Ce.time,s.width=a[d]),gt(y?o*c/m:o&&c?m/o*c:0))):(o=l?e.getBBox()[p?"width":"height"]:e[d],gt(g?c/o*m:c/100*o)))},_n=function(t,e,r,n){var i;return Dr||fn(),e in Hr&&"transform"!==e&&~(e=Hr[e]).indexOf(",")&&(e=e.split(",")[0]),Rr[e]&&"transform"!==e?(i=Fn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Rn(un(t,nn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Cn[e]&&Cn[e](t,e,r)||un(t,e)||mt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Sn(t,e,i,r)+r:i},En=function(t,e,r,n){if(!r||"none"===r){var i=pn(e,t,1),o=i&&un(t,i,1);o&&o!==r?(e=i,r=o):"borderColor"===e&&(r=un(t,"borderTopColor"))}var a,s,l,c,u,h,p,f,d,m,y,g=new dr(this._pt,t.style,e,0,1,lr),v=0,b=0;if(g.b=r,g.e=n,r+="","auto"===(n+="")&&(t.style[e]=n,n=un(t,e)||n,t.style[e]=r),ke(a=[r,n]),n=a[1],l=(r=a[0]).match(q)||[],(n.match(q)||[]).length){for(;s=q.exec(n);)p=s[0],d=n.substring(v,s.index),u?u=(u+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(u=1),p!==(h=l[b++]||"")&&(c=parseFloat(h)||0,y=h.substr((c+"").length),"="===p.charAt(1)&&(p=bt(c,p)+y),f=parseFloat(p),m=p.substr((f+"").length),v=q.lastIndex-m.length,m||(m=m||S.units[e]||y,v===n.length&&(n+=m,g.e+=m)),y!==m&&(c=Sn(t,e,h,m)||0),g._pt={_next:g._pt,p:d||1===b?d:",",s:c,c:f-c,m:u&&u<4||"zIndex"===e?Math.round:0});g.c=v<n.length?n.substring(v,n.length):""}
vendor: 3,827 bytes, line 2
2else g.r="display"===e&&"none"===n?Ur:Xr;return $.test(n)&&(g.e=0),this._pt=g,g},Tn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Pn=function(t){var e=t.split(" "),r=e[0],n=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==n&&"right"!==n||(t=r,r=n,n=t),e[0]=Tn[r]||r,e[1]=Tn[n]||n,e.join(" ")},kn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,o=e.t,a=o.style,s=e.u,l=o._gsap;if("all"===s||!0===s)a.cssText="",n=1;else for(i=(s=s.split(",")).length;--i>-1;)r=s[i],Rr[r]&&(n=1,r="transformOrigin"===r?nn:rn),vn(o,r);n&&(vn(o,rn),l&&(l.svg&&o.removeAttribute("transform"),Fn(o,1),l.uncache=1,an(a)))}},Cn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var o=t._pt=new dr(t._pt,e,r,0,0,kn);return o.u=n,o.pr=-10,o.tween=i,t._props.push(r),1}}},Mn=[1,0,0,1,0,0],Dn={},An=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},On=function(t){var e=un(t,rn);return An(e)?Mn:e.substr(7).match(H).map(gt)},Ln=function(t,e){var r,n,i,o,a=t._gsap||dt(t),s=t.style,l=On(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Mn:l:(l!==Mn||t.offsetParent||t===Mr||a.svg||(i=s.display,s.display="block",(r=t.parentNode)&&t.offsetParent||(o=1,n=t.nextElementSibling,Mr.appendChild(t)),l=On(t),i?s.display=i:vn(t,"display"),o&&(n?r.insertBefore(t,n):r?r.appendChild(t):Mr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},In=function(t,e,r,n,i,o){var a,s,l,c=t._gsap,u=i||Ln(t,!0),h=c.xOrigin||0,p=c.yOrigin||0,f=c.xOffset||0,d=c.yOffset||0,m=u[0],y=u[1],g=u[2],v=u[3],b=u[4],w=u[5],x=e.split(" "),S=parseFloat(x[0])||0,_=parseFloat(x[1])||0;r?u!==Mn&&(s=m*v-y*g)&&(l=S*(-y/s)+_*(m/s)-(m*w-y*b)/s,S=S*(v/s)+_*(-g/s)+(g*w-v*b)/s,_=l):(S=(a=yn(t)).x+(~x[0].indexOf("%")?S/100*a.width:S),_=a.y+(~(x[1]||x[0]).indexOf("%")?_/100*a.height:_)),n||!1!==n&&c.smooth?(b=S-h,w=_-p,c.xOffset=f+(b*m+w*g)-b,c.yOffset=d+(b*y+w*v)-w):c.xOffset=c.yOffset=0,c.xOrigin=S,c.yOrigin=_,c.smooth=!!n,c.origin=e,c.originIsAbsolute=!!r,t.style[nn]="0px 0px",o&&(bn(o,c,"xOrigin",h,S),bn(o,c,"yOrigin",p,_),bn(o,c,"xOffset",f,c.xOffset),bn(o,c,"yOffset",d,c.yOffset)),t.setAttribute("data-svg-origin",S+" "+_)},Fn=function(t,e){var r=t._gsap||new Ne(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,o,a,s,l,c,u,h,p,f,d,m,y,g,v,b,w,x,_,E,T,P,k,C,M,D,A,O,L,I,F,R=t.style,j=r.scaleX<0,B="px",V="deg",z=getComputedStyle(t),N=un(t,nn)||"0";return n=i=o=l=c=u=h=p=f=0,a=s=1,r.svg=!(!t.getCTM||!gn(t)),z.translate&&("none"===z.translate&&"none"===z.scale&&"none"===z.rotate||(R[rn]=("none"!==z.translate?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==z.rotate?"rotate("+z.rotate+") ":"")+("none"!==z.scale?"scale("+z.scale.split(" ").join(",")+") ":"")+("none"!==z[rn]?z[rn]:"")),R.scale=R.rotate=R.translate="none"),y=Ln(t,r.svg),r.svg&&(r.uncache?(C=t.getBBox(),N=r.xOrigin-C.x+"px "+(r.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),In(t,k||N,!!k||r.originIsAbsolute,!1!==r.smooth,y)),d=r.xOrigin||0,m=r.yOrigin||0,y!==Mn&&(w=y[0],x=y[1],_=y[2],E=y[3],n=T=y[4],i=P=y[5],6===y.length?(a=Math.sqrt(w*w+x*x),s=Math.sqrt(E*E+_*_),l=w||x?Vr(x,w)*jr:0,(h=_||E?Vr(_,E)*jr+l:0)&&(s*=Math.abs(Math.cos(h*Br))),r.svg&&(n-=d-(d*w+m*_),i-=m-(d*x+m*E))):(F=y[6],L=y[7],D=y[8],A=y[9],O=y[10],I=y[11],n=y[12],i=y[13],o=y[14],c=(g=Vr(F,O))*jr,g&&(k=T*(v=Math.cos(-g))+D*(b=Math.sin(-g)),C=P*v+A*b,M=F*v+O*b,D=T*-b+D*v,A=P*-b+A*v,O=F*-b+O*v,I=L*-b+I*v,T=k,P=C,F=M),u=(g=Vr(-_,O))*jr,g&&(v=Math.cos(-g),I=E*(b=Math.sin(-g))+I*v,w=k=w*v-D*b,x=C=x*v-A*b,_=M=_*v-O*b),l=(g=Vr(x,w))*jr,g&&(k=w*(v=Math.cos(g))+x*(b=Math.sin(g)),C=T*v+P*b,x=x*v-w*b,P=P*v-T*b,w=k,T=C),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),a=gt(Math.sqrt(w*w+x*x+_*_)),s=gt(Math.sqrt(P*P+F*F)
vendor: 47,717 bytes, line 2
2),g=Vr(T,P),h=Math.abs(g)>2e-4?g*jr:0,f=I?1/(I<0?-I:I):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!An(un(t,rn)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(j?(a*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+B,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+B,r.z=o+B,r.scaleX=gt(a),r.scaleY=gt(s),r.rotation=gt(l)+V,r.rotationX=gt(c)+V,r.rotationY=gt(u)+V,r.skewX=h+V,r.skewY=p+V,r.transformPerspective=f+B,(r.zOrigin=parseFloat(N.split(" ")[2])||0)&&(R[nn]=Rn(N)),r.xOffset=r.yOffset=0,r.force3D=S.force3D,r.renderTransform=r.svg?Hn:Ir?Gn:Bn,r.uncache=0,r},Rn=function(t){return(t=t.split(" "))[0]+" "+t[1]},jn=function(t,e,r){var n=ee(e);return gt(parseFloat(e)+parseFloat(Sn(t,"x",r+"px",n)))+n},Bn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Gn(t,e)},Vn="0deg",zn="0px",Nn=") ",Gn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,o=r.x,a=r.y,s=r.z,l=r.rotation,c=r.rotationY,u=r.rotationX,h=r.skewX,p=r.skewY,f=r.scaleX,d=r.scaleY,m=r.transformPerspective,y=r.force3D,g=r.target,v=r.zOrigin,b="",w="auto"===y&&t&&1!==t||!0===y;if(v&&(u!==Vn||c!==Vn)){var x,S=parseFloat(c)*Br,_=Math.sin(S),E=Math.cos(S);S=parseFloat(u)*Br,x=Math.cos(S),o=jn(g,o,_*x*-v),a=jn(g,a,-Math.sin(S)*-v),s=jn(g,s,E*x*-v+v)}m!==zn&&(b+="perspective("+m+Nn),(n||i)&&(b+="translate("+n+"%, "+i+"%) "),(w||o!==zn||a!==zn||s!==zn)&&(b+=s!==zn||w?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+Nn),l!==Vn&&(b+="rotate("+l+Nn),c!==Vn&&(b+="rotateY("+c+Nn),u!==Vn&&(b+="rotateX("+u+Nn),h===Vn&&p===Vn||(b+="skew("+h+", "+p+Nn),1===f&&1===d||(b+="scale("+f+", "+d+Nn),g.style[rn]=b||"translate(0, 0)"},Hn=function(t,e){var r,n,i,o,a,s=e||this,l=s.xPercent,c=s.yPercent,u=s.x,h=s.y,p=s.rotation,f=s.skewX,d=s.skewY,m=s.scaleX,y=s.scaleY,g=s.target,v=s.xOrigin,b=s.yOrigin,w=s.xOffset,x=s.yOffset,S=s.forceCSS,_=parseFloat(u),E=parseFloat(h);p=parseFloat(p),f=parseFloat(f),(d=parseFloat(d))&&(f+=d=parseFloat(d),p+=d),p||f?(p*=Br,f*=Br,r=Math.cos(p)*m,n=Math.sin(p)*m,i=Math.sin(p-f)*-y,o=Math.cos(p-f)*y,f&&(d*=Br,a=Math.tan(f-d),i*=a=Math.sqrt(1+a*a),o*=a,d&&(a=Math.tan(d),r*=a=Math.sqrt(1+a*a),n*=a)),r=gt(r),n=gt(n),i=gt(i),o=gt(o)):(r=m,o=y,n=i=0),(_&&!~(u+"").indexOf("px")||E&&!~(h+"").indexOf("px"))&&(_=Sn(g,"x",u,"px"),E=Sn(g,"y",h,"px")),(v||b||w||x)&&(_=gt(_+v-(v*r+b*i)+w),E=gt(E+b-(v*n+b*o)+x)),(l||c)&&(a=g.getBBox(),_=gt(_+l/100*a.width),E=gt(E+c/100*a.height)),a="matrix("+r+","+n+","+i+","+o+","+_+","+E+")",g.setAttribute("transform",a),S&&(g.style[rn]=a)},qn=function(t,e,r,n,i){var o,a,s=360,l=O(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?jr:1)-n,u=n+c+"deg";return l&&("short"===(o=i.split("_")[1])&&(c%=s)!==c%180&&(c+=c<0?s:-360),"cw"===o&&c<0?c=(c+36e9)%s-~~(c/s)*s:"ccw"===o&&c>0&&(c=(c-36e9)%s-~~(c/s)*s)),t._pt=a=new dr(t._pt,e,r,n,c,Yr),a.e=u,a.u="deg",t._props.push(r),a},Yn=function(t,e){for(var r in e)t[r]=e[r];return t},$n=function(t,e,r){var n,i,o,a,s,l,c,u=Yn({},r._gsap),h=r.style;for(i in u.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),h[rn]=e,n=Fn(r,1),vn(r,rn),r.setAttribute("transform",o)):(o=getComputedStyle(r)[rn],h[rn]=e,n=Fn(r,1),h[rn]=o),Rr)(o=u[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=ee(o)!==(c=ee(a))?Sn(r,i,o,c):parseFloat(o),l=parseFloat(a),t._pt=new dr(t._pt,n,i,s,l-s,qr),t._pt.u=c||0,t._props.push(i));Yn(n,u)};yt("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",i="Bottom",o="Left",a=(e<3?[r,n,i,o]:[r+o,r+n,i+n,i+o]).map((function(r){return e<2?t+r:"border"+r+t}));Cn[e>1?"border"+t:t]=function(t,e,r,n,i){var o,s;if(arguments.length<4)return o=a.map((function(e){return _n(t,e,r)})),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},a.forEach((function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,s,i)}}));var Wn,Xn,Un,Zn={name:"css",register:fn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var o,a,s,l,c,u,h,p,f,d,m,y,g,v,b,w,x=this._props,_=t.style,E=r.vars.startAt;for(h in Dr||fn(),this.styles=this.styles||ln(t),w=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(a=e[h],!lt[h]||!Xe(h,e,r,n,t,i)))if(c=typeof a,u=Cn[h],"function"===c&&(c=typeof(a=a.call(r,n,t,i))),"string"===c&&~a.indexOf("random(")&&(a=fe(a)),u)u(this,t,h,a,r)&&(b=1);else if("--"===h.substr(0,2))o=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",Te.lastIndex=0,Te.test(o)||(p=ee(o),f=ee(a)),f?p!==f&&(o=Sn(t,h,o,f)+f):p&&(a+=p),this.add(_,"setProperty",o,a,n,i,0,0,h),x.push(h),w.push(h,0,_[h]);else if("undefined"!==c){if(E&&h in E?(o="function"==typeof E[h]?E[h].call(r,n,t,i):E[h],O(o)&&~o.indexOf("random(")&&(o=fe(o)),ee(o+"")||(o+=S.units[h]||ee(_n(t,h))||""),"="===(o+"").charAt(1)&&(o=_n(t,h))):o=_n(t,h),l=parseFloat(o),(d="string"===c&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),s=parseFloat(a),h in Hr&&("autoAlpha"===h&&(1===l&&"hidden"===_n(t,"visibility")&&s&&(l=0),w.push("visibility",0,_.visibility),bn(this,_,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=Hr[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Rr)if(this.styles.save(h),y||((g=t._gsap).renderTransform&&!e.parseTransform||Fn(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(y=this._pt=new dr(this._pt,_,rn,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new dr(this._pt,g,"scaleY",g.scaleY,(d?bt(g.scaleY,d+s):s)-g.scaleY||0,qr),this._pt.u=0,x.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(nn,0,_[nn]),a=Pn(a),g.svg?In(t,a,0,v,0,this):((f=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&bn(this,g,"zOrigin",g.zOrigin,f),bn(this,_,h,Rn(o),Rn(a)));continue}if("svgOrigin"===h){In(t,a,1,v,0,this);continue}if(h in Dn){qn(this,g,h,l,d?bt(l,d+a):a);continue}if("smoothOrigin"===h){bn(this,g,"smooth",g.smooth,a);continue}if("force3D"===h){g[h]=a;continue}if("transform"===h){$n(this,a,t);continue}}else h in _||(h=pn(h)||h);if(m||(s||0===s)&&(l||0===l)&&!Gr.test(a)&&h in _)s||(s=0),(p=(o+"").substr((l+"").length))!==(f=ee(a)||(h in S.units?S.units[h]:p))&&(l=Sn(t,h,o,f)),this._pt=new dr(this._pt,m?g:_,h,l,(d?bt(l,d+s):s)-l,m||"px"!==f&&"zIndex"!==h||!1===e.autoRound?qr:Wr),this._pt.u=f||0,p!==f&&"%"!==f&&(this._pt.b=o,this._pt.r=$r);else if(h in _)En.call(this,t,h,o,d?d+a:a);else if(h in t)this.add(t,h,o||t[h],d?d+a:a,n,i);else if("parseTransform"!==h){K(h,a);continue}m||(h in _?w.push(h,0,_[h]):w.push(h,1,o||t[h])),x.push(h)}b&&fr(this)},render:function(t,e){if(e.tween._time||!Lr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:_n,aliases:Hr,getSetter:function(t,e,r){var n=Hr[e];return n&&n.indexOf(",")<0&&(e=n),e in Rr&&e!==nn&&(t._gsap.x||_n(t,"x"))?r&&Or===r?"scale"===e?Jr:Kr:(Or=r||{})&&("scale"===e?tn:en):t.style&&!F(t.style[e])?Zr:~e.indexOf("-")?Qr:or(t,e)},core:{_removeProperty:vn,_getMatrix:Ln}};Pr.utils.checkPrefix=pn,Pr.core.getStyleSaver=ln,Un=yt((Wn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Xn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Rr[t]=1})),yt(Xn,(function(t){S.units[t]="deg",Dn[t]=1})),Hr[Un[13]]=Wn+","+Xn,yt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Hr[e[1]]=Un[e[0]]})),yt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){S.units[t]="px"})),Pr.registerPlugin(Zn);var Qn=Pr.registerPlugin(Zn)||Pr;Qn.core.Tween;function Kn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Jn,ti,ei,ri,ni,ii,oi,ai,si,li,ci,ui,hi,pi=function(){return Jn||"undefined"!=typeof window&&(Jn=window.gsap)&&Jn.registerPlugin&&Jn},fi=1,di=[],mi=[],yi=[],gi=Date.now,vi=function(t,e){return e},bi=function(t,e){return~yi.indexOf(t)&&yi[yi.indexOf(t)+1][e]},wi=function(t){return!!~li.indexOf(t)},xi=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Si=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},_i="scrollLeft",Ei="scrollTop",Ti=function(){return ci&&ci.isPressed||mi.cache++},Pi=function(t,e){var r=function r(n){if(n||0===n){fi&&(ei.history.scrollRestoration="manual");var i=ci&&ci.isPressed;n=r.v=Math.round(n)||(ci&&ci.iOS?1:0),t(n),r.cacheID=mi.cache,i&&vi("ss",n)}else(e||mi.cache!==r.cacheID||vi("ref"))&&(r.cacheID=mi.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},ki={s:_i,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Pi((function(t){return arguments.length?ei.scrollTo(t,Ci.sc()):ei.pageXOffset||ri[_i]||ni[_i]||ii[_i]||0}))},Ci={s:Ei,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:ki,sc:Pi((function(t){return arguments.length?ei.scrollTo(ki.sc(),t):ei.pageYOffset||ri[Ei]||ni[Ei]||ii[Ei]||0}))},Mi=function(t){return Jn.utils.toArray(t)[0]||("string"==typeof t&&!1!==Jn.config().nullTargetWarn?console.warn("Element not found:",t):null)},Di=function(t,e){var r=e.s,n=e.sc;wi(t)&&(t=ri.scrollingElement||ni);var i=mi.indexOf(t),o=n===Ci.sc?1:2;!~i&&(i=mi.push(t)-1),mi[i+o]||t.addEventListener("scroll",Ti);var a=mi[i+o],s=a||(mi[i+o]=Pi(bi(t,r),!0)||(wi(t)?n:Pi((function(e){return arguments.length?t[r]=e:t[r]}))));return s.target=t,a||(s.smooth="smooth"===Jn.getProperty(t,"scrollBehavior")),s},Ai=function(t,e,r){var n=t,i=t,o=gi(),a=o,s=e||50,l=Math.max(500,3*s),c=function(t,e){var l=gi();e||l-o>s?(i=n,n=t,a=o,o=l):r?n+=t:n=i+(t-i)/(l-a)*(o-a)};return{update:c,reset:function(){i=n=r?0:n,a=o=0},getVelocity:function(t){var e=a,s=i,u=gi();return(t||0===t)&&t!==n&&c(t),o===a||u-a>l?0:(n+(r?s:-s))/((r?u:o)-e)*1e3}}},Oi=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Li=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Ii=function(){(si=Jn.core.globals().ScrollTrigger)&&si.core&&function(){var t=si.core,e=t.bridge||{},r=t._scrollers,n=t._proxies;r.push.apply(r,mi),n.push.apply(n,yi),mi=r,yi=n,vi=function(t,r){return e[t](r)}}()},Fi=function(t){return(Jn=t||pi())&&"undefined"!=typeof document&&document.body&&(ei=window,ri=document,ni=ri.documentElement,ii=ri.body,li=[ei,ri,ni,ii],Jn.utils.clamp,hi=Jn.core.context||function(){},ai="onpointerenter"in ii?"pointer":"mouse",oi=Ri.isTouch=ei.matchMedia&&ei.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ei||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ui=Ri.eventTypes=("ontouchstart"in ni?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ni?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return fi=0}),500),Ii(),ti=1),ti};ki.op=Ci,mi.cache=0;var Ri=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){ti||Fi(Jn)||console.warn("Please gsap.registerPlugin(Observer)"),si||Ii();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,o=t.lineHeight,a=t.debounce,s=t.preventDefault,l=t.onStop,c=t.onStopDelay,u=t.ignore,h=t.wheelSpeed,p=t.event,f=t.onDragStart,d=t.onDragEnd,m=t.onDrag,y=t.onPress,g=t.onRelease,v=t.onRight,b=t.onLeft,w=t.onUp,x=t.onDown,S=t.onChangeX,_=t.onChangeY,E=t.onChange,T=t.onToggleX,P=t.onToggleY,k=t.onHover,C=t.onHoverEnd,M=t.onMove,D=t.ignoreCheck,A=t.isNormalizer,O=t.onGestureStart,L=t.onGestureEnd,I=t.onWheel,F=t.onEnable,R=t.onDisable,j=t.onClick,B=t.scrollSpeed,V=t.capture,z=t.allowClicks,N=t.lockAxis,G=t.onLockAxis;this.target=i=Mi(i)||ni,this.vars=t,u&&(u=Jn.utils.toArray(u)),e=e||1e-9,r=r||0,h=h||1,B=B||1,n=n||"wheel,touch,pointer",a=!1!==a,o||(o=parseFloat(ei.getComputedStyle(ii).lineHeight)||22);var H,q,Y,$,W,X,U,Z=this,Q=0,K=0,J=Di(i,ki),tt=Di(i,Ci),et=J(),rt=tt(),nt=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===ui[0],it=wi(i),ot=i.ownerDocument||ri,at=[0,0,0],st=[0,0,0],lt=0,ct=function(){return lt=gi()},ut=function(t,e){return(Z.event=t)&&u&&~u.indexOf(t.target)||e&&nt&&"touch"!==t.pointerType||D&&D(t,e)},ht=function(){var t=Z.deltaX=Li(at),r=Z.deltaY=Li(st),n=Math.abs(t)>=e,i=Math.abs(r)>=e;E&&(n||i)&&E(Z,t,r,at,st),n&&(v&&Z.deltaX>0&&v(Z),b&&Z.deltaX<0&&b(Z),S&&S(Z),T&&Z.deltaX<0!=Q<0&&T(Z),Q=Z.deltaX,at[0]=at[1]=at[2]=0),i&&(x&&Z.deltaY>0&&x(Z),w&&Z.deltaY<0&&w(Z),_&&_(Z),P&&Z.deltaY<0!=K<0&&P(Z),K=Z.deltaY,st[0]=st[1]=st[2]=0),($||Y)&&(M&&M(Z),Y&&(m(Z),Y=!1),$=!1),X&&!(X=!1)&&G&&G(Z),W&&(I(Z),W=!1),H=0},pt=function(t,e,r){at[r]+=t,st[r]+=e,Z._vx.update(t),Z._vy.update(e),a?H||(H=requestAnimationFrame(ht)):ht()},ft=function(t,e){N&&!U&&(Z.axis=U=Math.abs(t)>Math.abs(e)?"x":"y",X=!0),"y"!==U&&(at[2]+=t,Z._vx.update(t,!0)),"x"!==U&&(st[2]+=e,Z._vy.update(e,!0)),a?H||(H=requestAnimationFrame(ht)):ht()},dt=function(t){if(!ut(t,1)){var e=(t=Oi(t,s)).clientX,n=t.clientY,i=e-Z.x,o=n-Z.y,a=Z.isDragging;Z.x=e,Z.y=n,(a||Math.abs(Z.startX-e)>=r||Math.abs(Z.startY-n)>=r)&&(m&&(Y=!0),a||(Z.isDragging=!0),ft(i,o),a||f&&f(Z))}},mt=Z.onPress=function(t){ut(t,1)||(Z.axis=U=null,q.pause(),Z.isPressed=!0,t=Oi(t),Q=K=0,Z.startX=Z.x=t.clientX,Z.startY=Z.y=t.clientY,Z._vx.reset(),Z._vy.reset(),xi(A?i:ot,ui[1],dt,s,!0),Z.deltaX=Z.deltaY=0,y&&y(Z))},yt=function(t){if(!ut(t,1)){Si(A?i:ot,ui[1],dt,!0);var e=!isNaN(Z.y-Z.startY),r=Z.isDragging&&(Math.abs(Z.x-Z.startX)>3||Math.abs(Z.y-Z.startY)>3),n=Oi(t);!r&&e&&(Z._vx.reset(),Z._vy.reset(),s&&z&&Jn.delayedCall(.08,(function(){if(gi()-lt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ot.createEvent){var e=ot.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,ei,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Z.isDragging=Z.isGesturing=Z.isPressed=!1,l&&!A&&q.restart(!0),d&&r&&d(Z),g&&g(Z,r)}},gt=function(t){return t.touches&&t.touches.length>1&&(Z.isGesturing=!0)&&O(t,Z.isDragging)},vt=function(){return(Z.isGesturing=!1)||L(Z)},bt=function(t){if(!ut(t)){var e=J(),r=tt();pt((e-et)*B,(r-rt)*B,1),et=e,rt=r,l&&q.restart(!0)}},wt=function(t){if(!ut(t)){t=Oi(t,s),I&&(W=!0);var e=(1===t.deltaMode?o:2===t.deltaMode?ei.innerHeight:1)*h;pt(t.deltaX*e,t.deltaY*e,0),l&&!A&&q.restart(!0)}},xt=function(t){if(!ut(t)){var e=t.clientX,r=t.clientY,n=e-Z.x,i=r-Z.y;Z.x=e,Z.y=r,$=!0,(n||i)&&ft(n,i)}},St=function(t){Z.event=t,k(Z)},_t=function(t){Z.event=t,C(Z)},Et=function(t){return ut(t)||Oi(t,s)&&j(Z)};q=Z._dc=Jn.delayedCall(c||.25,(function(){Z._vx.reset(),Z._vy.reset(),q.pause(),l&&l(Z)})).pause(),Z.deltaX=Z.deltaY=0,Z._vx=Ai(0,50,!0),Z._vy=Ai(0,50,!0),Z.scrollX=J,Z.scrollY=tt,Z.isDragging=Z.isGesturing=Z.isPressed=!1,hi(this),Z.enable=function(t){return Z.isEnabled||(xi(it?ot:i,"scroll",Ti),n.indexOf("scroll")>=0&&xi(it?ot:i,"scroll",bt,s,V),n.indexOf("wheel")>=0&&xi(i,"wheel",wt,s,V),(n.indexOf("touch")>=0&&oi||n.indexOf("pointer")>=0)&&(xi(i,ui[0],mt,s,V),xi(ot,ui[2],yt),xi(ot,ui[3],yt),z&&xi(i,"click",ct,!1,!0),j&&xi(i,"click",Et),O&&xi(ot,"gesturestart",gt),L&&xi(ot,"gestureend",vt),k&&xi(i,ai+"enter",St),C&&xi(i,ai+"leave",_t),M&&xi(i,ai+"move",xt)),Z.isEnabled=!0,t&&t.type&&mt(t),F&&F(Z)),Z},Z.disable=function(){Z.isEnabled&&(di.filter((function(t){return t!==Z&&wi(t.target)})).length||Si(it?ot:i,"scroll",Ti),Z.isPressed&&(Z._vx.reset(),Z._vy.reset(),Si(A?i:ot,ui[1],dt,!0)),Si(it?ot:i,"scroll",bt,V),Si(i,"wheel",wt,V),Si(i,ui[0],mt,V),Si(ot,ui[2],yt),Si(ot,ui[3],yt),Si(i,"click",ct,!0),Si(i,"click",Et),Si(ot,"gesturestart",gt),Si(ot,"gestureend",vt),Si(i,ai+"enter",St),Si(i,ai+"leave",_t),Si(i,ai+"move",xt),Z.isEnabled=Z.isPressed=Z.isDragging=!1,R&&R(Z))},Z.kill=Z.revert=function(){Z.disable();var t=di.indexOf(Z);t>=0&&di.splice(t,1),ci===Z&&(ci=0)},di.push(Z),A&&wi(i)&&(ci=Z),Z.enable(p)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&Kn(e.prototype,r),n&&Kn(e,n),t}();Ri.version="3.11.4",Ri.create=function(t){return new Ri(t)},Ri.register=Fi,Ri.getAll=function(){return di.slice()},Ri.getById=function(t){return di.filter((function(e){return e.vars.id===t}))[0]},pi()&&Jn.registerPlugin(Ri);var ji,Bi,Vi,zi,Ni,Gi,Hi,qi,Yi,$i,Wi,Xi,Ui,Zi,Qi,Ki,Ji,to,eo,ro,no,io,oo,ao,so,lo,co,uo,ho,po,fo,mo,yo,go,vo=1,bo=Date.now,wo=bo(),xo=0,So=0,_o=function(){return Zi=1},Eo=function(){return Zi=0},To=function(t){return t},Po=function(t){return Math.round(1e5*t)/1e5||0},ko=function(){return"undefined"!=typeof window},Co=function(){return ji||ko()&&(ji=window.gsap)&&ji.registerPlugin&&ji},Mo=function(t){return!!~Hi.indexOf(t)},Do=function(t){return bi(t,"getBoundingClientRect")||(Mo(t)?function(){return Na.width=Vi.innerWidth,Na.height=Vi.innerHeight,Na}:function(){return ra(t)})},Ao=function(t,e){var r=e.s,n=e.d2,i=e.d,o=e.a;return(r="scroll"+n)&&(o=bi(t,r))?o()-Do(t)()[i]:Mo(t)?(Ni[r]||Gi[r])-(Vi["inner"+n]||Ni["client"+n]||Gi["client"+n]):t[r]-t["offset"+n]},Oo=function(t,e){for(var r=0;r<eo.length;r+=3)(!e||~e.indexOf(eo[r+1]))&&t(eo[r],eo[r+1],eo[r+2])},Lo=function(t){return"string"==typeof t},Io=function(t){return"function"==typeof t},Fo=function(t){return"number"==typeof t},Ro=function(t){return"object"==typeof t},jo=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},Bo=function(t,e){if(t.enabled){var r=e(t);r&&r.totalTime&&(t.callbackAnimation=r)}},Vo=Math.abs,zo="left",No="right",Go="bottom",Ho="width",qo="height",Yo="Right",$o="Left",Wo="Top",Xo="Bottom",Uo="padding",Zo="margin",Qo="Width",Ko="Height",Jo="px",ta=function(t){return Vi.getComputedStyle(t)},ea=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},ra=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==ta(t)[Qi]&&ji.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return r&&r.progress(0).kill(),n},na=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},ia=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},oa=function(t){var e=ji.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return r?function(t,n,i){var o;if(void 0===i&&(i=.001),!n)return e(t);if(n>0){for(t-=i,o=0;o<r.length;o++)if(r[o]>=t)return r[o];return r[o-1]}for(o=r.length,t+=i;o--;)if(r[o]<=t)return r[o];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var o=e(r);return!n||Math.abs(o-r)<i||o-r<0==n<0?o:e(n<0?r-t:r+t)}},aa=function(t,e,r,n){return r.split(",").forEach((function(r){return t(e,r,n)}))},sa=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},la=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},ca=function(t,e,r){return r&&r.wheelHandler&&t(e,"wheel",r)},ua={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},ha={toggleActions:"play",anticipatePin:0},pa={top:0,left:0,center:.5,bottom:1,right:1},fa=function(t,e){if(Lo(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in pa?pa[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},da=function(t,e,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,h=i.indent,p=i.fontWeight,f=zi.createElement("div"),d=Mo(r)||"fixed"===bi(r,"pinType"),m=-1!==t.indexOf("scroller"),y=d?Gi:r,g=-1!==t.indexOf("start"),v=g?l:c,b="border-color:"+v+";font-size:"+u+";color:"+v+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return b+="position:"+((m||s)&&d?"fixed;":"absolute;"),(m||s||!d)&&(b+=(n===Ci?No:Go)+":"+(o+parseFloat(h))+"px;"),a&&(b+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),f._isStart=g,f.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),f.style.cssText=b,f.innerText=e||0===e?t+"-"+e:t,y.children[0]?y.insertBefore(f,y.children[0]):y.appendChild(f),f._offset=f["offset"+n.op.d2],ma(f,0,n,g),f},ma=function(t,e,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+Qo]=1,i["border"+a+Qo]=0,i[r.p]=e+"px",ji.set(t,i)},ya=[],ga={},va=function(){return bo()-xo>34&&(fo||(fo=requestAnimationFrame(Ia)))},ba=function(){(!oo||!oo.isPressed||oo.startX>Gi.clientWidth)&&(mi.cache++,oo?fo||(fo=requestAnimationFrame(Ia)):Ia(),xo||Ta("scrollStart"),xo=bo())},wa=function(){lo=Vi.innerWidth,so=Vi.innerHeight},xa=function(){mi.cache++,!Ui&&!io&&!zi.fullscreenElement&&!zi.webkitFullscreenElement&&(!ao||lo!==Vi.innerWidth||Math.abs(Vi.innerHeight-so)>.25*Vi.innerHeight)&&qi.restart(!0)},Sa={},_a=[],Ea=function t(){return la($a,"scrollEnd",t)||Aa(!0)},Ta=function(t){return Sa[t]&&Sa[t].map((function(t){return t()}))||_a},Pa=[],ka=function(t){for(var e=0;e<Pa.length;e+=5)(!t||Pa[e+4]&&Pa[e+4].query===t)&&(Pa[e].style.cssText=Pa[e+1],Pa[e].getBBox&&Pa[e].setAttribute("transform",Pa[e+2]||""),Pa[e+3].uncache=1)},Ca=function(t,e){var r;for(Ki=0;Ki<ya.length;Ki++)!(r=ya[Ki])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));e&&ka(e),e||Ta("revert")},Ma=function(t,e){mi.cache++,(e||!mo)&&mi.forEach((function(t){return Io(t)&&t.cacheID++&&(t.rec=0)})),Lo(t)&&(Vi.history.scrollRestoration=ho=t)},Da=0,Aa=function(t,e){if(!xo||t){mo=$a.isRefreshing=!0,mi.forEach((function(t){return Io(t)&&t.cacheID++&&(t.rec=t())}));var r=Ta("refreshInit");ro&&$a.sort(),e||Ca(),mi.forEach((function(t){Io(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),ya.slice(0).forEach((function(t){return t.refresh()})),ya.forEach((function(t,e){if(t._subPinOffset&&t.pin){var r=t.vars.horizontal?"offsetWidth":"offsetHeight",n=t.pin[r];t.revert(!0,1),t.adjustPinSpacing(t.pin[r]-n),t.revert(!1,1)}})),ya.forEach((function(t){return"max"===t.vars.end&&t.setPositions(t.start,Math.max(t.start+1,Ao(t.scroller,t._dir)))})),r.forEach((function(t){return t&&t.render&&t.render(-1)})),mi.forEach((function(t){Io(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),Ma(ho,1),qi.pause(),Da++,Ia(2),ya.forEach((function(t){return Io(t.vars.onRefresh)&&t.vars.onRefresh(t)})),mo=$a.isRefreshing=!1,Ta("refresh")}else sa($a,"scrollEnd",Ea)},Oa=0,La=1,Ia=function(t){if(!mo||2===t){$a.isUpdating=!0,go&&go.update(0);var e=ya.length,r=bo(),n=r-wo>=50,i=e&&ya[0].scroll();if(La=Oa>i?-1:1,Oa=i,n&&(xo&&!Zi&&r-xo>200&&(xo=0,Ta("scrollEnd")),Wi=wo,wo=r),La<0){for(Ki=e;Ki-- >0;)ya[Ki]&&ya[Ki].update(0,n);La=1}else for(Ki=0;Ki<e;Ki++)ya[Ki]&&ya[Ki].update(0,n);$a.isUpdating=!1}fo=0},Fa=[zo,"top",Go,No,Zo+Xo,Zo+Yo,Zo+Wo,Zo+$o,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Ra=Fa.concat([Ho,qo,"boxSizing","max"+Qo,"max"+Ko,"position",Zo,Uo,Uo+Wo,Uo+Yo,Uo+Xo,Uo+$o]),ja=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,o=Fa.length,a=e.style,s=t.style;o--;)a[i=Fa[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[Go]=s[No]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[Ho]=na(t,ki)+Jo,a[qo]=na(t,Ci)+Jo,a[Uo]=s[Zo]=s.top=s[zo]="0",Va(n),s[Ho]=s["max"+Qo]=r[Ho],s[qo]=s["max"+Ko]=r[qo],s[Uo]=r[Uo],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},Ba=/([A-Z])/g,Va=function(t){if(t){var e,r,n=t.t.style,i=t.length,o=0;for((t.t._gsap||ji.core.getCache(t.t)).uncache=1;o<i;o+=2)r=t[o+1],e=t[o],r?n[e]=r:n[e]&&n.removeProperty(e.replace(Ba,"-$1").toLowerCase())}},za=function(t){for(var e=Ra.length,r=t.style,n=[],i=0;i<e;i++)n.push(Ra[i],r[Ra[i]]);return n.t=t,n},Na={left:0,top:0},Ga=function(t,e,r,n,i,o,a,s,l,c,u,h,p){Io(t)&&(t=t(s)),Lo(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?fa("0"+t.substr(3),r):0));var f,d,m,y=p?p.time():0;if(p&&p.seek(0),Fo(t))a&&ma(a,r,n,!0);else{Io(e)&&(e=e(s));var g,v,b,w,x=(t||"0").split(" ");m=Mi(e)||Gi,(g=ra(m)||{})&&(g.left||g.top)||"none"!==ta(m).display||(w=m.style.display,m.style.display="block",g=ra(m),w?m.style.display=w:m.style.removeProperty("display")),v=fa(x[0],g[n.d]),b=fa(x[1]||"0",r),t=g[n.p]-l[n.p]-c+v+i-b,a&&ma(a,b,n,r-b<20||a._isStart&&b>20),r-=r-b}if(o){var S=t+r,_=o._isStart;f="scroll"+n.d2,ma(o,S,n,_&&S>20||!_&&(u?Math.max(Gi[f],Ni[f]):o.parentNode[f])<=S+1),u&&(l=ra(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+Jo))}return p&&m&&(f=ra(m),p.seek(h),d=ra(m),p._caScrollDist=f[n.p]-d[n.p],t=t/p._caScrollDist*h),p&&p.seek(y),p?t:Math.round(t)},Ha=/(webkit|moz|length|cssText|inset)/i,qa=function(t,e,r,n){if(t.parentNode!==e){var i,o,a=t.style;if(e===Gi){for(i in t._stOrig=a.cssText,o=ta(t))+i||Ha.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=t._stOrig;ji.core.getCache(t).uncache=1,e.appendChild(t)}},Ya=function(t,e){var r,n,i=Di(t,e),o="_scroll"+e.p2,a=function e(a,s,l,c,u){var h=e.tween,p=s.onComplete,f={};return l=l||i(),u=c&&u||0,c=c||a-l,h&&h.kill(),r=Math.round(l),s[o]=a,s.modifiers=f,f[o]=function(t){return(t=Math.round(i()))!==r&&t!==n&&Math.abs(t-r)>3&&Math.abs(t-n)>3?(h.kill(),e.tween=0):t=l+c*h.ratio+u*h.ratio*h.ratio,n=r,r=Math.round(t)},s.onUpdate=function(){mi.cache++,Ia()},s.onComplete=function(){e.tween=0,p&&p.call(h)},h=e.tween=ji.to(t,s)};return t[o]=i,i.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},sa(t,"wheel",i.wheelHandler),a},$a=function(){function t(e,r){Bi||t.register(ji)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),So){var n,i,o,a,s,l,c,u,h,p,f,d,m,y,g,v,b,w,x,S,_,E,T,P,k,C,M,D,A,O,L,I,F,R,j,B,V,z,N,G,H,q,Y=e=ea(Lo(e)||Fo(e)||e.nodeType?{trigger:e}:e,ha),$=Y.onUpdate,W=Y.toggleClass,X=Y.id,U=Y.onToggle,Z=Y.onRefresh,Q=Y.scrub,K=Y.trigger,J=Y.pin,tt=Y.pinSpacing,et=Y.invalidateOnRefresh,rt=Y.anticipatePin,nt=Y.onScrubComplete,it=Y.onSnapComplete,ot=Y.once,at=Y.snap,st=Y.pinReparent,lt=Y.pinSpacer,ct=Y.containerAnimation,ut=Y.fastScrollEnd,ht=Y.preventOverlaps,pt=e.horizontal||e.containerAnimation&&!1!==e.horizontal?ki:Ci,ft=!Q&&0!==Q,dt=Mi(e.scroller||Vi),mt=ji.core.getCache(dt),yt=Mo(dt),gt="fixed"===("pinType"in e?e.pinType:bi(dt,"pinType")||yt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],bt=ft&&e.toggleActions.split(" "),wt="markers"in e?e.markers:ha.markers,xt=yt?0:parseFloat(ta(dt)["border"+pt.p2+Qo])||0,St=this,_t=e.onRefreshInit&&function(){return e.onRefreshInit(St)},Et=function(t,e,r){var n=r.d,i=r.d2,o=r.a;return(o=bi(t,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(e?Vi["inner"+i]:t["client"+i])||0}}(dt,yt,pt),Tt=function(t,e){return!e||~yi.indexOf(t)?Do(t):function(){return Na}}(dt,yt),Pt=0,kt=0,Ct=Di(dt,pt);if(uo(St),St._dir=pt,rt*=45,St.scroller=dt,St.scroll=ct?ct.time.bind(ct):Ct,a=Ct(),St.vars=e,r=r||e.animation,"refreshPriority"in e&&(ro=1,-9999===e.refreshPriority&&(go=St)),mt.tweenScroll=mt.tweenScroll||{top:Ya(dt,Ci),left:Ya(dt,ki)},St.tweenTo=n=mt.tweenScroll[pt.p],St.scrubDuration=function(t){(I=Fo(t)&&t)?L?L.duration(t):L=ji.to(r,{ease:"expo",totalProgress:"+=0.001",duration:I,paused:!0,onComplete:function(){return nt&&nt(St)}}):(L&&L.progress(1).kill(),L=0)},r&&(r.vars.lazy=!1,r._initted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),St.animation=r.pause(),r.scrollTrigger=St,St.scrubDuration(Q),A=0,X||(X=r.vars.id)),ya.push(St),at&&(Ro(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in Gi.style&&ji.set(yt?[Gi,Ni]:dt,{scrollBehavior:"auto"}),mi.forEach((function(t){return Io(t)&&t.target===(yt?zi.scrollingElement||Ni:dt)&&(t.smooth=!1)})),o=Io(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return ji.utils.snap(ia(t),e)}}(r):"labelsDirectional"===at.snapTo?(G=r,function(t,e){return oa(ia(G))(t,e.direction)}):!1!==at.directional?function(t,e){return oa(at.snapTo)(t,bo()-kt<500?0:e.direction)}:ji.utils.snap(at.snapTo),F=at.duration||{min:.1,max:2},F=Ro(F)?$i(F.min,F.max):$i(F,F),R=ji.delayedCall(at.delay||I/2||.1,(function(){var t=Ct(),e=bo()-kt<500,i=n.tween;if(!(e||Math.abs(St.getVelocity())<10)||i||Zi||Pt===t)St.isActive&&Pt!==t&&R.restart(!0);else{var a=(t-l)/m,s=r&&!ft?r.totalProgress():a,u=e?0:(s-O)/(bo()-Wi)*1e3||0,h=ji.utils.clamp(-a,1-a,Vo(u/2)*u/.185),p=a+(!1===at.inertia?0:h),f=$i(0,1,o(p,St)),d=Math.round(l+f*m),y=at,g=y.onStart,v=y.onInterrupt,b=y.onComplete;if(t<=c&&t>=l&&d!==t){if(i&&!i._initted&&i.data<=Vo(d-t))return;!1===at.inertia&&(h=f-a),n(d,{duration:F(Vo(.185*Math.max(Vo(p-s),Vo(f-s))/u/.05||0)),ease:at.ease||"power3",data:Vo(d-t),onInterrupt:function(){return R.restart(!0)&&v&&v(St)},onComplete:function(){St.update(),Pt=Ct(),A=O=r&&!ft?r.totalProgress():St.progress,it&&it(St),b&&b(St)}},t,h*m,d-t-h*m),g&&g(St,n.tween)}}})).pause()),X&&(ga[X]=St),(N=(K=St.trigger=Mi(K||J))&&K._gsap&&K._gsap.stRevert)&&(N=N(St)),J=!0===J?K:Mi(J),Lo(W)&&(W={targets:K,className:W}),J&&(!1===tt||tt===Zo||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===ta(J.parentNode).display)&&Uo),St.pin=J,(i=ji.core.getCache(J)).spacer?y=i.pinState:(lt&&((lt=Mi(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=za(lt))),i.spacer=b=lt||zi.createElement("div"),b.classList.add("pin-spacer"),X&&b.classList.add("pin-spacer-"+X),i.pinState=y=za(J)),!1!==e.force3D&&ji.set(J,{force3D:!0}),St.spacer=b=i.spacer,D=ta(J),T=D[tt+pt.os2],x=ji.getProperty(J),S=ji.quickSetter(J,pt.a,Jo),ja(J,b,D),v=za(J)),wt){d=Ro(wt)?ea(wt,ua):ua,p=da("scroller-start",X,dt,pt,d,0),f=da("scroller-end",X,dt,pt,d,0,p),w=p["offset"+pt.op.d2];var Mt=Mi(bi(dt,"content")||dt);u=this.markerStart=da("start",X,Mt,pt,d,w,0,ct),h=this.markerEnd=da("end",X,Mt,pt,d,w,0,ct),ct&&(z=ji.quickSetter([u,h],pt.a,Jo)),gt||yi.length&&!0===bi(dt,"fixedMarkers")||(q=ta(H=yt?Gi:dt).position,H.style.position="absolute"===q||"fixed"===q?q:"relative",ji.set([p,f],{force3D:!0}),k=ji.quickSetter(p,pt.a,Jo),M=ji.quickSetter(f,pt.a,Jo))}if(ct){var Dt=ct.vars.onUpdate,At=ct.vars.onUpdateParams;ct.eventCallback("onUpdate",(function(){St.update(0,0,1),Dt&&Dt.apply(At||[])}))}St.previous=function(){return ya[ya.indexOf(St)-1]},St.next=function(){return ya[ya.indexOf(St)+1]},St.revert=function(t,e){if(!e)return St.kill(!0);var n=!1!==t||!St.enabled,i=Ui;n!==St.isReverted&&(n&&(B=Math.max(Ct(),St.scroll.rec||0),j=St.progress,V=r&&r.progress()),u&&[u,h,p,f].forEach((function(t){return t.style.display=n?"none":"block"})),n&&(Ui=1,St.update(n)),!J||st&&St.isActive||(n?function(t,e,r){Va(r);var n=t._gsap;if(n.spacerIsNative)Va(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(J,b,y):ja(J,b,ta(J),P)),n||St.update(n),Ui=i,St.isReverted=n)},St.refresh=function(i,o){if(!Ui&&St.enabled||o)if(J&&i&&xo)sa(t,"scrollEnd",Ea);else{!mo&&_t&&_t(St),Ui=1,kt=bo(),n.tween&&(n.tween.kill(),n.tween=0),L&&L.pause(),et&&r&&r.revert({kill:!1}).invalidate(),St.isReverted||St.revert(!0,!0),St._subPinOffset=!1;for(var d,w,S,T,k,M,D,A,O,I,F,z=Et(),N=Tt(),G=ct?ct.duration():Ao(dt,pt),H=0,q=0,Y=e.end,$=e.endTrigger||K,W=e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),X=St.pinnedContainer=e.pinnedContainer&&Mi(e.pinnedContainer),U=K&&Math.max(0,ya.indexOf(St))||0,Q=U;Q--;)(M=ya[Q]).end||M.refresh(0,1)||(Ui=1),!(D=M.pin)||D!==K&&D!==J||M.isReverted||(I||(I=[]),I.unshift(M),M.revert(!0,!0)),M!==ya[Q]&&(U--,Q--);for(Io(W)&&(W=W(St)),l=Ga(W,K,z,pt,Ct(),u,p,St,N,xt,gt,G,ct)||(J?-.001:0),Io(Y)&&(Y=Y(St)),Lo(Y)&&!Y.indexOf("+=")&&(~Y.indexOf(" ")?Y=(Lo(W)?W.split(" ")[0]:"")+Y:(H=fa(Y.substr(2),z),Y=Lo(W)?W:l+H,$=K)),c=Math.max(l,Ga(Y||($?"100% 0":G),$,z,pt,Ct()+H,h,f,St,N,xt,gt,G,ct))||-.001,m=c-l||(l-=.01)&&.001,H=0,Q=U;Q--;)(D=(M=ya[Q]).pin)&&M.start-M._pinPush<=l&&!ct&&M.end>0&&(d=M.end-M.start,(D===K&&M.start-M._pinPush<l||D===X)&&!Fo(W)&&(H+=d*(1-M.progress)),D===J&&(q+=d));if(l+=H,c+=H,St._pinPush=q,u&&H&&((d={})[pt.a]="+="+H,X&&(d[pt.p]="-="+Ct()),ji.set([u,h],d)),J)d=ta(J),T=pt===Ci,S=Ct(),_=parseFloat(x(pt.a))+q,!G&&c>1&&((F={style:F=(yt?zi.scrollingElement||Ni:dt).style,value:F["overflow"+pt.a.toUpperCase()]})["overflow"+pt.a.toUpperCase()]="scroll"),ja(J,b,d),v=za(J),w=ra(J,!0),A=gt&&Di(dt,T?ki:Ci)(),tt&&((P=[tt+pt.os2,m+q+Jo]).t=b,(Q=tt===Uo?na(J,pt)+m+q:0)&&P.push(pt.d,Q+Jo),Va(P),X&&ya.forEach((function(t){t.pin===X&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),gt&&Ct(B)),gt&&((k={top:w.top+(T?S-l:A)+Jo,left:w.left+(T?A:S-l)+Jo,boxSizing:"border-box",position:"fixed"})[Ho]=k["max"+Qo]=Math.ceil(w.width)+Jo,k[qo]=k["max"+Ko]=Math.ceil(w.height)+Jo,k[Zo]=k[Zo+Wo]=k[Zo+Yo]=k[Zo+Xo]=k[Zo+$o]="0",k[Uo]=d[Uo],k[Uo+Wo]=d[Uo+Wo],k[Uo+Yo]=d[Uo+Yo],k[Uo+Xo]=d[Uo+Xo],k[Uo+$o]=d[Uo+$o],g=function(t,e,r){for(var n,i=[],o=t.length,a=r?8:0;a<o;a+=2)n=t[a],i.push(n,n in e?e[n]:t[a+1]);return i.t=t.t,i}(y,k,st),mo&&Ct(0)),r?(O=r._initted,no(1),r.render(r.duration(),!0,!0),E=x(pt.a)-_+m+q,C=Math.abs(m-E)>1,gt&&C&&g.splice(g.length-2,2),r.render(0,!0,!0),O||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),no(0)):E=m,F&&(F.value?F.style["overflow"+pt.a.toUpperCase()]=F.value:F.style.removeProperty("overflow-"+pt.a));else if(K&&Ct()&&!ct)for(w=K.parentNode;w&&w!==Gi;)w._pinOffset&&(l-=w._pinOffset,c-=w._pinOffset),w=w.parentNode;I&&I.forEach((function(t){return t.revert(!1,!0)})),St.start=l,St.end=c,a=s=mo?B:Ct(),ct||mo||(a<B&&Ct(B),St.scroll.rec=0),St.revert(!1,!0),R&&(Pt=-1,St.isActive&&Ct(l+m*j),R.restart(!0)),Ui=0,r&&ft&&(r._initted||V)&&r.progress()!==V&&r.progress(V,!0).render(r.time(),!0,!0),(j!==St.progress||ct)&&(r&&!ft&&r.totalProgress(j,!0),St.progress=(a-l)/m===j?0:j),J&&tt&&(b._pinOffset=Math.round(St.progress*E)),Z&&!mo&&Z(St)}},St.getVelocity=function(){return(Ct()-s)/(bo()-Wi)*1e3||0},St.endAnimation=function(){jo(St.callbackAnimation),r&&(L?L.progress(1):r.paused()?ft||jo(r,St.direction<0,1):jo(r,r.reversed()))},St.labelToScroll=function(t){return r&&r.labels&&(l||St.refresh()||l)+r.labels[t]/r.duration()*m||0},St.getTrailing=function(t){var e=ya.indexOf(St),r=St.direction>0?ya.slice(0,e).reverse():ya.slice(e+1);return(Lo(t)?r.filter((function(e){return e.vars.preventOverlaps===t})):r).filter((function(t){return St.direction>0?t.end<=l:t.start>=c}))},St.update=function(t,e,i){if(!ct||i||t){var o,u,h,f,d,y,w,x=mo?B:St.scroll(),P=t?0:(x-l)/m,D=P<0?0:P>1?1:P||0,I=St.progress;if(e&&(s=a,a=ct?Ct():x,at&&(O=A,A=r&&!ft?r.totalProgress():D)),rt&&!D&&J&&!Ui&&!vo&&xo&&l<x+(x-s)/(bo()-Wi)*rt&&(D=1e-4),D!==I&&St.enabled){if(f=(d=(o=St.isActive=!!D&&D<1)!==(!!I&&I<1))||!!D!=!!I,St.direction=D>I?1:-1,St.progress=D,f&&!Ui&&(u=D&&!I?0:1===D?1:1===I?2:3,ft&&(h=!d&&"none"!==bt[u+1]&&bt[u+1]||bt[u],w=r&&("complete"===h||"reset"===h||h in r))),ht&&(d||w)&&(w||Q||!r)&&(Io(ht)?ht(St):St.getTrailing(ht).forEach((function(t){return t.endAnimation()}))),ft||(!L||Ui||vo?r&&r.totalProgress(D,!!Ui):(L._dp._time-L._start!==L._time&&L.render(L._dp._time-L._start),L.resetTo?L.resetTo("totalProgress",D,r._tTime/r._tDur):(L.vars.totalProgress=D,L.invalidate().restart()))),J)if(t&&tt&&(b.style[tt+pt.os2]=T),gt){if(f){if(y=!t&&D>I&&c+1>x&&x+1>=Ao(dt,pt),st)if(t||!o&&!y)qa(J,b);else{var F=ra(J,!0),j=x-l;qa(J,Gi,F.top+(pt===Ci?j:0)+Jo,F.left+(pt===Ci?0:j)+Jo)}Va(o||y?g:v),C&&D<1&&o||S(_+(1!==D||y?0:E))}}else S(Po(_+E*D));at&&!n.tween&&!Ui&&!vo&&R.restart(!0),W&&(d||ot&&D&&(D<1||!po))&&Yi(W.targets).forEach((function(t){return t.classList[o||ot?"add":"remove"](W.className)})),$&&!ft&&!t&&$(St),f&&!Ui?(ft&&(w&&("complete"===h?r.pause().totalProgress(1):"reset"===h?r.restart(!0).pause():"restart"===h?r.restart(!0):r[h]()),$&&$(St)),!d&&po||(U&&d&&Bo(St,U),vt[u]&&Bo(St,vt[u]),ot&&(1===D?St.kill(!1,1):vt[u]=0),d||vt[u=1===D?1:3]&&Bo(St,vt[u])),ut&&!o&&Math.abs(St.getVelocity())>(Fo(ut)?ut:2500)&&(jo(St.callbackAnimation),L?L.progress(1):jo(r,"reverse"===h?1:!D,1))):ft&&$&&!Ui&&$(St)}if(M){var V=ct?x/ct.duration()*(ct._caScrollDist||0):x;k(V+(p._isFlipped?1:0)),M(V)}z&&z(-x/ct.duration()*(ct._caScrollDist||0))}},St.enable=function(e,r){St.enabled||(St.enabled=!0,sa(dt,"resize",xa),sa(yt?zi:dt,"scroll",ba),_t&&sa(t,"refreshInit",_t),!1!==e&&(St.progress=j=0,a=s=Pt=Ct()),!1!==r&&St.refresh())},St.getTween=function(t){return t&&n?n.tween:L},St.setPositions=function(t,e){J&&(_+=t-l,E+=e-t-m,tt===Uo&&St.adjustPinSpacing(e-t-m)),St.start=l=t,St.end=c=e,m=e-t,St.update()},St.adjustPinSpacing=function(t){if(P){var e=P.indexOf(pt.d)+1;P[e]=parseFloat(P[e])+t+Jo,P[1]=parseFloat(P[1])+t+Jo,Va(P)}},St.disable=function(e,r){if(St.enabled&&(!1!==e&&St.revert(!0,!0),St.enabled=St.isActive=!1,r||L&&L.pause(),B=0,i&&(i.uncache=1),_t&&la(t,"refreshInit",_t),R&&(R.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!yt)){for(var o=ya.length;o--;)if(ya[o].scroller===dt&&ya[o]!==St)return;la(dt,"resize",xa),la(dt,"scroll",ba)}},St.kill=function(t,n){St.disable(t,n),L&&!n&&L.kill(),X&&delete ga[X];var o=ya.indexOf(St);o>=0&&ya.splice(o,1),o===Ki&&La>0&&Ki--,o=0,ya.forEach((function(t){return t.scroller===St.scroller&&(o=1)})),o||mo||(St.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),u&&[u,h,p,f].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),go===St&&(go=0),J&&(i&&(i.uncache=1),o=0,ya.forEach((function(t){return t.pin===J&&o++})),o||(i.spacer=0)),e.onKill&&e.onKill(St)},St.enable(!1,!1),N&&N(St),r&&r.add&&!m?ji.delayedCall(.01,(function(){return l||c||St.refresh()}))&&(m=.01)&&(l=c=0):St.refresh(),J&&function(){if(yo!==Da){var t=yo=Da;requestAnimationFrame((function(){return t===Da&&Aa(!0)}))}}()}else this.update=this.refresh=this.kill=To},t.register=function(e){return Bi||(ji=e||Co(),ko()&&window.document&&t.enable(),Bi=So),Bi},t.defaults=function(t){if(t)for(var e in t)ha[e]=t[e];return ha},t.disable=function(t,e){So=0,ya.forEach((function(r){return r[e?"kill":"disable"](t)})),la(Vi,"wheel",ba),la(zi,"scroll",ba),clearInterval(Xi),la(zi,"touchcancel",To),la(Gi,"touchstart",To),aa(la,zi,"pointerdown,touchstart,mousedown",_o),aa(la,zi,"pointerup,touchend,mouseup",Eo),qi.kill(),Oo(la);for(var r=0;r<mi.length;r+=3)ca(la,mi[r],mi[r+1]),ca(la,mi[r],mi[r+2])},t.enable=function(){if(Vi=window,zi=document,Ni=zi.documentElement,Gi=zi.body,ji&&(Yi=ji.utils.toArray,$i=ji.utils.clamp,uo=ji.core.context||To,no=ji.core.suppressOverwrites||To,ho=Vi.history.scrollRestoration||"auto",ji.core.globals("ScrollTrigger",t),Gi)){So=1,Ri.register(ji),t.isTouch=Ri.isTouch,co=Ri.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),sa(Vi,"wheel",ba),Hi=[Vi,zi,Ni,Gi],ji.matchMedia?(t.matchMedia=function(t){var e,r=ji.matchMedia();for(e in t)r.add(e,t[e]);return r},ji.addEventListener("matchMediaInit",(function(){return Ca()})),ji.addEventListener("matchMediaRevert",(function(){return ka()})),ji.addEventListener("matchMedia",(function(){Aa(0,1),Ta("matchMedia")})),ji.matchMedia("(orientation: portrait)",(function(){return wa(),wa}))):console.warn("Requires GSAP 3.11.0 or later"),wa(),sa(zi,"scroll",ba);var e,r,n=Gi.style,i=n.borderTopStyle,o=ji.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",e=ra(Gi),Ci.m=Math.round(e.top+Ci.sc())||0,ki.m=Math.round(e.left+ki.sc())||0,i?n.borderTopStyle=i:n.removeProperty("border-top-style"),Xi=setInterval(va,250),ji.delayedCall(.5,(function(){return vo=0})),sa(zi,"touchcancel",To),sa(Gi,"touchstart",To),aa(sa,zi,"pointerdown,touchstart,mousedown",_o),aa(sa,zi,"pointerup,touchend,mouseup",Eo),Qi=ji.utils.checkPrefix("transform"),Ra.push(Qi),Bi=bo(),qi=ji.delayedCall(.2,Aa).pause(),eo=[zi,"visibilitychange",function(){var t=Vi.innerWidth,e=Vi.innerHeight;zi.hidden?(Ji=t,to=e):Ji===t&&to===e||xa()},zi,"DOMContentLoaded",Aa,Vi,"load",Aa,Vi,"resize",xa],Oo(sa),ya.forEach((function(t){return t.enable(0,1)})),r=0;r<mi.length;r+=3)ca(la,mi[r],mi[r+1]),ca(la,mi[r],mi[r+2])}},t.config=function(e){"limitCallbacks"in e&&(po=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(Xi)||(Xi=r)&&setInterval(va,r),"ignoreMobileResize"in e&&(ao=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Oo(la)||Oo(sa,e.autoRefreshEvents||"none"),io=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Mi(t),n=mi.indexOf(r),i=Mo(r);~n&&mi.splice(n,i?6:2),e&&(i?yi.unshift(Vi,e,Gi,e,Ni,e):yi.unshift(r,e))},t.clearMatchMedia=function(t){ya.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},t.isInViewport=function(t,e,r){var n=(Lo(t)?Mi(t):t).getBoundingClientRect(),i=n[r?Ho:qo]*e||0;return r?n.right-i>0&&n.left+i<Vi.innerWidth:n.bottom-i>0&&n.top+i<Vi.innerHeight},t.positionInViewport=function(t,e,r){Lo(t)&&(t=Mi(t));var n=t.getBoundingClientRect(),i=n[r?Ho:qo],o=null==e?i/2:e in pa?pa[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+o)/Vi.innerWidth:(n.top+o)/Vi.innerHeight},t.killAll=function(t){if(ya.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=Sa.killAll||[];Sa={},e.forEach((function(t){return t()}))}},t}();$a.version="3.11.4",$a.saveStyles=function(t){return t?Yi(t).forEach((function(t){if(t&&t.style){var e=Pa.indexOf(t);e>=0&&Pa.splice(e,5),Pa.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),ji.core.getCache(t),uo())}})):Pa},$a.revert=function(t,e){return Ca(!t,e)},$a.create=function(t,e){return new $a(t,e)},$a.refresh=function(t){return t?xa():(Bi||$a.register())&&Aa(!0)},$a.update=function(t){return++mi.cache&&Ia(!0===t?2:0)},$a.clearScrollMemory=Ma,$a.maxScroll=function(t,e){return Ao(t,e?ki:Ci)},$a.getScrollFunc=function(t,e){return Di(Mi(t),e?ki:Ci)},$a.getById=function(t){return ga[t]},$a.getAll=function(){return ya.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},$a.isScrolling=function(){return!!xo},$a.snapDirectional=oa,$a.addEventListener=function(t,e){var r=Sa[t]||(Sa[t]=[]);~r.indexOf(e)||r.push(e)},$a.removeEventListener=function(t,e){var r=Sa[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},$a.batch=function(t,e){var r,n=[],i={},o=e.interval||.016,a=e.batchMax||1e9,s=function(t,e){var r=[],n=[],i=ji.delayedCall(o,(function(){e(r,n),r=[],n=[]})).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),a<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&Io(e[r])&&"onRefreshInit"!==r?s(0,e[r]):e[r];return Io(a)&&(a=a(),sa($a,"refresh",(function(){return a=e.batchMax()}))),Yi(t).forEach((function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push($a.create(e))})),n};var Wa,Xa=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},Ua=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Ri.isTouch?" pinch-zoom":""):"none",e===Ni&&t(Gi,r)},Za={auto:1,scroll:1},Qa=function(t){var e,r=t.event,n=t.target,i=t.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,a=o._gsap||ji.core.getCache(o),s=bo();if(!a._isScrollT||s-a._isScrollT>2e3){for(;o&&o!==Gi&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!Za[(e=ta(o)).overflowY]&&!Za[e.overflowX]);)o=o.parentNode;a._isScroll=o&&o!==n&&!Mo(o)&&(Za[(e=ta(o)).overflowY]||Za[e.overflowX]),a._isScrollT=s}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},Ka=function(t,e,r,n){return Ri.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&Qa,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&sa(zi,Ri.eventTypes[0],ts,!1,!0)},onDisable:function(){return la(zi,Ri.eventTypes[0],ts,!0)}})},Ja=/(input|label|select|textarea)/i,ts=function(t){var e=Ja.test(t.target.tagName);(e||Wa)&&(t._gsapAllow=!0,Wa=e)},es=function(t){Ro(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,i,o,a,s,l,c=t,u=c.normalizeScrollX,h=c.momentum,p=c.allowNestedScroll,f=Mi(t.target)||Ni,d=ji.core.globals().ScrollSmoother,m=d&&d.get(),y=co&&(t.content&&Mi(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),g=Di(f,Ci),v=Di(f,ki),b=1,w=(Ri.isTouch&&Vi.visualViewport?Vi.visualViewport.scale*Vi.visualViewport.width:Vi.outerWidth)/Vi.innerWidth,x=0,S=Io(h)?function(){return h(e)}:function(){return h||2.8},_=Ka(f,t.type,!0,p),E=function(){return i=!1},T=To,P=To,k=function(){r=Ao(f,Ci),P=$i(co?1:0,r),u&&(T=$i(0,Ao(f,ki))),n=Da},C=function(){y._gsap.y=Po(parseFloat(y._gsap.y)+g.offset)+"px",y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(y._gsap.y)+", 0, 1)",g.offset=g.cacheID=0},M=function(){k(),o.isActive()&&o.vars.scrollY>r&&(g()>r?o.progress(1)&&g(r):o.resetTo("scrollY",r))};return y&&ji.set(y,{y:"+=0"}),t.ignoreCheck=function(t){return co&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(E);var t=Po(e.deltaY/2),r=P(g.v-t);if(y&&r!==g.v+g.offset){g.offset=r-g.v;var n=Po((parseFloat(y&&y._gsap.y)||0)-g.offset);y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",y._gsap.y=n+"px",g.cacheID=mi.cache,Ia()}return!0}g.offset&&C(),i=!0}()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){var t=b;b=Po((Vi.visualViewport&&Vi.visualViewport.scale||1)/w),o.pause(),t!==b&&Ua(f,b>1.01||!u&&"x"),a=v(),s=g(),k(),n=Da},t.onRelease=t.onGestureStart=function(t,e){if(g.offset&&C(),e){mi.cache++;var n,i,a=S();u&&(i=(n=v())+.05*a*-t.velocityX/.227,a*=Xa(v,n,i,Ao(f,ki)),o.vars.scrollX=T(i)),i=(n=g())+.05*a*-t.velocityY/.227,a*=Xa(g,n,i,Ao(f,Ci)),o.vars.scrollY=P(i),o.invalidate().duration(a).play(.01),(co&&o.vars.scrollY>=r||n>=r-1)&&ji.to({},{onUpdate:M,duration:a})}else l.restart(!0)},t.onWheel=function(){o._ts&&o.pause(),bo()-x>1e3&&(n=0,x=bo())},t.onChange=function(t,e,r,i,o){if(Da!==n&&k(),e&&u&&v(T(i[2]===e?a+(t.startX-t.x):v()+e-i[1])),r){g.offset&&C();var l=o[2]===r,c=l?s+t.startY-t.y:g()+r-o[1],h=P(c);l&&c!==h&&(s+=h-c),g(h)}(r||e)&&Ia()},t.onEnable=function(){Ua(f,!u&&"x"),$a.addEventListener("refresh",M),sa(Vi,"resize",M),g.smooth&&(g.target.style.scrollBehavior="auto",g.smooth=v.smooth=!1),_.enable()},t.onDisable=function(){Ua(f,!0),la(Vi,"resize",M),$a.removeEventListener("refresh",M),_.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Ri(t)).iOS=co,co&&!g()&&g(1),co&&ji.ticker.add(To),l=e._dc,o=ji.to(e,{ease:"power4",paused:!0,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:l.vars.onComplete}),e};$a.sort=function(t){return ya.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},$a.observe=function(t){return new Ri(t)},$a.normalizeScroll=function(t){if(void 0===t)return oo;if(!0===t&&oo)return oo.enable();if(!1===t)return oo&&oo.kill();var e=t instanceof Ri?t:es(t);return oo&&oo.target===e.target&&oo.kill(),Mo(e.target)&&(oo=e),e},$a.core={_getVelocityProp:Ai,_inputObserver:Ka,_scrollers:mi,_proxies:yi,bridge:{ss:function(){xo||Ta("scrollStart"),xo=bo()},ref:function(){return Ui}}},Co()&&ji.registerPlugin($a);function rs(t){return rs="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},rs(t)}function ns(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function is(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hs(n.key),n)}}
2function os(t,e){return os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},os(t,e)}function as(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=cs(t);if(e){var i=cs(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ss(this,r)}}function ss(t,e){if(e&&("object"===rs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ls(t)}function ls(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cs(t){return cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cs(t)}function us(t,e,r){return(e=hs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hs(t){var e=function(t,e){if("object"!==rs(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rs(e)?e:String(e)}var ps=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&os(t,e)}(o,t);var e,r,n,i=as(o);function o(){var t;ns(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return us(ls(t=i.call.apply(i,[this].concat(r))),"loadingItems",document.querySelectorAll(".loader-item")),us(ls(t),"loadedCounter",0),us(ls(t),"loaded",!1),us(ls(t),"duration",5),us(ls(t),"load",(function(){t.loadingItems.forEach((function(e,r){if("video"===e.dataset.type)4===e.readyState&&t.loadedCounter++;else{var n=new Image;n.src=e.src,n.onload=function(){},t.loadedCounter++}t.loadedCounter>=t.loadingItems.length/2&&!t.loaded&&t.element.classList.add("done")}))})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;window.requestAnimationFrame((function(){t.load()}))}}])&&is(e.prototype,r),n&&is(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function fs(t){return fs="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},fs(t)}function ds(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ms(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ss(n.key),n)}}function ys(t,e){return ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ys(t,e)}function gs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=ws(t);if(e){var i=ws(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return vs(this,r)}}function vs(t,e){if(e&&("object"===fs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bs(t)}function bs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ws(t){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ws(t)}function xs(t,e,r){return(e=Ss(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ss(t){var e=function(t,e){if("object"!==fs(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==fs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===fs(e)?e:String(e)}us(ps,"targets",["number"]);var _s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ys(t,e)}(o,t);var e,r,n,i=gs(o);function o(){var t;ds(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return xs(bs(t=i.call.apply(i,[this].concat(r))),"height",void 0),xs(bs(t),"onScroll",(function(){var e=window.scrollY/t.height;t.indicatorTarget.style.transform="scaleY(".concat(e,")")})),t}return e=o,(r=[{key:"connect",value:function(){this.recalculate(),window.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.recalculate)}},{key:"disconnect",value:function(){window.removeEventListener("resize",this.recalculate),window.removeEventListener("scroll",this.onScroll)}},{key:"recalculate",value:function(){this.height=document.body.scrollHeight-window.innerHeight}}])&&ms(e.prototype,r),n&&ms(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Es(t){return Es="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},Es(t)}function Ts(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ps(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ls(n.key),n)}}function ks(t,e){return ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ks(t,e)}function Cs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=As(t);if(e){var i=As(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ms(this,r)}}function Ms(t,e){if(e&&("object"===Es(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ds(t)}function Ds(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function As(t){return As=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},As(t)}function Os(t,e,r){return(e=Ls(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ls(t){var e=function(t,e){if("object"!==Es(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Es(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Es(e)?e:String(e)}xs(_s,"targets",["indicator"]);var Is=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ks(t,e)}(o,t);var e,r,n,i=Cs(o);function o(){var t;Ts(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Os(Ds(t=i.call.apply(i,[this].concat(r))),"minOffsets",[{dx:-60,dy:-20,x:-50,y:20},{dx:60,dy:-80,x:60,y:20},{dx:-20,dy:-80,x:-50,y:-60}]),Os(Ds(t),"drawPath",(function(e){var r=t.minOffsets[e],n=Math.floor(Math.random()*r.dx)+r.dx,i=Math.floor(Math.random()*r.dy)+r.dy,o=Math.floor(Math.random()*r.x)+r.x,a=Math.floor(Math.random()*r.y)+r.y;return"".concat(n," ").concat(i,", ").concat(o," ").concat(a)})),Os(Ds(t),"animate",(function(){var e=t.spriteTargets.length,r=[];t.pathTargets.forEach((function(n,i){n.setAttribute("d","M150 150 c0 -80, ".concat(t.drawPath(i)));for(var o=Math.floor(Math.random()*e);r.includes(o);)o=Math.floor(Math.random()*e);r.push(o)}
2)),t.motionTargets.forEach((function(e,n){var i=t.opacityAnimateTargets[n],o=t.rotateAnimateTargets[n],a=t.spriteTargets[r[n]];e.setAttribute("href","#".concat(a.getAttribute("id"))),i.setAttribute("href","#".concat(a.getAttribute("id"))),o.setAttribute("href","#".concat(a.getAttribute("id")))})),t.motionTargets[0].beginElement(),t.motionTargets[0].addEventListener("endEvent",(function(){var t=new CustomEvent("motion-end",{bubbles:!0});window.dispatchEvent(t)}))})),t}return e=o,(r=[{key:"connect",value:function(){window.innerWidth>767&&this.animate()}}])&&Ps(e.prototype,r),n&&Ps(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);Os(Is,"targets",["sprite","motion","path","opacityAnimate","rotateAnimate"]);var Fs=function(){return Math.random().toString(36).substr(2,9)};function Rs(t){return Rs="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},Rs(t)}function js(t){return function(t){if(Array.isArray(t))return Bs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Bs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bs(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ws(n.key),n)}}function Ns(t,e){return Ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ns(t,e)}function Gs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ys(t);if(e){var i=Ys(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Hs(this,r)}}function Hs(t,e){if(e&&("object"===Rs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return qs(t)}function qs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ys(t){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ys(t)}function $s(t,e,r){return(e=Ws(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ws(t){var e=function(t,e){if("object"!==Rs(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Rs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rs(e)?e:String(e)}var Xs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ns(t,e)}(o,t);var e,r,n,i=Gs(o);function o(){var t;Vs(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return $s(qs(t=i.call.apply(i,[this].concat(r))),"animationArea",void 0),$s(qs(t),"isFirstRender",!0),$s(qs(t),"onClick",(function(e){var r=t.animationArea.cloneNode(!0),n=r.querySelectorAll("path");
2n.forEach((function(t){t.setAttribute("id",Fs())}));var i=r.querySelectorAll("animateMotion");i.forEach((function(t,e){t.querySelector("mpath").setAttribute("href","#".concat(n[e].getAttribute("id")))}));var o=r.querySelectorAll("animate"),a=r.querySelectorAll("animateTransform"),s=Fs();[].concat(js(i),js(o),js(a)).forEach((function(t,e){e>0?t.setAttribute("begin","m".concat(s,".begin")):t.setAttribute("id","m".concat(s))}));var l=r.querySelectorAll("use");l.forEach((function(t){t.setAttribute("id",Fs())})),l.forEach((function(t){t.setAttribute("id",Fs())})),document.body.appendChild(r);var c=e.clientX,u=e.clientY,h=r.getBoundingClientRect(),p=h.width,f=h.height;r.style.transform="translate(".concat(c-p/2,"px, ").concat(u-f/2,"px)"),i[0].addEventListener("endEvent",(function(){r.remove()}))})),t}return e=o,(r=[{key:"connect",value:function(){var t=document.querySelector(".click-animation-area");this.animationArea=t.cloneNode(!0),t.remove(),window.addEventListener("click",this.onClick)}},{key:"disconnect",value:function(){window.removeEventListener("click",this.onClick)}}])&&zs(e.prototype,r),n&&zs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Us(t){return Us="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},Us(t)}function Zs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,il(n.key),n)}}function Ks(t,e){return Ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ks(t,e)}function Js(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=rl(t);if(e){var i=rl(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return tl(this,r)}}function tl(t,e){if(e&&("object"===Us(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return el(t)}function el(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rl(t){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rl(t)}function nl(t,e,r){return(e=il(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function il(t){var e=function(t,e){if("object"!==Us(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Us(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Us(e)?e:String(e)}var ol=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ks(t,e)}(o,t);var e,r,n,i=Js(o);function o(){var t;Zs(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return nl(el(t=i.call.apply(i,[this].concat(r))),"wrappers",Qn.utils.toArray(t.wrapperTargets)),nl(el(t),"scrollWrapper",(function(){Qn.matchMedia().add("(min-width: 1280px)",(function(){t.tl=Qn.timeline().to(t.wrappers,{y:function(e,r){var n=t.pinnedTarget.getBoundingClientRect().bottom,i=r.getBoundingClientRect().bottom;return r.lastElementChild.getBoundingClientRect().bottom<n?0:n-i},ease:"none",scrollTrigger:{trigger:t.pinnedTarget,pin:!0,start:"top",end:function(e){var r=t.element.getBoundingClientRect().bottom,n=t.lastItem.getBoundingClientRect().bottom;return r<n?"".concat(n):e.start},scrub:!0,anticipatePin:1,invalidateOnRefresh:!0,preventOverlaps:!0}})}))})),t}return e=o,(r=[{key:"connect",value:function(){this.hasWrapperTarget&&(Qn.registerPlugin($a),this.lastItem=this.largestLastItem,this.scrollWrapper())}},{key:"largestLastItem",get:function(){return this.wrapperTargets.sort((function(t,e){return e.lastElementChild.getBoundingClientRect().bottom-t.lastElementChild.getBoundingClientRect().bottom}))[0].lastElementChild}}])&&Qs(e.prototype,r),n&&Qs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function al(t){return al="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},al(t)}function sl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ll(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ml(n.key),n)}}function cl(t,e){return cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cl(t,e)}function ul(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=fl(t);if(e){var i=fl(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return hl(this,r)}}function hl(t,e){if(e&&("object"===al(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pl(t)}function pl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fl(t){return fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fl(t)}function dl(t,e,r){return(e=ml(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ml(t){var e=function(t,e){if("object"!==al(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==al(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===al(e)?e:String(e)}nl(ol,"targets",["wrapper","pinned"]);var yl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cl(t,e)}(o,t);var e,r,n,i=ul(o);function o(){var t;sl(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return dl(pl(t=i.call.apply(i,[this].concat(r))),"currentWidth",t.element.getBoundingClientRect().width),dl(pl(t),"currentHeight",t.element.getBoundingClientRect().height),dl(pl(t),"resize",(function(){t.removeSvg(),t.createSvg()})),dl(pl(t),"createSvg",(function(){t.count++;var e='<svg class="button__border"><path class="button__border-rect" d="'.concat(t.roundedRectData,'"></path></svg>');t.element.insertAdjacentHTML("afterbegin",e)})),dl(pl(t),"removeSvg",(function(){t.element.querySelector(".button__border").remove()})),t}return e=o,r=[{key:"initialize",value:function(){var t=this;window.innerWidth>767&&(this.createSvg(),this.observer=new ResizeObserver((function(e){e.forEach((function(e){var r=e.borderBoxSize[0].inlineSize,n=e.borderBoxSize[0].blockSize;r===t.currentWidth&&n===t.currentHeight||(t.resize(),t.currentWidth=r,t.currentHeight=n)}))})),this.observer.observe(this.element))}},{key:"borderRadius",get:function(){var t=window.getComputedStyle(this.element).borderRadius;return t?parseFloat(t,10):0}},{key:"elementSizes",get:function(){var t=this.element.getBoundingClientRect();return{width:t.width-2,height:t.height-2,radius:this.borderRadius}}},{key:"roundedRectData",get:function(){var t=this.elementSizes,e=t.width,r=t.height,n=t.radius;return"M ".concat(e/2," 0 L ").concat(e-n," 0")+" Q ".concat(e," 0 ").concat(e," ").concat(n," L ").concat(e," ").concat(r-n," Q ").concat(e," ").concat(r," ").concat(e-n," ").concat(r," L ").concat(n," ").concat(r," Q 0 ").concat(r," 0 ").concat(r-n," L 0 ").concat(n," Q 0 0 ").concat(n," 0\n      L ").concat(e/2," 0\n    Z")}}],r&&ll(e.prototype,r),n&&ll(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function gl(t){return gl="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},gl(t)}function vl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pl(n.key),n)}}function wl(t,e){return wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wl(t,e)}function xl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=El(t);if(e){var i=El(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Sl(this,r)}}function Sl(t,e){if(e&&("object"===gl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _l(t)}function _l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function El(t){return El=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},El(t)}function Tl(t,e,r){return(e=Pl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pl(t){var e=function(t,e){if("object"!==gl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===gl(e)?e:String(e)}var kl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wl(t,e)}(o,t);var e,r,n,i=xl(o);function o(){var t;vl(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Tl(_l(t=i.call.apply(i,[this].concat(r))),"lastSelectedBrand",void 0),Tl(_l(t),"changeContent",(function(e){t.brandTargets.forEach((function(t){return t.classList.remove("active")}));var r=e.target,n=r.dataset.color;r.classList.add("active"),t.setBackground(n),t.setImage(r)})),Tl(_l(t),"setBackground",(function(t){document.documentElement.style.setProperty("--current-active-brand-color",t)})),Tl(_l(t),"setImage",(function(e){var r=e.dataset,n=r.imageSrc,i=r.cursor;i?t.element.style.cursor="url(".concat(i,"), auto"):(t.element.style.cursor="default",e.style.cursor="pointer"),t.removePreviousImage();var o=new Image;o.src=n,o.alt=t.lastSelectedBrand,o.classList.add("our-brands__image","active"),t.imageWrapperTarget.appendChild(o)})),Tl(_l(t),"removePreviousImage",(function(){var e=t.imageWrapperTarget.children;e.length&&e[0].remove()})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.brandTargets.forEach((function(e){e.addEventListener("mouseenter",t.changeContent)}))}}])&&bl(e.prototype,r),n&&bl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Cl(t){return Cl="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},Cl(t)}function Ml(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jl(n.key),n)}}function Al(t,e){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Al(t,e)}function Ol(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Fl(t);if(e){var i=Fl(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ll(this,r)}}function Ll(t,e){if(e&&("object"===Cl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Il(t)}function Il(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fl(t){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fl(t)}function Rl(t,e,r){return(e=jl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jl(t){var e=function(t,e){if("object"!==Cl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Cl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Cl(e)?e:String(e)}Tl(kl,"targets",["brand","imageWrapper"]);var Bl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Al(t,e)}(o,t);var e,r,n,i=Ol(o);function o(){var t;Ml(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Rl(Il(t=i.call.apply(i,[this].concat(r))),"activeSlideIndex",0),Rl(Il(t),"slides",void 0),Rl(Il(t),"lock",!1),Rl(Il(t),"rotateAngle",0),Rl(Il(t),"scale",.8),Rl(Il(t),"delta",0),Rl(Il(t),"changeCurrentSlideNumber",(function(){t.currentSlideNumberTarget.textContent=t.currentSlideNumber})),Rl(Il(t),"changeActiveIndex",(function(e){t.activeSlideIndex=e>0?t.activeSlideIndex<t.slides.length-1?t.activeSlideIndex+1:0:0===t.activeSlideIndex?t.slides.length-1:t.activeSlideIndex-1})),Rl(Il(t),"getRotateAngle",(function(e){return e>0?Math.min(3,t.rotateAngle):Math.max(-3,t.rotateAngle)})),Rl(Il(t),"drag",(function(e){var r=e.deltaX>0?-1:1;t.tl.to([t.currentSlide,t.nextSlide],{x:function(t){return 0===t?"+=".concat(e.deltaX):0},scale:function(e){return 1===e?Math.min(1,t.scale):1},rotate:function(e){return 0===e?t.getRotateAngle(r):0},onComplete:function(){t.rotateAngle+=.1*r,t.scale+=.001,t.delta+=e.deltaX},duration:0})}
2)),Rl(Il(t),"endDrag",(function(e){var r=[t.currentSlide,t.nextSlide];t.lock=!0,t.tl.to(r,{xPercent:function(t){return t>0?0:e.deltaX>0?200:-200},scale:1,onComplete:function(){return t.changeSlide(1)},duration:.3},"<").to(r,{xPercent:0,x:0,rotate:0,onComplete:function(){t.lock=!1,t.rotateAngle=0,t.scale=.8}})})),Rl(Il(t),"changeSlideAnimation",(function(e){if(!t.lock){e<0&&(t.prevSlide.classList.add("prev"),t.nextSlide.classList.remove("next")),t.lock=!0;var r=e>0?[t.currentSlide,t.nextSlide]:[t.prevSlide,t.currentSlide];t.tl.fromTo(r,{xPercent:function(t){return 0===t?e>0?0:-200:0},scale:function(t){return e>0&&t>0?.8:1},rotate:0},{xPercent:function(t){return 0===t&&e>0?-200:0},scale:function(t){return t>0&&e<0?.8:1},rotate:function(t){return t>0?0:3},onComplete:function(){return t.changeSlide(e)}}).to(r,{xPercent:0,x:0,rotate:0,onComplete:function(){t.lock=!1},duration:.4},"<+0.4")}})),Rl(Il(t),"goToNextSlide",(function(){t.changeSlideAnimation(1)})),Rl(Il(t),"goToPrevSlide",(function(){t.changeSlideAnimation(-1)})),Rl(Il(t),"changeSlide",(function(e){window.requestAnimationFrame((function(){t.currentSlide.classList.remove("active"),t.nextSlide.classList.remove("next"),e>0?t.nextSlide.classList.add("active"):(t.prevSlide.classList.remove("prev"),t.prevSlide.classList.add("active")),t.changeActiveIndex(e),t.nextSlide.classList.add("next"),t.changeCurrentSlideNumber()}))})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;Ri.create({id:"observer",target:this.sliderTarget,type:"touch, pointer",onDrag:function(e){return!t.lock&&t.drag(e)},onDragEnd:function(e){return!t.lock&&t.endDrag(e)},capture:!0,debounce:!0}),this.tl=Qn.timeline(),this.slides=Qn.utils.toArray(".main-slider__slide");var e="".concat(this.slides.length).padStart(2,"0");this.totalSlidesNumberTarget.textContent="-".concat(e),this.nextTarget.addEventListener("click",this.goToNextSlide),this.prevTarget.addEventListener("click",this.goToPrevSlide)}},{key:"disconnect",value:function(){this.nextTarget.removeEventListener("click",this.goToNextSlide),this.prevTarget.removeEventListener("click",this.goToPrevSlide)}},{key:"nextSlide",get:function(){var t=this.activeSlideIndex<this.slides.length-1?this.activeSlideIndex+1:0;return this.slides[t]}},{key:"prevSlide",get:function(){var t=0===this.activeSlideIndex?this.slides.length-1:this.activeSlideIndex-1;return this.slides[t]}},{key:"currentSlide",get:function(){return this.slides[this.activeSlideIndex]}},{key:"currentSlideNumber",get:function(){return this.activeSlideIndex<=this.slides.length-1?"".concat(this.activeSlideIndex+1).padStart(2,"0"):"01"}}])&&Dl(e.prototype,r),n&&Dl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Vl(t){return Vl="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},Vl(t)}function zl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Xl(n.key),n)}}function Gl(t,e){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gl(t,e)}function Hl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=$l(t);if(e){var i=$l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ql(this,r)}}function ql(t,e){if(e&&("object"===Vl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Yl(t)}function Yl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $l(t){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$l(t)}function Wl(t,e,r){return(e=Xl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xl(t){var e=function(t,e){if("object"!==Vl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Vl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===Vl(e)?e:String(e)}Rl(Bl,"targets",["slider","prev","next","currentSlideNumber","totalSlidesNumber"]),Rl(Bl,"tl",void 0);var Ul=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gl(t,e)}(o,t);var e,r,n,i=Hl(o);function o(){var t;zl(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Wl(Yl(t=i.call.apply(i,[this].concat(r))),"activeIndex",0),Wl(Yl(t),"onClick",(function(e){var r=t.buttonTargets.indexOf(e.target);if(!(r<0||r===t.activeIndex)){t.buttonTargets[t.activeIndex].classList.remove("active"),t.wrapperTargets[t.activeIndex].classList.remove("active","visible"),t.activeIndex=r,e.target.classList.add("active");var n=t.wrapperTargets[t.activeIndex];n.classList.add("visible"),window.requestAnimationFrame((function(){n.classList.add("active"),document.dispatchEvent(new CustomEvent("tabs:update",{bubbles:!0}))}))}})),Wl(Yl(t),"onTransitionEnd",(function(e){"transform"===e.propertyName&&t.element.classList.remove("overflowed")})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.buttonTargets.forEach((function(e,r){e.classList.contains("active")&&(t.activeIndex=r,t.wrapperTargets[r].classList.add("visible","active")),e.addEventListener("click",t.onClick)})),this.wrapperTargets.forEach((function(e){e.addEventListener("transitionend",t.onTransitionEnd)}))}}])&&Nl(e.prototype,r),n&&Nl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Zl(t){return Zl="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},Zl(t)}function Ql(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oc(n.key),n)}}function Jl(t,e){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jl(t,e)}function tc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=nc(t);if(e){var i=nc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ec(this,r)}}function ec(t,e){if(e&&("object"===Zl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rc(t)}function rc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nc(t){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nc(t)}function ic(t,e,r){return(e=oc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oc(t){var e=function(t,e){if("object"!==Zl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Zl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Zl(e)?e:String(e)}Wl(Ul,"targets",["button","wrapper"]);var ac=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jl(t,e)}(o,t);var e,r,n,i=tc(o);function o(){var t;Ql(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return ic(rc(t=i.call.apply(i,[this].concat(r))),"timeoutShow",void 0),ic(rc(t),"moreTablet",window.matchMedia("(min-width: 1280px)")),ic(rc(t),"isMobile",window.matchMedia("(max-width: 768px)")),ic(rc(t),"toggleHoverBackgroun
2d",(function(e){e.forEach((function(e){e.dataset.background&&(e.removeEventListener("mouseenter",t.setBackground),e.removeEventListener("mouseleave",t.resetBackground))}))})),ic(rc(t),"arrangeTiles",(function(){t.elementTargets.forEach((function(t){var e=t.dataset,r=e.column,n=e.row;t.style.gridArea=r,t.style.gridRow=n}))})),ic(rc(t),"setBackground",(function(e){var r=e.target.dataset.background;t.timeoutShow=setTimeout((function(){t.bgWrapperTarget.children[0].src=r,t.bgWrapperTarget.classList.add("active")}),250)})),ic(rc(t),"resetBackground",(function(e){e.target.classList.contains("active")||(t.bgWrapperTarget.classList.remove("active"),clearTimeout(t.timeoutShow))})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.moreTablet.matches&&(this.arrangeTiles(),this.elementTargets.forEach((function(e){e.dataset.background&&(e.addEventListener("mouseenter",t.setBackground),e.addEventListener("mouseleave",t.resetBackground))}))),this.moreTablet.addEventListener("change",this.arrangeTiles),this.isMobile.addEventListener("change",this.toggleHoverBackground)}}])&&Kl(e.prototype,r),n&&Kl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);ic(ac,"targets",["bgWrapper","element"]);var sc=!1;if("undefined"!=typeof window){var lc={get passive(){sc=!0}};window.addEventListener("testPassive",null,lc),window.removeEventListener("testPassive",null,lc)}var cc="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),uc=[],hc=!1,pc=-1,fc=void 0,dc=void 0,mc=void 0,yc=function(t){return uc.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},gc=function(t){var e=t||window.event;return!!yc(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},vc=function(){void 0!==mc&&(document.body.style.paddingRight=mc,mc=void 0),void 0!==fc&&(document.body.style.overflow=fc,fc=void 0)},bc=function(){if(void 0!==dc){var t=-parseInt(document.body.style.top,10),e=-parseInt(document.body.style.left,10);document.body.style.position=dc.position,document.body.style.top=dc.top,document.body.style.left=dc.left,window.scrollTo(e,t),dc=void 0}},wc=function(t,e){if(t){if(!uc.some((function(e){return e.targetElement===t}))){var r={targetElement:t,options:e||{}};uc=[].concat(function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(uc),[r]),cc?window.requestAnimationFrame((function(){if(void 0===dc){dc={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,e=t.scrollY,r=t.scrollX,n=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-e,document.body.style.left=-r,setTimeout((function(){return window.requestAnimationFrame((function(){var t=n-window.innerHeight;t&&e>=n&&(document.body.style.top=-(e+t))}))}),300)}})):function(t){if(void 0===mc){var e=!!t&&!0===t.reserveScrollBarGap,r=window.innerWidth-document.documentElement.clientWidth;if(e&&r>0){var n=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);mc=document.body.style.paddingRight,document.body.style.paddingRight=n+r+"px"}}void 0===fc&&(fc=document.body.style.overflow,document.body.style.overflow="hidden")}(e),cc&&(t.ontouchstart=function(t){1===t.targetTouches.length&&(pc=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){var r=t.targetTouches[0].clientY-pc;!yc(t.target)&&(e&&0===e.scrollTop&&r>0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&r<0?gc(t):t.stopPropagation())}(e,t)},hc||(document.addEventListener("touchmove",gc,sc?{passive:!1}:void 0),hc=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},xc=function(t){t?(uc=uc.filter((function(e){return e.targetElement!==t})),cc&&(t.ontouchstart=null,t.ontouchmove=null,hc&&0===uc.length&&(document.removeEventListener("touchmove",gc,sc?{passive:!1}:void 0),hc=!1)),cc?bc():vc()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")};function Sc(t){return Sc="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},Sc(t)}function _c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ec(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ac(n.key),n)}}
2function Tc(t,e){return Tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tc(t,e)}function Pc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Mc(t);if(e){var i=Mc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kc(this,r)}}function kc(t,e){if(e&&("object"===Sc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cc(t)}function Cc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mc(t){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mc(t)}function Dc(t,e,r){return(e=Ac(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ac(t){var e=function(t,e){if("object"!==Sc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sc(e)?e:String(e)}var Oc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tc(t,e)}(o,t);var e,r,n,i=Pc(o);function o(){var t;_c(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Dc(Cc(t=i.call.apply(i,[this].concat(r))),"openModalId",void 0),Dc(Cc(t),"buttonActive",void 0),Dc(Cc(t),"closeModal",(function(){t.element.removeEventListener("click",t.onCloseModal);var e=document.querySelector(".modal--open");e&&(e.classList.remove("modal--open"),t.buttonActive&&(t.buttonActive.classList.remove("active"),t.buttonActive=null),t.element.querySelectorAll(".production__background").forEach((function(t){t.classList.remove("active")})),xc(document.body))})),Dc(Cc(t),"onCloseModal",(function(e){var r=document.getElementById(t.openModalId);"Escape"!==e.code&&e.target!==r||t.closeModal(),document.dispatchEvent(new CustomEvent("modal:close"))})),Dc(Cc(t),"openModal",(function(e){if(e){for(t.buttonActive=e.target;!t.buttonActive.dataset.modalId;)t.buttonActive=t.buttonActive.parentElement;t.openModalId=t.buttonActive.dataset.modalId,document.getElementById(t.openModalId).classList.add("modal--open"),t.buttonActive.classList.add("active")}if("modal-video"===t.openModalId){document.addEventListener("turbo:frame-render",(function t(){var e=new CustomEvent("modal:play-video");document.dispatchEvent(e),document.removeEventListener("turbo:frame-render",t)}))}return"modal-photo"!==t.openModalId&&t.element.addEventListener("click",t.onCloseModal),wc(document.body,{allowTouchMove:function(t){for(var e=t;e&&e!==document.body;){if(null!==e.getAttribute("body-scroll-lock-ignore"))return!0;e=e.parentElement}return!1}})})),Dc(Cc(t),"onScroll",(function(){var e=t.contentTarget.scrollTop/(t.contentTarget.scrollHeight-window.innerHeight);t.indicatorTarget.style.transform="scaleY(".concat(e,")")})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.hasContentTarget&&(this.contentTarget.addEventListener("scroll",this.onScroll),this.contentTarget.addEventListener("resize",this.recalculate)),document.addEventListener("modal-content:change",(function(e){return t.openModal(e.detail)})),document.addEventListener("turbo:click",this.closeModal),document.addEventListener("keyup",this.onCloseModal);var e=document.querySelector(".modal--open");e&&(this.openModalId=e.id,this.openModal())}},{key:"disconnect",value:function(){this.hasContentTarget&&(this.contentTarget.removeEventListener("scroll",this.onScroll),this.contentTarget.removeEventListener("resize",this.recalculate)),document.removeEventListener("keyup",this.onCloseModal),document.removeEventListener("turbo:click",this.closeModal)}}])&&Ec(e.prototype,r),n&&Ec(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Lc(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function Ic(t={},e={}){Object.keys(e).forEach((r=>{void 0===t[r]?t[r]=e[r]:Lc(e[r])&&Lc(t[r])&&Object.keys(e[r]).length>0&&Ic(t[r],e[r])}))}Dc(Oc,"targets",["button","content","indicator"]);const Fc={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Rc(){const t="undefined"!=typeof document?document:{};return Ic(t,Fc),t}const jc={document:Fc,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){}
vendor: 9,912 bytes, line 2
2,clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function Bc(){const t="undefined"!=typeof window?window:{};return Ic(t,jc),t}class Vc extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>e,set(t){e.__proto__=t}})}(this))}}function zc(t=[]){const e=[];return t.forEach((t=>{Array.isArray(t)?e.push(...zc(t)):e.push(t)})),e}function Nc(t,e){return Array.prototype.filter.call(t,e)}function Gc(t,e){const r=Bc(),n=Rc();let i=[];if(!e&&t instanceof Vc)return t;if(!t)return new Vc(i);if("string"==typeof t){const r=t.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let t="div";0===r.indexOf("<li")&&(t="ul"),0===r.indexOf("<tr")&&(t="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(t="tr"),0===r.indexOf("<tbody")&&(t="table"),0===r.indexOf("<option")&&(t="select");const e=n.createElement(t);e.innerHTML=r;for(let t=0;t<e.childNodes.length;t+=1)i.push(e.childNodes[t])}else i=function(t,e){if("string"!=typeof t)return[t];const r=[],n=e.querySelectorAll(t);for(let t=0;t<n.length;t+=1)r.push(n[t]);return r}(t.trim(),e||n)}else if(t.nodeType||t===r||t===n)i.push(t);else if(Array.isArray(t)){if(t instanceof Vc)return t;i=t}return new Vc(function(t){const e=[];for(let r=0;r<t.length;r+=1)-1===e.indexOf(t[r])&&e.push(t[r]);return e}(i))}Gc.fn=Vc.prototype;const Hc="resize scroll".split(" ");function qc(t){return function(...e){if(void 0===e[0]){for(let e=0;e<this.length;e+=1)Hc.indexOf(t)<0&&(t in this[e]?this[e][t]():Gc(this[e]).trigger(t));return this}return this.on(t,...e)}}qc("click"),qc("blur"),qc("focus"),qc("focusin"),qc("focusout"),qc("keyup"),qc("keydown"),qc("keypress"),qc("submit"),qc("change"),qc("mousedown"),qc("mousemove"),qc("mouseup"),qc("mouseenter"),qc("mouseleave"),qc("mouseout"),qc("mouseover"),qc("touchstart"),qc("touchend"),qc("touchmove"),qc("resize"),qc("scroll");const Yc={addClass:function(...t){const e=zc(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.add(...e)})),this},removeClass:function(...t){const e=zc(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.remove(...e)})),this},hasClass:function(...t){const e=zc(t.map((t=>t.split(" "))));return Nc(this,(t=>e.filter((e=>t.classList.contains(e))).length>0)).length>0},toggleClass:function(...t){const e=zc(t.map((t=>t.split(" "))));this.forEach((t=>{e.forEach((e=>{t.classList.toggle(e)}))}))},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r].setAttribute(t,e);else for(const e in t)this[r][e]=t[e],this[r].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?`${t}ms`:t;return this},on:function(...t){let[e,r,n,i]=t;function o(t){const e=t.target;if(!e)return;const i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),Gc(e).is(r))n.apply(e,i);else{const t=Gc(e).parents();for(let e=0;e<t.length;e+=1)Gc(t[e]).is(r)&&n.apply(t[e],i)}}function a(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"==typeof t[1]&&([e,n,i]=t,r=void 0),i||(i=!1);const s=e.split(" ");let l;for(let t=0;t<this.length;t+=1){const e=this[t];if(r)for(l=0;l<s.length;l+=1){const t=s[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:n,proxyListener:o}),e.addEventListener(t,o,i)}else for(l=0;l<s.length;l+=1){const t=s[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:n,proxyListener:a}),e.addEventListener(t,a,i)}}return this},off:function(...t){let[e,r,n,i]=t;"function"==typeof t[1]&&([e,n,i]=t,r=void 0),i||(i=!1);const o=e.split(" ");for(let t=0;t<o.length;t+=1){const e=o[t];for(let t=0;t<this.length;t+=1){const o=this[t];let a;if(!r&&o.dom7Listeners?a=o.dom7Listeners[e]:r&&o.dom7LiveListeners&&(a=o.dom7LiveListeners[e]),a&&a.length)for(let t=a.length-1;t>=0;t-=1){const r=a[t];n&&r.listener===n||n&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===n?(o.removeEventListener(e,r.proxyListener,i),a.splice(t,1)):n||(o.removeEventListener(e,r.proxyListener,i),a.splice(t,1))}}}return this},trigger:function(...t){const e=Bc(),r=t[0].split(" "),n=t[1];for(let i=0;i<r.length;i+=1){const o=r[i];for(let r=0;r<this.length;r+=1){const i=this[r];if(e.CustomEvent){const r=new e.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0});i.dom7EventData=t.filter(((t,e)=>e>0)),i.dispatchEvent(r),i.dom7EventData=[],delete i.dom7EventData}}}return this},transitionEnd:function(t){const e=this;return t&&e.on("transitionend",(function r(n){n.target===this&&(t.call(this,n),e.off("transitionend",r))})),this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const t=Bc();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const t=Bc(),e=Rc(),r=this[0],n=r.getBoundingClientRect(),i=e.body,o=r.clientTop||i.clientTop||0,a=r.clientLeft||i.clientLeft||0,s=r===t?t.scrollY:r.scrollTop,l=r===t?t.scrollX:r.scrollLeft;return{top:n.top+s-o,left:n.left+l-a}}return null},css:function(t,e){const r=Bc();let n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(const e in t)this[n].style[e]=t[e];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this},each:function(t){return t?(this.forEach(((e,r)=>{t.apply(e,[e,r])})),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=Bc(),r=Rc(),n=this[0];let i,o;if(!n||void 0===t)return!1;if("string"==typeof t){if(n.matches)return n.matches(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);for(i=Gc(t),o=0;o<i.length;o+=1)if(i[o]===n)return!0;return!1}if(t===r)return n===r;if(t===e)return n===e;if(t.nodeType||t instanceof Vc){for(i=t.nodeType?[t]:t,o=0;o<i.length;o+=1)if(i[o]===n)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;if(t>e-1)return Gc([]);if(t<0){const r=e+t;return Gc(r<0?[]:[this[r]])}return Gc([this[t]])},append:function(...t){let e;const r=Rc();for(let n=0;n<t.length;n+=1){e=t[n];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const n=r.createElement("div");for(n.innerHTML=e;n.firstChild;)this[t].appendChild(n.firstChild)}else if(e instanceof Vc)for(let r=0;r<e.length;r+=1)this[t].appendChild(e[r]);else this[t].appendChild(e)}return this},prepend:function(t){const e=Rc();let r,n;for(r=0;r<this.length;r+=1)if("string"==typeof t){const i=e.createElement("div");for(i.innerHTML=t,n=i.childNodes.length-1;n>=0;n-=1)this[r].insertBefore(i.childNodes[n],this[r].childNodes[0])}else if(t instanceof Vc)for(n=0;n<t.length;n+=1)this[r].insertBefore(t[n],this[r].childNodes[0]);else this[r].insertBefore(t,this[r].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&Gc(this[0].nextElementSibling).is(t)?Gc([this[0].nextElementSibling]):Gc([]):this[0].nextElementSibling?Gc([this[0].nextElementSibling]):Gc([]):Gc([])},nextAll:function(t){const e=[];let r=this[0];if(!r)return Gc([]);for(;r.nextElementSibling;){const n=r.nextElementSibling;t?Gc(n).is(t)&&e.push(n):e.push(n),r=n}return Gc(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&Gc(e.previousElementSibling).is(t)?Gc([e.previousElementSibling]):Gc([]):e.previousElementSibling?Gc([e.previousElementSibling]):Gc([])}return Gc([])},prevAll:function(t){const e=[];let r=this[0];if(!r)return Gc([]);for(;r.previousElementSibling;){const n=r.previousElementSibling;t?Gc(n).is(t)&&e.push(n):e.push(n),r=n}return Gc(e)},parent:function(t){const e=[];for(let r=0;r<this.length;r+=1)null!==this[r].parentNode&&(t?Gc(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return Gc(e)},parents:function(t){const e=[];for(let r=0;r<this.length;r+=1){let n=this[r].parentNode;for(;n;)t?Gc(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return Gc(e)},closest:function(t){let e=this;return void 0===t?Gc([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let r=0;r<this.length;r+=1){const n=this[r].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return Gc(e)},children:function(t){const e=[];for(let r=0;r<this.length;r+=1){const n=this[r].children;for(let r=0;r<n.length;r+=1)t&&!Gc(n[r]).is(t)||e.push(n[r])}return Gc(e)},filter:function(t){return Gc(Nc(this,t))},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};
vendor: 5,226 bytes, line 2
2Object.keys(Yc).forEach((t=>{Object.defineProperty(Gc.fn,t,{value:Yc[t],writable:!0})}));const $c=Gc;function Wc(t,e=0){return setTimeout(t,e)}function Xc(){return Date.now()}function Uc(t,e="x"){const r=Bc();let n,i,o;const a=function(t){const e=Bc();let r;return e.getComputedStyle&&(r=e.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}(t);return r.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((t=>t.replace(",","."))).join(", ")),o=new r.WebKitCSSMatrix("none"===i?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===e&&(i=r.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(i=r.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}function Zc(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function Qc(...t){const e=Object(t[0]),r=["__proto__","constructor","prototype"];for(let i=1;i<t.length;i+=1){const o=t[i];if(null!=o&&(n=o,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const t=Object.keys(Object(o)).filter((t=>r.indexOf(t)<0));for(let r=0,n=t.length;r<n;r+=1){const n=t[r],i=Object.getOwnPropertyDescriptor(o,n);void 0!==i&&i.enumerable&&(Zc(e[n])&&Zc(o[n])?o[n].__swiper__?e[n]=o[n]:Qc(e[n],o[n]):!Zc(e[n])&&Zc(o[n])?(e[n]={},o[n].__swiper__?e[n]=o[n]:Qc(e[n],o[n])):e[n]=o[n])}}}var n;return e}function Kc(t,e,r){t.style.setProperty(e,r)}function Jc({swiper:t,targetPosition:e,side:r}){const n=Bc(),i=-t.translate;let o,a=null;const s=t.params.speed;t.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(t.cssModeFrameID);const l=e>i?"next":"prev",c=(t,e)=>"next"===l&&t>=e||"prev"===l&&t<=e,u=()=>{o=(new Date).getTime(),null===a&&(a=o);const l=Math.max(Math.min((o-a)/s,1),0),h=.5-Math.cos(l*Math.PI)/2;let p=i+h*(e-i);if(c(p,e)&&(p=e),t.wrapperEl.scrollTo({[r]:p}),c(p,e))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:p})})),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(u)};u()}let tu,eu,ru;function nu(){return tu||(tu=function(){const t=Bc(),e=Rc();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),passiveListener:function(){let e=!1;try{const r=Object.defineProperty({},"passive",{get(){e=!0}});t.addEventListener("testPassiveListener",null,r)}catch(t){}return e}(),gestures:"ongesturestart"in t}}()),tu}function iu(t={}){return eu||(eu=function({userAgent:t}={}){const e=nu(),r=Bc(),n=r.navigator.platform,i=t||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,s=r.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===n;let f="MacIntel"===n;return!c&&f&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${s}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),l&&!p&&(o.os="android",o.android=!0),(c||h||u)&&(o.os="ios",o.ios=!0),o}(t)),eu}function ou(){return ru||(ru=function(){const t=Bc();return{isSafari:function(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),ru}const au={on(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=r?"unshift":"push";return t.split(" ").forEach((t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][i](e)})),n},once(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;function i(...r){n.off(t,i),i.__emitterProxy&&delete i.__emitterProxy,e.apply(n,r)}return i.__emitterProxy=e,n.on(t,i,r)},onAny(t,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof t)return r;const n=e?"unshift":"push";return r.eventsAnyListeners.indexOf(t)<0&&r.eventsAnyListeners[n](t),r},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const r=e.eventsAnyListeners.indexOf(t);return r>=0&&e.eventsAnyListeners.splice(r,1),e},off(t,e){const r=this;return!r.eventsListeners||r.destroyed?r:r.eventsListeners?(t.split(" ").forEach((t=>{void 0===e?r.eventsListeners[t]=[]:r.eventsListeners[t]&&r.eventsListeners[t].forEach(((n,i)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&r.eventsListeners[t].splice(i,1)}))})),r):r},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let r,n,i;"string"==typeof t[0]||Array.isArray(t[0])?(r=t[0],n=t.slice(1,t.length),i=e):(r=t[0].events,n=t[0].data,i=t[0].context||e),n.unshift(i);
vendor: 11,213 bytes, line 2
2return(Array.isArray(r)?r:r.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(i,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((t=>{t.apply(i,n)}))})),e}};const su={updateSize:function(){const t=this;let e,r;const n=t.$el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:n[0].clientWidth,r=void 0!==t.params.height&&null!==t.params.height?t.params.height:n[0].clientHeight,0===e&&t.isHorizontal()||0===r&&t.isVertical()||(e=e-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),r=r-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(r)&&(r=0),Object.assign(t,{width:e,height:r,size:t.isHorizontal()?e:r}))},updateSlides:function(){const t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function r(t,r){return parseFloat(t.getPropertyValue(e(r))||0)}const n=t.params,{$wrapperEl:i,size:o,rtlTranslate:a,wrongRTL:s}=t,l=t.virtual&&n.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=i.children(`.${t.params.slideClass}`),h=l?t.virtual.slides.length:u.length;let p=[];const f=[],d=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(t));let y=n.slidesOffsetAfter;"function"==typeof y&&(y=n.slidesOffsetAfter.call(t));const g=t.snapGrid.length,v=t.slidesGrid.length;let b=n.spaceBetween,w=-m,x=0,S=0;if(void 0===o)return;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*o),t.virtualSize=-b,a?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),n.centeredSlides&&n.cssMode&&(Kc(t.wrapperEl,"--swiper-centered-offset-before",""),Kc(t.wrapperEl,"--swiper-centered-offset-after",""));const _=n.grid&&n.grid.rows>1&&t.grid;let E;_&&t.grid.initSlides(h);const T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((t=>void 0!==n.breakpoints[t].slidesPerView)).length>0;for(let i=0;i<h;i+=1){E=0;const a=u.eq(i);if(_&&t.grid.updateSlide(i,a,h,e),"none"!==a.css("display")){if("auto"===n.slidesPerView){T&&(u[i].style[e("width")]="");const o=getComputedStyle(a[0]),s=a[0].style.transform,l=a[0].style.webkitTransform;if(s&&(a[0].style.transform="none"),l&&(a[0].style.webkitTransform="none"),n.roundLengths)E=t.isHorizontal()?a.outerWidth(!0):a.outerHeight(!0);else{const t=r(o,"width"),e=r(o,"padding-left"),n=r(o,"padding-right"),i=r(o,"margin-left"),s=r(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)E=t+i+s;else{const{clientWidth:r,offsetWidth:o}=a[0];E=t+e+n+i+s+(o-r)}}s&&(a[0].style.transform=s),l&&(a[0].style.webkitTransform=l),n.roundLengths&&(E=Math.floor(E))}else E=(o-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(E=Math.floor(E)),u[i]&&(u[i].style[e("width")]=`${E}px`);u[i]&&(u[i].swiperSlideSize=E),d.push(E),n.centeredSlides?(w=w+E/2+x/2+b,0===x&&0!==i&&(w=w-o/2-b),0===i&&(w=w-o/2-b),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup==0&&p.push(w),f.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+E+b),t.virtualSize+=E+b,x=E,S+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+y,a&&s&&("slide"===n.effect||"coverflow"===n.effect)&&i.css({width:`${t.virtualSize+n.spaceBetween}px`}),n.setWrapperSize&&i.css({[e("width")]:`${t.virtualSize+n.spaceBetween}px`}),_&&t.grid.updateWrapperSize(E,p,e),!n.centeredSlides){const e=[];for(let r=0;r<p.length;r+=1){let i=p[r];n.roundLengths&&(i=Math.floor(i)),p[r]<=t.virtualSize-o&&e.push(i)}p=e,Math.floor(t.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-o)}if(0===p.length&&(p=[0]),0!==n.spaceBetween){const r=t.isHorizontal()&&a?"marginLeft":e("marginRight");u.filter(((t,e)=>!n.cssMode||e!==u.length-1)).css({[r]:`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let t=0;d.forEach((e=>{t+=e+(n.spaceBetween?n.spaceBetween:0)})),t-=n.spaceBetween;const e=t-o;p=p.map((t=>t<0?-m:t>e?e+y:t))}if(n.centerInsufficientSlides){let t=0;if(d.forEach((e=>{t+=e+(n.spaceBetween?n.spaceBetween:0)})),t-=n.spaceBetween,t<o){const e=(o-t)/2;p.forEach(((t,r)=>{p[r]=t-e})),f.forEach(((t,r)=>{f[r]=t+e}))}}if(Object.assign(t,{slides:u,snapGrid:p,slidesGrid:f,slidesSizesGrid:d}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Kc(t.wrapperEl,"--swiper-centered-offset-before",-p[0]+"px"),Kc(t.wrapperEl,"--swiper-centered-offset-after",t.size/2-d[d.length-1]/2+"px");const e=-t.snapGrid[0],r=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+r))}if(h!==c&&t.emit("slidesLengthChange"),p.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==v&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const e=`${n.containerModifierClass}backface-hidden`,r=t.$el.hasClass(e);h<=n.maxBackfaceHiddenSlides?r||t.$el.addClass(e):r&&t.$el.removeClass(e)}},updateAutoHeight:function(t){const e=this,r=[],n=e.virtual&&e.params.virtual.enabled;let i,o=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const a=t=>n?e.slides.filter((e=>parseInt(e.getAttribute("data-swiper-slide-index"),10)===t))[0]:e.slides.eq(t)[0];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||$c([])).each((t=>{r.push(t)}));else for(i=0;i<Math.ceil(e.params.slidesPerView);i+=1){const t=e.activeIndex+i;if(t>e.slides.length&&!n)break;r.push(a(t))}else r.push(a(e.activeIndex));for(i=0;i<r.length;i+=1)if(void 0!==r[i]){const t=r[i].offsetHeight;o=t>o?t:o}(o||0===o)&&e.$wrapperEl.css("height",`${o}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let r=0;r<e.length;r+=1)e[r].swiperSlideOffset=t.isHorizontal()?e[r].offsetLeft:e[r].offsetTop},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,r=e.params,{slides:n,rtlTranslate:i,snapGrid:o}=e;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&e.updateSlidesOffset();let a=-t;i&&(a=t),n.removeClass(r.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let t=0;t<n.length;t+=1){const s=n[t];let l=s.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(l-=n[0].swiperSlideOffset);const c=(a+(r.centeredSlides?e.minTranslate():0)-l)/(s.swiperSlideSize+r.spaceBetween),u=(a-o[0]+(r.centeredSlides?e.minTranslate():0)-l)/(s.swiperSlideSize+r.spaceBetween),h=-(a-l),p=h+e.slidesSizesGrid[t];(h>=0&&h<e.size-1||p>1&&p<=e.size||h<=0&&p>=e.size)&&(e.visibleSlides.push(s),e.visibleSlidesIndexes.push(t),n.eq(t).addClass(r.slideVisibleClass)),s.progress=i?-c:c,s.originalProgress=i?-u:u}e.visibleSlides=$c(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const r=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*r||0}const r=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:o,isEnd:a}=e;const s=o,l=a;0===n?(i=0,o=!0,a=!0):(i=(t-e.minTranslate())/n,o=i<=0,a=i>=1),Object.assign(e,{progress:i,isBeginning:o,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),o&&!s&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(s&&!o||l&&!a)&&e.emit("fromEdge"),e.emit("progress",i)},updateSlidesClasses:function(){const t=this,{slides:e,params:r,$wrapperEl:n,activeIndex:i,realIndex:o}=t,a=t.virtual&&r.virtual.enabled;let s;e.removeClass(`${r.slideActiveClass} ${r.slideNextClass} ${r.slidePrevClass} ${r.slideDuplicateActiveClass} ${r.slideDuplicateNextClass} ${r.slideDuplicatePrevClass}`),s=a?t.$wrapperEl.find(`.${r.slideClass}[data-swiper-slide-index="${i}"]`):e.eq(i),s.addClass(r.slideActiveClass),r.loop&&(s.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(r.slideDuplicateActiveClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(r.slideDuplicateActiveClass));let l=s.nextAll(`.${r.slideClass}`).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=e.eq(0),l.addClass(r.slideNextClass));let c=s.prevAll(`.${r.slideClass}`).eq(0).addClass(r.slidePrevClass);r.loop&&0===c.length&&(c=e.eq(-1),c.addClass(r.slidePrevClass)),r.loop&&(l.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass),c.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,r=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:n,snapGrid:i,params:o,activeIndex:a,realIndex:s,snapIndex:l}=e;let c,u=t;if(void 0===u){for(let t=0;t<n.length;t+=1)void 0!==n[t+1]?r>=n[t]&&r<n[t+1]-(n[t+1]-n[t])/2?u=t:r>=n[t]&&r<n[t+1]&&(u=t+1):r>=n[t]&&(u=t);o.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(i.indexOf(r)>=0)c=i.indexOf(r);else{const t=Math.min(o.slidesPerGroupSkip,u);c=t+Math.floor((u-t)/o.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),u===a)return void(c!==l&&(e.snapIndex=c,e.emit("snapIndexChange")));const h=parseInt(e.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(e,{snapIndex:c,realIndex:h,previousIndex:a,activeIndex:u}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),s!==h&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,r=e.params,n=$c(t).closest(`.${r.slideClass}`)[0];let i,o=!1;if(n)for(let t=0;t<e.slides.length;t+=1)if(e.slides[t]===n){o=!0,i=t;break}if(!n||!o)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt($c(n).attr("data-swiper-slide-index"),10):e.clickedIndex=i,r.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}};const lu={getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:r,translate:n,$wrapperEl:i}=this;if(e.virtualTranslate)return r?-n:n;if(e.cssMode)return n;let o=Uc(i[0],t);return r&&(o=-o),o||0},setTranslate:function(t,e){const r=this,{rtlTranslate:n,params:i,$wrapperEl:o,wrapperEl:a,progress:s}=r;let l,c=0,u=0;r.isHorizontal()?c=n?-t:t:u=t,i.roundLengths&&(c=Math.floor(c),u=Math.floor(u)),i.cssMode?a[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-c:-u:i.virtualTranslate||o.transform(`translate3d(${c}
2px, ${u}px, 0px)`),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?c:u;const h=r.maxTranslate()-r.minTranslate();l=0===h?0:(t-r.minTranslate())/h,l!==s&&r.updateProgress(t),r.emit("setTranslate",r.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,r=!0,n=!0,i){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(u=n&&t>l?l:n&&t<c?c:t,o.updateProgress(u),a.cssMode){const t=o.isHorizontal();if(0===e)s[t?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Jc({swiper:o,targetPosition:-u,side:t?"left":"top"}),!0;s.scrollTo({[t?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===e?(o.setTransition(0),o.setTranslate(u),r&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(u),r&&(o.emit("beforeTransitionStart",e,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,r&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}};function cu({swiper:t,runCallbacks:e,direction:r,step:n}){const{activeIndex:i,previousIndex:o}=t;let a=r;if(a||(a=i>o?"next":i<o?"prev":"reset"),t.emit(`transition${n}`),e&&i!==o){if("reset"===a)return void t.emit(`slideResetTransition${n}`);t.emit(`slideChangeTransition${n}`),"next"===a?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`)}}const uu={slideTo:function(t=0,e=this.params.speed,r=!0,n,i){if("number"!=typeof t&&"string"!=typeof t)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof t}] given.`);if("string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const o=this;let a=t;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:h,rtlTranslate:p,wrapperEl:f,enabled:d}=o;if(o.animating&&s.preventInteractionOnTransition||!d&&!n&&!i)return!1;const m=Math.min(o.params.slidesPerGroupSkip,a);let y=m+Math.floor((a-m)/o.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const g=-l[y];if(s.normalizeSlideIndex)for(let t=0;t<c.length;t+=1){const e=-Math.floor(100*g),r=Math.floor(100*c[t]),n=Math.floor(100*c[t+1]);void 0!==c[t+1]?e>=r&&e<n-(n-r)/2?a=t:e>=r&&e<n&&(a=t+1):e>=r&&(a=t)}if(o.initialized&&a!==h){if(!o.allowSlideNext&&g<o.translate&&g<o.minTranslate())return!1;if(!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(h||0)!==a)return!1}let v;if(a!==(u||0)&&r&&o.emit("beforeSlideChangeStart"),o.updateProgress(g),v=a>h?"next":a<h?"prev":"reset",p&&-g===o.translate||!p&&g===o.translate)return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(g),"reset"!==v&&(o.transitionStart(r,v),o.transitionEnd(r,v)),!1;if(s.cssMode){const t=o.isHorizontal(),r=p?g:-g;if(0===e){const e=o.virtual&&o.params.virtual.enabled;e&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),f[t?"scrollLeft":"scrollTop"]=r,e&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1}))}else{if(!o.support.smoothScroll)return Jc({swiper:o,targetPosition:r,side:t?"left":"top"}),!0;f.scrollTo({[t?"left":"top"]:r,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(g),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(r,v),0===e?o.transitionEnd(r,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(r,v))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0}
vendor: 6,168 bytes, line 2
2,slideToLoop:function(t=0,e=this.params.speed,r=!0,n){if("string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const i=this;let o=t;return i.params.loop&&(o+=i.loopedSlides),i.slideTo(o,e,r,n)},slideNext:function(t=this.params.speed,e=!0,r){const n=this,{animating:i,enabled:o,params:a}=n;if(!o)return n;let s=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(s=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<a.slidesPerGroupSkip?1:s;if(a.loop){if(i&&a.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return a.rewind&&n.isEnd?n.slideTo(0,t,e,r):n.slideTo(n.activeIndex+l,t,e,r)},slidePrev:function(t=this.params.speed,e=!0,r){const n=this,{params:i,animating:o,snapGrid:a,slidesGrid:s,rtlTranslate:l,enabled:c}=n;if(!c)return n;if(i.loop){if(o&&i.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function u(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const h=u(l?n.translate:-n.translate),p=a.map((t=>u(t)));let f=a[p.indexOf(h)-1];if(void 0===f&&i.cssMode){let t;a.forEach(((e,r)=>{h>=e&&(t=r)})),void 0!==t&&(f=a[t>0?t-1:t])}let d=0;if(void 0!==f&&(d=s.indexOf(f),d<0&&(d=n.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(d=d-n.slidesPerViewDynamic("previous",!0)+1,d=Math.max(d,0))),i.rewind&&n.isBeginning){const i=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(i,t,e,r)}return n.slideTo(d,t,e,r)},slideReset:function(t=this.params.speed,e=!0,r){return this.slideTo(this.activeIndex,t,e,r)},slideToClosest:function(t=this.params.speed,e=!0,r,n=.5){const i=this;let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const t=i.snapGrid[s];l-t>(i.snapGrid[s+1]-t)*n&&(o+=i.params.slidesPerGroup)}else{const t=i.snapGrid[s-1];l-t<=(i.snapGrid[s]-t)*n&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,t,e,r)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:r}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let i,o=t.clickedIndex;if(e.loop){if(t.animating)return;i=parseInt($c(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=r.children(`.${e.slideClass}[data-swiper-slide-index="${i}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Wc((()=>{t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=r.children(`.${e.slideClass}[data-swiper-slide-index="${i}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Wc((()=>{t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}};const hu={loopCreate:function(){const t=this,e=Rc(),{params:r,$wrapperEl:n}=t,i=n.children().length>0?$c(n.children()[0].parentNode):n;i.children(`.${r.slideClass}.${r.slideDuplicateClass}`).remove();let o=i.children(`.${r.slideClass}`);if(r.loopFillGroupWithBlank){const t=r.slidesPerGroup-o.length%r.slidesPerGroup;if(t!==r.slidesPerGroup){for(let n=0;n<t;n+=1){const t=$c(e.createElement("div")).addClass(`${r.slideClass} ${r.slideBlankClass}`);i.append(t)}o=i.children(`.${r.slideClass}`)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=o.length),t.loopedSlides=Math.ceil(parseFloat(r.loopedSlides||r.slidesPerView,10)),t.loopedSlides+=r.loopAdditionalSlides,t.loopedSlides>o.length&&t.params.loopedSlidesLimit&&(t.loopedSlides=o.length);const a=[],s=[];o.each(((t,e)=>{$c(t).attr("data-swiper-slide-index",e)}));for(let e=0;e<t.loopedSlides;e+=1){const t=e-Math.floor(e/o.length)*o.length;s.push(o.eq(t)[0]),a.unshift(o.eq(o.length-t-1)[0])}for(let t=0;t<s.length;t+=1)i.append($c(s[t].cloneNode(!0)).addClass(r.slideDuplicateClass));for(let t=a.length-1;t>=0;t-=1)i.prepend($c(a[t].cloneNode(!0)).addClass(r.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:r,loopedSlides:n,allowSlidePrev:i,allowSlideNext:o,snapGrid:a,rtlTranslate:s}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const c=-a[e]-t.getTranslate();if(e<n){l=r.length-3*n+e,l+=n;t.slideTo(l,0,!1,!0)&&0!==c&&t.setTranslate((s?-t.translate:t.translate)-c)}else if(e>=r.length-n){l=-r.length+e+n,l+=n;t.slideTo(l,0,!1,!0)&&0!==c&&t.setTranslate((s?-t.translate:t.translate)-c)}t.allowSlidePrev=i,t.allowSlideNext=o,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:r}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),r.removeAttr("data-swiper-slide-index")}};function pu(t){const e=this,r=Rc(),n=Bc(),i=e.touchEventsData,{params:o,touches:a,enabled:s}=e;if(!s)return;if(e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let c=$c(l.target);if("wrapper"===o.touchEventsTarget&&!c.closest(e.wrapperEl).length)return;if(i.isTouchEvent="touchstart"===l.type,!i.isTouchEvent&&"which"in l&&3===l.which)return;if(!i.isTouchEvent&&"button"in l&&l.button>0)return;if(i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&""!==o.noSwipingClass,h=t.composedPath?t.composedPath():t.path;u&&l.target&&l.target.shadowRoot&&h&&(c=$c(h[0]));const p=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!(!l.target||!l.target.shadowRoot);if(o.noSwiping&&(f?function(t,e=this){return function e(r){if(!r||r===Rc()||r===Bc())return null;r.assignedSlot&&(r=r.assignedSlot);const n=r.closest(t);return n||r.getRootNode?n||e(r.getRootNode().host):null}(e)}(p,c[0]):c.closest(p)[0]))return void(e.allowClick=!0);if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;const d=a.currentX,m=a.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,g=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;
vendor: 8,422 bytes, line 2
2if(y&&(d<=g||d>=n.innerWidth-g)){if("prevent"!==y)return;t.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=d,a.startY=m,i.touchStartTime=Xc(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==l.type){let t=!0;c.is(i.focusableElements)&&(t=!1,"SELECT"===c[0].nodeName&&(i.isTouched=!1)),r.activeElement&&$c(r.activeElement).is(i.focusableElements)&&r.activeElement!==c[0]&&r.activeElement.blur();const n=t&&e.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!n||c[0].isContentEditable||l.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function fu(t){const e=Rc(),r=this,n=r.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=r;if(!s)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l));if(n.isTouchEvent&&"touchmove"!==l.type)return;const c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),u="touchmove"===l.type?c.pageX:l.pageX,h="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return o.startX=u,void(o.startY=h);if(!r.allowTouchMove)return $c(l.target).is(n.focusableElements)||(r.allowClick=!1),void(n.isTouched&&(Object.assign(o,{startX:u,startY:h,currentX:u,currentY:h}),n.touchStartTime=Xc()));if(n.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(r.isVertical()){if(h<o.startY&&r.translate<=r.maxTranslate()||h>o.startY&&r.translate>=r.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(u<o.startX&&r.translate<=r.maxTranslate()||u>o.startX&&r.translate>=r.minTranslate())return;if(n.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&$c(l.target).is(n.focusableElements))return n.isMoved=!0,void(r.allowClick=!1);if(n.allowTouchCallbacks&&r.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=u,o.currentY=h;const p=o.currentX-o.startX,f=o.currentY-o.startY;if(r.params.threshold&&Math.sqrt(p**2+f**2)<r.params.threshold)return;if(void 0===n.isScrolling){let t;r.isHorizontal()&&o.currentY===o.startY||r.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:p*p+f*f>=25&&(t=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,n.isScrolling=r.isHorizontal()?t>i.touchAngle:90-t>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation(),n.isMoved||(i.loop&&!i.cssMode&&r.loopFix(),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating&&r.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!i.grabCursor||!0!==r.allowSlideNext&&!0!==r.allowSlidePrev||r.setGrabCursor(!0),r.emit("sliderFirstMove",l)),r.emit("sliderMove",l),n.isMoved=!0;let d=r.isHorizontal()?p:f;o.diff=d,d*=i.touchRatio,a&&(d=-d),r.swipeDirection=d>0?"prev":"next",n.currentTranslate=d+n.startTranslate;let m=!0,y=i.resistanceRatio;if(i.touchReleaseOnEdges&&(y=0),d>0&&n.currentTranslate>r.minTranslate()?(m=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+d)**y)):d<0&&n.currentTranslate<r.maxTranslate()&&(m=!1,i.resistance&&(n.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-n.startTranslate-d)**y)),m&&(l.preventedByNestedSwiper=!0),!r.allowSlideNext&&"next"===r.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&"prev"===r.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.allowSlidePrev||r.allowSlideNext||(n.currentTranslate=n.startTranslate),i.threshold>0){if(!(Math.abs(d)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=r.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),r.params.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function du(t){const e=this,r=e.touchEventsData,{params:n,touches:i,rtlTranslate:o,slidesGrid:a,enabled:s}=e;if(!s)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),r.allowTouchCallbacks&&e.emit("touchEnd",l),r.allowTouchCallbacks=!1,!r.isTouched)return r.isMoved&&n.grabCursor&&e.setGrabCursor(!1),r.isMoved=!1,void(r.startMoving=!1);n.grabCursor&&r.isMoved&&r.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const c=Xc(),u=c-r.touchStartTime;if(e.allowClick){const t=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(t&&t[0]||l.target),e.emit("tap click",l),u<300&&c-r.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(r.lastClickTime=Xc(),Wc((()=>{e.destroyed||(e.allowClick=!0)})),!r.isTouched||!r.isMoved||!e.swipeDirection||0===i.diff||r.currentTranslate===r.startTranslate)return r.isTouched=!1,r.isMoved=!1,void(r.startMoving=!1);let h;if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,h=n.followFinger?o?e.translate:-e.translate:-r.currentTranslate,n.cssMode)return;if(e.params.freeMode&&n.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:h});let p=0,f=e.slidesSizesGrid[0];for(let t=0;t<a.length;t+=t<n.slidesPerGroupSkip?1:n.slidesPerGroup){const e=t<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==a[t+e]?h>=a[t]&&h<a[t+e]&&(p=t,f=a[t+e]-a[t]):h>=a[t]&&(p=t,f=a[a.length-1]-a[a.length-2])}let d=null,m=null;n.rewind&&(e.isBeginning?m=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(d=0));const y=(h-a[p])/f,g=p<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(u>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(y>=n.longSwipesRatio?e.slideTo(n.rewind&&e.isEnd?d:p+g):e.slideTo(p)),"prev"===e.swipeDirection&&(y>1-n.longSwipesRatio?e.slideTo(p+g):null!==m&&y<0&&Math.abs(y)>n.longSwipesRatio?e.slideTo(m):e.slideTo(p))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(p+g):e.slideTo(p):("next"===e.swipeDirection&&e.slideTo(null!==d?d:p+g),"prev"===e.swipeDirection&&e.slideTo(null!==m?m:p))}}function mu(){const t=this,{params:e,el:r}=t;if(r&&0===r.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:o}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=i,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function yu(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function gu(){const t=this,{wrapperEl:e,rtlTranslate:r,enabled:n}=t;if(!n)return;let i;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const o=t.maxTranslate()-t.minTranslate();i=0===o?0:(t.translate-t.minTranslate())/o,i!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let vu=!1;function bu(){}const wu=(t,e)=>{const r=Rc(),{params:n,touchEvents:i,el:o,wrapperEl:a,device:s,support:l}=t,c=!!n.nested,u="on"===e?"addEventListener":"removeEventListener",h=e;if(l.touch){const e=!("touchstart"!==i.start||!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o[u](i.start,t.onTouchStart,e),o[u](i.move,t.onTouchMove,l.passiveListener?{passive:!1,capture:c}
vendor: 7,731 bytes, line 2
2:c),o[u](i.end,t.onTouchEnd,e),i.cancel&&o[u](i.cancel,t.onTouchEnd,e)}else o[u](i.start,t.onTouchStart,!1),r[u](i.move,t.onTouchMove,c),r[u](i.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&o[u]("click",t.onClick,!0),n.cssMode&&a[u]("scroll",t.onScroll),n.updateOnWindowResize?t[h](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",mu,!0):t[h]("observerUpdate",mu,!0)};const xu={attachEvents:function(){const t=this,e=Rc(),{params:r,support:n}=t;t.onTouchStart=pu.bind(t),t.onTouchMove=fu.bind(t),t.onTouchEnd=du.bind(t),r.cssMode&&(t.onScroll=gu.bind(t)),t.onClick=yu.bind(t),n.touch&&!vu&&(e.addEventListener("touchstart",bu),vu=!0),wu(t,"on")},detachEvents:function(){wu(this,"off")}},Su=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;const _u={setBreakpoint:function(){const t=this,{activeIndex:e,initialized:r,loopedSlides:n=0,params:i,$el:o}=t,a=i.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const s=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!s||t.currentBreakpoint===s)return;const l=(s in a?a[s]:void 0)||t.originalParams,c=Su(t,i),u=Su(t,l),h=i.enabled;c&&!u?(o.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&u&&(o.addClass(`${i.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===i.grid.fill)&&o.addClass(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((e=>{const r=i[e]&&i[e].enabled,n=l[e]&&l[e].enabled;r&&!n&&t[e].disable(),!r&&n&&t[e].enable()}));const p=l.direction&&l.direction!==i.direction,f=i.loop&&(l.slidesPerView!==i.slidesPerView||p);p&&r&&t.changeDirection(),Qc(t.params,l);const d=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),h&&!d?t.disable():!h&&d&&t.enable(),t.currentBreakpoint=s,t.emit("_beforeBreakpoint",l),f&&r&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-n+t.loopedSlides,0,!1)),t.emit("breakpoint",l)},getBreakpoint:function(t,e="window",r){if(!t||"container"===e&&!r)return;let n=!1;const i=Bc(),o="window"===e?i.innerHeight:r.clientHeight,a=Object.keys(t).map((t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:o*e,point:t}}return{value:t,point:t}}));a.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let t=0;t<a.length;t+=1){const{point:o,value:s}=a[t];"window"===e?i.matchMedia(`(min-width: ${s}px)`).matches&&(n=o):s<=r.clientWidth&&(n=o)}return n||"max"}};const Eu={addClasses:function(){const t=this,{classNames:e,params:r,rtl:n,$el:i,device:o,support:a}=t,s=function(t,e){const r=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((n=>{t[n]&&r.push(e+n)})):"string"==typeof t&&r.push(e+t)})),r}(["initialized",r.direction,{"pointer-events":!a.touch},{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&"column"===r.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);e.push(...s),i.addClass([...e].join(" ")),t.emitContainerClasses()},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" ")),this.emitContainerClasses()}};const Tu={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function Pu(t,e){return function(r={}){const n=Object.keys(r)[0],i=r[n];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===t[n]&&(t[n]={auto:!0}),n in t&&"enabled"in i?(!0===t[n]&&(t[n]={enabled:!0}),"object"!=typeof t[n]||"enabled"in t[n]||(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),Qc(e,r)):Qc(e,r)):Qc(e,r)}}const ku={eventsEmitter:au,update:su,translate:lu,transition:{setTransition:function(t,e){const r=this;r.params.cssMode||r.$wrapperEl.transition(t),r.emit("setTransition",t,e)},transitionStart:function(t=!0,e){const r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),cu({swiper:r,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t=!0,e){const r=this,{params:n}=r;r.animating=!1,n.cssMode||(r.setTransition(0),cu({swiper:r,runCallbacks:t,direction:e,step:"End"}))}},slide:uu,loop:hu,grabCursor:{setGrabCursor:function(t){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const r="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;r.style.cursor="move",r.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){const t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:xu,breakpoints:_u,checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:r}=t,{slidesOffsetBefore:n}=r;if(n){const e=t.slides.length-1,r=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*n;t.isLocked=t.size>r}else t.isLocked=1===t.snapGrid.length;!0===r.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===r.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:Eu,images:{loadImage:function(t,e,r,n,i,o){const a=Bc();let s;function l(){o&&o()}$c(t).parent("picture")[0]||t.complete&&i?l():e?(s=new a.Image,s.onload=l,s.onerror=l,n&&(s.sizes=n),r&&(s.srcset=r),e&&(s.src=e)):l()},preloadImages:function(){const t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(
vendor: 1,040 bytes, line 2
2),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let r=0;r<t.imagesToLoad.length;r+=1){const n=t.imagesToLoad[r];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},Cu={};class Mu{constructor(...t){let e,r;if(1===t.length&&t[0].constructor&&"Object"===Object.prototype.toString.call(t[0]).slice(8,-1)?r=t[0]:[e,r]=t,r||(r={}),r=Qc({},r),e&&!r.el&&(r.el=e),r.el&&$c(r.el).length>1){const t=[];return $c(r.el).each((e=>{const n=Qc({},r,{el:e});t.push(new Mu(n))})),t}const n=this;n.__swiper__=!0,n.support=nu(),n.device=iu({userAgent:r.userAgent}),n.browser=ou(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],r.modules&&Array.isArray(r.modules)&&n.modules.push(...r.modules);const i={};n.modules.forEach((t=>{t({swiper:n,extendParams:Pu(r,i),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const o=Qc({},Tu,i);return n.params=Qc({},o,Cu,r),n.originalParams=Qc({},n.params),n.passedParams=Qc({}
vendor: 4,370 bytes, line 2
2,r),n.params&&n.params.on&&Object.keys(n.params.on).forEach((t=>{n.on(t,n.params.on[t])})),n.params&&n.params.onAny&&n.onAny(n.params.onAny),n.$=$c,Object.assign(n,{enabled:n.params.enabled,el:e,classNames:[],slides:$c(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"],e=["pointerdown","pointermove","pointerup"];return n.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},n.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:Xc(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const r=this;t=Math.min(Math.max(t,0),1);const n=r.minTranslate(),i=(r.maxTranslate()-n)*t+n;r.translateTo(i,void 0===e?0:e),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.each((r=>{const n=t.getSlideClasses(r);e.push({slideEl:r,classNames:n}),t.emit("_slideClass",r,n)})),t.emit("_slideClasses",e)}slidesPerViewDynamic(t="current",e=!1){const{params:r,slides:n,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if(r.centeredSlides){let t,e=n[s].swiperSlideSize;for(let r=s+1;r<n.length;r+=1)n[r]&&!t&&(e+=n[r].swiperSlideSize,l+=1,e>a&&(t=!0));for(let r=s-1;r>=0;r-=1)n[r]&&!t&&(e+=n[r].swiperSlideSize,l+=1,e>a&&(t=!0))}else if("current"===t)for(let t=s+1;t<n.length;t+=1){(e?i[t]+o[t]-i[s]<a:i[t]-i[s]<a)&&(l+=1)}else for(let t=s-1;t>=0;t-=1){i[s]-i[t]<a&&(l+=1)}return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:r}=t;function n(){const e=t.rtlTranslate?-1*t.translate:t.translate,r=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(r),t.updateActiveIndex(),t.updateSlidesClasses()}let i;r.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(n(),t.params.autoHeight&&t.updateAutoHeight()):(i=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),i||n()),r.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const r=this,n=r.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t||(r.$el.removeClass(`${r.params.containerModifierClass}${n}`).addClass(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.each((e=>{"vertical"===t?e.style.width="":e.style.height=""})),r.emit("changeDirection"),e&&r.update()),r}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.$el.addClass(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.$el.removeClass(`${e.params.containerModifierClass}
2rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;const r=$c(t||e.params.el);if(!(t=r[0]))return!1;t.swiper=e;const n=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const e=$c(t.shadowRoot.querySelector(n()));return e.children=t=>r.children(t),e}return r.children?r.children(n()):$c(r).children(n())})();if(0===i.length&&e.params.createElements){const t=Rc().createElement("div");i=$c(t),t.className=e.params.wrapperClass,r.append(t),r.children(`.${e.params.slideClass}`).each((t=>{i.append(t)}))}return Object.assign(e,{$el:r,el:t,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}init(t){const e=this;if(e.initialized)return e;return!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e}destroy(t=!0,e=!0){const r=this,{params:n,$el:i,$wrapperEl:o,slides:a}=r;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),n.loop&&r.loopDestroy(),e&&(r.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach((t=>{r.off(t)})),!1!==t&&(r.$el[0].swiper=null,function(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}}))}(r)),r.destroyed=!0),null}static extendDefaults(t){Qc(Cu,t)}static get extendedDefaults(){return Cu}static get defaults(){return Tu}static installModule(t){Mu.prototype.__modules__||(Mu.prototype.__modules__=[]);const e=Mu.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>Mu.installModule(t))),Mu):(Mu.installModule(t),Mu)}}Object.keys(ku).forEach((t=>{Object.keys(ku[t]).forEach((e=>{Mu.prototype[e]=ku[t][e]}))})),Mu.use([function({swiper:t,on:e,emit:r}){const n=Bc();let i=null,o=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},s=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};e("init",(()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(i=new ResizeObserver((e=>{o=n.requestAnimationFrame((()=>{const{width:r,height:n}=t;let i=r,o=n;e.forEach((({contentBoxSize:e,contentRect:r,target:n})=>{n&&n!==t.el||(i=r?r.width:(e[0]||e).inlineSize,o=r?r.height:(e[0]||e).blockSize)})),i===r&&o===n||a()}))})),i.observe(t.el)):(n.addEventListener("resize",a),n.addEventListener("orientationchange",s))})),e("destroy",(()=>{o&&n.cancelAnimationFrame(o),i&&i.unobserve&&t.el&&(i.unobserve(t.el),i=null),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",s)}))},function({swiper:t,extendParams:e,on:r,emit:n}){const i=[],o=Bc(),a=(t,e={})=>{const r=new(o.MutationObserver||o.WebkitMutationObserver)((t=>{if(1===t.length)return void n("observerUpdate",t[0]);const e=function(){n("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(e):o.setTimeout(e,0)}));r.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),i.push(r)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t<e.length;t+=1)a(e[t])}a(t.$el[0],{childList:t.params.observeSlideChildren}),a(t.$wrapperEl[0],{attributes:!1})}})),r("destroy",(()=>
vendor: 12,492 bytes, line 2
2{i.forEach((t=>{t.disconnect()})),i.splice(0,i.length)}))}]);const Du=Mu;function Au(t,e,r,n){const i=Rc();return t.params.createElements&&Object.keys(n).forEach((o=>{if(!r[o]&&!0===r.auto){let a=t.$el.children(`.${n[o]}`)[0];a||(a=i.createElement("div"),a.className=n[o],t.$el.append(a)),r[o]=a,e[o]=a}})),r}function Ou({swiper:t,extendParams:e,on:r,emit:n}){function i(e){let r;return e&&(r=$c(e),t.params.uniqueNavElements&&"string"==typeof e&&r.length>1&&1===t.$el.find(e).length&&(r=t.$el.find(e))),r}function o(e,r){const n=t.params.navigation;e&&e.length>0&&(e[r?"addClass":"removeClass"](n.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=r),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](n.lockClass))}function a(){if(t.params.loop)return;const{$nextEl:e,$prevEl:r}=t.navigation;o(r,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function s(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function l(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=Au(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const r=i(e.nextEl),n=i(e.prevEl);r&&r.length>0&&r.on("click",l),n&&n.length>0&&n.on("click",s),Object.assign(t.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:n,prevEl:n&&n[0]}),t.enabled||(r&&r.addClass(e.lockClass),n&&n.addClass(e.lockClass))}function u(){const{$nextEl:e,$prevEl:r}=t.navigation;e&&e.length&&(e.off("click",l),e.removeClass(t.params.navigation.disabledClass)),r&&r.length&&(r.off("click",s),r.removeClass(t.params.navigation.disabledClass))}e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},r("init",(()=>{!1===t.params.navigation.enabled?h():(c(),a())})),r("toEdge fromEdge lock unlock",(()=>{a()})),r("destroy",(()=>{u()})),r("enable disable",(()=>{const{$nextEl:e,$prevEl:r}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),r&&r[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),r("click",((e,r)=>{const{$nextEl:i,$prevEl:o}=t.navigation,a=r.target;if(t.params.navigation.hideOnClick&&!$c(a).is(o)&&!$c(a).is(i)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;i?e=i.hasClass(t.params.navigation.hiddenClass):o&&(e=o.hasClass(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),i&&i.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}}));const h=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),u()};Object.assign(t.navigation,{enable:()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),c(),a()},disable:h,update:a,init:c,destroy:u})}function Lu(t=""){return`.${t.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function Iu({swiper:t,extendParams:e,on:r,emit:n}){const i="swiper-pagination";let o;e({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),t.pagination={el:null,$el:null,bullets:[]};let a=0;function s(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function l(e,r){const{bulletActiveClass:n}=t.params.pagination;e[r]().addClass(`${n}-${r}`)[r]().addClass(`${n}-${r}-${r}`)}function c(){const e=t.rtl,r=t.params.pagination;if(s())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,c=t.pagination.$el;let u;const h=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(u=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),u>i-1-2*t.loopedSlides&&(u-=i-2*t.loopedSlides),u>h-1&&(u-=h),u<0&&"bullets"!==t.params.paginationType&&(u=h+u)):u=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===r.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let i,s,h;if(r.dynamicBullets&&(o=n.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(t.isHorizontal()?"width":"height",o*(r.dynamicMainBullets+4)+"px"),r.dynamicMainBullets>1&&void 0!==t.previousIndex&&(a+=u-(t.previousIndex-t.loopedSlides||0),a>r.dynamicMainBullets-1?a=r.dynamicMainBullets-1:a<0&&(a=0)),i=Math.max(u-a,0),s=i+(Math.min(n.length,r.dynamicMainBullets)-1),h=(s+i)/2),n.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${r.bulletActiveClass}${t}`)).join(" ")),c.length>1)n.each((t=>{const e=$c(t),n=e.index();n===u&&e.addClass(r.bulletActiveClass),r.dynamicBullets&&(n>=i&&n<=s&&e.addClass(`${r.bulletActiveClass}-main`),n===i&&l(e,"prev"),n===s&&l(e,"next"))}));else{const e=n.eq(u),o=e.index();if(e.addClass(r.bulletActiveClass),r.dynamicBullets){const e=n.eq(i),a=n.eq(s);for(let t=i;t<=s;t+=1)n.eq(t).addClass(`${r.bulletActiveClass}-main`);if(t.params.loop)if(o>=n.length){for(let t=r.dynamicMainBullets;t>=0;t-=1)n.eq(n.length-t).addClass(`${r.bulletActiveClass}-main`);n.eq(n.length-r.dynamicMainBullets-1).addClass(`${r.bulletActiveClass}-prev`)}else l(e,"prev"),l(a,"next");else l(e,"prev"),l(a,"next")}}if(r.dynamicBullets){const i=Math.min(n.length,r.dynamicMainBullets+4),a=(o*i-o)/2-h*o,s=e?"right":"left";n.css(t.isHorizontal()?s:"top",`${a}px`)}}if("fraction"===r.type&&(c.find(Lu(r.currentClass)).text(r.formatFractionCurrent(u+1)),c.find(Lu(r.totalClass)).text(r.formatFractionTotal(h))),"progressbar"===r.type){let e;e=r.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const n=(u+1)/h;let i=1,o=1;"horizontal"===e?i=n:o=n,c.find(Lu(r.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${i}) scaleY(${o})`).transition(t.params.speed)}"custom"===r.type&&r.renderCustom?(c.html(r.renderCustom(t,u+1,h)),n("paginationRender",c[0])):n("paginationUpdate",c[0]),t.params.watchOverflow&&t.enabled&&c[t.isLocked?"addClass":"removeClass"](r.lockClass)}function u(){const e=t.params.pagination;if(s())return;const r=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el;let o="";if("bullets"===e.type){let n=t.params.loop?Math.ceil((r-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&n>r&&(n=r);for(let r=0;r<n;r+=1)e.renderBullet?o+=e.renderBullet.call(t,r,e.bulletClass):o+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;i.html(o),t.pagination.bullets=i.find(Lu(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,i.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,i.html(o)),"custom"!==e.type&&n("paginationRender",t.pagination.$el[0])}function h(){t.params.pagination=Au(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let r=$c(e.el);0!==r.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&r.length>1&&(r=t.$el.find(e.el),r.length>1&&(r=r.filter((e=>$c(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&r.addClass(e.clickableClass),r.addClass(e.modifierClass+e.type),r.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(r.addClass(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&r.addClass(e.progressbarOppositeClass),e.clickable&&r.on("click",Lu(e.bulletClass),(function(e){e.preventDefault();let r=$c(this).index()*t.params.slidesPerGroup;t.params.loop&&(r+=t.loopedSlides),t.slideTo(r)})),Object.assign(t.pagination,{$el:r,el:r[0]}),t.enabled||r.addClass(e.lockClass))}function p(){const e=t.params.pagination;if(s())return;const r=t.pagination.$el;r.removeClass(e.hiddenClass),r.removeClass(e.modifierClass+e.type),r.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&r.off("click",Lu(e.bulletClass))}r("init",(()=>{!1===t.params.pagination.enabled?f():(h(),u(),c())})),r("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&c()})),r("snapIndexChange",(()=>{t.params.loop||c()})),r("slidesLengthChange",(()=>{t.params.loop&&(u(),c())})),r("snapGridLengthChange",(()=>{t.params.loop||(u(),c())})),r("destroy",(()=>{p()})),r("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),r("lock unlock",(()=>{c()})),r("click",((e,r)=>{const i=r.target,{$el:o}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!$c(i).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=o.hasClass(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),o.toggleClass(t.params.pagination.hiddenClass)}}));const f=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),p()};Object.assign(t.pagination,{enable:()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),h(),u(),c()},disable:f,render:u,update:c,init:h,destroy:p})}function Fu(t){return Fu="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},Fu(t)}function Ru(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ju(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qu(n.key),n)}}function Bu(t,e){return Bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bu(t,e)}function Vu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Gu(t);if(e){var i=Gu(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return zu(this,r)}}function zu(t,e){if(e&&("object"===Fu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Nu(t)}function Nu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gu(t){return Gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gu(t)}function Hu(t,e,r){return(e=qu(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qu(t){var e=function(t,e){if("object"!==Fu(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===Fu(e)?e:String(e)}var Yu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bu(t,e)}(o,t);var e,r,n,i=Vu(o);function o(){var t,e;Ru(this,o);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return Hu(Nu(e=i.call.apply(i,[this].concat(n))),"sliderTextContent",e.element.querySelectorAll(".slider__slide-content")),Hu(Nu(e),"columnsTotal",12),Hu(Nu(e),"columnDelta",0),Hu(Nu(e),"slidesPerView",null!==(t=e.sliderTarget.dataset.slidesPerView)&&void 0!==t?t:"auto"),Hu(Nu(e),"isInit",!1),Hu(Nu(e),"lessDesktop",window.matchMedia("(min-width: 0) and (max-width: 1279px)")),Hu(Nu(e),"smallScreenSliders",(function(){e.lessDesktop.matches&&!e.isInit?e.initSlider():!e.lessDesktop.matches&&e.isInit&&(e.swiper.destroy(),e.isInit=!1)})),Hu(Nu(e),"update",(function(){e.isInit=!1,e.swiper.destroy(),e.initSlider()})),Hu(Nu(e),"loopChange",(function(t){e.canInit?(t.loopCreate(),t.el.classList.remove("slider--not-looped")):(t.loopDestroy(),t.el.classList.add("slider--not-looped"))})),Hu(Nu(e),"checkOnValid",(function(t,r){if(e.element.classList.contains("slider--brands")){var n=t[r-1];if(n){var i=n.getBoundingClientRect().right;e.canInit=i>=window.innerWidth}}else e.canInit=!0})),Hu(Nu(e),"checkCountValid",(function(t){0!==t&&(e.element.classList.contains("slider--media")?t<4&&(e.element.classList.add("slider--not-looped"),e.canInit=!1):t<=1&&(e.element.classList.add("slider--not-looped"),e.canInit=!1))})),Hu(Nu(e),"resizeSlide",(function(){var t=window.getComputedStyle(e.element),r=t.gridTemplateColumns,n=t.gridColumnGap,i=r.split(" ").length,o=parseFloat(r.split(" ")[0]),a=parseFloat(n);e.slideTargets.forEach((function(t){var r=t.dataset.columns;e.columnsTotal!==i&&(e.columnsTotal=i);var n=parseInt(r,10)>8?r:r-e.columnDelta,s=Math.min(e.columnsTotal,n),l=Math.max(3,s),c=l*o+(l-1)*a;t.style.width="".concat(c,"px")}))})),e}return e=o,(r=[{key:"connect",value:function(){var t=this;this.slideTargets.length||this.sliderTarget.classList.add("slider--not-looped"),this.hasSmallScreenSliderTarget&&(this.lessDesktop.matches&&this.initSlider(),this.lessDesktop.addEventListener("change",(function(){t.smallScreenSliders()}))),this.hasSmallScreenSliderTarget||(this.initSlider(),document.addEventListener("slider:update",this.update))}},{key:"initSlider",value:function(){var t=this;this.isInit||(this.isInit=!0,this.swiper=new Du(this.sliderTarget,{modules:[Ou,Iu],slidesPerView:this.slidesPerView,speed:500,allowTouchMove:!0,navigation:{nextEl:this.nextTarget,prevEl:this.prevTarget},breakpoints:{332:{columnDelta:0},768:{columnDelta:4},1076:{columnDelta:2},1368:{columnDelta:0}},pagination:{el:this.paginationTargets,type:"custom",renderCustom:function(t,e,r){return'<span class="slider__counter-current-slide">'.concat(String(e).padStart(2,"0"),'</span>\n          <span class="slider__counter-total-slides">-').concat(String(r).padStart(2,"0"),"</span>")}},on:{beforeInit:function(){t.checkOnValid(t.slideTargets,t.slideTargets.length),t.checkCountValid(t.slideTargets.length),t.slideTargets.length||t.sliderTarget.classList.add("slider--not-looped")},init:function(e){t.resizeSlide(),t.loopChange(e)},slideChange:function(e){t.sliderTextContent.forEach((function(t,r){e.realIndex===r?t.classList.add("show"):t.classList.remove("show")}))},resize:function(e){var r=e.slides,n=e.loopedSlides;t.resizeSlide(),t.checkOnValid(r,n),e.update()},breakpoint:function(e,r){var n=r.columnDelta;t.columnDelta=n},afterInit:function(){document.dispatchEvent(new CustomEvent("slider:init"))}}}))}}])&&ju(e.prototype,r),n&&ju(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);Hu(Yu,"targets",["slider","smallScreenSlider","prev","next","pagination","slide"]);var $u=r(248),Wu=r.n($u);const Xu=JSON.parse('{"v":"5.9.0","fr":60,"ip":0,"op":85,"w":256,"h":256,"nm":"make_bird_pages_hover","ddd":0,"assets":[{"id":"comp_0","nm":"animation","fr":60,"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"reflex","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":15,"s":[128,114,0],"to":[0,0.333,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":17,"s":[128,116,0],"to":[0,0,0],"ti":[0,0.333,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":18,"s":[128,114,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[128,114,0],"to":[0,0.5,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[128,117,0],"to":[0,0,0],"ti":[0,0.5,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":26,"s":[128,114,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":65,"s":[128,114,0],"to":[0,0.833,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":67,"s":[128,119,0],"to":[0,0,0],"ti":[0,0.833,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":71,"s":[128,114,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":88,"s":[128,114,0],"to":[0,0.5,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":90,"s":[128,117,0],"to":[0,0,0],"ti":[0,0.5,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":93,"s":[128,114,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":130,"s":[128,114,0],"to":[0,0.833,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":132,"s":[128,119,0],"to":[0,0,0],"ti":[0,0.833,0]},{"t":136,"s":[128,114,0]}],"ix":2,"l":2},"a":{"a":0,"k":[50,50,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ip":6,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":3,"nm":"bird moving","parent":1,"sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.92,"y":1},"o":{"x":0,"y":0}
vendor: 21,745 bytes, line 2
2,"t":6,"s":[-128,-13.5,0],"to":[23,10.583,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.08,"y":0},"t":15,"s":[10,50,0],"to":[0,0,0],"ti":[-21.25,-21.25,0]},{"i":{"x":0.68,"y":1},"o":{"x":0,"y":0},"t":23,"s":[42,50,0],"to":[2.5,0,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.167,"y":0.167},"t":33,"s":[50,50,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.68,"y":1},"o":{"x":0.32,"y":0},"t":65,"s":[50,50,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.167,"y":0},"t":74,"s":[50,34,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.167,"y":0.167},"t":83,"s":[50,50,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.167,"y":0},"t":130,"s":[50,50,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.167,"y":0},"t":140,"s":[50,30,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.167,"y":0},"t":152,"s":[50,31,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.167,"y":0},"t":160,"s":[50,30,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":1,"y":1},"o":{"x":0.167,"y":0},"t":168,"s":[50,31,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":176,"s":[50,30,0],"to":[0,0,0],"ti":[0,0,0]},{"t":185,"s":[50,50,0]}],"ix":2,"l":2},"a":{"a":0,"k":[50,50,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ip":6,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"wing","parent":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[15]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":15,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[12]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"t":65,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":76,"s":[9]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":88,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":120,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":128,"s":[20]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":136,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":144,"s":[20]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":152,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":160,"s":[20]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":168,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":176,"s":[20]},{"t":184,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[60.304,15.125,0],"to":[0,0.5,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[60.304,18.125,0],"to":[0,0,0],"ti":[0,0.5,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":30,"s":[60.304,15.125,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":60,"s":[60.304,15.125,0],"to":[0,0.667,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":65,"s":[60.304,19.125,0],"to":[0,0,0],"ti":[0,0.667,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":68,"s":[60.304,15.125,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":83,"s":[60.304,15.125,0],"to":[0,0.667,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":88,"s":[60.304,19.125,0],"to":[0,0,0],"ti":[0,0.667,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":93,"s":[60.304,15.125,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":120,"s":[60.304,15.125,0],"to":[0,0.667,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":130,"s":[60.304,19.125,0],"to":[0,0,0],"ti":[0,0.667,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":133,"s":[60.304,15.125,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":185,"s":[60.304,15.125,0],"to":[0,0.667,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":195,"s":[60.304,19.125,0],"to":[0,0,0],"ti":[0,0.667,0]},{"t":200,"s":[60.304,15.125,0]}],"ix":2,"l":2},"a":{"a":0,"k":[23.805,-20.79,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.49,-0.87],[0,0],[0,0],[0,0],[0,0],[0,0],[0,-3.43],[14.38,0],[0,0]],"o":[[0.35,0.87],[0,0],[0,0],[0,0],[0,0],[0,0],[2.13,3.93],[0,11.79],[0,0],[0,0]],"v":[[15.895,-20.79],[17.155,-18.19],[17.505,-17.64],[18.215,-16.61],[18.825,-15.65],[19.315,-14.82],[19.865,-13.82],[23.805,-0.36],[-2.115,20.79],[-23.805,20.79]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"wing","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":6,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"body","parent":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[28.087,52,0],"to":[0,0.5,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[28.087,55,0],"to":[0,0,0],"ti":[0,0.5,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":30,"s":[28.087,52,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":60,"s":[28.087,52,0],"to":[0,0.667,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":65,"s":[28.087,56,0],"to":[0,0,0],"ti":[0,0.667,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":68,"s":[28.087,52,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":83,"s":[28.087,52,0],"to":[0,0.667,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":88,"s":[28.087,56,0],"to":[0,0,0],"ti":[0,0.667,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":93,"s":[28.087,52,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":120,"s":[28.087,52,0],"to":[0,0.667,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":130,"s":[28.087,56,0],"to":[0,0,0],"ti":[0,0.667,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":133,"s":[28.087,52,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":185,"s":[28.087,52,0],"to":[0,0.667,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":195,"s":[28.087,56,0],"to":[0,0,0],"ti":[0,0.667,0]},{"t":200,"s":[28.087,52,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[35.749,30],[23.909,48],[13.909,48],[25.749,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":15,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.561,28.75],[54.253,44.875],[44.253,44.875],[29.561,28.75]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.561,28.75],[54.253,44.875],[44.253,44.875],[29.561,28.75]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":30,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":60,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":65,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,44],[41.909,44],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":68,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":83,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":88,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,44],[41.909,44],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":93,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":120,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":130,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,44],[41.909,44],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":136,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[35.749,30],[23.909,48],[13.909,48],[25.749,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":180,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[35.749,30],[23.909,48],[13.909,48],[25.749,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":185,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":195,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,44],[41.909,44],[29.249,30]],"c":true}]},{"t":200,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[39.249,30],[51.909,48],[41.909,48],[29.249,30]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[22.918,24],[6.418,48],[-3.582,48],[12.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":15,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[37.668,45.375],[27.668,45.375],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":25,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[37.668,45.375],[27.668,45.375],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":30,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":60,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":65,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,44.062],[23.918,44.062],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":68,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":83,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":88,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,44.062],[23.918,44.062],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":93,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":120,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":130,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,44.062],[23.918,44.062],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":136,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[22.918,24],[6.418,48],[-3.582,48],[12.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":180,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[22.918,24],[6.418,48],[-3.582,48],[12.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":185,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":195,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,44.062],[23.918,44.062],[7.918,24]],"c":true}]},{"t":200,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[17.918,24],[33.918,48],[23.918,48],[7.918,24]],"c":true}]}],"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[-0.82,-2.34],[0,0],[0,0],[-0.92,-4.04],[-5.21,-7.6],[0,-6.98],[16.74,-0.47],[0,0],[0,6.63],[0,0],[0,16.98],[2.04,3.78],[0,0],[0,0],[0,0],[0,0],[-3.66,0]],"o":[[4.06,0],[0,0],[0,0],[2.28,0.54],[-5.35,0],[4.32,5.04],[0,15.89],[0,0],[-6.63,0],[0,0],[18.02,0],[0,-5.83],[0,0],[0,0],[0,0],[0,0],[-4.5,-7.85],[0,0]],"v":[[49.583,-48],[56.563,-42.21],[57.493,-42.09],[58.403,-41.9],[65.323,-35.82],[59.173,-22.65],[66.083,-4.15],[35.913,23.99],[-54.087,24],[-66.087,12],[7.603,12],[40.213,-16.45],[35.733,-31.8],[35.063,-32.99],[34.453,-34.02],[33.683,-35.23],[32.973,-36.26],[39.223,-48]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[1.77,0],[0,-1.77],[-1.77,0],[0,1.77]],"o":[[-1.77,0],[0,1.77],[1.77,0],[0,-1.77]],"v":[[45.113,-42],[41.913,-38.8],[45.113,-35.6],[48.313,-38.8]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"body","np":6,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":6,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"pencil","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":15,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":17,"s":[-3]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":65,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":68,"s":[2]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":88,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":91,"s":[2]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":93,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":130,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":133,"s":[2]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":135,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":185,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":188,"s":[2]},{"t":190,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[-163,108,0],"to":[36.167,0,0],"ti":[-36.167,0,0]},{"t":16,"s":[54,108,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[60,-8],[60,8],[-60,8],[-60,-8]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-68,-8],[-68,8],[-84,8],[-84,-8]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[68,-8],[84,0],[68,8]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"pencil","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":6,"op":3600,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"red","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[128,128,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[256,256],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.227450981736,0.384313732386,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":3600,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"animation","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[128,128,0],"ix":2,"l":2},"a":{"a":0,"k":[128,128,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":256,"h":256,"ip":0,"op":3480,"st":-120,"bm":0}],"markers":[]}');function Uu(t){return Uu="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},Uu(t)}function Zu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ih(n.key),n)}}function Ku(t,e){return Ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ku(t,e)}function Ju(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=rh(t);if(e){var i=rh(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return th(this,r)}}function th(t,e){if(e&&("object"===Uu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return eh(t)}function eh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
2function rh(t){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rh(t)}function nh(t,e,r){return(e=ih(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ih(t){var e=function(t,e){if("object"!==Uu(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uu(e)?e:String(e)}var oh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ku(t,e)}(o,t);var e,r,n,i=Ju(o);function o(){var t;Zu(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return nh(eh(t=i.call.apply(i,[this].concat(r))),"animation",void 0),nh(eh(t),"link",t.element.parentNode.querySelector(".link")),nh(eh(t),"play",(function(){t.animation.play()})),nh(eh(t),"stop",(function(){t.animation.stop()})),t}return e=o,(r=[{key:"connect",value:function(){var t=Xu;this.animation=Wu().loadAnimation({container:this.element,renderer:"svg",autoplay:!1,loop:!1,animationData:t}),this.link.addEventListener("mouseenter",this.play),this.element.addEventListener("mouseenter",this.play),this.animation.addEventListener("complete",this.stop)}},{key:"disconnect",value:function(){this.link.removeEventListener("mouseenter",this.play),this.element.removeEventListener("mouseenter",this.play),this.animation.removeEventListener("complete",this.stop)}}])&&Qu(e.prototype,r),n&&Qu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function ah(t){return ah="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},ah(t)}function sh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mh(n.key),n)}}function ch(t,e){return ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ch(t,e)}function uh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=fh(t);if(e){var i=fh(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return hh(this,r)}}function hh(t,e){if(e&&("object"===ah(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ph(t)}function ph(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fh(t){return fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fh(t)}function dh(t,e,r){return(e=mh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mh(t){var e=function(t,e){if("object"!==ah(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ah(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ah(e)?e:String(e)}var yh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ch(t,e)}(o,t);var e,r,n,i=uh(o);function o(){var t;sh(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return dh(ph(t=i.call.apply(i,[this].concat(r))),"onFocus",(function(){t.element.classList.add("active")})),dh(ph(t),"onBlur",(function(){t.element.value.length||t.element.classList.remove("active")})),t}return e=o,(r=[{key:"connect",value:function(){"TEXTAREA"===this.element.tagName&&(this.element.value=""),this.element.value.length&&this.element.classList.add("active"),this.element.addEventListener("focus",this.onFocus),this.element.addEventListener("blur",this.onBlur),document.addEventListener("input:clear",this.onBlur)}},{key:"disconnect",value:function(){this.element.removeEventListener("focus",this.onFocus),this.element.removeEventListener("blur",this.onBlur)}}])&&lh(e.prototype,r),n&&lh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function gh(t){return gh="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},gh(t)}function vh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ph(n.key),n)}}
2function wh(t,e){return wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wh(t,e)}function xh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Eh(t);if(e){var i=Eh(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Sh(this,r)}}function Sh(t,e){if(e&&("object"===gh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _h(t)}function _h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Eh(t){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Eh(t)}function Th(t,e,r){return(e=Ph(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ph(t){var e=function(t,e){if("object"!==gh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==gh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===gh(e)?e:String(e)}var kh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wh(t,e)}(o,t);var e,r,n,i=xh(o);function o(){var t;vh(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Th(_h(t=i.call.apply(i,[this].concat(r))),"buttonsNumbers",void 0),Th(_h(t),"buttonsArrow",void 0),Th(_h(t),"activePage",void 0),Th(_h(t),"colorsController",void 0),Th(_h(t),"visibleControls",(function(){t.activePage===t.buttonsNumbers.length-1?t.buttonsArrow[1].classList.add("hide"):t.buttonsArrow[1].classList.remove("hide"),0===t.activePage?t.buttonsArrow[0].classList.add("hide"):t.buttonsArrow[0].classList.remove("hide")})),t}return e=o,(r=[{key:"connect",value:function(){this.buttonsNumbers=this.element.querySelectorAll(".pagination__button"),this.buttonsArrow=this.element.querySelectorAll(".pagination__button-arrow");var t=this.element.querySelector(".pagination__button.active");this.activePage=Array.from(this.buttonsNumbers).indexOf(t),this.buttonsArrow.length&&this.visibleControls(),this.colorsController=this.application.controllers.find((function(t){return"brand-colors"===t.context.identifier}))}},{key:"processData",value:function(t,e){var r=!1;if(t){e&&(r=t.querySelector("".concat(e)));var n=e?r.querySelector('[data-pagination-target="'.concat(this.containerTarget.dataset.paginationTarget,'"]')):t.querySelector('[data-pagination-target="'.concat(this.containerTarget.dataset.paginationTarget,'"]')),i=e?r.querySelector('[data-pagination-target="'.concat(this.buttonTarget.dataset.paginationTarget,'"]')):t.querySelector('[data-pagination-target="'.concat(this.buttonTarget.dataset.paginationTarget,'"]'));if(n){for(var o=document.createDocumentFragment();n.children.length>0;)o.appendChild(n.children[0]);this.containerTarget.appendChild(o),document.dispatchEvent(new CustomEvent("lazyLoadUpdate"))}i?this.buttonTarget.href=i.href:(this.buttonTarget.classList.add("hide"),this.hasButtonAllTarget&&this.buttonAllTarget.classList.add("hide")),this.hasControlsTarget&&this.controlsTarget.remove(),this.colorsController.updateColors()}}},{key:"load",value:function(t){var e=this;t.preventDefault();var r=this.buttonTarget.href,n=this.buttonTarget.dataset.id||!1;this.buttonTarget.classList.add("disabled"),document.body.classList.add("loading"),this.buttonTarget.blur(),fetch(r).then((function(t){return t.text()})).then((function(t){var r=new DOMParser;e.processData(r.parseFromString(t,"text/html"),n)})).finally((function(){e.buttonTarget.classList.remove("disabled"),document.body.classList.remove("loading")}))}}])&&bh(e.prototype,r),n&&bh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);Th(kh,"targets",["container","button","buttonAll","controls"]);r(247);
2var Ch=r(135),Mh=r(975),Dh=r(901),Ah=r(330),Oh=r(565),Lh=(r(807),r(249));r(479),r(792),r(344),r(916);class Ih extends Dh.Z{_update(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),super._update(t)}doValidate(){return this.enum.some((t=>t.indexOf(this.unmaskedValue)>=0))&&super.doValidate(...arguments)}}Ch.Z.MaskedEnum=Ih;r(822);class Fh extends Mh.Z{constructor(t){super(Object.assign({},Fh.DEFAULTS,t))}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),e=(this.scale?"(".concat((0,Ah.hr)(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(t+"\\d*"+e),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(Ah.hr).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp((0,Ah.hr)(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}doPrepare(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?t.replace(this._mapToRadixRegExp,this.radix):t);const[r,n]=(0,Ah.gt)(super.doPrepare(t,e));return t&&!r&&(n.skip=!0),[r,n]}_separatorsCount(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;for(let n=0;n<t;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++r,e&&(t+=this.thousandsSeparator.length));return r}_separatorsCountFromSlice(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0;return[t,e]=this._adjustRangeWithSeparators(t,e),this._removeThousandsSeparators(super.extractInput(t,e,r))}_appendCharRaw(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(t,e);const r=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);const i=super._appendCharRaw(t,e);this._value=this._insertThousandsSeparators(this._value);const o=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(o);return i.tailShift+=(a-n)*this.thousandsSeparator.length,i.skip=!i.rawInserted&&t===this.thousandsSeparator,i}_findSeparatorAround(t){if(this.thousandsSeparator){const e=t-this.thousandsSeparator.length+1,r=this.value.indexOf(this.thousandsSeparator,e);if(r<=t)return r}return-1}_adjustRangeWithSeparators(t,e){const r=this._findSeparatorAround(t);r>=0&&(t=r);const n=this._findSeparatorAround(e);return n>=0&&(e=n+this.thousandsSeparator.length),[t,e]}remove(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;[t,e]=this._adjustRangeWithSeparators(t,e);const r=this.value.slice(0,t),n=this.value.slice(e),i=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+n));const o=this._separatorsCountFromSlice(r);return new Oh.Z({tailShift:(o-i)*this.thousandsSeparator.length})}nearestInputPos(t,e){if(!this.thousandsSeparator)return t;switch(e){case Ah.JR.NONE:case Ah.JR.LEFT:case Ah.JR.FORCE_LEFT:{const r=this._findSeparatorAround(t-1);if(r>=0){const n=r+this.thousandsSeparator.length;if(t<n||this.value.length<=n||e===Ah.JR.FORCE_LEFT)return r}break}case Ah.JR.RIGHT:case Ah.JR.FORCE_RIGHT:{const e=this._findSeparatorAround(t);if(e>=0)return e+this.thousandsSeparator.length}}return t}doValidate(t){let e=Boolean(this._removeThousandsSeparators(this.value).match(this._numberRegExp));if(e){const t=this.number;e=e&&!isNaN(t)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)}return e&&super.doValidate(t)}doCommit(){if(this.value){const t=this.number;let e=t;null!=this.min&&(e=Math.max(e,this.min)),null!=this.max&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=this.doFormat(e));let r=this.value;this.normalizeZeros&&(r=this._normalizeZeros(r)),this.padFractionalZeros&&this.scale>0&&(r=this._padFractionalZeros(r)),this._value=r}super.doCommit()}_normalizeZeros(t){const e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,((t,e,r,n)=>e+n)),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}doSkipInvalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n=0===this.scale&&t!==this.thousandsSeparator&&(t===this.radix||t===Fh.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,e,r)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,Fh.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(t){this.rawInputValue=this.doFormat(t).replace(Fh.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}typedValueEquals(t){return(super.typedValueEquals(t)||Fh.EMPTY_VALUES.includes(t)&&Fh.EMPTY_VALUES.includes(this.typedValue))&&!(0===t&&""===this.value)}}Fh.UNMASKED_RADIX=".",Fh.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[Fh.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:t=>
2t.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},Fh.EMPTY_VALUES=[...Mh.Z.EMPTY_VALUES,0],Ch.Z.MaskedNumber=Fh;r(770);class Rh extends Mh.Z{_update(t){t.mask&&(t.validate=t.mask),super._update(t)}}Ch.Z.MaskedFunction=Rh;var jh=r(582);const Bh=["compiledMasks","currentMaskRef","currentMask"],Vh=["mask"];class zh extends Mh.Z{constructor(t){super(Object.assign({},zh.DEFAULTS,t)),this.currentMask=null}_update(t){super._update(t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>(0,Lh.Z)(t))):[])}_appendCharRaw(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this._applyDispatch(t,e);return this.currentMask&&r.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e))),r}_applyDispatch(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const n=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,i=this.rawInputValue,o=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:i,a=i.slice(o.length),s=this.currentMask,l=new Oh.Z,c=null==s?void 0:s.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e),r),this.currentMask)if(this.currentMask!==s){if(this.currentMask.reset(),o){const t=this.currentMask.append(o,{raw:!0});l.tailShift=t.inserted.length-n.length}a&&(l.tailShift+=this.currentMask.append(a,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=c;return l}_appendPlaceholder(){const t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){const t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){const e=new Oh.Z;return t&&e.aggregate(this._applyDispatch("",{},t)),e.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var e,r;return Object.assign({},t,{_beforeTailState:(null===(e=t._beforeTailState)||void 0===e?void 0:e.currentMaskRef)===this.currentMask&&(null===(r=t._beforeTailState)||void 0===r?void 0:r.currentMask)||t._beforeTailState})}doDispatch(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.dispatch(t,this,e,r)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[r,n]=(0,Ah.gt)(super.doPrepare(t,e));if(this.currentMask){let t;[r,t]=(0,Ah.gt)(super.doPrepare(r,this.currentMaskFlags(e))),n=n.aggregate(t)}return[r,n]}reset(){var t;null===(t=this.currentMask)||void 0===t||t.reset(),this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.currentMask?this.currentMask.value:""}set value(t){super.value=t}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue(t){let e=String(t);this.currentMask&&(this.currentMask.typedValue=t,e=this.currentMask.unmaskedValue),this.unmaskedValue=e}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean(null===(t=this.currentMask)||void 0===t?void 0:t.isComplete)}get isFilled(){var t;return Boolean(null===(t=this.currentMask)||void 0===t?void 0:t.isFilled)}remove(){const t=new Oh.Z;return this.currentMask&&t.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),t}get state(){var t;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:null===(t=this.currentMask)||void 0===t?void 0:t.state})}set state(t){const{compiledMasks:e,currentMaskRef:r,currentMask:n}=t,i=(0,jh._)(t,Bh);this.compiledMasks.forEach(((t,r)=>t.state=e[r])),null!=r&&(this.currentMask=r,this.currentMask.state=n),super.state=i}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite(t){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager(t){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid(t){(this.isInitialized||t!==Mh.Z.DEFAULTS.skipInvalid)&&console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals(t){return Array.isArray(t)&&this.compiledMasks.every(((e,r)=>{if(!t[r])return;const n=t[r],{mask:i}=n,o=(0,jh._)(n,Vh);return(0,Ah.i5)(e,o)&&e.maskEquals(i)}))}typedValueEquals(t){var e;return Boolean(null===(e=this.currentMask)||void 0===e?void 0:e.typedValueEquals(t))}}
2zh.DEFAULTS={dispatch:(t,e,r,n)=>{if(!e.compiledMasks.length)return;const i=e.rawInputValue,o=e.compiledMasks.map(((o,a)=>{const s=e.currentMask===o,l=s?o.value.length:o.nearestInputPos(o.value.length,Ah.JR.FORCE_LEFT);return o.rawInputValue!==i?(o.reset(),o.append(i,{raw:!0})):s||o.remove(l),o.append(t,e.currentMaskFlags(r)),o.appendTail(n),{index:a,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(l,o.nearestInputPos(o.value.length,Ah.JR.FORCE_LEFT)))}}));return o.sort(((t,e)=>e.weight-t.weight||e.totalInputPositions-t.totalInputPositions)),e.compiledMasks[o[0].index]}},Ch.Z.MaskedDynamic=zh;r(428),r(577),r(640);const Nh={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Gh(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nh.MASKED,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nh.MASKED;const n=(0,Lh.Z)(t);return t=>n.runIsolated((n=>(n[e]=t,n[r])))}Ch.Z.PIPE_TYPE=Nh,Ch.Z.createPipe=Gh,Ch.Z.pipe=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Gh(...r)(t)};r(403);try{globalThis.IMask=Ch.Z}catch(t){}var Hh=function(){return document.querySelector("html").lang.trim().toLowerCase()}(),qh={ru:{email:"Введите корректный адрес электронной почты!",text:"Это поле обязательно для заполнения!",checkbox:"Согласие обязательно для отправки!",file:{select:"Файл не выбран",format:"Неверный формат файла",size:"Файл слишком большой!"}},en:{email:"Enter the correct e-mail!",text:"This field is required!",checkbox:"Consent is required for sending!",file:{select:"The file is not selected",format:"Invalid file format",size:"The file is too big!"}}},Yh=function(t){return!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)&&qh[Hh].email},$h=function(t){return!t.trim().length&&qh[Hh].text},Wh=function(t){return!t.checked&&qh[Hh].checkbox},Xh=function(t){var e=t.files,r=t.accept,n=t.dataset,i=n.size,o=n.required,a=Boolean(r),s=!0,l=1e6*Number(i),c=e[0];if(Boolean(o)&&!e.length)return qh[Hh].file.select;a&&e.length>0&&(s=r.split(",").includes(c.type));return s?!(!t.files.length||c.size<=l)&&qh[Hh].file.size:qh[Hh].file.format};function Uh(t){return Uh="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},Uh(t)}function Zh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Kh(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qh(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Kh(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Kh(t,e){if(t){if("string"==typeof t)return Jh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jh(t,e):void 0}}function Jh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ep(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?tp(Object(r),!0).forEach((function(e){cp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function np(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,up(n.key),n)}}function ip(t,e){return ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ip(t,e)}function op(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=lp(t);if(e){var i=lp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ap(this,r)}}function ap(t,e){if(e&&("object"===Uh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return sp(t)}function sp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lp(t){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lp(t)}function cp(t,e,r){return(e=up(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function up(t){var e=function(t,e){if("object"!==Uh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uh(e)?e:String(e)}var hp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ip(t,e)}(o,t);var e,r,n,i=op(o);function o(){var t;rp(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return cp(sp(t=i.call.apply(i,[this].concat(r))),"timeout",null),cp(sp(t),"li",'                <li class="select__list-item"\n                    data-select-target="listButton"\n                    tabindex="-1">\n\n                  <svg class="select__list-item__icon" role="img">\n                    <use xlink:href="icons.svg#tick"></use>\n                  </svg>\n                </li>'),cp(sp(t),"tokenCaptcha",null),cp(sp(t),"optionsCaptcha",{sitekey:"ysc1_mYiaC8gR8iPahiVbHaOEwRpI1wvZL13x1Dssp02odf55cc5a",hl:"ru",invisible:!0,shieldPosition:"bottom-left",callback:function(e){t.tokenCaptcha=e,t.setLoading(!0),t.post()}}),cp(sp(t),"captchaContainer",t.element.querySelector("#captcha-container")),cp(sp(t),"fileInputName","FILE[]"),cp(sp(t),"formData",new FormData),cp(sp(t),"toggleHiddenElements",(function(e){t.hiddenTargets.forEach((function(t){var r=t.querySelector('[data-form-target*="input"]');t.dataset.showId===e.detail?(t.classList.remove("hidden"),r&&r.classList.remove("hidden")):(t.classList.add("hidden"),r&&(r.classList.add("hidden"),r.classList.remove("active"),r.value=""))}))})),cp(sp(t),"validate",(function(){var e,r={};return t.obligatoryTargets.forEach((function(t){switch(t.type){case"email":e=Yh(t.value),r=e?ep(ep({},r),{},cp({},t.name,e)):ep({},r);break;case"checkbox":e=Wh(t),r=e?ep(ep({},r),{},cp({},t.name,e)):ep({},r);break;case"file":e=Xh(t),r=e?ep(ep({},r),{},cp({},t.name,e)):ep({},r);break;case"hidden":break;default:e=!t.classList.contains("hidden")&&$h(t.value),r=e?ep(ep({},r),{},cp({},t.name,e)):ep({},r)}})),r})),cp(sp(t),"addFile",(function(e){for(var r=0;r<e.target.files.length;r++)t.formData.append(t.fileInputName,e.target.files[r]);e.target.nextElementSibling.classList.add("show")})),cp(sp(t),"removeFile",(function(e){e.preventDefault();
2var r,n=new FormData,i=e.target.dataset.fileIndex,o=0,a=Qh(t.formData.entries());try{for(a.s();!(r=a.n()).done;){var s=Zh(r.value,2),l=s[0],c=s[1];l===t.fileInputName?(o!==parseInt(i,10)&&n.append(l,c),o++):n.append(l,c)}}catch(t){a.e(t)}finally{a.f()}t.formData=n})),cp(sp(t),"successClear",(function(){clearTimeout(t.timeout),t.element.classList.remove("form--success")})),cp(sp(t),"resetClasses",(function(){t.errorTargets.forEach((function(t){t.textContent=""})),t.inputTargets.forEach((function(t){return t.parentElement.classList.remove("error","disabled")})),t.buttonTarget.classList.remove("disabled")})),cp(sp(t),"reset",(function(){t.formData=new FormData,t.inputTargets.forEach((function(e){"hidden"!==e.type&&(e.value="","file"===e.type&&(t.element.querySelectorAll(".file__item").forEach((function(t){t.remove()})),t.element.querySelectorAll(".input-field__error").length>0&&t.element.querySelectorAll(".input-field__error").forEach((function(t){t.remove()}))))})),t.resetClasses();var e=new Event("label-reset",{bubbles:!0});document.dispatchEvent(e)})),cp(sp(t),"setLoading",(function(e){e?(t.buttonTarget.classList.add("disabled"),t.inputTargets.forEach((function(t){return t.classList.add("disabled")}))):(t.buttonTarget.classList.remove("disabled"),t.inputTargets.forEach((function(t){return t.classList.remove("disabled")})))})),cp(sp(t),"executeCaptcha",(function(){var e=window.smartCaptcha.render(t.captchaContainer,t.optionsCaptcha);window.smartCaptcha.execute(e)})),t}return e=o,r=[{key:"connect",value:function(){this.hasTextareaTarget&&(this.textareaHeight=this.textareaTarget.offsetHeight),this.hasPhoneTarget&&(this.mask=new Ch.Z(this.phoneTarget,{mask:"+{7} (000) 000-00-00",placeholderChar:"_"})),document.addEventListener("select:show-update",this.toggleHiddenElements)}},{key:"disconnect",value:function(){this.hasPhoneTarget&&this.mask.destroy()}},{key:"resizeHeigth",value:function(){this.textareaHeight<this.textareaTarget.scrollHeight&&(this.textareaTarget.style.height="auto",this.textareaTarget.style.height="".concat(this.textareaTarget.scrollHeight,"px"))}},{key:"setInputErrorMessage",value:function(t){var e=this;Object.keys(t).forEach((function(r,n){var i=e.inputTargets.find((function(t){return t.name===r})),o=e.errorTargets.find((function(t){return t.dataset.errorName===r}));0===n&&i.focus();var a=i.closest(".checkbox__input"),s=i.closest(".file__input"),l=i.closest(".input-field");l&&l.classList.add("error"),a&&a.classList.add("error"),s&&s.parentElement.classList.add("error"),o&&(o.textContent=t[r])}))}},{key:"afterSuccess",value:function(){var t=this;this.element.classList.add("form--success");var e=this.element.querySelector(".form__title");if(e){var r=e.getBoundingClientRect().top+(window.scrollY-120);window.scrollTo({top:r,left:window.pageXOffset,behavior:"smooth"})}this.timeout=setTimeout((function(){t.successClear()}),4e3)}},{key:"onSuccess",value:function(){this.reset(),this.element.classList.remove("form--error"),document.dispatchEvent(new CustomEvent("send-form")),this.afterSuccess()}},{key:"onServerResponse",value:function(t){if(t.ERROR)this.setInputErrorMessage(t.ERROR);else if(t.serverError)this.element.classList.add("form--error");else{if(t.MESSAGE){var e=t.MESSAGE,r=e.title,n=e.description;this.serverSuccessTitleTarget.textContent=r,this.serverSuccessDescriptionTarget.textContent=n}this.onSuccess()}}},{key:"onServerError",value:function(t){t.ERROR?this.setInputErrorMessage(t.ERROR):t.serverError&&this.element.classList.add("form--error")}},{key:"submit",value:function(t){t.preventDefault(),this.resetClasses(),this.setLoading(!0);var e=this.validate();if(Object.keys(e).length>0)return this.setInputErrorMessage(e),void this.setLoading(!1);this.executeCaptcha()}},{key:"post",value:function(){var t=this;this.inputTargets.forEach((function(e){"checkbox"===e.type||"radio"===e.type?t.formData.append(e.name,e.checked):e.classList.contains("hidden")||"file"===e.type||t.formData.append(e.name,e.value)})),this.formData.append("smart-token",this.tokenCaptcha),fetch(this.element.action,{method:this.element.method,body:this.formData}).then((function(t){return t.json()})).then((function(e){return t.onServerResponse(e)})).catch((function(e){t.onServerError(e)})).finally((function(){t.setLoading(!1)}))}}
2],r&&np(e.prototype,r),n&&np(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function pp(t){return pp="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},pp(t)}function fp(t){return function(t){if(Array.isArray(t))return dp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return dp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function mp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_p(n.key),n)}}function gp(t,e){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gp(t,e)}function vp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=xp(t);if(e){var i=xp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return bp(this,r)}}function bp(t,e){if(e&&("object"===pp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wp(t)}function wp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xp(t){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xp(t)}function Sp(t,e,r){return(e=_p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _p(t){var e=function(t,e){if("object"!==pp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pp(e)?e:String(e)}cp(hp,"targets",["input","obligatory","error","button","serverError","serverSuccessTitle","serverSuccessDescription","phone","file","select","hidden","textarea"]);var Ep=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gp(t,e)}(o,t);var e,r,n,i=vp(o);function o(){var t;mp(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Sp(wp(t=i.call.apply(i,[this].concat(r))),"photoList",t.wrapperTarget.querySelectorAll("img")),Sp(wp(t),"currentIndex",0),Sp(wp(t),"showMore",(function(){t.modalTarget.querySelectorAll("img").forEach((function(t){t.remove()})),t.photoList=t.wrapperTarget.querySelectorAll("img"),t.buttonTargets.forEach((function(e,r){e.addEventListener("click",(function(){t.showPhoto(r)}))})),t.createPhotos()})),Sp(wp(t),"createPhotos",(function(){t.photoList.forEach((function(e){var r=e.cloneNode(!0);e.dataset.src;r.src=e.dataset.src,t.contentTarget.appendChild(r)})),t.photos=fp(t.contentTarget.children),t.updateCounter()})),Sp(wp(t),"showPhoto",(function(e){t.photos.forEach((function(t){t.classList.remove("active")})),t.photos[e].classList.add("active"),t.currentIndex=e,t.updateCounter()})),Sp(wp(t),"next",(function(){var e=t.index<t.photos.length-1?t.index+1:0;t.showPhoto(e),t.index=e})),Sp(wp(t),"prev",(function(){var e=t.index>0?t.index-1:t.photos.length-1;t.showPhoto(e),t.index=e})),t}return e=o,r=[{key:"connect",value:function(){var t=this;
vendor: 6,133 bytes, line 2
2this.createPhotos(),this.buttonTargets.forEach((function(e,r){e.addEventListener("click",(function(){t.showPhoto(r)}))})),document.addEventListener("lazyLoadUpdate",this.showMore),document.addEventListener("turbo:frame-render",this.showMore)}},{key:"disconnect",value:function(){var t=this;this.buttonTargets.forEach((function(e,r){e.removeEventListener("click",(function(){t.showPhoto(r)}))}))}},{key:"updateCounter",value:function(){this.counterTarget.textContent="Фото ".concat(this.currentIndex+1," из ").concat(this.photos.length)}}],r&&yp(e.prototype,r),n&&yp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);Sp(Ep,"targets",["wrapper","modal","content","button","counter"]);const Tp={load:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"//api-maps.yandex.ru/2.1/?lang=en_RU",e=function(){var e=t.match(/[\\?&]ns=([^&#]*)/);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))};return this.promise||(this.promise=new Promise((function(e,r){var n=document.createElement("script");n.onload=e,n.onerror=r,n.type="text/javascript",n.src=t,document.body.appendChild(n)})).then((function(){var t=e();return t&&"ymaps"!==t&&(0,eval)("var ymaps = ".concat(t,";")),new Promise((function(t){return ymaps.ready(t)}))}))),this.promise}};function Pp(t){return Pp="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},Pp(t)}function kp(){kp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new T(i||[]);return n(a,"_invoke",{value:x(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h={};function p(){}function f(){}function d(){}var m={};l(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&r.call(g,o)&&(m=g);var v=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,o,a,s){var l=u(t[n],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==Pp(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=u(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=d,n(v,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:f,configurable:!0}),f.displayName=l(d,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,o,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
vendor: 5,231 bytes, line 2
2h(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function Cp(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,i)}function Mp(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Cp(o,n,i,a,s,"next",t)}function s(t){Cp(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Dp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ap(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bp(n.key),n)}}function Op(t,e){return Op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Op(t,e)}function Lp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Rp(t);if(e){var i=Rp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ip(this,r)}}function Ip(t,e){if(e&&("object"===Pp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Fp(t)}function Fp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rp(t){return Rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rp(t)}function jp(t,e,r){return(e=Bp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bp(t){var e=function(t,e){if("object"!==Pp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Pp(e)?e:String(e)}var Vp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Op(t,e)}(a,t);var e,r,n,o=Lp(a);function a(){var t;Dp(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return jp(Fp(t=o.call.apply(o,[this].concat(r))),"initialMap",void 0),jp(Fp(t),"center",void 0),jp(Fp(t),"marksUrl",void 0),jp(Fp(t),"zoomMap",t.element.dataset.zoom?parseInt(t.element.dataset.zoom,10):7),jp(Fp(t),"defaultZoom",t.zoomMap),jp(Fp(t),"markLayout",void 0),jp(Fp(t),"mapsLoad",(function(e){Tp.load("https://api-maps.yandex.ru/2.1/?lang=ru_Ru").then((function(r){t.initialMap=new r.Map(t.mapTarget,{center:[t.center.CENTER.X,t.center.CENTER.Y],zoom:t.zoomMap,controls:[]},{searchControlProvider:"yandex#search"});var n=new r.Clusterer({clusterIconColor:"#FFB301",iconContentLayout:t.markLayout,groupByCoordinates:!1,clusterDisableClickZoom:!1,openBalloonOnClick:!1,zIndexHover:1});e&&Object.keys(e).forEach((function(i){t.markLayout=r.templateLayoutFactory.createClass('\n              <sp
2an class="map__mark">\n              </span>\n            ');var o=r.templateLayoutFactory.createClass('\n              <div class="map__balloon">\n                   <h5 class="map__balloon-title">\n                    '.concat(e[i].TITLE,'\n                   </h5>\n                    <p class="map__balloon-address">\n                      ').concat(e[i].ADDRESS,'\n                    </p>\n                    <div class="map__balloon-schedule">\n                        <p>').concat(e[i].SCHEDULE,"</p>\n                        <span>").concat(e[i].SCHEDULE_DESC,"</span>\n                    </div>\n                    <div class='").concat(null!==e[i].PHONE?"map__balloon-number":"map__balloon-number--none","'>\n                      <a href='tel:").concat(e[i].PHONE,"'>\n                          ").concat(e[i].PHONE,"\n                      </a>\n                    </div>\n              </div>\n            ")),a=new r.Placemark([e[i].X,e[i].Y],{balloonContent:""},{iconLayout:"default#imageWithContent",iconImageHref:"",iconImageHrefHover:"/assets/build/stub/mapIcon.svg",iconImageSize:[24,24],iconImageSizeHover:[40,60],iconContentLayout:t.markLayout,iconContentLayoutHover:"",iconImageOffset:[0,0],iconImageOffsetHover:[-10,-10],balloonLayout:o,balloonContentLayout:o,hideIconOnBalloonOpen:!1,balloonOffset:[30,0],balloonPanelMaxMapArea:0});a.events.add("balloonopen",t.balloonOpenMark),a.events.add("balloonclose",t.balloonCloseMark),n.add(a)}));t.initialMap.geoObjects.add(n),t.initialMap.behaviors.disable(["dblClickZoom","rightMouseButtonMagnifier","scrollZoom"]),window.innerWidth>768&&t.initialMap.behaviors.disable(["multiTouch"])})).catch((function(t){return console.log("При загрузке карты произошла ошибка",t)}))})),jp(Fp(t),"showOnMap",(function(e){var r=e.target.dataset,n=r.center,o=r.frame;t.center=JSON.parse(n),t.zoomMap=t.defaultZoom,window.Turbo&&o?i.Vn("".concat(window.origin).concat(t.element.dataset.path),{frame:"map"}):(t.initialMap.destroy(),t.getData())})),jp(Fp(t),"getData",Mp(kp().mark((function e(){var r,n;return kp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.marksUrl);case 2:return r=e.sent,e.next=5,r.json();case 5:n=e.sent,t.mapsLoad(n[0]);case 7:case"end":return e.stop()}}),e)})))),jp(Fp(t),"balloonOpenMark",(function(t){var e=t.get("target").options;e.set("iconLayout","default#image"),e.set("iconImageHref","/assets/build/stub/mapIcon.svg"),e.set("iconImageHrefHover","/assets/build/stub/mapIcon.svg"),e.set("iconImageSize",[40,60]),e.set("iconImageOffset",[-10,-10])})),jp(Fp(t),"balloonCloseMark",(function(t){var e=t.get("target").options;e.set("iconLayout","default#imageWithContent"),e.set("iconImageHrefHover","/assets/build/stub/mapIcon.svg"),e.set("iconImageSize",[24,24]),e.set("iconImageOffset",[0,0])})),jp(Fp(t),"zoomIn",(function(){20!==t.zoomMap&&t.initialMap.setZoom(t.zoomMap+=1)})),jp(Fp(t),"zoomOut",(function(){t.initialMap.setZoom(t.zoomMap-=1)})),t}return e=a,(r=[{key:"connect",value:function(){var t=this;this.hasMapTarget&&(this.center=JSON.parse(this.mapTarget.dataset.center),this.marksUrl=this.mapTarget.dataset.marksUrl,this.getData()),this.hasShowOnMapTarget&&this.showOnMapTargets.forEach((function(e){e.addEventListener("click",t.showOnMap)})),document.addEventListener("turbo:frame-render",(function(){t.hasMapTarget&&(t.center||(t.center=JSON.parse(t.mapTarget.dataset.center)),t.marksUrl=t.mapTarget.dataset.marksUrl,t.getData()),t.hasShowOnMapTarget&&t.showOnMapTargets.forEach((function(e){e.addEventListener("click",t.showOnMap)}))}))}}])&&Ap(e.prototype,r),n&&Ap(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Qr);function zp(t){return zp="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},zp(t)}function Np(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Up(n.key),n)}}
2function Hp(t,e){return Hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hp(t,e)}function qp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Wp(t);if(e){var i=Wp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Yp(this,r)}}function Yp(t,e){if(e&&("object"===zp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $p(t)}function $p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wp(t){return Wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wp(t)}function Xp(t,e,r){return(e=Up(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Up(t){var e=function(t,e){if("object"!==zp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==zp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zp(e)?e:String(e)}jp(Vp,"targets",["map","plus","minus","showOnMap"]);var Zp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hp(t,e)}(o,t);var e,r,n,i=qp(o);function o(){var t;Np(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Xp($p(t=i.call.apply(i,[this].concat(r))),"opened",!1),Xp($p(t),"contentMinHeight","0px"),Xp($p(t),"contentMaxHeight","200vh"),Xp($p(t),"textButton",void 0),Xp($p(t),"recalculate",(function(){if(t.hasContentTarget){t.contentTarget.style.maxHeight="none",t.contentMaxHeight=window.getComputedStyle(t.contentTarget).height;var e=t.contentTarget.dataset.showNumber,r=t.contentTarget.children[e-1];if(t.contentTarget.children.length<=Number(e)&&t.hasButtonTarget)return t.contentMaxHeight="auto",void(t.buttonTarget.style.display="none");if(e&&r){var n=t.contentTarget.children[0].getBoundingClientRect().top,i=r.getBoundingClientRect().bottom,o=window.getComputedStyle(r);t.contentMinHeight="".concat(i-n+parseFloat(o.marginTop)+parseFloat(o.marginBottom),"px")}"auto"===t.contentMaxHeight&&(t.contentMaxHeight="200vh"),t.contentTarget.style.maxHeight=t.opened?t.contentMaxHeight:t.contentMinHeight}})),Xp($p(t),"open",(function(){t.element.classList.add("opened"),t.contentTarget.style.maxHeight=t.contentMaxHeight,t.updateParentAccordions("".concat(t.contentMaxHeight," - ").concat(t.contentMinHeight)),t.opened=!0,t.hasAccordionTarget&&t.accordionTarget.removeEventListener("click",t.open)})),Xp($p(t),"close",(function(){t.element.classList.remove("opened"),t.contentTarget.style.maxHeight=t.contentMinHeight,t.updateParentAccordions("".concat(t.contentMinHeight," - ").concat(t.contentMaxHeight)),t.closeChildAccordions(),t.opened=!1,t.hasAccordionTarget&&setTimeout((function(){return t.accordionTarget.addEventListener("click",t.open)}),.1)})),Xp($p(t),"toggle",(function(){t.opened?t.close():t.open()})),Xp($p(t),"toggleText",(function(e){t.opened?(t.close(),e.target.innerText=t.textButton):(t.textButton=e.target.innerText,t.open(),e.target.innerText="скрыть")})),Xp($p(t),"onForceClose",(function(){t.opened=!1,t.element.classList.remove("opened"),t.contentTarget.style.maxHeight=t.contentMinHeight})),t}return e=o,(r=[{key:"connect",value:function(){this.hasAccordionTarget&&this.accordionTarget.addEventListener("click",this.open),this.recalculate(),document.addEventListener("filters:update",this.recalculate)}},{key:"disconnect",value:function(){window.removeEventListener("turbo:load",this.loadHandler),window.removeEventListener("load",this.loadHandler),this.element.removeEventListener("force-close",this.onForceClose)}},{key:"updateParentAccordions",value:function(t){var e=this.element;do{if((e=e.parentElement)&&e.hasAttribute("data-accordion-target")&&e.dataset.accordionTarget.indexOf("content")>=0){var r=window.getComputedStyle(e).maxHeight;e.style.maxHeight="calc(".concat(r," + ").concat(t,")")}}while(e)}},{key:"closeChildAccordions",value:function(){for(var t=this.element.querySelectorAll('[data-controller="accordion"].opened'),e=0;e<t.length;e++)t[e].dispatchEvent(new CustomEvent("force-close"))}}])&&Gp(e.prototype,r),n&&Gp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Qp(t){return Qp="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},Qp(t)}function Kp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sf(n.key),n)}}function tf(t,e){return tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tf(t,e)}function ef(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=of(t);if(e){var i=of(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return rf(this,r)}}function rf(t,e){if(e&&("object"===Qp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nf(t)}function nf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function of(t){return of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},of(t)}function af(t,e,r){return(e=sf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sf(t){var e=function(t,e){if("object"!==Qp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===Qp(e)?e:String(e)}Xp(Zp,"targets",["accordion","content","button"]);var lf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tf(t,e)}(o,t);var e,r,n,i=ef(o);function o(){var t;Kp(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return af(nf(t=i.call.apply(i,[this].concat(r))),"selected",t.element.querySelector(".select__selected")),af(nf(t),"selectWrapper",t.element.querySelector(".select__input-wrapper")),af(nf(t),"opened",!1),af(nf(t),"allElements",t.hasListTarget&&t.listTarget.querySelectorAll("li")),af(nf(t),"open",(function(){t.element.classList.add("opened"),t.opened=!0})),af(nf(t),"close",(function(){t.element.classList.remove("opened"),t.opened=!1})),af(nf(t),"toggle",(function(e){e.preventDefault(),t.opened?t.close():t.open()})),af(nf(t),"onDocumentClick",(function(e){!t.isElementInside(e.target)&&t.opened&&t.close()})),af(nf(t),"filterItems",(function(){var e=t.searchTarget.value.toLowerCase();t.allElements.forEach((function(t){t.textContent.toLocaleLowerCase().includes(e)?t.style.display="":t.style.display="none"}))})),af(nf(t),"isElementInside",(function(e){for(var r=e;r;){if(r===t.element)return!0;r=r.parentElement}return!1})),af(nf(t),"onListButtonClick",(function(e){var r,n,i=e.target,o=i.querySelector(".select__list-item-sublist")?i.firstElementChild:i;(t.element.dispatchEvent(new CustomEvent("select:show-update",{bubbles:!0,detail:null!==(r=i.dataset.showTarget)&&void 0!==r?r:null})),i.innerText!==t.selected.innerText&&t.listButtonTargets.forEach((function(t){t.classList.remove("active")})),i.classList.contains("active"))?(e.target.classList.remove("active"),t.selected.innerText=t.inputTarget.placeholder,t.inputTarget.value=null!==(n=t.inputTarget.dataset.value)&&void 0!==n?n:t.inputTarget.placeholder):(i.classList.add("active"),t.selected.innerText=o.innerText,t.inputTarget.value=t.getValue(o));t.close()})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.selectWrapper.addEventListener("click",this.open),document.addEventListener("click",this.onDocumentClick),this.arrowTarget.addEventListener("click",this.toggle),this.hasSearchTarget&&(this.searchTarget.addEventListener("change",this.filterItems),this.searchTarget.addEventListener("input",this.filterItems)),this.listButtonTargets.forEach((function(e){e.addEventListener("click",t.onListButtonClick)})),document.addEventListener("select:load",(function(){t.listButtonTargets.forEach((function(e){e.addEventListener("click",t.onListButtonClick)}))})),""===this.selected.innerText&&(this.selected.innerText=this.inputTarget.placeholder)}},{key:"disconnect",value:function(){var t=this;this.inputTarget.removeEventListener("click",this.open),document.removeEventListener("click",this.onDocumentClick),this.arrowTarget.removeEventListener("click",this.toggle),this.listButtonTargets.forEach((function(e){e.removeEventListener("click",t.onListButtonClick)})),this.hasSearchTarget&&(this.searchTarget.removeEventListener("change",this.filterItems),this.searchTarget.removeEventListener("input",this.filterItems))}},{key:"getValue",value:function(t){var e;return null!==(e=t.dataset.value)&&void 0!==e?e:t.innerText}}])&&Jp(e.prototype,r),n&&Jp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function cf(t){return cf="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},cf(t)}function uf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vf(n.key),n)}}function pf(t,e){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pf(t,e)}function ff(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=yf(t);if(e){var i=yf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return df(this,r)}}function df(t,e){if(e&&("object"===cf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mf(t)}function mf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yf(t){return yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yf(t)}function gf(t,e,r){return(e=vf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vf(t){var e=function(t,e){if("object"!==cf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===cf(e)?e:String(e)}af(lf,"targets",["input","value","listButton","arrow","search","list"]);var bf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pf(t,e)}(o,t);var e,r,n,i=ff(o);function o(){var t,e;uf(this,o);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return gf(mf(e=i.call.apply(i,[this].concat(n))),"step",0),gf(mf(e),"firstStep",null!==(t=parseInt(e.element.dataset.firstStep,10))&&void 0!==t?t:0),gf(mf(e),"makeLongCards",(function(){e.itemTargets.forEach((function(t,r){r%2==0&&r===e.step?(t.classList.add("long"),e.step+=0===r&&e.firstStep>0?e.firstStep:9):r%2!=0&&r===e.step&&(t.classList.add("long"),e.step+=5)}))})),e}return e=o,(r=[{key:"connect",value:function(){this.makeLongCards(),this.resizeObserver=new ResizeObserver(this.makeLongCards),this.resizeObserver.observe(this.element)}}])&&hf(e.prototype,r),n&&hf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function wf(t){return wf="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},wf(t)}function xf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mf(n.key),n)}}function _f(t,e){return _f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_f(t,e)}function Ef(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=kf(t);if(e){var i=kf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Tf(this,r)}}function Tf(t,e){if(e&&("object"===wf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pf(t)}function Pf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kf(t){return kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kf(t)}function Cf(t,e,r){return(e=Mf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mf(t){var e=function(t,e){if("object"!==wf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==wf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wf(e)?e:String(e)}gf(bf,"targets",["item"]);var Df=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_f(t,e)}(o,t);var e,r,n,i=Ef(o);function o(){var t;xf(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Cf(Pf(t=i.call.apply(i,[this].concat(r))),"photoList",t.element.querySelectorAll(".preview-product__photo")),Cf(Pf(t),"mainPhoto",t.mainPhotoTarget.querySelector("img")),Cf(Pf(t),"activePhoto",t.photoList[0].querySelector("img")),Cf(Pf(t),"clickPhoto",(function(e){var r=e.target,n=r.firstElementChild;t.photoList.forEach((function(t){return t.classList.remove("active")})),t.mainPhoto.src=n.getAttribute("src"),t.linkTarget.href=n.getAttribute("data-src"),r.classList.add("active")})),t}return e=o,(r=[{key:"connect",value:function(){this.mainPhoto.src=this.activePhoto.src,this.photoList[0].classList.add("active"),this.linkTarget.href=this.activePhoto.dataset.src}}])&&Sf(e.prototype,r),n&&Sf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);Cf(Df,"targets",["mainPhoto","link"]);var Af=r(992),Of=r(55),Lf=r.n(Of);function If(t){return If="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},If(t)}function Ff(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Hf(n.key),n)}}function jf(t,e){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jf(t,e)}function Bf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Nf(t);if(e){var i=Nf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Vf(this,r)}}function Vf(t,e){if(e&&("object"===If(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return zf(t)}function zf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nf(t){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nf(t)}function Gf(t,e,r){return(e=Hf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hf(t){var e=function(t,e){if("object"!==If(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==If(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===If(e)?e:String(e)}var qf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jf(t,e)}(o,t);var e,r,n,i=Bf(o);function o(){var t;Ff(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Gf(zf(t=i.call.apply(i,[this].concat(r))),"trianglePrevIcon",'<svg class="button__icon icon icon-24" role="img"><use xlink:href="/icons.svg#arrow-left"/></svg>'),Gf(zf(t),"triangleNextIcon",'<svg class="button__icon icon icon-24" role="img"><use xlink:href="/icons.svg#arrow-right"/></svg>'),Gf(zf(t),"singleDaySelected",!1),Gf(zf(t),"preselectedDateString",""),Gf(zf(t),"isFirstShow",!0),Gf(zf(t),"mm",window.matchMedia("(max-width: 767px")),Gf(zf(t),"resize",(function(){t.mm.matches?t.picker.setOptions({numberOfMonths:1}):1===t.picker.options.numberOfMonths&&t.picker.setOptions({numberOfMonths:parseInt(t.element.dataset.numberOfMonths,10)||1})})),Gf(zf(t),"clearPicker",(function(){var e=t.element.querySelector(".day-item.is-start-date.is-end-date");e?(e.classList.remove("is-start-date","is-end-date"),t.preselectedDateString="",t.inputTarget.value=""):t.picker.clearSelection()})),Gf(zf(t),"isElementInside",(function(e){for(var r=e;r!==document.documentElement;){if(r===t.element||!r)return!0;r=r.parentElement}return!1})),Gf(zf(t),"onDatePreselect",(function(e,r){if(r&&e.getTime()!==r.getTime())return t.singleDaySelected=!1,void(t.preselectedDateString="");t.singleDaySelected=!0;var n=e.getDate(),i=e.getMonth()+1,o=e.getFullYear();n=n<10?"0".concat(n):n,i=i<10?"0".concat(i):i;var a="".concat(n,".").concat(i,".").concat(o);t.preselectedDateString=a,t.inputTarget.value=a,t.mask.updateValue()})),Gf(zf(t),"onInput",(function(){t.singleDaySelected=!1,t.preselectedDateString=""})),Gf(zf(t),"onInputChange",(function(e){e.target.value.length||t.picker.clearSelection()})),Gf(zf(t),"onInputTabBlur",(function(e){t.isElementInside(e.relatedTarget)&&!t.opened&&t.open()})),t}return e=o,r=[{key:"connect",value:function(){var t=this;this.inputTarget.addEventListener("change",this.onInputChange),this.inputTarget.addEventListener("focus",this.onInputFocus),this.inputTarget.addEventListener("blur",this.onInputBlur),this.inputTarget.addEventListener("blur",this.onInputTabBlur),this.inputTarget.addEventListener("input",this.onInput),this.buttonTarget.addEventListener("click",this.toggle),window.addEventListener("resize",this.resize),this.setDateButtonTargets.forEach((function(e){e.addEventListener("click",(function(){var r=e.dataset,n=r.days,i=r.month,o=new Date,a=new Date;n?a.setDate(a.getDate()-parseInt(n,10)):a.setMonth(a.getMonth()-parseInt(i,10)),t.picker.setDateRange(o,a),t.picker.gotoDate(a)}))})),document.addEventListener("click",this.onDocumentClick),this.mask=(0,Af.Z)(this.inputTarget,{mask:"DATE{ }`{-}`{ }`DATE",blocks:{DATE:{mask:Date,blocks:{d:{mask:Af.Z.MaskedRange,placeholderChar:"Д",from:1,to:31,maxLength:2},m:{mask:Af.Z.MaskedRange,placeholderChar:"М",from:1,to:12,maxLength:2},Y:{mask:Af.Z.MaskedRange,placeholderChar:"Г",from:1900,to:2999,maxLength:4}}}}});var e=document.documentElement.lang||"ru";this.picker=new(Lf())({element:this.inputTarget,parentEl:this.containerTarget,inlineMode:!0,format:"DD.MM.YYYY",buttonText:{previousMonth:this.trianglePrevIcon,nextMonth:this.triangleNextIcon},singleMode:!1,showTooltip:!1,autoRefresh:!0,switchingMonths:1,numberOfMonths:!this.mm.matches&&parseInt(this.element.dataset.numberOfMonths,10)||1,lockDaysFilter:function(t){return new Date<t.dateInstance},lang:e}),this.picker.on("preselect",this.onDatePreselect),this.picker.on("before:show",(function(){if(t.isFirstShow){var e=new Date;e.setMonth(e.getMonth()-1),t.picker.gotoDate(e),t.isFirstShow=!1}})),this.resetButtonTarget.addEventListener("click",this.clearPicker)}},{key:"disconnect",value:function(){this.inputTarget.removeEventListener("click",this.open),this.inputTarget.removeEventListener("change",this.onInputChange),this.inputTarget.removeEventListener("focus",this.onInputFocus),this.inputTarget.removeEventListener("blur",this.onInputBlur),this.inputTarget.removeEventListener("blur",this.onInputTabBlur),this.inputTarget.removeEventListener("input",this.onInput),this.buttonTarget.removeEventListener("click",this.toggle),this.resetButtonTarget.removeEventListener("click",this.clearPicker),document.removeEventListener("click",this.onDocumentClick),this.mask&&this.mask.destroy(),this.picker&&this.picker.destroy()}},{key:"correctSingleDayRange",value:function(){this.singleDaySelected=!1;var t=this.preselectedDateString;this.preselectedDateString="",this.picker.setDateRange(t,t),this.singleDaySelected=!0,this.preselectedDateString=t,this.inputTarget.value=t,this.mask.updateV
2alue()}}],r&&Rf(e.prototype,r),n&&Rf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(lf);function Yf(t){return Yf="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},Yf(t)}function $f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,td(n.key),n)}}function Xf(t,e){return Xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xf(t,e)}function Uf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Kf(t);if(e){var i=Kf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Zf(this,r)}}function Zf(t,e){if(e&&("object"===Yf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qf(t)}function Qf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kf(t){return Kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kf(t)}function Jf(t,e,r){return(e=td(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function td(t){var e=function(t,e){if("object"!==Yf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yf(e)?e:String(e)}Gf(qf,"targets",["input","value","container","button","resetButton","setDateButton"]);var ed=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xf(t,e)}(o,t);var e,r,n,i=Uf(o);function o(){var t;$f(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Jf(Qf(t=i.call.apply(i,[this].concat(r))),"allElements",t.element.querySelectorAll("[data-colors]")),Jf(Qf(t),"updateColors",(function(){t.allElements=t.element.querySelectorAll("[data-colors]"),t.changeColor(),t.hasSectionTarget&&t.toggleContrast()})),Jf(Qf(t),"changeColor",(function(){t.allElements.forEach((function(t){var e=t.dataset.colors,r=JSON.parse(e),n=r.opacity,i=r.color,o=[parseInt(i.slice(1,3),16),parseInt(i.slice(3,5),16),parseInt(i.slice(5,7),16)];t.style.setProperty("--color",o),t.style.setProperty("--opacity",null!=n?n:1)}))})),Jf(Qf(t),"toggleContrast",(function(){var e=getComputedStyle(t.sectionTarget),r=e.backgroundImage,n=e.backgroundColor;if(r)t.sectionTarget.classList.add("contrast");else{var i=n.replace(/[()a-z\s]/g,"").split(",").slice(0,3),o=.299*i[0]+.587*i[1]+.114*i[2];o<186&&o>0?t.sectionTarget.classList.add("contrast"):t.sectionTarget.classList.remove("contrast")}})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;document.addEventListener("slider:init",(function(){t.changeColor()})),this.changeColor(),this.hasSectionTarget&&this.toggleContrast(),document.addEventListener("turbo:frame-render",this.updateColors),document.addEventListener("filters:update",this.updateColors)}}])&&Wf(e.prototype,r),n&&Wf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function rd(t){return rd="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},rd(t)}
vendor: 1,121 bytes, line 2
2function nd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function id(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,hd(n.key),n)}}function od(t,e){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},od(t,e)}function ad(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=cd(t);if(e){var i=cd(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return sd(this,r)}}function sd(t,e){if(e&&("object"===rd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ld(t)}function ld(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
2function cd(t){return cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cd(t)}function ud(t,e,r){return(e=hd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hd(t){var e=function(t,e){if("object"!==rd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rd(e)?e:String(e)}Jf(ed,"targets",["section"]);var pd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&od(t,e)}(o,t);var e,r,n,i=ad(o);function o(){var t;nd(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return ud(ld(t=i.call.apply(i,[this].concat(r))),"onClick",(function(){window.scrollTo({top:0,left:0,behavior:"smooth"})})),t}return e=o,(r=[{key:"connect",value:function(){this.element.addEventListener("click",this.onClick)}}])&&id(e.prototype,r),n&&id(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function fd(t){return fd="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},fd(t)}function dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function md(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Sd(n.key),n)}}function yd(t,e){return yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yd(t,e)}function gd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=wd(t);if(e){var i=wd(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return vd(this,r)}}function vd(t,e){if(e&&("object"===fd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bd(t)}function bd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wd(t){return wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wd(t)}function xd(t,e,r){return(e=Sd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sd(t){var e=function(t,e){if("object"!==fd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==fd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fd(e)?e:String(e)}var _d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yd(t,e)}(o,t);var e,r,n,i=gd(o);function o(){var t;dd(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return xd(bd(t=i.call.apply(i,[this].concat(r))),"youtubeRe",/^(?:https?:\/\/)?(?:(?:www\.)?(youtube(?:-nocookie)?|youtube.googleapis)\.com.*(?:v\/|v=|vi=|vi\/|e\/|embed\/|user\/.*\/u\/\d+\/)|(?:youtu\.be\/))([_0-9a-z-]+)/im),xd(bd(t),"rutubeRe",/^(?:https:?\/\/)?(?:www\.)?(rutube)\.ru.*(?:v\/|v=|vi=|vi\/|e\/|embed\/|video\/.*\/u\/\d+\/)([_0-9a-z-]+)/im),xd(bd(t),"iframeApiSrc","https://www.youtube.com/iframe_api"),xd(bd(t),"iframes",[]),xd(bd(t),"players",{}),xd(bd(t),"mm",window.matchMedia("(max-width: 768px)")),xd(bd(t),"autoplayIframe",!1),xd(bd(t),"timer",0),xd(bd(t),"init",(function(){var e=Array.from(t.element.querySelectorAll("iframe"));if(e.length&&(e.forEach((function(e){var r=e.src.match(t.youtubeRe)||e.src.match(t.rutubeRe);
2e.id=r[2],e.type=r[1],e.id||e.type||t.checkIframe(e)})),t.iframes=e,t.iframes.length))if(document.querySelector("script[src='".concat(t.iframeApiSrc,"']")))t.initPlayers();else{var r=document.createElement("script");r.src=t.iframeApiSrc,r.async=!0,document.head.appendChild(r),window.onYouTubeIframeAPIReady=function(){return t.initPlayers()}}})),xd(bd(t),"onPlayerReady",(function(e){var r=e.target.g.parentElement;!t.mm.matches&&Boolean(r.dataset.autoplayIframe)?(r.addEventListener("mouseenter",(function(r){return t.playVideo(r,e.target)})),r.addEventListener("mouseleave",(function(r){return t.pauseVideo(r,e.target)}))):t.mm.matches?r.addEventListener("touchstart",(function(r){return t.playVideo(r,e.target)})):r.addEventListener("click",(function(r){return t.setEventClick(r,e.target)})),r.classList.add("show")})),xd(bd(t),"initYoutubePlayer",(function(e){var r=document.createElement("div"),n=e.parentElement,i={videoId:e.id,playerVars:{vq:"hd1080",rel:0,playsinline:1,color:"white",controls:0,origin:window.location.href,enablejsapi:1,loop:1,autoplay:0},events:{onReady:function(r){return t.onPlayerReady(r,e.id)}}};r.dataset.autoplayIframe=e.dataset.autoplayIframe,r.classList.add("youtube-player");var o=t.getThumbnail(e.id);r.style.backgroundImage="url(".concat(o,")");var a=document.createElement("div");r.appendChild(a),n.insertBefore(r,e),n.removeChild(e),e.dataset.autoplayIframe||r.insertAdjacentHTML("beforeend",'\n        <button class="button button--contrast" type="button" data-controller="button-animation">\n          <svg class="icon-24">\n            <use xlink:href="/icons.svg#play"/>\n          </svg>\n        </button>\n      '),new window.YT.Player(a,i)})),xd(bd(t),"setEventClick",(function(e,r){e.currentTarget.classList.toggle("active"),e.currentTarget.classList.contains("active")?t.playVideo(e,r):t.pauseVideo(e,r)})),xd(bd(t),"playVideo",(function(t,e){t.currentTarget.classList.add("active"),e.playVideo()})),xd(bd(t),"pauseVideo",(function(t,e){t.currentTarget.classList.remove("active"),e.pauseVideo()})),xd(bd(t),"wrapperForRutube",(function(t){var e=document.createElement("div"),r=t.parentElement;e.classList.add("rutube-player");var n=t.cloneNode(!0);r.insertBefore(e,t),e.appendChild(n),r.removeChild(t)})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.timer=setTimeout((function(){return t.init()}),1e3)}},{key:"disconnect",value:function(){clearTimeout(this.timer)}},{key:"checkIframe",value:function(t){var e=t.parentElement,r=document.createElement("template");r.innerHTML='\n      <div class="content__video-block" data-controller="video">\n        <video class="video" data-video-target="player" preload="metadata">\n          <source src="'.concat(t.src,'" type="video/mp4" />\n        </video>\n        <div class="video__play-button">\n          <button class="button button--contrast" type="button" data-controller="wave">\n            <svg class="icon">\n              <use xlink:href="/icons.svg#play-video"/>\n            </svg>\n          </button>\n        </div>\n      </div>\n      ');var n=document.importNode(r.content,!0);e.appendChild(n),e.removeChild(t)}},{key:"getThumbnail",value:function(t){var e=document.querySelector(".youtube-player__thumbnail");return e?e.getAttribute("data-src"):"https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg")}},{key:"initPlayer",value:function(t){"youtube"===t.type&&this.initYoutubePlayer(t),"rutube"===t.type&&this.wrapperForRutube(t)}},{key:"initPlayers",value:function(){var t=this;this.iframes.forEach((function(e){return t.initPlayer(e)}))}}])&&md(e.prototype,r),n&&md(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Ed(t){return Ed="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},Ed(t)}function Td(t){return function(t){if(Array.isArray(t))return Pd(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Pd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pd(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fd(n.key),n)}}
2function Md(t,e){return Md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Md(t,e)}function Dd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ld(t);if(e){var i=Ld(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ad(this,r)}}function Ad(t,e){if(e&&("object"===Ed(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Od(t)}function Od(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ld(t){return Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ld(t)}function Id(t,e,r){return(e=Fd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fd(t){var e=function(t,e){if("object"!==Ed(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ed(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ed(e)?e:String(e)}var Rd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Md(t,e)}(o,t);var e,r,n,i=Dd(o);function o(){var t;kd(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Id(Od(t=i.call.apply(i,[this].concat(r))),"currentYear",t.element.dataset.defaultYear),Id(Od(t),"links",t.yearsListTarget.querySelectorAll("[data-turbo-frame]")),Id(Od(t),"itemHeight",t.yearsListTarget.children[0].offsetHeight),Id(Od(t),"wrappers",["prev","next"]),Id(Od(t),"containers",[]),Id(Od(t),"activeIndex",Td(t.links).findIndex((function(e){return e.textContent===t.currentYear}))),Id(Od(t),"setContainerSize",(function(e){e.style.maxHeight="".concat(8*t.itemHeight,"px"),e.style.minHeight="".concat(8*t.itemHeight,"px")})),Id(Od(t),"createWrappers",(function(){t.wrappers.forEach((function(e){var r=document.createElement("div");t.containers.push(r),r.dataset.order=e,r.classList.add("history__".concat(e,"-years")),t.setContainerSize(r),t.links.forEach((function(n){if("next"===e){var i=n.cloneNode(!0);i.addEventListener("click",t.onClick),r.appendChild(i)}else n.addEventListener("click",t.onClick),r.appendChild(n)})),t.yearsListTarget.append(r)}))})),Id(Od(t),"onClick",(function(e){var r=e.target.textContent;t.changeYear(r),t.changeYears(e.target),window.scrollTo({top:t.element.offsetTop,left:0,behavior:"smooth"})})),Id(Od(t),"changeYear",(function(e){var r=e.slice(2).split("");t.numberTargets.forEach((function(t,e){t.style.transform="translateY(".concat(100*-r[e],"%)")}))})),Id(Od(t),"animateNumbers",(function(){t.containers.forEach((function(e){var r=e.dataset.order,n=Qn.utils.toArray(e.children),i="next"===r?-100*(t.activeIndex+1):100*(n.length-t.activeIndex);Qn.timeline().to(n,{yPercent:i})}))})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.changeYear(this.currentYear),document.addEventListener("turbo:before-frame-render",(function(){wc(document.documentElement),t.element.classList.add("loading")})),document.addEventListener("turbo:frame-render",(function(){xc(document.documentElement),t.element.classList.remove("loading")})),this.createWrappers(),this.animateNumbers(),this.hasSelectYearsListTarget&&Td(this.selectYearsListTarget.children).forEach((function(e){e.addEventListener("click",t.onClick)})),window.addEventListener("resize",(function(){t.itemHeight=t.links[0].offsetHeight,t.containers.forEach((function(e){t.setContainerSize(e)}))}))}},{key:"disconnect",value:function(){var t=this;document.removeEventListener("turbo:before-frame-render",(function(){wc(document.documentElement),t.element.classList.add("loading")})),document.removeEventListener("turbo:frame-render",(function(){xc(document.documentElement),t.element.classList.remove("loading")}))}},{key:"changeYears",value:function(t){this.activeIndex=Td(this.links).findIndex((function(e){return e.textContent===t.textContent})),this.animateNumbers()}}])&&Cd(e.prototype,r),n&&Cd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);
2function jd(t){return jd="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},jd(t)}function Bd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$d(n.key),n)}}function zd(t,e){return zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zd(t,e)}function Nd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=qd(t);if(e){var i=qd(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Gd(this,r)}}function Gd(t,e){if(e&&("object"===jd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Hd(t)}function Hd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qd(t){return qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qd(t)}function Yd(t,e,r){return(e=$d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $d(t){var e=function(t,e){if("object"!==jd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==jd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===jd(e)?e:String(e)}Id(Rd,"targets",["number","year","yearsList","selectYearsList"]);var Wd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zd(t,e)}(o,t);var e,r,n,i=Nd(o);function o(){var t;Bd(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Yd(Hd(t=i.call.apply(i,[this].concat(r))),"sectionsPos",[]),Yd(Hd(t),"active",null),Yd(Hd(t),"init",!1),Yd(Hd(t),"onClick",(function(e){e.preventDefault(),t.hasSelectTarget&&t.changeValueSelect(e.currentTarget);var r=e.target.getAttribute("href"),n=document.querySelector(r).getBoundingClientRect().top+(window.scrollY-120);window.scrollTo({top:n,left:window.pageXOffset,behavior:"smooth"})})),Yd(Hd(t),"changeValueSelect",(function(e){var r=t.selectTarget.querySelector("input"),n=t.selectTarget.querySelector(".select__selected");Array.from(t.selectTarget.querySelectorAll(".select__list-item")).forEach((function(t){t.dataset.value===e.dataset.value?(t.classList.contains("active")||t.classList.add("active"),r.value=e.dataset.value,r.placeholder=t.innerText,n.innerText=t.innerText[0].toUpperCase()+t.innerText.slice(1)):t.classList.remove("active")}))})),Yd(Hd(t),"findPosition",(function(){t.sectionTargets.forEach((function(e){var r=e.getBoundingClientRect().top+(window.pageYOffset-140);t.sectionsPos.push(r)})),t.hasScrollTarget&&t.onScroll()})),Yd(Hd(t),"writeHref",(function(t){window.Turbo?window.Turbo.navigator.history.replace(new URL(window.location.origin+window.location.pathname+t)):window.history.replaceState({},document.title,window.location.pathname+t)})),Yd(Hd(t),"onScroll",(function(){var e=-1;if(t.init||(t.init=!0,t.linkTargets[0].closest("li")&&t.linkTargets[0].closest("li").classList.add("active")),t.sectionsPos.forEach((function(t,r){window.scrollY>=t&&(e=r)})),e<0)return t.writeHref(""),t.linkTargets.forEach((function(t){t.classList.remove("active")})),void(t.active=null);if(e!==t.active){var r=t.linkTargets[e].closest("li");r&&r.classList.add("active");var n=t.linkTargets[e].getAttribute("href");
2t.linkTargets.forEach((function(t){t.closest("li")&&t.closest("li").classList.remove("active")})),t.active=e,t.writeHref(n)}})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;window.requestAnimationFrame((function(){t.findPosition()})),this.linkTargets.forEach((function(e){e.addEventListener("click",t.onClick)})),this.hasScrollTarget&&(document.addEventListener("scroll",this.onScroll),document.addEventListener("resize",this.findPosition)),document.addEventListener("turbo:frame-render",(function(){Array.from(t.element.querySelectorAll('[data-aside-scroll-target="link"]')).forEach((function(e){e.addEventListener("click",t.onClick)})),document.addEventListener("scroll",t.onScroll),document.addEventListener("resize",t.findPosition)}))}},{key:"disconnect",value:function(){var t=this;this.linkTargets.forEach((function(e){e.removeEventListener("click",t.onClick)})),document.removeEventListener("scroll",this.onScroll),document.removeEventListener("resize",this.findPosition),document.removeEventListener("turbo:frame-render",(function(){document.removeEventListener("scroll",t.onScroll),document.removeEventListener("resize",t.findPosition)}))}}])&&Vd(e.prototype,r),n&&Vd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Xd(t){return Xd="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},Xd(t)}function Ud(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nm(n.key),n)}}function Qd(t,e){return Qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qd(t,e)}function Kd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=em(t);if(e){var i=em(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Jd(this,r)}}function Jd(t,e){if(e&&("object"===Xd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return tm(t)}function tm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function em(t){return em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},em(t)}function rm(t,e,r){return(e=nm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nm(t){var e=function(t,e){if("object"!==Xd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xd(e)?e:String(e)}Yd(Wd,"targets",["link","section","scroll","select"]);var im=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qd(t,e)}(o,t);var e,r,n,i=Kd(o);function o(){var t;Ud(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return rm(tm(t=i.call.apply(i,[this].concat(r))),"mm",window.matchMedia("(min-width: 768px)")),rm(tm(t),"calculatePosition",(function(){if(t.mm.matches){var e=t.element.getBoundingClientRect(),r=e.left,n=e.top;t.chunkTargets.forEach((function(e){var i=e.dataset.id,o=t.buttonTargets.find((function(t){return t.dataset.chunkId===i}));if(o){var a=e.getBoundingClientRect(),s=a.top,l=a.left,c=a.width,u=a.height,h=o.getBoundingClientRect(),p=h.width,f=h.height,d=s-n+u/2-f,m=l-r+c/2-p/2;o.style.top="".concat(d,"px"),o.style.left="".concat(m,"px")}}))}})),t}return e=o,(r=[{key:"connect",value:function(){this.mm.matches&&this.calculatePosition(),window.addEventListener("resize",this.calculatePosition)}}
2])&&Zd(e.prototype,r),n&&Zd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function om(t){return om="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},om(t)}function am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dm(n.key),n)}}function lm(t,e){return lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lm(t,e)}function cm(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=pm(t);if(e){var i=pm(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return um(this,r)}}function um(t,e){if(e&&("object"===om(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hm(t)}function hm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pm(t){return pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pm(t)}function fm(t,e,r){return(e=dm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dm(t){var e=function(t,e){if("object"!==om(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==om(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===om(e)?e:String(e)}rm(im,"targets",["chunk","button"]);var mm=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lm(t,e)}(o,t);var e,r,n,i=cm(o);function o(){var t;am(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return fm(hm(t=i.call.apply(i,[this].concat(r))),"lastScrollPosition",void 0),fm(hm(t),"firstBlock",t.element.nextElementSibling.children[0]),fm(hm(t),"checkBackground",(function(){var e=getComputedStyle(t.firstBlock),r=e.backgroundImage,n=e.backgroundColor;if("none"!==r)return!0;if(n){var i=n.replace(/[()a-z\s]/g,"").split(",").slice(0,3),o=.299*i[0]+.587*i[1]+.114*i[2];return o<102&&o>0}return!1})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.checkBackground()&&this.element.classList.add("contrast"),window.addEventListener("scroll",(function(){t.lastScrollPosition>window.scrollY&&0===window.scrollY?(t.element.classList.remove("compact"),t.checkBackground()&&t.element.classList.add("contrast")):(t.element.classList.add("compact"),t.element.classList.remove("contrast")),t.lastScrollPosition=window.scrollY}))}}])&&sm(e.prototype,r),n&&sm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function ym(t){return ym="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},ym(t)}function gm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Tm(n.key),n)}}function bm(t,e){return bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bm(t,e)}function wm(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=_m(t);if(e){var i=_m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return xm(this,r)}}function xm(t,e){if(e&&("object"===ym(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sm(t)}function Sm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _m(t){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_m(t)}function Em(t,e,r){return(e=Tm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tm(t){var e=function(t,e){if("object"!==ym(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ym(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===ym(e)?e:String(e)}var Pm=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bm(t,e)}(o,t);var e,r,n,i=wm(o);function o(){var t;gm(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Em(Sm(t=i.call.apply(i,[this].concat(r))),"listButton",t.element.querySelectorAll("[data-turbo-frame]")),Em(Sm(t),"onClickButton",(function(e){e.target.classList.contains("active")?e.target.classList.remove("active"):(t.listButton.forEach((function(t){t.classList.remove("active")})),e.target.classList.add("active"))})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.listButton.forEach((function(e){e.addEventListener("click",t.onClickButton)})),document.addEventListener("slider:init",(function(){t.listButton=t.element.querySelectorAll("[data-turbo-frame]"),t.listButton.forEach((function(e){e.addEventListener("click",t.onClickButton)}))}))}},{key:"disconnect",value:function(){var t=this;this.listButton.forEach((function(e){e.removeEventListener("click",t.onClickButton)}))}}])&&vm(e.prototype,r),n&&vm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function km(t){return km="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},km(t)}function Cm(t){return function(t){if(Array.isArray(t))return Mm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Mm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mm(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Dm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Am(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bm(n.key),n)}}function Om(t,e){return Om=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Om(t,e)}function Lm(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Rm(t);if(e){var i=Rm(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Im(this,r)}}function Im(t,e){if(e&&("object"===km(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Fm(t)}function Fm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rm(t){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rm(t)}function jm(t,e,r){return(e=Bm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bm(t){var e=function(t,e){if("object"!==km(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==km(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===km(e)?e:String(e)}var Vm=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Om(t,e)}(o,t);var e,r,n,i=Lm(o);function o(){var t;Dm(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return jm(Fm(t=i.call.apply(i,[this].concat(r))),"opened",!1),jm(Fm(t),"openingTimer",null),jm(Fm(t),"openingTimerValue",200),jm(Fm(t),"currentSubmenu",null),jm(Fm(t),"lastScrollPosition",window.pageYOffset),jm(Fm(t),"extendedHoverAreas",[]),jm(Fm(t),"isTransitionedWithTurbolinks",!1),jm(Fm(t),"isWatchingScroll",!0),jm(Fm(t),"onScroll",(function(){if(t.isWatchingScroll){var e=window.pageYOffset,r=t.lastScrollPosition>e;t.lastScrollPosition=e,!r&&t.opened&&t.currentSubmenu&&t.closeSubmenu(t.currentSubmenu)}})),jm(Fm(t),"restoreHeightAfterTransition",(function(t){"height"===t.propertyName&&(t.target.style.height="")}
2)),jm(Fm(t),"toggleSubmenu",(function(e){var r=t.findSubmenu(e.target);if(r)if("mouseenter"===e.type)t.opened?t.swapSubmenu(t.currentSubmenu,r):t.openSubmenu(r);else{for(var n=e.relatedTarget,i=!0,o=!1;n;){if("LI"===n.tagName&&t.findSubmenu(n)&&(o=!0),n===t.menuTarget){i=!1;break}n=n.parentElement}!i&&o||t.closeSubmenu(t.currentSubmenu)}})),jm(Fm(t),"onBindScroll",(function(){t.isWatchingScroll=!0})),jm(Fm(t),"onUnbindScroll",(function(){t.isWatchingScroll=!1})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.element.dataset.spa&&(this.isTransitionedWithTurbolinks=!0),this.element.classList.remove("opened"),this.submenuTargets.forEach((function(e){e.addEventListener("transitionend",t.restoreHeightAfterTransition),e.classList.remove("opened")})),this.hasButtonTarget&&(this.buttonTarget.addEventListener("mouseenter",this.toggleSubmenu),this.buttonTarget.addEventListener("mouseleave",this.toggleSubmenu)),this.hasMenuTarget&&Cm(this.menuTarget.children).forEach((function(e){e.addEventListener("mouseenter",t.toggleSubmenu),e.addEventListener("mouseleave",t.toggleSubmenu)}));var e=document.createElement("div");e.classList.add("extended-hover"),this.linkTargets.forEach((function(r){var n=e.cloneNode();r.appendChild(n),t.extendedHoverAreas.push(n)})),window.addEventListener("scroll",this.onScroll),window.addEventListener("bindScroll",this.onBindScroll),window.addEventListener("unbindScroll",this.onUnbindScroll)}},{key:"disconnect",value:function(){var t=this;if(this.submenuTargets.forEach((function(e){return e.removeEventListener("transitionend",t.restoreHeightAfterTransition)})),this.menuTarget)for(var e=0;e<this.menuTarget.children.length;e++){var r=this.menuTarget.children[e];r.removeEventListener("mouseenter",this.toggleSubmenu),r.removeEventListener("mouseleave",this.toggleSubmenu)}this.linkTargets.forEach((function(e,r){return e.removeChild(t.extendedHoverAreas[r])})),window.removeEventListener("scroll",this.onScroll),window.removeEventListener("bindScroll",this.onBindScroll),window.removeEventListener("unbindScroll",this.onUnbindScroll)}},{key:"findSubmenu",value:function(t){return t.querySelector('[data-site-menu-target="submenu"]')}},{key:"openSubmenu",value:function(t){var e=this;window.clearTimeout(this.openingTimer),this.openingTimer=window.setTimeout((function(){e.isTransitionedWithTurbolinks||(e.element.classList.add("opened"),t.classList.add("opened")),e.opened=!0,e.currentSubmenu=t}),this.openingTimerValue)}},{key:"swapSubmenu",value:function(t,e){var r=this,n=this.isTransitionedWithTurbolinks?0:t.offsetHeight,i=e.offsetHeight;t.classList.add("no-transition"),t.classList.remove("opened"),e.style.height="".concat(n,"px"),e.classList.add("no-transition","opened"),e.offsetWidth;var o=t;this.currentSubmenu=e,window.requestAnimationFrame((function(){o.classList.remove("no-transition"),e.classList.remove("no-transition"),e.style.height=i===n?"":"".concat(i,"px"),r.isTransitionedWithTurbolinks=!1}))}},{key:"closeSubmenu",value:function(t){t&&(window.clearTimeout(this.openingTimer),this.element.classList.remove("opened"),t.classList.remove("opened"),this.opened=!1,this.isTransitionedWithTurbolinks=!1)}}])&&Am(e.prototype,r),n&&Am(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function zm(t){return zm="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},zm(t)}function Nm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Hm(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gm(t){return function(t){if(Array.isArray(t))return qm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Hm(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hm(t,e){if(t){if("string"==typeof t)return qm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qm(t,e):void 0}}function qm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ym(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jm(n.key),n)}}function Wm(t,e){return Wm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wm(t,e)}function Xm(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();
2return function(){var r,n=Qm(t);if(e){var i=Qm(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Um(this,r)}}function Um(t,e){if(e&&("object"===zm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Zm(t)}function Zm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qm(t){return Qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qm(t)}function Km(t,e,r){return(e=Jm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jm(t){var e=function(t,e){if("object"!==zm(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==zm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zm(e)?e:String(e)}jm(Vm,"targets",["menu","button","link","submenu"]);var ty=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wm(t,e)}(o,t);var e,r,n,i=Xm(o);function o(){var t;Ym(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Km(Zm(t=i.call.apply(i,[this].concat(r))),"activeIndex",-1),Km(Zm(t),"subelementActiveIndex",-1),Km(Zm(t),"mm",void 0),Km(Zm(t),"getContainer",(function(e){return e?t.containerTargets.find((function(t){return t.dataset.level===e})):t.containerTarget})),Km(Zm(t),"clearContainer",(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})),Km(Zm(t),"setTitle",(function(e){t.hasTitleTarget&&(t.titleTarget.classList.remove("active"),t.titleTarget.textContent=e,t.titleTarget.classList.add("active"))})),Km(Zm(t),"onLinkClick",(function(e){if(!t.mm.matches){for(var r=e.target;"link"!==r.dataset.siteSubmenuTarget;)r=r.parentElement;var n=t.linkTargets.indexOf(r),i=r.dataset,o=i.level,a=i.title,s=o?t.subelementActiveIndex:t.activeIndex;o||t.setTitle(a);var l=s===n;t.hideActiveMenu(!l,o),l||t.showMenu(n)}})),t}return e=o,r=[{key:"connect",value:function(){var t=this;this.mm=matchMedia("(max-width: 768px)"),this.linkTargets.forEach((function(e){e.addEventListener("click",t.onLinkClick)}))}},{key:"disconnect",value:function(){var t=this;this.linkTargets.forEach((function(e){e.removeEventListener("click",t.onLinkClick)}))}},{key:"hideActiveMenu",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getContainer(r);!r&&this.activeIndex>=0&&Gm(this.containerWrapperTarget.children).forEach((function(e){t.clearContainer(e)})),e&&this.clearContainer(n);var i=r?this.subelementActiveIndex:this.activeIndex;-1!==i&&(this.linkTargets.forEach((function(t){return t.classList.remove("active")})),n.classList.remove("active"),r?this.subelementActiveIndex=-1:(this.subelementActiveIndex=-1,this.activeIndex=-1))}},{key:"getMenuContent",value:function(t){for(var e,r=document.createDocumentFragment(),n=0;n<t.children.length;n++)r.appendChild(t.children[n].cloneNode(!0));return[r,null!==(e=t.dataset.level)&&void 0!==e?e:null]}},{key:"showMenu",value:function(t){if(!(t<0||t>=this.menuWrapperTargets.length)){var e=Nm(this.getMenuContent(this.menuWrapperTargets[t]),2),r=e[0],n=e[1];this.linkTargets[t].classList.add("active");var i=this.getContainer(n);i.appendChild(r),i.offsetWidth,i.classList.add("active"),this.activeIndex=t}}}],r&&$m(e.prototype,r),n&&$m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function ey(t){return ey="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},ey(t)}function ry(t){return function(t){if(Array.isArray(t))return oy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||iy(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ny(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||iy(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iy(t,e){if(t){if("string"==typeof t)return oy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oy(t,e):void 0}}function oy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ay(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dy(n.key),n)}}function ly(t,e){return ly=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ly(t,e)}function cy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=py(t);if(e){var i=py(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return uy(this,r)}}function uy(t,e){if(e&&("object"===ey(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hy(t)}function hy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function py(t){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},py(t)}function fy(t,e,r){return(e=dy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dy(t){var e=function(t,e){if("object"!==ey(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ey(e)?e:String(e)}Km(ty,"targets",["link","menuWrapper","container","containerWrapper","title"]);var my=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ly(t,e)}(o,t);var e,r,n,i=cy(o);function o(){var t;ay(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return fy(hy(t=i.call.apply(i,[this].concat(r))),"filters",t.element.querySelectorAll("[data-filter]")),fy(hy(t),"assortment",t.catalogTarget.dataset.assortment),fy(hy(t),"data",{category:[],parameter:[],brand:"",fabric:"",sorting:""}),fy(hy(t),"dataStart",{fabric:t.assortment?"":"fabrics",category:t.assortment?"":"categories"}
2),fy(hy(t),"search",void 0),fy(hy(t),"focused",!1),fy(hy(t),"updateListeners",(function(){t.filters=t.element.querySelectorAll("[data-filter]"),t.filters.forEach((function(e){"parameter"===e.dataset.filter||"category"===e.dataset.filter?e.addEventListener("click",t.clickCheckbox):e.addEventListener("click",t.chooseSelectFilter)}))})),fy(hy(t),"loadFilters",(function(){t.filters.forEach((function(e){if(e.classList.contains("active"))switch(e.dataset.filter){case"category":e.checked="true",t.data["".concat(e.dataset.filter)].push(e.dataset.value),t.dataStart.category=e.dataset.value;break;case"parameter":e.checked="true",t.data["".concat(e.dataset.filter)].push(e.dataset.value);break;case"fabric":t.fabricTarget.querySelector(".select__selected").innerHTML=e.children[0].innerText,t.dataStart.fabric=e.dataset.value;break;case"sorting":t.sortingTarget.querySelector(".select__selected").innerHTML=e.innerText;break;default:t.data["".concat(e.dataset.filter)]=e.dataset.value}})),t.clickCheckbox()})),fy(hy(t),"createURL",(function(){return Object.entries(t.data).reduce((function(t,e){var r=ny(e,2),n=r[0],i=r[1];return i&&i.length?"".concat(t,"&").concat(n,"=").concat(JSON.stringify(i)):"".concat(t)}),"")})),fy(hy(t),"writeHref",(function(){var e=t.createURL().replace(/&/,"?"),r=e.length>0?t.search&&t.search.replace("?","&"):t.search;e=t.search?e+r:e,window.Turbo&&window.Turbo.navigator.history.replace(new URL("".concat(window.location.origin+window.location.pathname).concat(e))),t.remakeURL()})),fy(hy(t),"updateListCheckboxes",(function(e){var r=e.querySelectorAll(".aside-catalog__list");document.querySelectorAll(".aside-catalog__list").forEach((function(t){t.remove()}));var n=document.querySelector(".aside-catalog__list-wrapper"),i=document.querySelector(".aside-catalog__button");n.insertBefore(r[0],i),t.checkboxesTarget.appendChild(r[1])})),fy(hy(t),"remakeURL",(function(){var e="".concat(t.dataStart.fabric,"/").concat(t.dataStart.category),r=t.element.dataset.page;if("categories"!==t.dataStart.category){t.data.category=t.data.category.slice(1);var n=Object.entries(t.data).reduce((function(t,e){var r=ny(e,2),n=r[0],i=r[1];return i&&i.length&&"fabric"!==n?"".concat(t).concat("sorting"!==n?"/".concat(n):"search"===n?"&".concat(n):"?".concat(n,"=")).concat("sorting"===n?"":"-is-").concat(i):"".concat(t)}),"");window.Turbo.navigator.history.replace(new URL("".concat(window.location.origin+r).concat(e).concat(n?"/filter":"").concat(n.replace(/,/gi,"-or-")).concat(t.search?t.data.sorting.length>0?t.search.replace("?","&"):t.search:""))),t.data.category.push(t.dataStart.category)}else{var i=Object.entries(t.data).reduce((function(t,e){var r=ny(e,2),n=r[0],i=r[1];return i&&i.length&&"fabric"!==n?"".concat(t).concat("sorting"!==n?"/".concat(n):"?".concat(n,"=")).concat("sorting"===n?"":"-is-").concat(i):"".concat(t)}),"");window.Turbo.navigator.history.replace(new URL("".concat(window.location.origin+r).concat(e).concat(i?"/filter":"").concat(i.replace(/,/gi,"-or-")).concat(t.search?t.data.sorting.length>0?t.search.replace("?","&"):t.search:"")))}})),fy(hy(t),"chooseSelectFilter",(function(e){var r=e.target.dataset,n=r.filter,i=r.value;if(t.data[n]===i)t.data[n]="";else{if("fabric"===n){t.data.brand="";var o=t.sliderTarget.querySelector(".card-brand.active");return o&&o.classList.remove("active"),t.dataStart.fabric=i,t.data[n]=i,void t.resetAllFilters(!0)}t.data[n]=i}t.writeHref(),t.loadPage("fabric"===n)})),fy(hy(t),"createBadge",(function(e){var r=document.createElement("div");r.className="badge badge--filled";var n=e.dataset,i=n.value,o=n.filter;return r.id=i,r.dataset.filterBadge=o,r.innerHTML="\n          <span>".concat(e.parentNode.innerText,'</span>\n          <button class="badge__button" data-action="catalog-filter#cleanCheckbox">\n            <svg role="img" class="badge__button-icon">\n              <use xlink:href="/icons.svg#cancel"/>\n            </svg>\n          </button>\n    '),t.toggleButtonClear(),r})),fy(hy(t),"clickCheckbox",(function(e){if(e){var r=e.target,n=r.dataset,i=n.filter,o=n.value;if(r.checked)t.badgesTarget.insertBefore(t.createBadge(r),t.clearTarget),"categories"===t.dataStart.category&&"category"===i?t.data.category.length||(t.dataStart.category=o):t.dataStart.category="categories",t.data[i].push(o);else{t.dataStart.category===o&&(t.dataStart.category="categories");var a=t.badgesTarget.querySelector("[id='".concat(o,"']"));a&&a.remove(),t.checkCheckboxes(i,o)}t.writeHref(),t.loadPage()}else{t.checkboxesTarget.querySelectorAll("input").forEach((function(e){e.checked&&t.badgesTarget.insertBefore(t.createBadge(e),t.clearTarget)}))}t.toggleButtonClear()}
2)),fy(hy(t),"checkCheckboxes",(function(e,r){t.data[e]=t.data[e].filter((function(t){return t!==r})),t.badgesTarget.children.length<=1&&(t.dataStart.category="categories")})),fy(hy(t),"toggleButtonClear",(function(){t.badgesTarget.querySelectorAll(".badge--filled").length>2?t.clearTarget.classList.add("active"):t.clearTarget.classList.remove("active")})),fy(hy(t),"cleanCheckbox",(function(e){var r=e.target.parentNode.id,n=e.target.parentNode.dataset.filterBadge;t.filters.forEach((function(t){t.dataset.value===r&&t.dataset.filter===n&&(t.checked=!1,e.target.parentNode.remove())})),t.toggleButtonClear(),t.checkCheckboxes(n,r),t.writeHref(),t.loadPage()})),fy(hy(t),"cleanAllCheckboxes",(function(){var e=t.badgesTarget.querySelectorAll(".badge--filled");t.filters.forEach((function(t){t.checked&&(t.checked=!1)})),e.forEach((function(t){t.remove()})),t.clearTarget.classList.remove("active"),t.data.category=[],t.data.parameter=[],t.dataStart.category="categories",t.writeHref()})),fy(hy(t),"resetAllFilters",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=t.sortingTarget.querySelector(".select__selected"),n=t.fabricTarget.querySelector(".select__selected");t.cleanAllCheckboxes(),t.filters.forEach((function(t){e&&"fabric"===t.dataset.filter||t.classList.remove("active")})),t.data.brand&&(t.data.brand=""),e||(t.dataStart.fabric="fabrics",t.data.fabric="",n.innerText=t.fabricTarget.querySelector(".select__input").placeholder),t.data.sorting&&(t.data.sorting="",r.innerText=t.sortingTarget.querySelector(".select__input").placeholder),t.writeHref(),t.loadPage(!0)})),fy(hy(t),"onFocus",(function(){t.focused=!0,t.inputTarget.value&&t.clearSearchTarget.classList.add("active")})),fy(hy(t),"onBlur",(function(){t.focused=!1})),fy(hy(t),"changeInput",(function(e){e.target.value?t.clearSearchTarget.classList.add("active"):t.clearSearchTarget.classList.remove("active")})),fy(hy(t),"onClear",(function(){t.inputTarget.value="",t.search="",document.dispatchEvent(new CustomEvent("input:clear")),t.clearSearchTarget.classList.remove("active"),t.resultTarget.classList.remove("active"),t.resetAllFilters()})),fy(hy(t),"onKeyUp",(function(e){t.focused&&(t.search="?query=".concat(t.inputTarget.value),t.search&&(13===e.keyCode&&(t.resultTarget.classList.add("active"),t.resetAllFilters()),t.changeInput(e)))})),t}return e=o,r=[{key:"connect",value:function(){var t=this;this.hasInputTarget&&(window.addEventListener("keydown",this.onKeyUp),this.inputTarget.addEventListener("focus",this.onFocus),this.inputTarget.addEventListener("blur",this.onBlur),this.inputTarget.addEventListener("input",this.changeInput),this.clearSearchTarget.addEventListener("click",this.onClear),this.inputTarget.value=this.inputTarget.dataset.value?this.inputTarget.dataset.value:""),""!==this.element.getAttribute("data-filter-on")&&(this.loadPage(),this.loadFilters()),this.hasSliderTarget?document.addEventListener("slider:init",(function(){t.updateListeners()})):this.updateListeners()}},{key:"disconnect",value:function(){var t=this;this.inputTarget.removeEventListener("focus",this.onFocus),this.inputTarget.removeEventListener("blur",this.onBlur),this.inputTarget.removeEventListener("input",this.changeInput),this.clearSearchTarget.removeEventListener("click",this.onClear),this.filters.forEach((function(e){e.removeEventListener("click",t.chooseSelectFilter),e.removeEventListener("click",t.clickCheckbox)}))}},{key:"clearContainer",value:function(t){ry(t.children).forEach((function(t){return t.remove()}))}},{key:"addContentInContainer",value:function(t,e){this.clearContainer(e),t&&ry(t.children).forEach((function(t){e.appendChild(t)}))}},{key:"processData",value:function(t,e){if(t){if(!this.assortment){var r=t.querySelector(".page__header-title-wrapper"),n=t.querySelector(".slider--brands"),i=t.querySelector(".about-brand__wrapper");if(this.addContentInContainer(r,this.titleWrapperTarget),e){this.addContentInContainer(n,this.sliderTarget);var o=new CustomEvent("slider:update");document.dispatchEvent(o)}this.addContentInContainer(i,this.aboutBrandTarget)}if(this.hasResultTarget){var a=t.querySelector("[data-result]").dataset.result;this.resultTarget.children[0].innerText=a}this.updateListCheckboxes(t);var s=t.querySelector(".catalog__products");this.addContentInContainer(s,this.catalogTarget);var l=new CustomEvent("filters:update");
2Array.from(this.badgesTarget.children).forEach((function(t){var e=document.getElementById(t.id);e&&(e.checked=!0)})),this.updateListeners(),document.dispatchEvent(l)}}},{key:"loadPage",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=window.location.href;fetch(r).then((function(t){return t.text()})).then((function(r){var n=new DOMParser;t.processData(n.parseFromString(r,"text/html"),e)})).finally((function(){}))}}],r&&sy(e.prototype,r),n&&sy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function yy(t){return yy="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},yy(t)}function gy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ty(n.key),n)}}function by(t,e){return by=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},by(t,e)}function wy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=_y(t);if(e){var i=_y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return xy(this,r)}}function xy(t,e){if(e&&("object"===yy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sy(t)}function Sy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _y(t){return _y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_y(t)}function Ey(t,e,r){return(e=Ty(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ty(t){var e=function(t,e){if("object"!==yy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==yy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===yy(e)?e:String(e)}fy(my,"targets",["slider","aboutBrand","catalog","checkboxes","fabric","aboutBrand","sorting","badges","result","clear","input","titleWrapper","clearSearch"]);var Py=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&by(t,e)}(o,t);var e,r,n,i=wy(o);function o(){var t;gy(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Ey(Sy(t=i.call.apply(i,[this].concat(r))),"onOpen",(function(){t.wrapperTarget.classList.add("active"),wc(document.body,{reserveScrollBarGap:!0,allowTouchMove:function(e){for(var r=e;r&&r!==document.body;){if(r===t.wrapperTarget)return!0;r=r.parentElement}return!1}})})),Ey(Sy(t),"onClose",(function(){t.wrapperTarget.classList.remove("active"),xc(document.body)})),t}return e=o,(r=[{key:"connect",value:function(){this.openButtonTarget.addEventListener("click",this.onOpen),this.closeButtonTarget.addEventListener("click",this.onClose)}},{key:"disconnect",value:function(){this.openButtonTarget.removeEventListener("click",this.onOpen),this.closeButtonTarget.removeEventListener("click",this.onClose)}}])&&vy(e.prototype,r),n&&vy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function ky(t){return ky="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},ky(t)}function Cy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function My(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ry(n.key),n)}}
2function Dy(t,e){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dy(t,e)}function Ay(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Iy(t);if(e){var i=Iy(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Oy(this,r)}}function Oy(t,e){if(e&&("object"===ky(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ly(t)}function Ly(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Iy(t){return Iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Iy(t)}function Fy(t,e,r){return(e=Ry(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ry(t){var e=function(t,e){if("object"!==ky(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ky(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ky(e)?e:String(e)}Ey(Py,"targets",["openButton","closeButton","wrapper"]);var jy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dy(t,e)}(o,t);var e,r,n,i=Ay(o);function o(){var t;Cy(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Fy(Ly(t=i.call.apply(i,[this].concat(r))),"mm",matchMedia("(min-height: 1280px)")),Fy(Ly(t),"resize",(function(){t.mm.matches||t.containerTargets.forEach((function(e){var r=t.element.getBoundingClientRect().top,n=e.getBoundingClientRect().top;e.style.maxHeight="".concat(window.innerHeight-Math.abs(r-n),"px")}))})),t}return e=o,(r=[{key:"connect",value:function(){this.resize(),window.addEventListener("resize",this.resize)}}])&&My(e.prototype,r),n&&My(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function By(t){return By="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},By(t)}function Vy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wy(n.key),n)}}function Ny(t,e){return Ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ny(t,e)}function Gy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Yy(t);if(e){var i=Yy(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Hy(this,r)}}function Hy(t,e){if(e&&("object"===By(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return qy(t)}function qy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yy(t){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yy(t)}function $y(t,e,r){return(e=Wy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wy(t){var e=function(t,e){if("object"!==By(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==By(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===By(e)?e:String(e)}Fy(jy,"targets",["container"]);var Xy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ny(t,e)}(o,t);var e,r,n,i=Gy(o);function o(){var t;Vy(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return $y(qy(t=i.call.apply(i,[this].concat(r))),"lock",!1),$y(qy(t),"pinned",!0),$y(qy(t),"currentActiveSlide",0),$y(qy(t),"maxSlides",parseInt(t.element.dataset.maxSlides,10)),$y(qy(t),"slides",Qn.utils.toArray(t.element.querySelectorAll(".full-page__block"))),$y(qy(t),"needScrollElements",[]),$y(qy(t),"needScroll",!1),$y(qy(t),"onDown",(function(e){return t.needScroll?t.onScroll(e):!(t.lock||!t.pinned)&&(t.currentActiveSlide===t.maxSlides-1?(t.pinned=!1,xc(document.body)):t.changeContent(1))})),$y(qy(t),"onScroll",(function(e){var r=e.deltaY;Qn.to(t.needScrollElements,{y:function(e,n){var i=n._gsap.y,o=n.getBoundingClientRect().top,a=o+n.scrollHeight,s=n.parentElement.getBoundingClientRect().top;if(r>0&&a<=window.innerHeight||r<0&&0===parseInt(i,10))return t.needScroll=!1,i;var l=r>0?Math.min(Math.abs(a-window.innerHeight),r):Math.max(o-s,r);return"-=".concat(l)}})})),$y(qy(t),"onUp",(function(e){return t.needScroll?t.onScroll(e):0!==window.scrollY||t.currentActiveSlide!==t.maxSlides-1||t.pinned?!(t.lock||t.currentActiveSlide<=0||!t.pinned)&&t.changeContent(-1):(t.needScrollElements.length&&(t.needScroll=!0),t.pinned=!0,wc(document.body))})),$y(qy(t),"changeContent",(function(e){t.lock=!0,Qn.timeline({ease:"power3.easeInOut"}).to(t.slides,{opacity:0,duration:.1}).to(t.slides,{keyframes:[{yPercent:"+=".concat(100*-e),duration:.8},{opacity:function(r,n){return parseInt(n.dataset.slideIndex,10)===t.currentActiveSlide+e?1:0},pointerEvents:function(r,n){return parseInt(n.dataset.slideIndex,10)===t.currentActiveSlide+e?"all":"none"},delay:-.1,duration:.2}],onComplete:function(){t.currentActiveSlide+=e,t.lock=!1,t.needScrollElements=t.slides.filter((function(e){return parseInt(e.dataset.slideIndex,10)===t.currentActiveSlide&&(e.children.length?e.children[0].getBoundingClientRect().bottom>window.innerHeight:e.getBoundingClientRect().top+e.scrollHeight>window.innerHeight)})),t.needScrollElements.length&&(t.needScroll=!0)}},"<")})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;Qn.registerPlugin([Ri]),Qn.matchMedia().add("(min-width: 768px)",(function(){window.scrollTo({top:0,left:0}),t.setHeight(),wc(document.body),document.addEventListener("modal:close",(function(){wc(document.body)})),Ri.create({target:t.element,type:"wheel",onDown:function(e){return t.onDown(e)},onUp:function(e){return t.onUp(e)},axis:"x",lockAxis:!0})})).add("(max-width: 767px)",(function(){t.resetMaxHeight(),xc(document.body),Qn.set(t.slides,{yPercent:0,opacity:1})}))}},{key:"setHeight",value:function(){this.containerTargets.forEach((function(t){var e=t.getBoundingClientRect().top,r=window.innerHeight-e;t.style.maxHeight="".concat(r,"px")}))}},{key:"resetMaxHeight",value:function(){this.containerTargets.forEach((function(t){t.style.maxHeight="unset"}))}}])&&zy(e.prototype,r),n&&zy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Uy(t){return Uy="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},Uy(t)}function Zy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ig(n.key),n)}}function Ky(t,e){return Ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ky(t,e)}function Jy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=rg(t);if(e){var i=rg(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return tg(this,r)}}function tg(t,e){if(e&&("object"===Uy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return eg(t)}function eg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rg(t){return rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rg(t)}function ng(t,e,r){return(e=ig(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ig(t){var e=function(t,e){if("object"!==Uy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===Uy(e)?e:String(e)}$y(Xy,"targets",["container"]);var og=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ky(t,e)}(o,t);var e,r,n,i=Jy(o);function o(){var t;Zy(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return ng(eg(t=i.call.apply(i,[this].concat(r))),"button",null),ng(eg(t),"url",new URL(window.location.href)),ng(eg(t),"beforeRenderOpenModal",(function(e){t.button=e.currentTarget})),ng(eg(t),"changeTab",(function(){t.buttonTargets.forEach((function(e){e===t.button?e.classList.add("active"):e.classList.contains("active")&&e!==t.button&&e.classList.remove("active")}))})),ng(eg(t),"openModal",(function(){document.dispatchEvent(new CustomEvent("modal-content:change",{detail:{target:t.button}}))})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.buttonTargets.forEach((function(e){e.addEventListener("click",t.beforeRenderOpenModal)})),document.addEventListener("turbo:before-frame-render",(function(){t.button&&(t.button.dataset.modalId?t.openModal():t.changeTab())}));var e=this.url.searchParams.get("id");e&&this.buttonTargets.forEach((function(t){t.href.includes(e)&&t.click()}))}}])&&Qy(e.prototype,r),n&&Qy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function ag(t){return ag="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},ag(t)}function sg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mg(n.key),n)}}function cg(t,e){return cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cg(t,e)}function ug(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=fg(t);if(e){var i=fg(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return hg(this,r)}}function hg(t,e){if(e&&("object"===ag(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pg(t)}function pg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fg(t){return fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fg(t)}function dg(t,e,r){return(e=mg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mg(t){var e=function(t,e){if("object"!==ag(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ag(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ag(e)?e:String(e)}ng(og,"targets",["button"]);var yg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cg(t,e)}(o,t);var e,r,n,i=ug(o);function o(){var t;sg(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return dg(pg(t=i.call.apply(i,[this].concat(r))),"meanY",0),dg(pg(t),"lastScrollPosition",0),dg(pg(t),"lastTime",0),dg(pg(t),"isScrolling",!1),dg(pg(t),"isIntersecting",!1),dg(pg(t),"onResize",(function(){return window.requestAnimationFrame((function(){return t.relayout()}))})),dg(pg(t),"redraw",(function(){var e=t.rect.width,r=e/4,n="M0,0 L".concat(e," 0 L ").concat(e," ").concat(t.meanY," C ").concat(3*r," 0 ").concat(3*r," ").concat(2*t.meanY," ").concat(e/2," ").concat(t.meanY," C ").concat(r," 0 ").concat(r," ").concat(2*t.meanY," 0 ").concat(t.meanY);Qn.to(t.path,{attr:{d:n},ease:Fr.easeInOut,duration:.15})})),dg(pg(t),"onScroll",(function(){!t.isScrolling&&t.isIntersecting&&(t.isScrolling=!0,t.velocity()),t.currentScrollPosition=window.scrollY})),dg(pg(t),"velocity",(function(){!function e(r){if(t.isScrolling){window.cancelAnimationFrame(t.raf);var n=Math.min(5,Math.abs((t.currentScrollPosition-t.lastScrollPosition)/(r-t.lastTime)));t.lastScrollPosition=t.currentScrollPosition,t.lastTime=r;var i=!Number.isNaN(n)&&n>.5?n*(t.rect.height/2):0;t.meanY=i,t.relayout(),0===n&&(t.isScrolling=!1)}t.raf=window.requestAnimationFrame(e)}()})),t}return e=o,(r=[{key:"connect",value:function(){var t=this,e="http://www.w3.org/2000/svg";this.svg=document.createElementNS(e,"svg"),this.path=document.createElementNS(e,"path"),this.svg.appendChild(this.path),this.element.appendChild(this.svg),window.addEventListener("scroll",this.onScroll),this.onResize(),new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting?t.isIntersecting=!0:t.isIntersecting&&(t.isIntersecting=!1)}))}),{threshold:0}).observe(this.element)}},{key:"disconnect",value:function(){this.element.removeChild(this.svg)}},{key:"relayout",value:function(){var t=this.svg.getBoundingClientRect();this.rect=t;var e=t.width,r=t.height;this.svg.setAttribute("viewBox","0 0 ".concat(e," ").concat(r)),this.redraw()}}])&&lg(e.prototype,r),n&&lg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function gg(t){return gg="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},gg(t)}function vg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pg(n.key),n)}}function wg(t,e){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wg(t,e)}function xg(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Eg(t);if(e){var i=Eg(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Sg(this,r)}}function Sg(t,e){if(e&&("object"===gg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _g(t)}function _g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Eg(t){return Eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Eg(t)}function Tg(t,e,r){return(e=Pg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pg(t){var e=function(t,e){if("object"!==gg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==gg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===gg(e)?e:String(e)}var kg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wg(t,e)}(o,t);var e,r,n,i=xg(o);function o(){var t;vg(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Tg(_g(t=i.call.apply(i,[this].concat(r))),"isOpen",!1),Tg(_g(t),"onDocumentClick",(function(e){var r=e.target===document?document.documentElement:e.target;!t.isElementInside(r)&&t.isOpen&&t.onClose()})),Tg(_g(t),"isElementInside",(function(e){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.element,n=e;n!==document.documentElement;){if(n===r)return!0;n=n.parentElement}return!1})),t}return e=o,(r=[{key:"connect",value:function(){document.addEventListener("click",this.onDocumentClick),document.addEventListener("scroll",this.onDocumentClick)}},{key:"disconnect",value:function(){document.removeEventListener("click",this.onDocumentClick),document.removeEventListener("scroll",this.onDocumentClick)}},{key:"onOpen",value:function(){this.tooltipTarget.classList.add("active"),this.isOpen=!0}},{key:"onClose",value:function(){this.tooltipTarget.classList.remove("active"),this.isOpen=!1}},{key:"onToggle",value:function(t){t.preventDefault();var e=t.target;this.isOpen&&!this.isElementInside(e,this.tooltipTarget)?this.onClose():this.onOpen()}}])&&bg(e.prototype,r),n&&bg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Cg(t){return Cg="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},Cg(t)}function Mg(t){return function(t){if(Array.isArray(t))return Dg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Dg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dg(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ag(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Og(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Vg(n.key),n)}}function Lg(t,e){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lg(t,e)}function Ig(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=jg(t);if(e){var i=jg(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Fg(this,r)}}function Fg(t,e){if(e&&("object"===Cg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Rg(t)}function Rg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jg(t){return jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jg(t)}function Bg(t,e,r){return(e=Vg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vg(t){var e=function(t,e){if("object"!==Cg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Cg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===Cg(e)?e:String(e)}Tg(kg,"targets",["tooltip"]);var zg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lg(t,e)}(o,t);var e,r,n,i=Ig(o);function o(){var t;Ag(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Bg(Rg(t=i.call.apply(i,[this].concat(r))),"sections",Mg(document.querySelectorAll(".scroll-to-section"))),Bg(Rg(t),"lastScrollPosition",0),Bg(Rg(t),"isScrollDown",!0),Bg(Rg(t),"nextIndex",1),Bg(Rg(t),"onScroll",(function(){t.isScrollDown=t.lastScrollPosition<window.scrollY,t.lastScrollPosition=window.scrollY,t.element.getBoundingClientRect().bottom===document.querySelector(".footer").getBoundingClientRect().top?t.element.classList.add("hide"):t.element.classList.remove("hide")})),Bg(Rg(t),"onClick",(function(){window.scrollTo({top:t.sections[t.nextIndex].offsetTop-20,left:0,behavior:"smooth"})})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.element.addEventListener("click",this.onClick),window.addEventListener("scroll",this.onScroll);var e=new IntersectionObserver((function(e){e.forEach((function(e){var r=t.sections.indexOf(e.target);e.isIntersecting&&(t.nextIndex=Math.min(t.sections.length-1,r+1))}))}),{threshold:.4});this.sections.forEach((function(t){e.observe(t)}))}}])&&Og(e.prototype,r),n&&Og(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Ng(t){return Ng="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},Ng(t)}function Gg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zg(n.key),n)}}function qg(t,e){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qg(t,e)}function Yg(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Xg(t);if(e){var i=Xg(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return $g(this,r)}}function $g(t,e){if(e&&("object"===Ng(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wg(t)}function Wg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xg(t){return Xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xg(t)}function Ug(t,e,r){return(e=Zg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zg(t){var e=function(t,e){if("object"!==Ng(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ng(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ng(e)?e:String(e)}var Qg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qg(t,e)}(o,t);var e,r,n,i=Yg(o);function o(){var t;Gg(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Ug(Wg(t=i.call.apply(i,[this].concat(r))),"play",!1),Ug(Wg(t),"timeoutVisibleProgress",void 0),Ug(Wg(t),"timestamps",void 0),Ug(Wg(t),"timeCodes",void 0),Ug(Wg(t),"duration",void 0),Ug(Wg(t),"checkVideo",(function(){t.timestamps=JSON.parse(t.videoTarget.dataset.timestamps),t.duration=t.videoTarget.duration,isNaN(Number(t.duration))||t.duration===1/0?(t.videoTarget.currentTime=1e101,t.videoTarget.addEventListener("timeupdate",t.getDuration)):t.addListener(),t.videoTarget.paused&&t.videoTarget.play()})),Ug(Wg(t),"addListener",(function(){t.videoTarget.addEventListener("timeupdate",t.formatTime),t.progressTarget.addEventListener("mousemove",t.showCursor),t.changeVolume(),t.inputTarget.addEventListener("input",t.changeVolume),t.progressTarget.addEventListener("click",t.onRewind),t.addTimestamps(),t.element.addEventListener("mousemove",t.showProgress),t.videoTarget.addEventListener("click",t.toggleVideo),t.playVideo()})),Ug(Wg(t),"toggleVideo",(function(){t.hasPreviewTarget&&t.togglePreview(),t.play?t.pauseVideo():t.playVideo()})),Ug(Wg(t),"togglePreview",(function(){t.play?t.element.classList.remove("preview--visible"):t.element.classList.add("preview--visible")})),Ug(Wg(t),"playVideo",(function(){t.play=!0,t.videoTarget.play(),!t.videoTarget.paused&&t.hasLoadTarget&&t.loadTarget.classList.add("hide")})),Ug(Wg(t),"pauseVideo",(function(){t.videoTarget.pause(),t.play=!1})),Ug(Wg(t),"onRewind",(function(e){var r=e.target.getBoundingClientRect().width,n=100*e.layerX/r,i=t.videoTarget.duration*n/100;t.play?(t.pauseVideo(),t.videoTarget.currentTime=i,t.playVideo()):t.videoTarget.currentTime=i})),Ug(Wg(t),"calculateTime",(function(t){return{minutes:String(parseInt(t/60%60,10)).padStart(2,"0"),seconds:String(parseInt(t%60,10)).padStart(2,"0")}})),Ug(Wg(t),"getDuration",(function(){t.videoTarget.currentTime=0,t.videoTarget.removeEventListener("timeupdate",t.getDuration),t.addListener()})),Ug(Wg(t),"formatTime",(function(){var e=t.videoTarget,r=e.currentTime,n=e.duration,i=t.calculateTime(n),o=t.calculateTime(r);t.changeTime(i,o)})),Ug(Wg(t),"changeTime",(function(e,r){t.currentTimeTarget.innerText="".concat(r.minutes,":").concat(r.seconds),t.totalTimeTarget.innerText="-".concat(e.minutes,":").concat(e.seconds),t.changeProgress()})),Ug(Wg(t),"showProgress",(function(){t.progressTarget.classList.add("show"),clearTimeout(t.timeoutVisibleProgress),t.timeoutVisibleProgress=setTimeout((function(){t.progressTarget.classList.contains("show")&&t.progressTarget.classList.remove("show")}),3e3)}
2)),Ug(Wg(t),"showCursor",(function(e){t.cursorTarget.classList.add("show"),t.cursorTarget.style.setProperty("--position","".concat(e.clientX-22,"px")),t.showPrompt(e)})),Ug(Wg(t),"showPrompt",(function(e){t.timeCodes.forEach((function(r){e.clientX>r.getBoundingClientRect().left?(t.promptTarget.classList.add("show"),t.promptTarget.innerText=r.dataset.prompt):e.clientX<t.timeCodes[0].getBoundingClientRect().left&&t.promptTarget.classList.remove("show")}))})),Ug(Wg(t),"changeProgress",(function(){var e=t.videoTarget,r=100*e.currentTime/e.duration;t.progressTarget.style.setProperty("--width","".concat(r/100))})),Ug(Wg(t),"addTimestamps",(function(){Object.keys(t.timestamps).forEach((function(e){var r="".concat(t.timestamps[e].START/t.videoTarget.duration),n=document.createElement("div");n.className="video-player__progress-timestamp",n.setAttribute("data-prompt","".concat(t.timestamps[e].NAME)),n.style.left="".concat(100*r,"%"),n.style.setProperty("--left","".concat(100*r,"%")),t.progressTarget.insertBefore(n,t.cursorTarget)})),t.timeCodes=t.progressTarget.querySelectorAll(".video-player__progress-timestamp")})),Ug(Wg(t),"changeVolume",(function(){var e=t.inputTarget.value;t.videoTarget.volume=e,t.indicatorTarget.style.setProperty("--width","".concat(e))})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;document.addEventListener("modal:play-video",(function(){t.checkVideo()})),document.addEventListener("modal:close",(function(){document.removeEventListener("modal:play-video",(function(){t.checkVideo()}))}))}},{key:"disconnect",value:function(){this.hasVideoTarget&&(this.videoTarget.removeEventListener("loadedmetadata",this.addListener),this.videoTarget.removeEventListener("click",this.toggleVideo)),this.hasProgressTarget&&this.progressTarget.removeEventListener("click",this.onRewind),this.hasIputTarget&&this.inputTarget.removeEventListener("input",this.changeVolume)}}])&&Hg(e.prototype,r),n&&Hg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Kg(t){return Kg="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},Kg(t)}function Jg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return tv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tv(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ev(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cv(n.key),n)}}function nv(t,e){return nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nv(t,e)}function iv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=sv(t);if(e){var i=sv(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ov(this,r)}}function ov(t,e){if(e&&("object"===Kg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return av(t)}function av(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sv(t){return sv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sv(t)}function lv(t,e,r){return(e=cv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cv(t){var e=function(t,e){if("object"!==Kg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===Kg(e)?e:String(e)}Ug(Qg,"targets",["video","cursor","prompt","progress","load","totalTime","currentTime","input","indicator","preview","play"]);var uv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nv(t,e)}(o,t);var e,r,n,i=iv(o);function o(){var t;ev(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return lv(av(t=i.call.apply(i,[this].concat(r))),"data",{tag:[],city:"",interval:""}),lv(av(t),"focused",!1),lv(av(t),"search",""),lv(av(t),"loadQueryParams",(function(){var e=window.decodeURI(window.location.search),r=e.match(/tag=\[([^&]+)\]/),n=e.match(/city="([^&]+)"/),i=e.match(/query=([^&]+)/);if(i&&(t.inputTarget.classList.add("active"),t.inputTarget.dataset.value=i[1]),r){var o=r[1].replace('"',"");Array.from(o.matchAll(/[a-z0-9-_]+/g)).forEach((function(e){var r=Jg(e,1)[0],n=t.element.querySelector("[data-value='".concat(r,"']"));n&&(t.data.tag.push(r),n.classList.add("active"),t.selectTagTargets.forEach((function(e){e.dataset.value===r&&t.createBadge(n)})))}))}if(n){var a=n[1];t.cityTargets.forEach((function(t){t.dataset.value===a&&t.classList.add("active")})),t.data.city=a}})),lv(av(t),"addListeners",(function(){t.hasInputTarget&&(window.addEventListener("keyup",t.onKeyUp),t.inputTarget.addEventListener("focus",t.onFocus),t.inputTarget.addEventListener("blur",t.onBlur),t.inputTarget.value=t.inputTarget.dataset.value?t.inputTarget.dataset.value:""),t.selectTagTargets.forEach((function(e){e.addEventListener("click",t.onChooseSelectTag)})),t.hasCityTarget&&t.cityTargets.forEach((function(e){e.addEventListener("click",t.onChooseCity)}))})),lv(av(t),"createURLParameters",(function(){var e=Object.entries(t.data).reduce((function(t,e){var r=Jg(e,2),n=r[0],i=r[1];return i&&i.length?"".concat(t,"&").concat(n,"=").concat(JSON.stringify(i)):"".concat(t)}),"");return t.search&&(e+=t.search),t.element.dataset.path+e.replace(/&/i,"?")})),lv(av(t),"writeHref",(function(){var e=window.location.origin+t.createURLParameters();window.Turbo&&(window.Turbo.navigator.history.replace(new URL(e)),window.location.replace(e))})),lv(av(t),"onChooseTag",(function(e){var r=e.target.dataset,n=r.filter,i=r.value,o=e.target.classList.contains("active");o?e.target.classList.remove("active"):e.target.classList.add("active"),o?t.data["".concat(n)]=t.data["".concat(n)].filter((function(t){return t!==i})):t.data["".concat(n)].push(i),t.writeHref()})),lv(av(t),"onChooseInterval",(function(){t.data["".concat(t.intervalTarget.dataset.filter)]=t.intervalTarget.value,t.writeHref()})),lv(av(t),"onChooseSelectTag",(function(e){var r=e.target,n=r.dataset,i=n.filter,o=n.value,a=!e.target.classList.contains("active");a?e.target.classList.add("active"):e.target.classList.remove("active"),a?(t.createBadge(r),t.data["".concat(i)].push(o),t.writeHref()):t.removeTag(e)})),lv(av(t),"onChooseCity",(function(e){var r=e.target.dataset,n=r.filter,i=r.value;t.data.tag=[],e.target.classList.contains("active")||(e.target.classList.add("active"),t.data["".concat(n)]=i),t.writeHref()})),lv(av(t),"removeTag",(function(e){var r=e.target.dataset,n=r.filter,i=r.value;t.selectTagTargets.forEach((function(t){t.dataset.value===i&&t.classList.remove("active")})),t.data["".concat(n)]=t.data["".concat(n)].filter((function(t){return t!==i})),t.badgesTarget.querySelector("[data-value='".concat(i,"']")).remove(),t.writeHref()})),lv(av(t),"createBadge",(function(e){var r,n=e.dataset,i=n.value,o=n.filter;null===(r=t.badgesTarget.querySelector("[id='".concat(i,"']")))||void 0===r||r.remove();var a=document.createElement("div");a.className="badge active",a.dataset.filter=o,a.dataset.value=i,a.id=i,a.innerHTML=e.innerText,a.addEventListener("click",t.chooseFilter),t.badgesTarget.insertBefore(a,t.selectTarget),a.addEventListener("click",t.removeTag)})),lv(av(t),"onFocus",(function(){return t.focused=!0})),lv(av(t),"onBlur",(function(){t.focused=!1})),lv(av(t),"onKeyUp",(function(e){t.focused&&13===e.keyCode&&(t.search="&query=".concat(t.inputTarget.value),t.resetAllTags(),t.writeHref())})),lv(av(t),"removeActiveBadges",(function(){t.badgesTarget.querySelectorAll(".active").forEach((function(t){t.id?t.remove():t.classList.remove("active")}))})),lv(av(t),"resetAllTags",(function(){t.data.interval="",t.data.tag=[],t.hasIntervalTarget&&(t.intervalTarget.value=""),t.writeHref(),t.removeActiveBadges()})),t}return e=o,(r=[{key:"connect",value:function(){window.location.search&&this.loadQueryParams(),document.addEventListener("turbo:frame-render",this.addListeners),this.addListeners()}}])&&rv(e.prototype,r),n&&rv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function hv(t){return hv="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},hv(t)}function pv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wv(n.key),n)}}function dv(t,e){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dv(t,e)}function mv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=vv(t);if(e){var i=vv(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return yv(this,r)}}function yv(t,e){if(e&&("object"===hv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gv(t)}
2function gv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vv(t){return vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vv(t)}function bv(t,e,r){return(e=wv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wv(t){var e=function(t,e){if("object"!==hv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hv(e)?e:String(e)}lv(uv,"targets",["input","badges","select","selectTag","interval","city","frame"]);var xv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dv(t,e)}(o,t);var e,r,n,i=mv(o);function o(){var t;pv(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return bv(gv(t=i.call.apply(i,[this].concat(r))),"listItems",t.hasSelectTarget&&t.selectTarget.querySelectorAll("li")),bv(gv(t),"onFocus",(function(){t.element.classList.add("active")})),bv(gv(t),"onBlur",(function(e){e.target.closest(".input-field")||t.element.classList.remove("active")})),bv(gv(t),"filterItems",(function(){var e=t.inputTarget.value.toLowerCase();t.listItems.forEach((function(t){t.textContent.toLocaleLowerCase().includes(e)?t.style.display="":t.style.display="none"}))})),bv(gv(t),"onSelectClick",(function(e){t.inputTarget.classList.add("active"),e.target.innerText!==t.inputTarget.value&&t.listItems.forEach((function(t){t.classList.remove("active")})),e.target.classList.contains("active")?(e.target.classList.remove("active"),t.inputTarget.value=""):(e.target.classList.add("active"),t.inputTarget.value=e.target.innerText,t.element.classList.remove("active"))})),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.inputTarget.value.length&&this.element.classList.add("active"),this.inputTarget.addEventListener("change",this.filterItems),this.inputTarget.addEventListener("input",this.filterItems),this.listItems.forEach((function(e){e.addEventListener("click",t.onSelectClick)})),this.inputTarget.addEventListener("focus",this.onFocus),window.addEventListener("click",this.onBlur)}},{key:"disconnect",value:function(){var t=this;this.inputTarget.removeEventListener("focus",this.onFocus),this.inputTarget.removeEventListener("change",this.filterItems),this.inputTarget.removeEventListener("input",this.filterItems),this.listItems.forEach((function(e){e.removeEventListener("click",t.onSelectClick)}))}}])&&fv(e.prototype,r),n&&fv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Sv(t){return Sv="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},Sv(t)}function _v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ev(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Av(n.key),n)}}function Tv(t,e){return Tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tv(t,e)}function Pv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Mv(t);if(e){var i=Mv(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kv(this,r)}}function kv(t,e){if(e&&("object"===Sv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cv(t)}function Cv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mv(t){return Mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mv(t)}function Dv(t,e,r){return(e=Av(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Av(t){var e=function(t,e){if("object"!==Sv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===Sv(e)?e:String(e)}bv(xv,"targets",["input","select"]);var Ov=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tv(t,e)}(o,t);var e,r,n,i=Pv(o);function o(){var t;_v(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Dv(Cv(t=i.call.apply(i,[this].concat(r))),"timeoutPrompt",void 0),Dv(Cv(t),"copyCurrentUrl",(function(){navigator.clipboard.writeText("".concat(window.location.href)).then((function(){t.visiblePrompt()})).catch((function(){console.log("Невозможно скопировать адрес в буфер обмена")}))})),Dv(Cv(t),"visiblePrompt",(function(){clearTimeout(t.timeoutPrompt),t.element.classList.add("show"),t.timeoutPrompt=setTimeout((function(){t.element.classList.remove("show")}),2e3)})),t}return e=o,(r=[{key:"connect",value:function(){this.element.addEventListener("click",this.copyCurrentUrl)}}])&&Ev(e.prototype,r),n&&Ev(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function Lv(t){return Lv="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},Lv(t)}function Iv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Gv(n.key),n)}}function Rv(t,e){return Rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Rv(t,e)}function jv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=zv(t);if(e){var i=zv(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Bv(this,r)}}function Bv(t,e){if(e&&("object"===Lv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Vv(t)}function Vv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zv(t){return zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zv(t)}function Nv(t,e,r){return(e=Gv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gv(t){var e=function(t,e){if("object"!==Lv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lv(e)?e:String(e)}var Hv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rv(t,e)}(a,t);var e,r,n,o=jv(a);function a(){var t;Iv(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Nv(Vv(t=o.call.apply(o,[this].concat(r))),"focused",!1),Nv(Vv(t),"path",t.hasFrameTarget&&t.frameTarget.dataset.path),Nv(Vv(t),"onFocus",(function(){t.focused=!0,t.inputTarget.value&&t.clearTarget.classList.add("active")})),Nv(Vv(t),"onBlur",(function(){t.focused=!1})),Nv(Vv(t),"resetSearch",(function(e){t.searchTarget.value="",window.localStorage.removeItem("search"),window.Turbo.navigator.history.replace(new URL("".concat(window.location.origin+window.location.pathname,"?q=").concat(t.searchTarget.value))),i.Vn("".concat(t.path,"?q=").concat(t.searchTarget.value),{frame:t.frameTarget.id}),e.target.classList.remove("active")})),Nv(Vv(t),"changeInput",(function(e){e.target.value?t.clearTarget.classList.add("active"):t.clearTarget.classList.remove("active")})),Nv(Vv(t),"onKeyUp",(function(e){var r="?q=".concat(t.searchTarget.value);t.focused&&r&&13===e.keyCode&&(window.localStorage.setItem("search",t.searchTarget.value),window.Turbo.navigator.history.replace(new URL("".concat(window.location.origin+window.location.pathname).concat(r))),window.Turbo&&(i.Vn(t.path+r,{frame:t.frameTarget.id}),t.resultTarget.innerText=t.frameTarget.children[0].dataset.result))})),Nv(Vv(t),"onVisit",(function(e){var r=t.inputTarget.value;if(t.focused&&r&&13===e.keyCode){window.localStorage.setItem("search",r);var n=t.inputTarget.dataset.href;window.location.href=window.location.origin+n}})),t}return e=a,(r=[{key:"connect",value:function(){var t=this;this.hasSearchTarget&&(this.searchTarget.value=window.localStorage.getItem("search"),this.searchTarget.value&&this.clearTarget.classList.add("active"),window.Turbo.navigator.history.replace(new URL("".concat(window.location.origin+window.location.pathname,"?q=").concat(this.searchTarget.value))),i.Vn("".concat(this.path,"?q=").concat(this.searchTarget.value),{frame:this.frameTarget.id}),window.addEventListener("keydown",this.onKeyUp),this.searchTarget.addEventListener("focus",this.onFocus),this.searchTarget.addEventListener("blur",this.onBlur),this.searchTarget.addEventListener("input",this.changeInput),this.clearTarget.addEventListener("click",this.resetSearch)),this.hasInputTarget&&(window.addEventListener("keydown",this.onVisit),this.inputTarget.addEventListener("focus",this.onFocus),this.inputTarget.addEventListener("blur",this.onBlur)),this.hasResultTarget&&document.addEventListener("turbo:frame-render",(function(){t.resultTarget.innerText=t.frameTarget.children[0].dataset.result}))}},{key:"disconnect",value:function(){window.removeEventListener("keydown",this.onKeyUp),window.removeEventListener("keydown",this.onKeyUp),this.hasinputTarget&&(this.inputTarget.removeEventListener("focus",this.onFocus),this.inputTarget.removeEventListener("blur",this.onBlur),this.clearTarget.removeEventListener("click",this.resetSearch),this.searchTarget.removeEventListener("input",this.changeInput)),this.hasSearchTarget&&(this.searchTarget.removeEventListener("focus",this.onFocus),this.searchTarget.removeEventListener("blur",this.onBlur))}}])&&Fv(e.prototype,r),n&&Fv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Qr);function qv(t){return qv="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},qv(t)}function Yv(t){return function(t){if(Array.isArray(t))return $v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return $v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Wv(){Wv=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new T(i||[]);return n(a,"_invoke",{value:x(t,r,s)}),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h={};function p(){}function f(){}function d(){}var m={};
vendor: 4,970 bytes, line 2
2l(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&r.call(g,o)&&(m=g);var v=d.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,o,a,s){var l=u(t[n],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==qv(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=u(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=d,n(v,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:f,configurable:!0}),f.displayName=l(d,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(v),l(v,s,"Generator"),l(v,o,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function Xv(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,i)}function Uv(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xv(o,n,i,a,s,"next",t)}function s(t){Xv(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Zv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ib(n.key),n)}}function Kv(t,e){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kv(t,e)}function Jv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=rb(t);if(e){var i=rb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return tb(this,r)}}function tb(t,e){if(e&&("object"===qv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return eb(t)}function eb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rb(t){return rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rb(t)}function nb(t,e,r){return(e=ib(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ib(t){var e=function(t,e){if("object"!==qv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qv(e)?e:String(e)}Nv(Hv,"targets",["input","search","frame","result","clear"]);var ob=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kv(t,e)}(o,t);var e,r,n,i=Jv(o);function o(){var t;Zv(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return nb(eb(t=i.call.apply(i,[this].concat(r))),"categoriesUrl",t.element.dataset.categoriesUrl),nb(eb(t),"themesUrl",t.element.dataset.themesUrl),nb(eb(t),"getCategories",Uv(Wv().mark((function e(){var r;return Wv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.categoriesUrl);case 2:return r=e.sent,e.next=5,r.json();case 5:e.sent.forEach((function(e){t.categoriesTarget.prepend(t.createElement(e,!0))})),document.dispatchEvent(new CustomEvent("select:load"));case 8:case"end":return e.stop()}}),e)})))),nb(eb(t),"chooseCategory",function(){var e=Uv(Wv().mark((function e(r){var n;return Wv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=r.target.dataset.value)){e.next=4;break}return e.next=4,t.getThemes(n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),nb(eb(t),"createElement",(function(e,r){var n=Object.entries(e),i=document.createElement("li");return i.classList.add("select__list-item"),i.setAttribute("data-value","".concat(n[0][0])),i.setAttribute("data-select-target","listButton"),i.setAttribute("type","button"),i.setAttribute("tabindex","-1"),i.innerHTML="\n                    ".concat(n[0][1],'\n                    <svg class="select__list-item__icon" role="img">\n                        <use xlink:href="icons.svg#tick"></use>\n                    </svg>'),r&&i.addEventListener("click",t.chooseCategory),i})),nb(eb(t),"resetTheme",(function(){t.selectThemeTarget.classList.remove("disabled");var e=t.selectThemeTarget.querySelector(".select__input"),r=t.selectThemeTarget.querySelector(".select__selected");e.value="",r.innerText=e.placeholder})),nb(eb(t),"getThemes",function(){var e=Uv(Wv().mark((function e(r){var n,i;return Wv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.themesTarget.children.length&&Yv(t.themesTarget.children).forEac
2h((function(t){t.remove()})),e.next=3,fetch("".concat(t.themesUrl,"?id=").concat(r));case 3:return n=e.sent,e.next=6,n.json();case 6:(i=e.sent)&&t.resetTheme(),i.forEach((function(e){t.themesTarget.prepend(t.createElement(e))})),document.dispatchEvent(new CustomEvent("select:load"));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t}return e=o,(r=[{key:"connect",value:function(){var t=this;this.getCategories(),document.addEventListener("turbo:render",(function(){t.getCategories()}))}}])&&Qv(e.prototype,r),n&&Qv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function ab(t){return ab="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},ab(t)}function sb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mb(n.key),n)}}function cb(t,e){return cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cb(t,e)}function ub(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=fb(t);if(e){var i=fb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return hb(this,r)}}function hb(t,e){if(e&&("object"===ab(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pb(t)}function pb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fb(t){return fb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fb(t)}function db(t,e,r){return(e=mb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mb(t){var e=function(t,e){if("object"!==ab(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ab(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ab(e)?e:String(e)}nb(ob,"targets",["selectTheme","inputTheme","categories","themes"]);var yb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cb(t,e)}(o,t);var e,r,n,i=ub(o);function o(){var t;sb(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return db(pb(t=i.call.apply(i,[this].concat(r))),"isDisposable",!1),t}return e=o,(r=[{key:"connect",value:function(){this.isDisposable=this.element.hasAttribute("data-disposable");var t=this.element.id;this.isDisposable&&window.localStorage.getItem(t)||o.closedList.indexOf(t)>=0||this.checkCookie()}},{key:"checkCookie",value:function(){var t=window.localStorage.getItem("loginTime");document.cookie||t||this.showWarning(),+new Date>=t&&(localStorage.removeItem("loginTime"),this.showWarning())}},{key:"showWarning",value:function(){var t=this;this.element.classList.add("visible"),window.requestAnimationFrame((function(){return t.element.classList.add("active")}))}},{key:"onClose",value:function(){var t=this.element.id;this.isDisposable?window.localStorage.setItem(t,!0):o.closedList.push(t),window.localStorage.getItem("loginTime")||localStorage.setItem("loginTime",+new Date+2592e5),this.element.classList.remove("visible","active");var e=new CustomEvent("close-warning");window.dispatchEvent(e)}}])&&lb(e.prototype,r),n&&lb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);function gb(t){return gb="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},gb(t)}function vb(t){return function(t){if(Array.isArray(t))return bb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return bb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bb(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Cb(n.key),n)}}function Sb(t,e){return Sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Sb(t,e)}function _b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Pb(t);if(e){var i=Pb(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Eb(this,r)}}function Eb(t,e){if(e&&("object"===gb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tb(t)}function Tb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pb(t){return Pb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pb(t)}function kb(t,e,r){return(e=Cb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cb(t){var e=function(t,e){if("object"!==gb(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==gb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"===gb(e)?e:String(e)}db(yb,"closedList",[]);var Mb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sb(t,e)}(o,t);var e,r,n,i=_b(o);function o(){var t;wb(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return kb(Tb(t=i.call.apply(i,[this].concat(r))),"resetFiles",(function(){t.files=[]})),t}return e=o,r=[{key:"initialize",value:function(){this.files=[],document.addEventListener("send-form",this.resetFiles)}},{key:"handleFileSelect",value:function(t){var e=Array.from(t.target.files),r=t.target.dataset,n=r.size,i=r.allowedFormats,o=1024*n*1024,a=[];e.forEach((function(t){var e=t.name.toLowerCase(),r=e.split(".").pop();i.includes(r)||a.push("Файл ".concat(e," не поддерживается. Разрешены только файлы форматов DOC, PDF, JPG, JPEG, PNG, WEBP, XLS и PTT")),t.size>o&&a.push("Файл ".concat(e," слишком большой, максимальный размер файла 20MB."))})),a.length>0?(this.showError(a),t.preventDefault()):(this.addFiles(e),this.showError([]))}},{key:"addFiles",value:function(t){this.files=[].concat(vb(this.files),vb(t)),this.renderFileList()}},{key:"deleteFile",value:function(t){var e=t.target.dataset.fileIndex;this.files.splice(e,1),this.renderFileList()}},{key:"renderFileList",value:function(){0===this.files.length?this.listTarget.innerHTML="":this.listTarget.innerHTML=this.files.map((function(t,e){return'<span class="link link--underlined file__item">'.concat(t.name,' <button data-action="click->form#removeFile click->file-upload#deleteFile" class="file__input-close" data-file-index="').concat(e,'">x</button></span>')})).join("")}},{key:"showError",value:function(t){t.length>0?this.errorsTarget.innerHTML='<div class="error">'.concat(t.map((function(t){return'<div class="input-field__error">'.concat(t,"</div>")})).join(""),"</div>"):this.errorsTarget.innerHTML=""}}],r&&xb(e.prototype,r),n&&xb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(n.Qr);kb(Mb,"targets",["list","errors"]),"scrollBehavior"in document.documentElement.style||r.e(662).then(r.t.bind(r,662,23)),function(){var t=null,e="a, button",r=function(r){var n=r.target;if(n.matches){for(;n&&!n.matches(e);)n=n.parentElement;t=n}},n=function(){t&&t.blur(),t=null};document.addEventListener("mouseup",n),document.addEventListener("touchend",n),document.addEventListener("turbo:click",(function(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)t[n].removeEventListener("mousedown",r),t[n].removeEventListener("touchstart",r)}));var i=function(){for(var t=document.querySelectorAll(e),n=0;n<t.length;n++)t[n].addEventListener("mousedown",r),t[n].addEventListener("touchstart",r)};document.addEventListener("turbo:render",i),window.addEventListener("load",i)}();var Db=i.nP.adapter.progressBar;Db.progressElement.remove(),Db.stylesheetElement.remove(),i.nP.adapter.showProgressBar=function(){},(0,i.BL)(),Qn.registerPlugin(Ri,$a);var Ab=n.Mx.start();Ab.register("preloader",ps),Ab.register("progress-bar",_s),Ab.register("click-animation",Is),Ab.register("cursor",Xs),Ab.register("identity",ol),Ab.register("button-animation",yl),Ab.register("our-brands",kl),Ab.register("main-slider",Bl),Ab.register("tabs",Ul),Ab.register("production",ac),Ab.register("modal",Oc),Ab.register("slider",Yu),Ab.register("make-animation",oh),Ab.register("input-label",yh),Ab.register("pagination",kh),Ab.register("form",hp),Ab.register("photo-modal",Ep),Ab.register("map",Vp),Ab.register("accordion",Zp),Ab.register("select",lf),Ab.register("grid",bf),Ab.register("preview-product-photo",Df),Ab.register("date-picker",qf),Ab.register("brand-colors",ed),Ab.register("button-to-top",pd),Ab.register("video-hosting",_d),Ab.register("history",Rd),Ab.register("aside-scroll",Wd),Ab.register("map-agribusiness",im),Ab.register("header",mm),Ab.register("aside-click",Pm),Ab.register("site-menu",Vm),Ab.register("site-submenu",ty),Ab.register("catalog-filter",my),Ab.register("filters-popup",Py),Ab.register("main-screen",jy),Ab.register("full-page",Xy),Ab.register("change-modal",og),Ab.register("wave",yg),Ab.register("tooltip",kg),Ab.register("scroll-section",zg),Ab.register("video-player",Qg),Ab.register("presses-filter",uv),Ab.register("input-select",xv),Ab.register("share",Ov),Ab.register("site-search",Hv),Ab.register("record-form",ob),Ab.register("site-warning",yb),Ab.register("file-upload",Mb),document.addEventListener("turbo:click",(function(){document.body.classList.add("turbolinks--loading")}));var Ob=function(t){return t.classList.add("turbolinks--loading")};document.addEventListener("turbo:before-render",(function(t){return Ob(t.detail.newBody)})),window.addEventListener("popstate",(function(){return Ob(document.body)})),document.addEventListener("turbo:render",(function(){window.requestAnimationFrame((function(){return document.body.classList.remove("turbolinks--loading")}))}))},55:t=>
vendor: 19,216 bytes, line 2
2{window,t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=4)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n="en-US"),this.dateInstance="object"==typeof r&&null!==r?r.parse(e instanceof t?e.clone().toJSDate():e):"string"==typeof r?t.parseDateTime(e,r,n):e?t.parseDateTime(e):t.parseDateTime(new Date),this.lang=n}return t.parseDateTime=function(e,r,n){if(void 0===r&&(r="YYYY-MM-DD"),void 0===n&&(n="en-US"),!e)return new Date(NaN);if(e instanceof Date)return new Date(e);if(e instanceof t)return e.clone().toJSDate();if(/^-?\d{10,}$/.test(e))return t.getDateZeroTime(new Date(Number(e)));if("string"==typeof e){for(var i=[],o=null;null!=(o=t.regex.exec(r));)"\\"!==o[1]&&i.push(o);if(i.length){var a={year:null,month:null,shortMonth:null,longMonth:null,day:null,value:""};i[0].index>0&&(a.value+=".*?");for(var s=0,l=Object.entries(i);s<l.length;s++){var c=l[s],u=c[0],h=c[1],p=Number(u),f=t.formatPatterns(h[0],n),d=f.group,m=f.pattern;a[d]=p+1,a.value+=m,a.value+=".*?"}var y=new RegExp("^"+a.value+"$");if(y.test(e)){var g=y.exec(e),v=Number(g[a.year]),b=null;a.month?b=Number(g[a.month])-1:a.shortMonth?b=t.shortMonths(n).indexOf(g[a.shortMonth]):a.longMonth&&(b=t.longMonths(n).indexOf(g[a.longMonth]));var w=Number(g[a.day])||1;return new Date(v,b,w,0,0,0,0)}}}return t.getDateZeroTime(new Date(e))},t.convertArray=function(e,r){return e.map((function(e){return e instanceof Array?e.map((function(e){return new t(e,r)})):new t(e,r)}))},t.getDateZeroTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},t.shortMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"short"})}))},t.longMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"long"})}))},t.formatPatterns=function(e,r){switch(e){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{"+e.length+"})"};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"("+t.shortMonths(r).join("|")+")"};case"MMMM":return{group:"longMonth",pattern:"("+t.longMonths(r).join("|")+")"};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"}}},t.prototype.toJSDate=function(){return this.dateInstance},t.prototype.toLocaleString=function(t,e){return this.dateInstance.toLocaleString(t,e)},t.prototype.toDateString=function(){return this.dateInstance.toDateString()},t.prototype.getSeconds=function(){return this.dateInstance.getSeconds()},t.prototype.getDay=function(){return this.dateInstance.getDay()},t.prototype.getTime=function(){return this.dateInstance.getTime()},t.prototype.getDate=function(){return this.dateInstance.getDate()},t.prototype.getMonth=function(){return this.dateInstance.getMonth()},t.prototype.getFullYear=function(){return this.dateInstance.getFullYear()},t.prototype.setMonth=function(t){return this.dateInstance.setMonth(t)},t.prototype.setHours=function(t,e,r,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),this.dateInstance.setHours(t,e,r,n)},t.prototype.setSeconds=function(t){return this.dateInstance.setSeconds(t)},t.prototype.setDate=function(t){return this.dateInstance.setDate(t)},t.prototype.setFullYear=function(t){return this.dateInstance.setFullYear(t)},t.prototype.getWeek=function(t){var e=new Date(this.timestamp()),r=(this.getDay()+(7-t))%7;e.setDate(e.getDate()-r);var n=e.getTime();return e.setMonth(0,1),e.getDay()!==t&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((n-e.getTime())/6048e5)},t.prototype.clone=function(){return new t(this.toJSDate())},t.prototype.isBetween=function(t,e,r){switch(void 0===r&&(r="()"),r){default:case"()":return this.timestamp()>t.getTime()&&this.timestamp()<e.getTime();case"[)":return this.timestamp()>=t.getTime()&&this.timestamp()<e.getTime();case"(]":return this.timestamp()>t.getTime()&&this.timestamp()<=e.getTime();case"[]":return this.timestamp()>=t.getTime()&&this.timestamp()<=e.getTime()}},t.prototype.isBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return t.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")},t.prototype.isSameOrBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>=this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")},t.prototype.isAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(t.getFullYear(),t.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>t.getFullYear()}throw new Error("isAfter: Invalid unit!")},t.prototype.isSameOrAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>=t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")},t.prototype.isSame=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()===t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")},t.prototype.add=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()+t);break;case"day":case"days":this.setDate(this.getDate()+t);break;case"month":case"months":this.setMonth(this.getMonth()+t)}return this},t.prototype.subtract=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()-t);break;case"day":case"days":this.setDate(this.getDate()-t);break;case"month":case"months":this.setMonth(this.getMonth()-t)}return this},t.prototype.diff=function(t,e){switch(void 0===e&&(e="seconds"),e){default:case"second":case"seconds":return this.getTime()-t.getTime();case"day":case"days":return Math.round((this.timestamp()-t.getTime())/864e5);case"month":case"months":}},t.prototype.format=function(e,r){if(void 0===r&&(r="en-US"),"object"==typeof e)return e.output(this.clone().toJSDate());for(var n="",i=[],o=null;null!=(o=t.regex.exec(e));)"\\"!==o[1]&&i.push(o);if(i.length){i[0].index>0&&(n+=e.substring(0,i[0].index));for(var a=0,s=Object.entries(i);a<s.length;a++){var l=s[a],c=l[0],u=l[1],h=Number(c);n+=this.formatTokens(u[0],r),i[h+1]&&(n+=e.substring(u.index+u[0].length,i[h+1].index)),h===i.length-1&&(n+=e.substring(u.index+u[0].length))}}return n.replace(/\\/g,"")},t.prototype.timestamp=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()},t.prototype.formatTokens=function(e,r){switch(e){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return("0"+(this.getMonth()+1)).slice(-2);case"MMM":return t.shortMonths(r)[this.getMonth()];case"MMMM":return t.longMonths(r)[this.getMonth()];case"D":return String(this.getDate());case"DD":return("0"+this.getDate()).slice(-2);default:return""}},t.regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g,t.MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11],t}();e.DateTime=n},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__spreadArrays||function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n};Object.defineProperty(e,"__esModule",{value:!0});var a=r(5),s=r(0),l=r(3),c=r(2),u=function(t){function e(e){var r=t.call(this,e)||this;return r.preventClick=!1,r.bindEvents(),r}return i(e,t),e.prototype.scrollToDate=function(t){if(this.options.scrollToDate){var e=this.options.startDate instanceof s.DateTime?this.options.startDate.clone():null,r=this.options.endDate instanceof s.DateTime?this.options.endDate.clone():null;!this.options.startDate||t&&t!==this.options.element?t&&this.options.endDate&&t===this.options.elementEnd&&(r.setDate(1),this.options.numberOfMonths>1&&r.isAfter(e)&&r.setMonth(r.getMonth()-(this.options.numberOfMonths-1)),this.calendars[0]=r.clone()):(e.setDate(1),this.calendars[0]=e.clone())}},e.prototype.bindEvents=function(){document.addEventListener("click",this.onClick.bind(this),!0),this.ui=document.createElement("div"),this.ui.className=l.litepicker,this.ui.style.display="none",this.ui.addEventListener("mouseenter",this.onMouseEnter.bind(this),!0),this.ui.addEventListener("mouseleave",this.onMouseLeave.bind(this),!1),this.options.autoRefresh?(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("keyup",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("keyup",this.onInput.bind(this),!0)):(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("change",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("change",this.onInput.bind(this),!0)),this.options.parentEl?this.options.parentEl instanceof HTMLElement?this.options.parentEl.appendChild(this.ui):document.querySelector(this.options.parentEl).appendChild(this.ui):this.options.inlineMode?this.options.element instanceof HTMLInputElement?this.options.element.parentNode.appendChild(this.ui):this.options.element.appendChild(this.ui):document.body.appendChild(this.ui),this.updateInput(),this.init(),"function"==typeof this.options.setup&&this.options.setup.call(this,this),this.render(),this.options.inlineMode&&this.show()},e.prototype.updateInput=function(){if(this.options.element instanceof HTMLInputElement){var t=this.options.startDate,e=this.options.endDate;if(this.options.singleMode&&t)this.options.element.value=t.format(this.options.format,this.options.lang);else if(!this.options.singleMode&&t&&e){var r=t.format(this.options.format,this.options.lang),n=e.format(this.options.format,this.options.lang);this.options.elementEnd instanceof HTMLInputElement?(this.options.element.value=r,this.options.elementEnd.value=n):this.options.element.value=""+r+this.options.delimiter+n}t||e||(this.options.element.value="",this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.value=""))}},e.prototype.isSamePicker=function(t){return t.closest("."+l.litepicker)===this.ui},e.prototype.shouldShown=function(t){return!t.disabled&&(t===this.options.element||this.options.elementEnd&&t===this.options.elementEnd)},e.prototype.shouldResetDatePicked=function(){return this.options.singleMode||2===this.datePicked.length},e.prototype.shouldSwapDatePicked=function(){return 2===this.datePicked.length&&this.datePicked[0].getTime()>this.datePicked[1].getTime()},e.prototype.shouldCheckLockDays=function(){return this.options.disallowLockDaysInRange&&2===this.datePicked.length},e.prototype.onClick=function(t){var e=t.target;if(t.target.shadowRoot&&(e=t.composedPath()[0]),e&&this.ui)if(this.shouldShown(e))this.show(e);else if(e.closest("."+l.litepicker)||!this.isShowning()){if(this.isSamePicker(e))if(this.emit("before:click",e),this.preventClick)this.preventClick=!1;else{if(e.classList.contains(l.dayItem)){if(t.preventDefault(),e.classList.contains(l.isLocked))return;if(this.shouldResetDatePicked()&&(this.datePicked.length=0),this.datePicked[this.datePicked.length]=new s.DateTime(e.dataset.time),this.shouldSwapDatePicked()){var r=this.datePicked[1].clone();this.datePicked[1]=this.datePicked[0].clone(),this.datePicked[0]=r.clone()}return this.shouldCheckLockDays()&&c.rangeIsLocked(this.datePicked,this.options)&&(this.emit("error:range",this.datePicked),this.datePicked.length=0),this.render(),this.emit.apply(this,o(["preselect"],o(this.datePicked).map((function(t){return t.clone()})))),void(this.options.autoApply&&(this.options.singleMode&&this.datePicked.length?(this.setDate(this.datePicked[0]),this.hide()):this.options.singleMode||2!==this.datePicked.length||(this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide())))}if(e.classList.contains(l.buttonPreviousMonth)){t.preventDefault();var n=0,i=this.options.switchingMonths||this.options.numberOfMonths;if(this.options.splitView){var a=e.closest("."+l.monthItem);n=c.findNestedMonthItem(a),i=1}return this.calendars[n].setMonth(this.calendars[n].getMonth()-i),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n)}if(e.classList.contains(l.buttonNextMonth))return t.preventDefault(),n=0,i=this.options.switchingMonths||this.options.numberOfMonths,this.options.splitView&&(a=e.closest("."+l.monthItem),n=c.findNestedMonthItem(a),i=1),this.calendars[n].setMonth(this.calendars[n].getMonth()+i),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n);e.classList.contains(l.buttonCancel)&&(t.preventDefault(),this.hide(),this.emit("button:cancel")),e.classList.contains(l.buttonApply)&&(t.preventDefault(),this.options.singleMode&&this.datePicked.length?this.setDate(this.datePicked[0]):this.options.singleMode||2!==this.datePicked.length||this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide(),this.emit("button:apply",this.options.startDate,this.options.endDate))}}else this.hide()},e.prototype.showTooltip=function(t,e){var r=this.ui.querySelector("."+l.containerTooltip);r.style.visibility="visible",r.innerHTML=e;var n=this.ui.getBoundingClientRect(),i=r.getBoundingClientRect(),o=t.getBoundingClientRect(),a=o.top,s=o.left;if(this.options.inlineMode&&this.options.parentEl){var c=this.ui.parentNode.getBoundingClientRect();a-=c.top,s-=c.left}else a-=n.top,s-=n.left;a-=i.height,s-=i.width/2,s+=o.width/2,r.style.top=a+"px",r.style.left=s+"px",this.emit("tooltip",r,t)},e.prototype.hideTooltip=function(){this.ui.querySelector("."+l.containerTooltip).style.visibility="hidden"},e.prototype.shouldAllowMouseEnter=function(t){return!this.options.singleMode&&!t.classList.contains(l.isLocked)},e.prototype.shouldAllowRepick=function(){return this.options.elementEnd&&this.options.allowRepick&&this.options.startDate&&this.options.endDate},e.prototype.isDayItem=function(t){return t.classList.contains(l.dayItem)},e.prototype.onMouseEnter=function(t){var e=this,r=t.target;if(this.isDayItem(r)&&this.shouldAllowMouseEnter(r)){if(this.shouldAllowRepick()&&(this.triggerElement===this.options.element?this.datePicked[0]=this.options.endDate.clone():this.triggerElement===this.options.elementEnd&&(this.datePicked[0]=this.options.startDate.clone())),1!==this.datePicked.length)return;var n=this.ui.querySelector("."+l.dayItem+'[data-time="'+this.datePicked[0].getTime()+'"]'),i=this.datePicked[0].clone(),o=new s.DateTime(r.dataset.time),a=!1;if(i.getTime()>o.getTime()){var c=i.clone();i=o.clone(),o=c.clone(),a=!0}if(Array.prototype.slice.call(this.ui.querySelectorAll("."+l.dayItem)).forEach((function(t){var r=new s.DateTime(t.dataset.time),n=e.renderDay(r);r.isBetween(i,o)&&n.classList.add(l.isInRange),t.className=n.className})),r.classList.add(l.isEndDate),a?(n&&n.classList.add(l.isFlipped),r.classList.add(l.isFlipped)):(n&&n.classList.remove(l.isFlipped),r.classList.remove(l.isFlipped)),this.options.showTooltip){var u=o.diff(i,"day")+1;if("function"==typeof this.options.tooltipNumber&&(u=this.options.tooltipNumber.call(this,u)),u>0){var h=this.pluralSelector(u),p=u+" "+(this.options.tooltipText[h]?this.options.tooltipText[h]:"["+h+"]");this.showTooltip(r,p);var f=window.navigator.userAgent,d=/(iphone|ipad)/i.test(f),m=/OS 1([0-2])/i.test(f);d&&m&&r.dispatchEvent(new Event("click"))}else this.hideTooltip()}}},e.prototype.onMouseLeave=function(t){t.target,this.options.allowRepick&&(!this.options.allowRepick||this.options.startDate||this.options.endDate)&&(this.datePicked.length=0,this.render())},e.prototype.onInput=function(t){var e=this.parseInput(),r=e[0],n=e[1],i=this.options.format;if(this.options.elementEnd?r instanceof s.DateTime&&n instanceof s.DateTime&&r.format(i)===this.options.element.value&&n.format(i)===this.options.elementEnd.value:this.options.singleMode?r instanceof s.DateTime&&r.format(i)===this.options.element.value:r instanceof s.DateTime&&n instanceof s.DateTime&&""+r.format(i)+this.options.delimiter+n.format(i)===this.options.element.value){if(n&&r.getTime()>n.getTime()){var o=r.clone();r=n.clone(),n=o.clone()}this.options.startDate=new s.DateTime(r,this.options.format,this.options.lang),n&&(this.options.endDate=new s.DateTime(n,this.options.format,this.options.lang)),this.updateInput(),this.render();var a=r.clone(),l=0;(this.options.elementEnd?r.format(i)===t.target.value:t.target.value.startsWith(r.format(i)))||(a=n.
vendor: 4,287 bytes, line 2
2clone(),l=this.options.numberOfMonths-1),this.emit("selected",this.getStartDate(),this.getEndDate()),this.gotoDate(a,l)}},e}(a.Calendar);e.Litepicker=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findNestedMonthItem=function(t){for(var e=t.parentNode.childNodes,r=0;r<e.length;r+=1)if(e.item(r)===t)return r;return 0},e.dateIsLocked=function(t,e,r){var n=!1;return e.lockDays.length&&(n=e.lockDays.filter((function(r){return r instanceof Array?t.isBetween(r[0],r[1],e.lockDaysInclusivity):r.isSame(t,"day")})).length),n||"function"!=typeof e.lockDaysFilter||(n=e.lockDaysFilter.call(this,t.clone(),null,r)),n},e.rangeIsLocked=function(t,e){var r=!1;return e.lockDays.length&&(r=e.lockDays.filter((function(r){if(r instanceof Array){var n=t[0].toDateString()===r[0].toDateString()&&t[1].toDateString()===r[1].toDateString();return r[0].isBetween(t[0],t[1],e.lockDaysInclusivity)||r[1].isBetween(t[0],t[1],e.lockDaysInclusivity)||n}return r.isBetween(t[0],t[1],e.lockDaysInclusivity)})).length),r||"function"!=typeof e.lockDaysFilter||(r=e.lockDaysFilter.call(this,t[0].clone(),t[1].clone(),t)),r}},function(t,e,r){t.exports={showWeekNumbers:"show-week-numbers",litepicker:"litepicker",containerMain:"container__main",containerMonths:"container__months",columns2:"columns-2",columns3:"columns-3",columns4:"columns-4",splitView:"split-view",monthItemHeader:"month-item-header",buttonPreviousMonth:"button-previous-month",buttonNextMonth:"button-next-month",monthItem:"month-item",monthItemName:"month-item-name",monthItemYear:"month-item-year",resetButton:"reset-button",monthItemWeekdaysRow:"month-item-weekdays-row",noPreviousMonth:"no-previous-month",noNextMonth:"no-next-month",containerDays:"container__days",dayItem:"day-item",isToday:"is-today",isLocked:"is-locked",isInRange:"is-in-range",isStartDate:"is-start-date",isFlipped:"is-flipped",isEndDate:"is-end-date",isHighlighted:"is-highlighted",weekNumber:"week-number",containerFooter:"container__footer",previewDateRange:"preview-date-range",buttonCancel:"button-cancel",buttonApply:"button-apply",containerTooltip:"container__tooltip"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1);e.Litepicker=n.Litepicker,r(8),window.Litepicker=n.Litepicker,e.default=n.Litepicker},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o=r(6),a=r(0),s=r(3),l=r(2),c=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.render=function(){var t=this;this.emit("before:render",this.ui);var e=document.createElement("div");e.className=s.containerMain;var r=document.createElement("div");r.className=s.containerMonths,s["columns"+this.options.numberOfColumns]&&(r.classList.remove(s.columns2,s.columns3,s.columns4),r.classList.add(s["columns"+this.options.numberOfColumns])),this.options.splitView&&r.classList.add(s.splitView),this.options.showWeekNumbers&&r.classList.add(s.showWeekNumbers);for(var n=this.calendars[0].clone(),i=n.getMonth(),o=n.getMonth()+this.options.numberOfMonths,a=0,l=i;l<o;l+=1){var c=n.clone();c.setDate(1),c.setHours(0,0,0,0),this.options.splitView?c=this.calendars[a].clone():c.setMonth(l),r.appendChild(this.renderMonth(c,a)),a+=1}if(this.ui.innerHTML="",e.appendChild(r),this.options.resetButton){var u=void 0;"function"==typeof this.options.resetButton?u=this.options.resetButton.call(this):((u=document.createElement("button")).type="button",u.className=s.resetButton,u.innerHTML=this.options.buttonText.reset),u.addEventListener("click",(function(e){e.preventDefault(),t.clearSelection()})),e.querySelector("."+s.monthItem+":last-child").querySelector("."+s.monthItemHeader).appendChild(u)}this.ui.appendChild(e),this.options.autoApply&&!this.options.footerHTML||this.ui.appendChild(this.renderFooter()),this.options.showTooltip&&this.ui.appendChild(this.renderTooltip()),this.ui.dataset.plugins=(this.options.plugins||[]).join("|"),this.emit
vendor: 23,139 bytes, line 2
2("render",this.ui)},e.prototype.renderMonth=function(t,e){var r=this,n=t.clone(),i=32-new Date(n.getFullYear(),n.getMonth(),32).getDate(),o=document.createElement("div");o.className=s.monthItem;var c=document.createElement("div");c.className=s.monthItemHeader;var u=document.createElement("div");if(this.options.dropdowns.months){var h=document.createElement("select");h.className=s.monthItemName;for(var p=0;p<12;p+=1){var f=document.createElement("option"),d=new a.DateTime(new Date(t.getFullYear(),p,2,0,0,0)),m=new a.DateTime(new Date(t.getFullYear(),p,1,0,0,0));f.value=String(p),f.text=d.toLocaleString(this.options.lang,{month:"long"}),f.disabled=this.options.minDate&&m.isBefore(new a.DateTime(this.options.minDate),"month")||this.options.maxDate&&m.isAfter(new a.DateTime(this.options.maxDate),"month"),f.selected=m.getMonth()===t.getMonth(),h.appendChild(f)}h.addEventListener("change",(function(t){var e=t.target,n=0;if(r.options.splitView){var i=e.closest("."+s.monthItem);n=l.findNestedMonthItem(i)}r.calendars[n].setMonth(Number(e.value)),r.render(),r.emit("change:month",r.calendars[n],n,t)})),u.appendChild(h)}else(d=document.createElement("strong")).className=s.monthItemName,d.innerHTML=t.toLocaleString(this.options.lang,{month:"long"}),u.appendChild(d);if(this.options.dropdowns.years){var y=document.createElement("select");y.className=s.monthItemYear;var g=this.options.dropdowns.minYear,v=this.options.dropdowns.maxYear?this.options.dropdowns.maxYear:(new Date).getFullYear();for(t.getFullYear()>v&&((f=document.createElement("option")).value=String(t.getFullYear()),f.text=String(t.getFullYear()),f.selected=!0,f.disabled=!0,y.appendChild(f)),p=v;p>=g;p-=1){f=document.createElement("option");var b=new a.DateTime(new Date(p,0,1,0,0,0));f.value=String(p),f.text=String(p),f.disabled=this.options.minDate&&b.isBefore(new a.DateTime(this.options.minDate),"year")||this.options.maxDate&&b.isAfter(new a.DateTime(this.options.maxDate),"year"),f.selected=t.getFullYear()===p,y.appendChild(f)}if(t.getFullYear()<g&&((f=document.createElement("option")).value=String(t.getFullYear()),f.text=String(t.getFullYear()),f.selected=!0,f.disabled=!0,y.appendChild(f)),"asc"===this.options.dropdowns.years){var w=Array.prototype.slice.call(y.childNodes).reverse();y.innerHTML="",w.forEach((function(t){t.innerHTML=t.value,y.appendChild(t)}))}y.addEventListener("change",(function(t){var e=t.target,n=0;if(r.options.splitView){var i=e.closest("."+s.monthItem);n=l.findNestedMonthItem(i)}r.calendars[n].setFullYear(Number(e.value)),r.render(),r.emit("change:year",r.calendars[n],n,t)})),u.appendChild(y)}else{var x=document.createElement("span");x.className=s.monthItemYear,x.innerHTML=String(t.getFullYear()),u.appendChild(x)}var S=document.createElement("button");S.type="button",S.className=s.buttonPreviousMonth,S.innerHTML=this.options.buttonText.previousMonth;var _=document.createElement("button");_.type="button",_.className=s.buttonNextMonth,_.innerHTML=this.options.buttonText.nextMonth,c.appendChild(S),c.appendChild(u),c.appendChild(_),this.options.minDate&&n.isSameOrBefore(new a.DateTime(this.options.minDate),"month")&&o.classList.add(s.noPreviousMonth),this.options.maxDate&&n.isSameOrAfter(new a.DateTime(this.options.maxDate),"month")&&o.classList.add(s.noNextMonth);var E=document.createElement("div");E.className=s.monthItemWeekdaysRow,this.options.showWeekNumbers&&(E.innerHTML="<div>W</div>");for(var T=1;T<=7;T+=1){var P=3+this.options.firstDay+T,k=document.createElement("div");k.innerHTML=this.weekdayName(P),k.title=this.weekdayName(P,"long"),E.appendChild(k)}var C=document.createElement("div");C.className=s.containerDays;var M=this.calcSkipDays(n);this.options.showWeekNumbers&&M&&C.appendChild(this.renderWeekNumber(n));for(var D=0;D<M;D+=1){var A=document.createElement("div");C.appendChild(A)}for(D=1;D<=i;D+=1)n.setDate(D),this.options.showWeekNumbers&&n.getDay()===this.options.firstDay&&C.appendChild(this.renderWeekNumber(n)),C.appendChild(this.renderDay(n));return o.appendChild(c),o.appendChild(E),o.appendChild(C),this.emit("render:month",o,t),o},e.prototype.renderDay=function(t){t.setHours();var e=document.createElement("div");if(e.className=s.dayItem,e.innerHTML=String(t.getDate()),e.dataset.time=String(t.getTime()),t.toDateString()===(new Date).toDateString()&&e.classList.add(s.isToday),this.datePicked.length)this.datePicked[0].toDateString()===t.toDateString()&&(e.classList.add(s.isStartDate),this.options.singleMode&&e.classList.add(s.isEndDate)),2===this.datePicked.length&&this.datePicked[1].toDateString()===t.toDateString()&&e.classList.add(s.isEndDate),2===this.datePicked.length&&t.isBetween(this.datePicked[0],this.datePicked[1])&&e.classList.add(s.isInRange);else if(this.options.startDate){var r=this.options.startDate,n=this.options.endDate;r.toDateString()===t.toDateString()&&(e.classList.add(s.isStartDate),this.options.singleMode&&e.classList.add(s.isEndDate)),n&&n.toDateString()===t.toDateString()&&e.classList.add(s.isEndDate),r&&n&&t.isBetween(r,n)&&e.classList.add(s.isInRange)}if(this.options.minDate&&t.isBefore(new a.DateTime(this.options.minDate))&&e.classList.add(s.isLocked),this.options.maxDate&&t.isAfter(new a.DateTime(this.options.maxDate))&&e.classList.add(s.isLocked),this.options.minDays>1&&1===this.datePicked.length){var i=this.options.minDays-1,o=this.datePicked[0].clone().subtract(i,"day"),c=this.datePicked[0].clone().add(i,"day");t.isBetween(o,this.datePicked[0],"(]")&&e.classList.add(s.isLocked),t.isBetween(this.datePicked[0],c,"[)")&&e.classList.add(s.isLocked)}if(this.options.maxDays&&1===this.datePicked.length){var u=this.options.maxDays;o=this.datePicked[0].clone().subtract(u,"day"),c=this.datePicked[0].clone().add(u,"day"),t.isSameOrBefore(o)&&e.classList.add(s.isLocked),t.isSameOrAfter(c)&&e.classList.add(s.isLocked)}return this.options.selectForward&&1===this.datePicked.length&&t.isBefore(this.datePicked[0])&&e.classList.add(s.isLocked),this.options.selectBackward&&1===this.datePicked.length&&t.isAfter(this.datePicked[0])&&e.classList.add(s.isLocked),l.dateIsLocked(t,this.options,this.datePicked)&&e.classList.add(s.isLocked),this.options.highlightedDays.length&&this.options.highlightedDays.filter((function(e){return e instanceof Array?t.isBetween(e[0],e[1],"[]"):e.isSame(t,"day")})).length&&e.classList.add(s.isHighlighted),e.tabIndex=e.classList.contains("is-locked")?-1:0,this.emit("render:day",e,t),e},e.prototype.renderFooter=function(){var t=document.createElement("div");if(t.className=s.containerFooter,this.options.footerHTML?t.innerHTML=this.options.footerHTML:t.innerHTML='\n      <span class="'+s.previewDateRange+'"></span>\n      <button type="button" class="'+s.buttonCancel+'">'+this.options.buttonText.cancel+'</button>\n      <button type="button" class="'+s.buttonApply+'">'+this.options.buttonText.apply+"</button>\n      ",this.options.singleMode){if(1===this.datePicked.length){var e=this.datePicked[0].format(this.options.format,this.options.lang);t.querySelector("."+s.previewDateRange).innerHTML=e}}else if(1===this.datePicked.length&&t.querySelector("."+s.buttonApply).setAttribute("disabled",""),2===this.datePicked.length){e=this.datePicked[0].format(this.options.format,this.options.lang);var r=this.datePicked[1].format(this.options.format,this.options.lang);t.querySelector("."+s.previewDateRange).innerHTML=""+e+this.options.delimiter+r}return this.emit("render:footer",t),t},e.prototype.renderWeekNumber=function(t){var e=document.createElement("div"),r=t.getWeek(this.options.firstDay);return e.className=s.weekNumber,e.innerHTML=53===r&&0===t.getMonth()?"53 / 1":r,e},e.prototype.renderTooltip=function(){var t=document.createElement("div");return t.className=s.containerTooltip,t},e.prototype.weekdayName=function(t,e){return void 0===e&&(e="short"),new Date(1970,0,t,12,0,0,0).toLocaleString(this.options.lang,{weekday:e})},e.prototype.calcSkipDays=function(t){var e=t.getDay()-this.options.firstDay;return e<0&&(e+=7),e},e}(o.LPCore);e.Calendar=c},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=r(7),s=r(0),l=r(1),c=function(t){function e(e){var r=t.call(this)||this;r.datePicked=[],r.calendars=[],r.options={element:null,elementEnd:null,parentEl:null,firstDay:1,format:"YYYY-MM-DD",lang:"en-US",delimiter:" - ",numberOfMonths:1,numberOfColumns:1,startDate:null,endDate:null,zIndex:9999,position:"auto",selectForward:!1,selectBackward:!1,splitView:!1,inlineMode:!1,singleMode:!0,autoApply:!0,allowRepick:!1,showWeekNumbers:!1,showTooltip:!0,scrollToDate:!0,mobileFriendly:!0,resetButton:!1,autoRefresh:!1,lockDaysFormat:"YYYY-MM-DD",lockDays:[],disallowLockDaysInRange:!1,lockDaysInclusivity:"[]",highlightedDaysFormat:"YYYY-MM-DD",highlightedDays:[],dropdowns:{minYear:1990,maxYear:null,months:!1,years:!1},buttonText:{apply:"Apply",cancel:"Cancel",previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',reset:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n        <path d="M0 0h24v24H0z" fill="none"/>\n        <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>\n      </svg>'},tooltipText:{one:"day",other:"days"}},r.options=o(o({},r.options),e.element.dataset),Object.keys(r.options).forEach((function(t){"true"!==r.options[t]&&"false"!==r.options[t]||(r.options[t]="true"===r.options[t])}));var n=o(o({},r.options.dropdowns),e.dropdowns),i=o(o({},r.options.buttonText),e.buttonText),a=o(o({},r.options.tooltipText),e.tooltipText);r.options=o(o({},r.options),e),r.options.dropdowns=o({},n),r.options.buttonText=o({},i),r.options.tooltipText=o({},a),r.options.elementEnd||(r.options.allowRepick=!1),r.options.lockDays.length&&(r.options.lockDays=s.DateTime.convertArray(r.options.lockDays,r.options.lockDaysFormat)),r.options.highlightedDays.length&&(r.options.highlightedDays=s.DateTime.convertArray(r.options.highlightedDays,r.options.highlightedDaysFormat));var l=r.parseInput(),c=l[0],u=l[1];r.options.startDate&&(r.options.singleMode||r.options.endDate)&&(c=new s.DateTime(r.options.startDate,r.options.format,r.options.lang)),c&&r.options.endDate&&(u=new s.DateTime(r.options.endDate,r.options.format,r.options.lang)),c instanceof s.DateTime&&!isNaN(c.getTime())&&(r.options.startDate=c),r.options.startDate&&u instanceof s.DateTime&&!isNaN(u.getTime())&&(r.options.endDate=u),!r.options.singleMode||r.options.startDate instanceof s.DateTime||(r.options.startDate=null),r.options.singleMode||r.options.startDate instanceof s.DateTime&&r.options.endDate instanceof s.DateTime||(r.options.startDate=null,r.options.endDate=null);for(var h=0;h<r.options.numberOfMonths;h+=1){var p=r.options.startDate instanceof s.DateTime?r.options.startDate.clone():new s.DateTime;if(!r.options.startDate&&(0===h||r.options.splitView)){var f=r.options.maxDate?new s.DateTime(r.options.maxDate):null,d=r.options.minDate?new s.DateTime(r.options.minDate):null,m=r.options.numberOfMonths-1;d&&f&&p.isAfter(f)?(p=d.clone()).setDate(1):!d&&f&&p.isAfter(f)&&((p=f.clone()).setDate(1),p.setMonth(p.getMonth()-m))}p.setDate(1),p.setMonth(p.getMonth()+h),r.calendars[h]=p}if(r.options.showTooltip)if(r.options.tooltipPluralSelector)r.pluralSelector=r.options.tooltipPluralSelector;else try{var y=new Intl.PluralRules(r.options.lang);r.pluralSelector=y.select.bind(y)}catch(t){r.pluralSelector=function(t){return 0===Math.abs(t)?"one":"other"}}return r}return i(e,t),e.add=function(t,e){l.Litepicker.prototype[t]=e},e.prototype.DateTime=function(t,e){return t?new s.DateTime(t,e):new s.DateTime},e.prototype.init=function(){var t=this;this.options.plugins&&this.options.plugins.length&&this.options.plugins.forEach((function(e){l.Litepicker.prototype.hasOwnProperty(e)?l.Litepicker.prototype[e].init.call(t,t):console.warn("Litepicker: plugin «"+e+"» not found.")}))},e.prototype.parseInput=function(){var t=this.options.delimiter,e=new RegExp(""+t),r=this.options.element instanceof HTMLInputElement?this.options.element.value.split(t):[];if(this.options.elementEnd){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length)return[new s.DateTime(this.options.element.value,this.options.format),new s.DateTime(this.options.elementEnd.value,this.options.format)]}else if(this.options.singleMode){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length)return[new s.DateTime(this.options.element.value,this.options.format)]}else if(this.options.element instanceof HTMLInputElement&&e.test(this.options.element.value)&&r.length&&r.length%2==0){var n=r.slice(0,r.length/2).join(t),i=r.slice(r.length/2).join(t);return[new s.DateTime(n,this.options.format),new s.DateTime(i,this.options.format)]}return[]},e.prototype.isShowning=function(){return this.ui&&"none"!==this.ui.style.display},e.prototype.findPosition=function(t){var e=t.getBoundingClientRect(),r=this.ui.getBoundingClientRect(),n=this.options.position.split(" "),i=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset,a=0,s=0;if("auto"!==n[0]&&/top|bottom/.test(n[0]))a=e[n[0]]+o,"top"===n[0]&&(a-=r.height);else{a=e.bottom+o;var l=e.bottom+r.height>window.innerHeight,c=e.top+o-r.height>=r.height;l&&c&&(a=e.top+o-r.height)}if(/left|right/.test(n[0])||n[1]&&"auto"!==n[1]&&/left|right/.test(n[1]))s=/left|right/.test(n[0])?e[n[0]]+i:e[n[1]]+i,"right"!==n[0]&&"right"!==n[1]||(s-=r.width);else{s=e.left+i,l=e.left+r.width>window.innerWidth;var u=e.right+i-r.width>=0;l&&u&&(s=e.right+i-r.width)}return{left:s,top:a}},e}(a.EventEmitter);e.LPCore=c},function(t,e,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function u(t,e,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if("function"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(t))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return t}function h(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,t))}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function f(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");l=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(void 0===l)return!1;if("function"==typeof l)o(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r<c;++r)o(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return u(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return u(this,t,e,!0)},s.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,o,a;if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);if(void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return f(this,t,!0)},s.prototype.rawListeners=function(t){return f(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(0),o=r(1),a=r(2);o.Litepicker.prototype.show=function(t){void 0===t&&(t=null),this.emit("before:show",t);var e=t||this.options.element;if(this.triggerElement=e,!this.isShowning()){if(this.options.inlineMode)return this.ui.style.position="relative",this.ui.style.display="inline-block",this.ui.style.top=null,this.ui.style.left=null,this.ui.style.bottom=null,void(this.ui.style.right=null);this.scrollToDate(t),this.render(),this.ui.style.position="absolute",this.ui.style.display="block",this.ui.style.zIndex=this.options.zIndex;var r=this.findPosition(e);this.ui.style.top=r.top+"px",this.ui.style.left=r.left+"px",this.ui.style.right=null,this.ui.style.bottom=null,this.emit("show",t)}},o.Litepicker.prototype.hide=function(){this.isShowning()&&(this.datePicked.length=0,this.updateInput(),this.options.inlineMode?this.render():(this.ui.style.display="none",this.emit("hide")))},o.Litepicker.prototype.getDate=function(){return this.getStartDate()},o.Litepicker.prototype.getStartDate=function(){return this.options.startDate?this.options.startDate.clone():null},o.Litepicker.prototype.getEndDate=function(){return this.options.endDate?this.options.endDate.clone():null},o.Litepicker.prototype.setDate=function(t,e){void 0===e&&(e=!1);var r=new i.DateTime(t,this.options.format,this.options.lang);a.dateIsLocked(r,this.options,[r])&&!e?this.emit("error:date",r):(this.setStartDate(t),this.options.inlineMode&&this.render(),this.emit("selected",this.getDate()))},o.Litepicker.prototype.setStartDate=function(t){t&&(this.options.startDate=new i.DateTime(t,this.options.format,this.options.lang),this.updateInput())},o.Litepicker.prototype.setEndDate=function(t){t&&(this.options.endDate=new i.DateTime(t,this.options.format,this.options.lang),this.options.startDate.getTime()>this.options.endDate.getTime()&&(this.options.endDate=this.options.startDate.clone(),this.options.startDate=new i.DateTime(t,this.options.format,this.options.lang)),this.updateInput())},o.Litepicker.prototype.setDateRange=function(t,e,r){void 0===r&&(r=!1),this.triggerElement=void 0;var n=new i.DateTime(t,this.options.format,this.options.lang),o=new i.DateTime(e,this.options.format,this.options.lang);(this.options.disallowLockDaysInRange?a.rangeIsLocked([n,o],this.options):a.dateIsLocked(n,this.options,[n,o])||a.dateIsLocked(o,this.options,[n,o]))&&!r?this.emit("error:range",[n,o]):(this.setStartDate(n),this.setEndDate(o),this.options.inlineMode&&this.render(),this.updateInput(),this.emit
vendor: 9,312 bytes, line 2
2("selected",this.getStartDate(),this.getEndDate()))},o.Litepicker.prototype.gotoDate=function(t,e){void 0===e&&(e=0);var r=new i.DateTime(t);r.setDate(1),this.calendars[e]=r.clone(),this.render()},o.Litepicker.prototype.setLockDays=function(t){this.options.lockDays=i.DateTime.convertArray(t,this.options.lockDaysFormat),this.render()},o.Litepicker.prototype.setHighlightedDays=function(t){this.options.highlightedDays=i.DateTime.convertArray(t,this.options.highlightedDaysFormat),this.render()},o.Litepicker.prototype.setOptions=function(t){delete t.element,delete t.elementEnd,delete t.parentEl,t.startDate&&(t.startDate=new i.DateTime(t.startDate,this.options.format,this.options.lang)),t.endDate&&(t.endDate=new i.DateTime(t.endDate,this.options.format,this.options.lang));var e=n(n({},this.options.dropdowns),t.dropdowns),r=n(n({},this.options.buttonText),t.buttonText),o=n(n({},this.options.tooltipText),t.tooltipText);this.options=n(n({},this.options),t),this.options.dropdowns=n({},e),this.options.buttonText=n({},r),this.options.tooltipText=n({},o),!this.options.singleMode||this.options.startDate instanceof i.DateTime||(this.options.startDate=null,this.options.endDate=null),this.options.singleMode||this.options.startDate instanceof i.DateTime&&this.options.endDate instanceof i.DateTime||(this.options.startDate=null,this.options.endDate=null);for(var a=0;a<this.options.numberOfMonths;a+=1){var s=this.options.startDate?this.options.startDate.clone():new i.DateTime;s.setDate(1),s.setMonth(s.getMonth()+a),this.calendars[a]=s}this.options.lockDays.length&&(this.options.lockDays=i.DateTime.convertArray(this.options.lockDays,this.options.lockDaysFormat)),this.options.highlightedDays.length&&(this.options.highlightedDays=i.DateTime.convertArray(this.options.highlightedDays,this.options.highlightedDaysFormat)),this.render(),this.options.inlineMode&&this.show(),this.updateInput()},o.Litepicker.prototype.clearSelection=function(){this.options.startDate=null,this.options.endDate=null,this.datePicked.length=0,this.updateInput(),this.isShowning()&&this.render(),this.emit("clear:selection")},o.Litepicker.prototype.destroy=function(){this.ui&&this.ui.parentNode&&(this.ui.parentNode.removeChild(this.ui),this.ui=null),this.emit("destroy")}}])},248:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,n,i=t.length;for(r=0;r<i;r+=1)for(var o in n=t[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(e.prototype[o]=n[o])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var r,n=0,i=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<e;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,r){return"float32"===e?new Float32Array(r):"int16"===e?new Int16Array(r):"uint8c"===e?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="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},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,r=createSizedArray(t.length),n=t.length;for(e=0;e<n;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,n){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,n){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,r){var n,i,o,a,s,l,c,u;switch(l=r*(1-e),c=r*(1-(s=6*t-(a=Math.floor(6*t)))*e),u=r*(1-(1-s)*e),a%6){case 0:n=r,i=u,o=l;break;case 1:n=c,i=r,o=l;break;case 2:n=l,i=r,o=u;break;case 3:n=l,i=c,o=r;break;case 4:n=u,i=l,o=r;break;case 5:n=r,i=l,o=c}return[n,i,o]}function RGBtoHSV(t,e,r){var n,i=Math.max(t,e,r),o=Math.min(t,e,r),a=i-o,s=0===i?0:a/i,l=i/255;switch(i){case o:n=0;break;case t:n=e-r+a*(e<r?6:0),n/=6*a;break;case e:n=r-t+2*a,n/=6*a;break;case r:n=t-e+4*a,n/=6*a}return[n,s,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1===e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+r[t]+r[e]+r[n]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="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},_typeof$5(t)}var dataManager=function(){var t,e,r=1,n=[],i={onmessage:function(){},postMessage:function(e){t({data:e})}},o={postMessage:function(t){i.onmessage({data:t})}};function a(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self;
2 self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return t=e,i}((function(t){if(o.dataManager||(o.dataManager=function(){function t(i,o){var a,s,l,c,u,p,f=i.length;for(s=0;s<f;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var d=a.masksProperties;for(c=d.length,l=0;l<c;l+=1)if(d[l].pt.k.i)n(d[l].pt.k);else for(p=d[l].pt.k.length,u=0;u<p;u+=1)d[l].pt.k[u].s&&n(d[l].pt.k[u].s[0]),d[l].pt.k[u].e&&n(d[l].pt.k[u].e[0])}0===a.ty?(a.layers=e(a.refId,o),t(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&h(a)}}function e(t,e){var r=function(t,e){for(var r=0,n=e.length;r<n;){if(e[r].id===t)return e[r];r+=1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(t){var e,i,o;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(o=t[e].ks.k.length,i=0;i<o;i+=1)t[e].ks.k[i].s&&n(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&n(t[e].ks.k[i].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function n(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function i(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var o,a=function(){var t=[4,4,14];function e(t){var e,r,n,i=t.length;for(e=0;e<i;e+=1)5===t[e].ty&&(n=void 0,n=(r=t[e]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(t,r.v)&&(e(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&e(r.assets[n].layers)}}}(),s=(o=[4,7,99],function(t){if(t.chars&&!i(o,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var a=t.chars[e];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var t=[5,7,15];function e(t){var e,r,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(r=void 0,"number"==typeof(r=t[e].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(t,r.v)&&(e(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&e(r.assets[n].layers)}}}(),c=function(){var t=[4,1,9];function e(t){var r,n,i,o=t.length;for(r=0;r<o;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(i=t[r].c.k.length,n=0;n<i;n+=1)t[r].c.k[n].s&&(t[r].c.k[n].s[0]/=255,t[r].c.k[n].s[1]/=255,t[r].c.k[n].s[2]/=255,t[r].c.k[n].s[3]/=255),t[r].c.k[n].e&&(t[r].c.k[n].e[0]/=255,t[r].c.k[n].e[1]/=255,t[r].c.k[n].e[2]/=255,t[r].c.k[n].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,n=t.length;for(r=0;r<n;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}(),u=function(){var t=[4,4,18];function e(t){var r,n,i;for(r=t.length-1;r>=0;r-=1)if("sh"===t[r].ty)if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(i=t[r].ks.k.length,n=0;n<i;n+=1)t[r].ks.k[n].s&&(t[r].ks.k[n].s[0].c=t[r].closed),t[r].ks.k[n].e&&(t[r].ks.k[n].e[0].c=t[r].closed);else"gr"===t[r].ty&&e(t[r].it)}function r(t){var r,n,i,o,a,s,l=t.length;for(n=0;n<l;n+=1){if((r=t[n]).hasMask){var c=r.masksProperties;for(o=c.length,i=0;i<o;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(s=c[i].pt.k.length,a=0;a<s;a+=1)c[i].pt.k[a].s&&(c[i].pt.k[a].s[0].c=c[i].cl),c[i].pt.k[a].e&&(c[i].pt.k[a].e[0].c=c[i].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}();function h(t){0===t.t.a.length&&t.t.p}var p={completeData:function(r){r.__complete||(c(r),a(r),s(r),l(r),u(r),t(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=e(r[i].data.refId,n),t(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return p.checkColors=c,p.checkChars=s,p.checkPathProperties=l,p.checkShapes=u,p.completeLayers=t,p}()),o.assetLoader||(o.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,r,n,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=t(a),n(o);else try{o=t(a),n(o)}catch(t){i&&i(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),r+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,r=e.id,i=n[r];n[r]=null,"success"===e.status?i.onComplete(e.payload):i.onError&&i.onError()})}function s(t,e){var i="processId_"+(r+=1);return n[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,r,n){a();var i=s(r,n);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:i})}
vendor: 16,940 bytes, line 2
2,loadData:function(t,r,n){a();var i=s(r,n);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(t,r,n){a();var i=s(r,n);e.postMessage({type:"complete",animation:t,id:i})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(t,e,r){var n="";if(t.e)n=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=e+i}else n=r,n+=t.u?t.u:"",n+=t.p;return n}function i(t){var e=0,r=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(r)),e+=1}.bind(this),50)}function o(t){var e={assetData:t},r=n(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var r;this.imagesLoadedCb=e;var n=t.length;for(r=0;r<n;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var r=n(e,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:e};return o},createImageData:function(e){var r=n(e,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:e};return o},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],n=0;n<r.length;n+=1)r[n](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,n=this._cbs[t].length;r<n;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,n-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,r=t.split("\r\n"),n={},i=0,o=0;o<r.length;o+=1)2===(e=r[o].split(":")).length&&(n[e[0]]=e[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(e){for(var r=[],n=0;n<e.length;n+=1){var i=e[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(e[n].cm)}catch(r){try{o.payload=t(e[n].cm)}catch(t){o.payload={name:e[n].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return _typeof$4="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},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},n=t.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,n=this.animationData.layers,i=n.length,o=t.layers,a=o.length;for(r=0;r<a;r+=1)for(e=0;e<i;){if(n[e].id===o[r].id){n[e]=o[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r="number"==typeof t?t:void 0,n="number"==typeof e?e:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var n=Number(t);if(isNaN(n)){var i=this.getMarkerData(t);i&&this.goToAndStop(i.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var n=Number(t);if(isNaN(n)){var i=this.getMarkerData(t);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var r,n=t.length;for(r=0;r<n;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer
vendor: 3,581 bytes, line 2
2=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,
vendor: 4,812 bytes, line 2
2n=0,i=0,o=!0,a=!1;function s(t){for(var r=0,i=t.target;r<n;)e[r].animation===i&&(e.splice(r,1),r-=1,n-=1,i.isPaused||u()),r+=1}function l(t,r){if(!t)return null;for(var i=0;i<n;){if(e[i].elem===t&&null!==e[i].elem)return e[i].animation;i+=1}var o=new AnimationItem;return h(o,t),o.setData(t,r),o}function c(){i+=1,d()}function u(){i-=1}function h(t,r){t.addEventListener("destroy",s),t.addEventListener("_active",c),t.addEventListener("_idle",u),e.push({elem:r,animation:t}),n+=1}function p(t){var s,l=t-r;for(s=0;s<n;s+=1)e[s].animation.advanceTime(l);r=t,i&&!a?window.requestAnimationFrame(p):o=!0}function f(t){r=t,window.requestAnimationFrame(p)}function d(){!a&&i&&o&&(window.requestAnimationFrame(f),o=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return h(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setSpeed(t,r)},t.setDirection=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),l(i[n],t);if(e&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),l(s,t)}},t.resize=function(){var t;for(t=0;t<n;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,i){var o;for(o=0;o<n;o+=1)e[o].animation.goToAndStop(t,r,i)},t.destroy=function(t){var r;for(r=n-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,d()},t.setVolume=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setVolume(t,r)},t.mute=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.mute(t)},t.unmute=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n.push(e[t].animation);return n},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,r,n,i,o){var a=o||("bez_"+t+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(e[a])return e[a];var s=new c([t,r,n,i]);return e[a]=s,s}},e={},r=.1,n="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function a(t){return 3*t}function s(t,e,r){return((i(e,r)*t+o(e,r))*t+a(e))*t}function l(t,e,r){return 3*i(e,r)*t*t+2*o(e,r)*t+a(e)}function c(t){this._p=t,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===r&&n===i?t:0===t?0:1===t?1:s(this._getTForX(t),r,i)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=s(n*r,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],i=this._mSampleValues,o=0,a=1;10!==a&&i[a]<=t;++a)o+=r;var c=o+(t-i[--a])/(i[a+1]-i[a])*r,u=l(c,e,n);return u>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=l(e,r,n);if(0===o)return e;e-=(s(e,r,n)-t)/o}return e}(t,c,e,n):0===u?c:function(t,e,r,n,i){var o,a,l=0;do{(o=s(a=e+(r-e)/2,n,i)-t)>0?r=a:e=a}while(Math.abs(o)>1e-7&&++l<10);return a}(t,o,o+r,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var n=0,i=t,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:e()},release:function(t){n===i&&(o=pooling.double(o),i*=2),r&&r(t),o[n]=t,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,r,n,i,o){var a=t*n+e*i+r*o-i*n-o*t-r*e;return a>-.001&&a<.001}var r=function(t,e,r,n){var i,o,a,s,l,c,u=getDefaultCurveSegments(),h=0,p=[],f=[],d=bezierLengthPool.newElement();for(a=r.length,i=0;i<u;i+=1){for(l=i/(u-1),c=0,o=0;o<a;o+=1)s=bmPow(1-l,3)*t[o]+3*bmPow(1-l,2)*l*r[o]+3*(1-l)*bmPow(l,2)*n[o]+bmPow(l,3)*e[o],p[o]=s,null!==f[o
vendor: 10,578 bytes, line 2
2]&&(c+=bmPow(p[o]-f[o],2)),f[o]=p[o];c&&(h+=c=bmSqrt(c)),d.percents[i]=l,d.lengths[i]=h}return d.addedLength=h,d};function n(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}var o,a=(o={},function(t,r,a,s){var l=(t[0]+"_"+t[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[l]){var c,u,h,p,f,d,m,y=getDefaultCurveSegments(),g=0,v=null;2===t.length&&(t[0]!==r[0]||t[1]!==r[1])&&e(t[0],t[1],r[0],r[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(y=2);var b=new n(y);for(h=a.length,c=0;c<y;c+=1){for(m=createSizedArray(h),f=c/(y-1),d=0,u=0;u<h;u+=1)p=bmPow(1-f,3)*t[u]+3*bmPow(1-f,2)*f*(t[u]+a[u])+3*(1-f)*bmPow(f,2)*(r[u]+s[u])+bmPow(f,3)*r[u],m[u]=p,null!==v&&(d+=bmPow(m[u]-v[u],2));g+=d=bmSqrt(d),b.points[c]=new i(d,m),v=m}b.segmentLength=g,o[l]=b}return o[l]});function s(t,e){var r=e.percents,n=e.lengths,i=r.length,o=bmFloor((i-1)*t),a=t*e.addedLength,s=0;if(o===i-1||0===o||a===n[o])return r[o];for(var l=n[o]>a?-1:1,c=!0;c;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),c=!1):o+=l,o<0||o>=i-1){if(o===i-1)return r[o];c=!1}return r[o]+(r[o+1]-r[o])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,n=segmentsLengthPool.newElement(),i=t.c,o=t.v,a=t.o,s=t.i,l=t._length,c=n.lengths,u=0;for(e=0;e<l-1;e+=1)c[e]=r(o[e],o[e+1],a[e],s[e+1]),u+=c[e].addedLength;return i&&l&&(c[e]=r(o[e],o[0],a[e],s[0]),u+=c[e].addedLength),n.totalLength=u,n},getNewSegment:function(e,r,n,i,o,a,c){o<0?o=0:o>1&&(o=1);var u,h=s(o,c),p=s(a=a>1?1:a,c),f=e.length,d=1-h,m=1-p,y=d*d*d,g=h*d*d*3,v=h*h*d*3,b=h*h*h,w=d*d*m,x=h*d*m+d*h*m+d*d*p,S=h*h*m+d*h*p+h*d*p,_=h*h*p,E=d*m*m,T=h*m*m+d*p*m+d*m*p,P=h*p*m+d*p*p+h*m*p,k=h*p*p,C=m*m*m,M=p*m*m+m*p*m+m*m*p,D=p*p*m+m*p*p+p*m*p,A=p*p*p;for(u=0;u<f;u+=1)l[4*u]=t.round(1e3*(y*e[u]+g*n[u]+v*i[u]+b*r[u]))/1e3,l[4*u+1]=t.round(1e3*(w*e[u]+x*n[u]+S*i[u]+_*r[u]))/1e3,l[4*u+2]=t.round(1e3*(E*e[u]+T*n[u]+P*i[u]+k*r[u]))/1e3,l[4*u+3]=t.round(1e3*(C*e[u]+M*n[u]+D*i[u]+A*r[u]))/1e3;return l},getPointInSegment:function(e,r,n,i,o,a){var l=s(o,a),c=1-l;return[t.round(1e3*(c*c*c*e[0]+(l*c*c+c*l*c+c*c*l)*n[0]+(l*l*c+c*l*l+l*c*l)*i[0]+l*l*l*r[0]))/1e3,t.round(1e3*(c*c*c*e[1]+(l*c*c+c*l*c+c*c*l)*n[1]+(l*l*c+c*l*l+l*c*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(r,n,i,o,a,s,l,c,u){if(0===i&&0===s&&0===u)return e(r,n,o,a,l,c);var h,p=t.sqrt(t.pow(o-r,2)+t.pow(a-n,2)+t.pow(s-i,2)),f=t.sqrt(t.pow(l-r,2)+t.pow(c-n,2)+t.pow(u-i,2)),d=t.sqrt(t.pow(l-o,2)+t.pow(c-a,2)+t.pow(u-s,2));return(h=p>f?p>d?p-f-d:d-f-p:d>f?d-f-p:f-p-d)>-1e-4&&h<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(t,e){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var o,a,s,l,c,u,h,p,f,d=e.lastIndex,m=d,y=this.keyframes.length-1,g=!0;g;){if(o=this.keyframes[m],a=this.keyframes[m+1],m===y-1&&t>=a.t-i){o.h&&(o=a),d=0;break}if(a.t-i>t){d=m;break}m<y-1?m+=1:(d=0,g=!1)}s=this.keyframesMetadata[m]||{};var v,b,w,x,S,_,E,T,P,k,C=a.t-i,M=o.t-i;if(o.to){s.bezierData||(s.bezierData=bez.buildBezierData(o.s,a.s||o.e,o.to,o.ti));var D=s.bezierData;if(t>=C||t<M){var A=t>=C?D.points.length-1:0;for(c=D.points[A].point.length,l=0;l<c;l+=1)r[l]=D.points[A].point[l]}else{s.__fnct?f=s.__fnct:(f=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,s.__fnct=f),u=f((t-M)/(C-M));var O,L=D.segmentLength*u,I=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,g=!0,h=D.points.length;g;){if(I+=D.points[p].partialLength,0===L||0===u||p===D.points.length-1){for(c=D.points[p].point.length,l=0;l<c;l+=1)r[l]=D.points[p].point[l];break}if(L>=I&&L<I+D.points[p+1].partialLength){for(O=(L-I)/D.points[p+1].partialLength,c=D.points[p].point.length,l=0;l<c;l+=1)r[l]=D.points[p].point[l]+(D.points[p+1].point[l]-D.points[p].point[l])*O;break}p<h-1?p+=1:g=!1}e._lastPoint=p,e._lastAddedLength=I-D.points[p].partialLength,e._lastKeyframeIndex=m}}else{var F,R,j,B,V;if(y=o.s.length,v=a.s||o.e,this.sh&&1!==o.h)if(t>=C)r[0]=v[0],r[1]=v[1],r[2]=v[2];else if(t<=M)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else{var z=n(o.s),N=n(v);b=r,w=function(t,e,r){var n,i,o,a,s,l=[],c=t[0],u=t[1],h=t[2],p=t[3],f=e[0],d=e[1],m=e[2],y=e[3];return(i=c*f+u*d+h*m+p*y)<0&&(i=-i,f=-f,d=-d,m=-m,y=-y),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/o):(a=1-r,s=r),l[0]=a*c+s*f,l[1]=a*u+s*d,l[2]=a*h+s*m,l[3]=a*p+s*y,l}(z,N,(t-M)/(C-M)),x=w[0],S=w[1],_=w[2],E=w[3],T=Math.atan2(2*S*E-2*x*_,1-2*S*S-2*_*_),P=Math.asin(2*x*S+2*_*E),k=Math.atan2(2*x*E-2*S*_,1-2*x*x-2*_*_),b[0]=T/degToRads,b[1]=P/degToRads,b[2]=k/degToRads}else for(m=0;m<y;m+=1)1!==o.h&&(t>=C?u=1:t<M?u=0:(o.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[m]?f=s.__fnct[m]:(F=void 0===o.o.x[m]?o.o.x[0]:o.o.x[m],R=void 0===o.o.y[m]?o.o.y[0]:o.o.y[m],j=void 0===o.i.x[m]?o.i.x[0]:o.i.x[m],B=void 0===o.i.y[m]?o.i.y[0]:o.i.y[m],f=BezierFactory.getBezierEasing(F,R,j,B).get,s.__fnct[m]=f)):s.__fnct?f=s.__fnct:(F=o.o.x,R=o.o.y,j=o.i.x,B=o.i.y,f=BezierFactory.getBezierEasing(F,R,j,B).get,o.keyframeMetadata=f),u=f((t-M)/(C-M)))),v=a.s||o.e,V=1===o.h?o.s[m]:o.s[m]+(v[m]-o.s[m])*u,"multidimensional"===this.propType?r[m]=V:r=V}return e.lastIndex=d,r}function n(t){var e=t[0]*degToRads,r=t[1]*degToRads,n=t[2]*degToRads,i=Math.cos(e/2),o=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(e/2),l=Math.sin(r/2),c=Math.sin(n/2);return[s*l*a+i*o*c,s*o*a+i*l*c,i*l*a-s*o*c,i*o*a-s*l*c]}function i(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function o(t){var r;if("unidimensional"===this.propType)r=t*this.mult,e(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)r=t[n]*this.mult,e(this.v[n]-r)>1e-5&&(this.v[n]=r,this._mdf=!0),n+=1}function a(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(t,e,r,n){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=a,this.setVValue=o,this.addEffect=s}function c(t,e,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=e.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),i=0;i<l;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=a,this.setVValue=o,this.addEffect=s}function u(e,n,l,c){this.propType="unidimensional",this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=l||1,this.elem=e,this.container=c,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=a,this.setVValue=o,this.interpolateValue=r,this.effectsSequence=[i.bind(this)],this.addEffect=s}function h(e,n,l,c){var u;this.propType="multidimensional";var h,p,f,d,m=n.k.length;for(u=0;u<m-1;u+=1)n.k[u].to&&n.k[u].s&&n.k[u+1]&&n.k[u+1].s&&(h=n.k[u].s,p=n.k[u+1].s,f=n.k[u].to,d=n.k[u].ti,(2===h.length&&(h[0]!==p[0]||h[1]!==p[1])&&bez.pointOnLine2D(h[0],h[1],p[0],p[1],h[0]+f[0],h[1]+f[1])&&bez.pointOnLine2D(h[0],h[1],p[0],p[1],p[0]+d[0],p[1]+d[1])||3===h.length&&(h[0]!==p[0]||h[1]!==p[1]||h[2]!==p[2])&&bez.pointOnLine3D(h[0],h[1],h[2],p[0],p[1],p[2],h[0]+f[0],h[1]+f[1],h[2]+f[2])&&bez.pointOnLine3D(h[0],h[1],h[2],p[0],p[1],p[2],p[0]+d[0],p[1]+d[1],p[2]+d[2]))&&(n.k[u].to=null,n.k[u].ti=null),h[0]===p[0]&&h[1]===p[1]&&0===f[0]&&0===f[1]&&0===d[0]&&0===d[1]&&(2===h.length||h[2]===p[2]&&0===f[2]&&0===d[2])&&(n.k[u].to=null,n.k[u].ti=null));this.effectsSequence=[i.bind(this)],this.data=n,this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=e,this.container=c,this.comp=e.comp,this.getValue=a,this.setVValue=o,this.interpolateValue=r,this.frameId=-1;var y=n.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),u=0;u<y;u+=1)this.v[u]=t,this.pv[u]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=s}return{getProp:function(t,e,r,n,i){var o;if(e.k.length)if("number"==typeof e.k[0])o=new c(t,e,n,i);else switch(r){case 0:o=new u(t,e,n,i);break;case 1:o=new h(t,e,n,i)}else o=new l(t,e,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;
vendor: 7,629 bytes, line 2
2)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=t,o[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,n,i,o,a,s){this.setXYAt(t,e,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,n=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)t.setTripleAt(e[a][0],e[a][1],n[a][0],n[a][1],r[a][0],r[a][1],o,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,r=factory.newElement(),n=void 0===t._length?t.v.length:t._length;for(r.setLength(n),r.c=t.c,e=0;e<n;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var n,i,o,a,s,l,c,u,h,p=r.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)n=f[0].s[0],o=!0,p=0;else if(t>=f[f.length-1].t-this.offsetTime)n=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],o=!0;else{for(var d,m,y,g=p,v=f.length-1,b=!0;b&&(d=f[g],!((m=f[g+1]).t-this.offsetTime>t));)g<v-1?g+=1:b=!1;if(y=this.keyframesMetadata[g]||{},p=g,!(o=1===d.h)){if(t>=m.t-this.offsetTime)u=1;else if(t<d.t-this.offsetTime)u=0;else{var w;y.__fnct?w=y.__fnct:(w=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,y.__fnct=w),u=w((t-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))}i=m.s?m.s[0]:d.e[0]}n=d.s[0]}for(l=e._length,c=n.i[0].length,r.lastIndex=p,a=0;a<l;a+=1)for(s=0;s<c;s+=1)h=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*u,e.i[a][s]=h,h=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*u,e.o[a][s]=h,h=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*u,e.v[a][s]=h}function r(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==t&&(i<r&&e<r||i>n&&e>n)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function i(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,n=t._length;for(r=0;r<n;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(e=0;e<r;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?e.pt.k:e.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,i,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,l.prototype.getValue=o,l.prototype.interpolateShape=e,l.prototype.setVValue=i,l.prototype.addEffect=s;var c=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=r-i,a.v[1][0]=o?e+n:e-n,a.v[1][1]=r,a.v[2][0]=e,a.v[2][1]=r+i,a.v[3][0]=o?e-n:e+n,a.v[3][1]=r,a.i[0][0]=o?e-n*t:e+n*t,a.i[0][1]=r-i,a.i[1][0]=o?e+n:e-n,a.i[1][1]=r-i*t,a.i[2][0]=o?e+n*t:e-n*t,a.i[2][1]=r+i,a.i[3][0]=o?e-n:e+n,a.i[3][1]=r+i*t,a.o[0][0]=o?e+n*t:e-n*t,a.o[0][1]=r-i,a.o[1][0]=o?e+n:e-n,a.o[1][1]=r+i*t,a.o[2][0]=o?e-n*t:e+n*t,a.o[2][1]=r+i,a.o[3][0]=o?e-n:e+n,a.o[3][1]=r-i*t}},extendPrototype([DynamicPropertyContainer],e),e}(),u=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 6,043 bytes, line 2
2pertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,h=2*Math.PI*s/(2*i),p=2*Math.PI*l/(2*i),f=-Math.PI/2;f+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){r=a?c:u,n=a?h:p;var m=(e=a?s:l)*Math.cos(f),y=e*Math.sin(f),g=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),v=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);m+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(m,y,m-g*n*r*d,y-v*n*r*d,m+g*n*r*d,y+v*n*r*d,t,!0),a=!a,f+=o*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*e),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=n*Math.cos(a),c=n*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),h=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*o*i*s,c-h*o*i*s,l+u*o*i*s,c+h*o*i*s,t,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-n+i,t+r,e-n+i,t+r,e-n+o,0,!0),this.v.setTripleAt(t+r,e+n-i,t+r,e+n-o,t+r,e+n-i,1,!0),0!==i?(this.v.setTripleAt(t+r-i,e+n,t+r-i,e+n,t+r-o,e+n,2,!0),this.v.setTripleAt(t-r+i,e+n,t-r+o,e+n,t-r+i,e+n,3,!0),this.v.setTripleAt(t-r,e+n-i,t-r,e+n-i,t-r,e+n-o,4,!0),this.v.setTripleAt(t-r,e-n+i,t-r,e-n+o,t-r,e-n+i,5,!0),this.v.setTripleAt(t-r+i,e-n,t-r+i,e-n,t-r+o,e-n,6,!0),this.v.setTripleAt(t+r-i,e-n,t+r-o,e-n,t+r-i,e-n,7,!0)):(this.v.setTripleAt(t-r,e+n,t-r+o,e+n,t-r,e+n,2),this.v.setTripleAt(t-r,e-n,t-r,e-n+o,t-r,e-n,3))):(this.v.setTripleAt(t+r,e-n+i,t+r,e-n+o,t+r,e-n+i,0,!0),0!==i?(this.v.setTripleAt(t+r-i,e-n,t+r-i,e-n,t+r-o,e-n,1,!0),this.v.setTripleAt(t-r+i,e-n,t-r+o,e-n,t-r+i,e-n,2,!0),this.v.setTripleAt(t-r,e-n+i,t-r,e-n+i,t-r,e-n+o,3,!0),this.v.setTripleAt(t-r,e+n-i,t-r,e+n-o,t-r,e+n-i,4,!0),this.v.setTripleAt(t-r+i,e+n,t-r+i,e+n,t-r+o,e+n,5,!0),this.v.setTripleAt(t+r-i,e+n,t+r-o,e+n,t+r-i,e+n,6,!0),this.v.setTripleAt(t+r,e+n-i,t+r,e+n-i,t+r,e+n-o,7,!0)):(this.v.setTripleAt(t-r,e-n,t-r+o,e-n,t-r,e-n,1,!0),this.v.setTripleAt(t-r,e+n,t-r,e+n-o,t-r,e+n,2,!0),this.v.setTripleAt(t+r,e+n,t+r-o,e+n,t+r,e+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],t),t}(),p={getShapeProp:function(t,e,r){var n;return 3===r||4===r?n=(3===r?e.pt:e.ks).k.length?new l(t,e,r):new a(t,e,r):5===r?n=new h(t,e):6===r?n=new c(t,e):7===r&&(n=new u(t,e)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return p}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function l(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function c(t,e){return this._t(1,e,t,1,0,0)}function u(t,e){return this.shear(r(t),r(e))}function h(n,i){var o=t(i),a=e(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function p(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function f(t,e,r,n,i,o,a,s,l,c,u,h,p,f,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=h,this.props[12]=p,this.props[13]=f,this.props[14]=d,this.props[15]=m,this}function d(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function m(t,e,r,n,i,o,a,s,l,c,u,h,p,f,d,m){var y=this.props;if(1===t&&0===e&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===l&&0===c&&1===u&&0===h)return y[12]=y[12]*t+y[15]*p,y[13]=y[13]*o+y[15]*f,y[14]=y[14]*u+y[15]*d,y[15]*=m,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],w=y[3],x=y[4],S=y[5],_=y[6],E=y[7],T=y[8],P=y[9],k=y[10],C=y[11],M=y[12],D=y[13],A=y[14],O=y[15];
vendor: 8,142 bytes, line 2
2return y[0]=g*t+v*i+b*l+w*p,y[1]=g*e+v*o+b*c+w*f,y[2]=g*r+v*a+b*u+w*d,y[3]=g*n+v*s+b*h+w*m,y[4]=x*t+S*i+_*l+E*p,y[5]=x*e+S*o+_*c+E*f,y[6]=x*r+S*a+_*u+E*d,y[7]=x*n+S*s+_*h+E*m,y[8]=T*t+P*i+k*l+C*p,y[9]=T*e+P*o+k*c+C*f,y[10]=T*r+P*a+k*u+C*d,y[11]=T*n+P*s+k*h+C*m,y[12]=M*t+D*i+A*l+O*p,y[13]=M*e+D*o+A*c+O*f,y[14]=M*r+D*a+A*u+O*d,y[15]=M*n+D*s+A*h+O*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function x(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function S(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function _(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function E(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,n=-this.props[4]/t,i=this.props[0]/t,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new Matrix;return s.props[0]=e,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function T(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n[e]=T(t[e]);return n}function k(t,e,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];n[0]=t[0]*i+t[1]*a+l,n[1]=t[0]*o+t[1]*s+c,n[2]=e[0]*i+e[1]*a+l,n[3]=e[0]*o+e[1]*s+c,n[4]=r[0]*i+r[1]*a+l,n[5]=r[0]*o+r[1]*s+c}return n}function C(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function M(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function D(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=n(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function A(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function O(){var t=this.props;return"matrix("+A(t[0])+","+A(t[1])+","+A(t[4])+","+A(t[5])+","+A(t[12])+","+A(t[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=h,this.shear=c,this.scale=p,this.setTransform=f,this.translate=d,this.transform=m,this.applyToPoint=w,this.applyToX=x,this.applyToY=S,this.applyToZ=_,this.applyToPointArray=C,this.applyToTriplePoints=k,this.applyToPointStringified=M,this.toCSS=D,this.to2dCSS=O,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=P,this.inversePoint=T,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="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},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var n=e[r].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,n){return new e[t](r,n)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=Pro
vendor: 4,798 bytes, line 2
2pertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,n,i){var o=[];e<=1?o.push({s:t,e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var a,s,l=[],c=o.length;for(a=0;a<c;a+=1){var u,h;(s=o[a]).e*i<n||s.s*i>n+r||(u=s.s*i<=n?0:(s.s*i-n)/r,h=s.e*i>=n+r?1:(s.e*i-n)/r,l.push([u,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,n,i;if(this._mdf||t){var o=this.o.v%360/360;if(o<0&&(o+=1),(e=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=e;e=r,r=a}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var s,l,c,u,h,p=this.shapes.length,f=0;if(r===e)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var d,m,y=[];for(i=0;i<p;i+=1)if((d=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(l=(n=d.shape.paths)._length,h=0,!d.shape._mdf&&d.pathsData.length)h=d.totalShapeLength;else{for(c=this.releasePathsData(d.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(n.shapes[s]),c.push(u),h+=u.totalLength;d.totalShapeLength=h,d.pathsData=c}f+=h,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var g,v=e,b=r,w=0;for(i=p-1;i>=0;i-=1)if((d=this.shapes[i]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&p>1?(g=this.calculateShapeEdges(e,r,d.totalShapeLength,w,f),w+=d.totalShapeLength):g=[[v,b]],l=g.length,s=0;s<l;s+=1){v=g[s][0],b=g[s][1],y.length=0,b<=1?y.push({s:d.totalShapeLength*v,e:d.totalShapeLength*b}):v>=1?y.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(b-1)}):(y.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(b-1)}));var x=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var S=x.pop();this.addPaths(x,m),x=this.addShapes(d,y[1],S)}else this.addPaths(x,m),x=this.addShapes(d,y[1]);this.addPaths(x,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,n,i,o,a){i.setXYAt(e[0],e[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),a&&i.setXYAt(t[0],t[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,n){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),n&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var n,i,o,a,s,l,c,u,h=t.pathsData,p=t.shape.paths.shapes,f=t.shape.paths._length,d=0,m=[],y=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<f;n+=1){for(l=h[n].lengths,r.c=p[n].c,o=p[n].c?l.length:l.length+1,i=1;i<o;i+=1)if(d+(a=l[i-1]).addedLength<e.s)d+=a.addedLength,r.c=!1;else{if(d>e.e){r.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[i],p[n].v[i],r,s,y),y=!1):(c=bez.getNewSegment(p[n].v[i-1],p[n].v[i],p[n].o[i-1],p[n].i[i],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,r,s,y),y=!1,r.c=!1),d+=a.addedLength,s+=1}if(p[n].c&&l.length){if(a=l[i-1],d<=e.e){var g=l[i-1].addedLength;e.s<=d&&e.e>=d+g?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[0],p[n].v[0],r,s,y),y=!1):(c=bez.getNewSegment(p[n].v[i-1],p[n].v[0],p[n].o[i-1],p[n].i[0],(e.s-d)/g,(e.e-d)/g,l[i-1]),this.addSegmentFromArray(c,r,s,y),y=!1,r.c=!1)}else r.c=!1;d+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;n<f-1&&(r=shapePool.newElement(),y=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,n=[0,0],i=t._length,o=0;for(o=0;o<i;o+=1)n[0]+=t.v[o][0],n[1]+=t.v[o][1];n[0]/=i,n[1]/=i;
vendor: 22,512 bytes, line 2
2var a,s,l,c,u,h,p=shapePool.newElement();for(p.c=t.c,o=0;o<i;o+=1)a=t.v[o][0]+(n[0]-t.v[o][0])*r,s=t.v[o][1]+(n[1]-t.v[o][1])*r,l=t.o[o][0]+(n[0]-t.o[o][0])*-r,c=t.o[o][1]+(n[1]-t.o[o][1])*-r,u=t.i[o][0]+(n[0]-t.i[o][0])*-r,h=t.i[o][1]+(n[1]-t.i[o][1])*-r,p.setTripleAt(a,s,l,c,u,h,o);return p},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,n,i,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,i=e.or.k.length;for(n=0;n<i;n+=1)e.or.k[n].to=null,e.or.k[n].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=i=t;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,n){return new e(t,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(0===t)return[];var n=e*e-4*t*r;if(n<0)return[];var i=-e/(2*t);if(0===n)return[i];var o=Math.sqrt(n)/(2*t);return[i-o,i+o]}function polynomialCoefficients(t,e,r,n){return[3*e-t-3*r+n,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,n,i){i&&pointEqual(t,e)&&(e=lerpPoint(t,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(t,n,2/3));var o=polynomialCoefficients(t[0],e[0],r[0],n[0]),a=polynomialCoefficients(t[1],e[1],r[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[t,e,r,n]}function extrema(t,e){var r=t.points[0][e],n=t.points[t.points.length-1][e];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=t.point(o[a])[e];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(t,e,r){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,n,i,o){if(boxIntersect(t,e))if(r>=o||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n)i.push([t.t,e.t]);else{var a=splitData(t),s=splitData(e);intersectsImpl(a[0],s[0],r+1,n,i,o),intersectsImpl(a[0],s[1],r+1,n,i,o),intersectsImpl(a[1],s[0],r+1,n,i,o),intersectsImpl(a[1],s[1],r+1,n,i,o)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,n){var i=[t[0],t[1],1],o=[e[0],e[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],l=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,n,i,o,a){var s=r-Math.PI/2,l=r+Math.PI/2,c=e[0]+Math.cos(r)*n*i,u=e[1]-Math.sin(r)*n*i;t.setTripleAt(c,u,c+Math.cos(s)*o,u-Math.sin(s)*o,c+Math.cos(l)*a,u-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(t,e){var r=0===e?t.length()-1:e-1,n=(e+1)%t.length(),i=getPerpendicularVector(t.v[r],t.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(t,e,r,n,i,o,a){var s=getProjectingAngle(e,r),l=e.v[r%e._length],c=e.v[0===r?e._length-1:r-1],u=e.v[(r+1)%e._length],h=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,p=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(t,e.v[r%e._length],s,a,n,p/(2*(i+1)),h/(2*(i+1)),o)}function zigZagSegment(t,e,r,n,i,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),l=2===i?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,c=e.normalAngle(s);setPoint(t,e.point(s),c,o,r,l/(2*(n+1)),l/(2*(n+1)),i),o=-o}return o}function linearOffset(t,e,r){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,n,r),polarOffset(e,n,r)]}function offsetSegment(t,e){var r,n,i,o,a,s,l;r=(l=linearOffset(t.points[0],t.points[1],e))[0],n=l[1],i=(l=linearOffset(t.points[1],t.points[2],e))[0],o=l[1],a=(l=linearOffset(t.points[2],t.points[3],e))[0],s=l[1];var c=lineIntersection(r,n,i,o);null===c&&(c=n);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(r,c,u,s)}function joinLines(t,e,r,n,i){var o=e.points[3],a=r.points[0];if(3===n)return o;if(pointEqual(o,a))return o;if(2===n){var s=-e.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=c?pointDistance(c,o):pointDistance(o,a)/2,h=polarOffset(o,s,2*u*roundCorner);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=polarOffset(a,l,2*u*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],h[0],h[1],t.length()),a}var p=lineIntersection(pointEqual(o,e.points[2])?e.points[0]:e.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return p&&pointDistance(p,o)<i?(t.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],t.length()),p):o}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),n=e.slice(),i=getIntersection(t[t.length-1],e[0]);return i&&(r[t.length-1]=t[t.length-1].split(i[0])[0],n[0]=e[0].split(i[1])[1]),t.length>1&&e.length>1&&(i=getIntersection(t[0],e[e.length-1]))?[[t[0].split(i[0])[0]],[e[e.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,n,i,o,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return r=(i=t.split(a[0]))[0],n=i[1],[offsetSegment(r,e),offsetSegment(n,e)];r=(i=t.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,e),offsetSegment(o,e),offsetSegment(n,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",n="normal",i=e.length,o=0;o<i;o+=1)switch(e[o].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,n,i,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),l=n.s.v[1]+(1-n.s.v[1])*(1-i);t.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*i),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/s:s,o?1/l:l),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,n){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,n,i,o,a=!1;if(this._mdf||t){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<l,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var u=this.elemsData[n].it,h=u[u.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}o+=1}this._currentCopies=l;var p=this.o.v,f=p%1,d=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,w=0;if(p>0){for(;w<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),w+=f)}else if(p<0){for(;w>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),w-=f)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(r=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==w){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];w+=1,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,n+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,n=shapePool.newElement();n.c=t.c;var i,o,a,s,l,c,u,h,p,f,d,m,y=t._length,g=0;for(r=0;r<y;r+=1)i=t.v[r],a=t.o[r],o=t.i[r],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==y-1||t.c?(s=0===r?t.v[y-1]:t.v[r-1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,e)/l:0,u=d=i[0]+(s[0]-i[0])*c,h=m=i[1]-(i[1]-s[1])*c,p=u-(u-i[0])*roundCorner,f=h-(h-i[1])*roundCorner,n.setTripleAt(u,h,p,f,d,m,g),g+=1,s=r===y-1?t.v[0]:t.v[r+1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,e)/l:0,u=p=i[0]+(s[0]-i[0])*c,h=f=i[1]+(s[1]-i[1])*c,d=u-(u-i[0])*roundCorner,m=h-(h-i[1])*roundCorner,n.setTripleAt(u,h,p,f,d,m,g),g+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],g),g+=1):(n.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],g),g+=1);return n},RoundCornersModifier.prototype.processShapes=function(t){var e,r,n,i,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),n=lerpPoint(this.points[2],this.points[3],t),i=lerpPoint(e,r,t),o=lerpPoint(r,n,t),a=lerpPoint(i,o,t);return[new PolynomialBezier(this.points[0],e,i,a,!0),new PolynomialBezier(a,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){void 0===e&&(e=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,n,r),n},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,r,n){var i=t._length,o=shapePool.newElement();if(o.c=t.c,t.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(t,0);zigZagCorner(o,t,0,e,r,n,a);for(var l=0;l<i;l+=1)a=zigZagSegment(o,s,e,r,n,-a),s=l!==i-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%i):null,zigZagCorner(o,t,l+1,e,r,n,a);return o},ZigZagModifier.prototype.processShapes=function(t){var e,r,n,i,o,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],l,c,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,r,n){var i=shapePool.newElement();i.c=t.c;var o,a,s,l=t.length();t.c||(l-=1);var c=[];for(o=0;o<l;o+=1)s=PolynomialBezier.shapeSegment(t,o),c.push(offsetSegmentSplit(s,e));if(!t.c)for(o=l-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(t,o),c.push(offsetSegmentSplit(s,e));c=pruneIntersections(c);var u=null,h=null;for(o=0;o<c.length;o+=1){var p=c[o];
vendor: 4,123 bytes, line 2
2for(h&&(u=joinLines(i,h,p[0],r,n)),h=p[p.length-1],a=0;a<p.length;a+=1)s=p[a],u&&pointEqual(s.points[0],u)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),u=s.points[3]}return c.length&&joinLines(i,h,c[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(t){var e,r,n,i,o,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],l,u,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],n=[65039,8205];function i(t,e){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=e;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(t){var e,r=t.split(","),n=r.length,i=[];for(e=0;e<n;e+=1)"sans-serif"!==r[e]&&"monospace"!==r[e]&&i.push(r[e]);return i.join(",")}(t)+", "+e,{node:n,w:i,parent:r}}function o(t,e){var r,n=document.body&&e?"svg":"canvas",i=getFontProperties(t);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",t.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",t.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",t.fClass)):o.style.fontFamily=t.fFamily,e.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+t.fFamily,r=a}return{measureText:function(t){return"svg"===n?(r.textContent=t,r.getComputedTextLength()):r.measureText(t).width}}}var a=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};a.isModifier=function(t,e){var n=t.toString(16)+e.toString(16);return-1!==r.indexOf(n)},a.isZeroWidthJoiner=function(t,e){return e?t===n[0]&&e===n[1]:t===n[1]},a.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var s={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var r,n,i=t.length,o=this.chars.length;for(e=0;e<i;e+=1){for(r=0,n=!1;r<o;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(n=!0),r+=1;n||(this.chars.push(t[e]),o+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=o(t),t.cache={}})),void(this.fonts=t.list);var r,n=t.list,a=n.length,s=a;for(r=0;r<a;r+=1){var l,c,u=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(u=!1),u){var h=createTag("style");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.setAttribute("f-family",n[r].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",e.appendChild(h)}}
vendor: 6,126 bytes, line 2
2else if("g"===n[r].fOrigin||1===n[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(n[r].fPath)&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.type="text/css",p.rel="stylesheet",p.href=n[r].fPath,document.body.appendChild(p)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)n[r].fPath===l[c].src&&(u=!1);if(u){var f=createTag("link");f.setAttribute("f-forigin",n[r].fOrigin),f.setAttribute("f-origin",n[r].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",n[r].fPath),e.appendChild(f)}}}else n[r].loaded=!0,s-=1;n[r].helper=o(n[r],e),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===e&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,r,n)),t},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var n=this.getFontByName(e),i=t.charCodeAt(0);if(!n.cache[i+1]){var o=n.helper;if(" "===t){var a=o.measureText("|"+t+"|"),s=o.measureText("||");n.cache[i+1]=(a-s)/100}else n.cache[i+1]=o.measureText(t)/100}return n.cache[i+1]*r},checkLoadedFonts:function(){var t,e,r,n=this.fonts.length,i=n;for(t=0;t<n;t+=1)this.fonts[t].loaded?i-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(i-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(i-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return a.prototype=s,a}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,n=t.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,u,h,p,f=this.masksProperties,d=0,m=[],y=createElementID(),g="clipPath",v="clip-path";
vendor: 7,404 bytes, line 2
2for(n=0;n<a;n+=1)if(("a"!==f[n].mode&&"n"!==f[n].mode||f[n].inv||100!==f[n].o.k||f[n].o.x)&&(g="mask",v="mask"),"s"!==f[n].mode&&"i"!==f[n].mode||0!==d?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),i=createNS("path"),"n"===f[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,f[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(d+=1,i.setAttribute("fill","s"===f[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==f[n].x.k?(g="mask",v="mask",p=PropertyFactory.getProp(this.element,f[n].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),u.appendChild(h),o.appendChild(u),i.setAttribute("stroke","s"===f[n].mode?"#000000":"#ffffff")):(h=null,p=null),this.storedData[n]={elem:i,x:p,expan:h,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===f[n].mode){l=m.length;var w=createNS("g");for(s=0;s<l;s+=1)w.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+d),x.appendChild(i),o.appendChild(x),w.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+d+")"),m.length=0,m.push(w)}else m.push(i);f[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,f[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[n],3),invRect:c},this.viewData[n].prop.k||this.drawPath(f[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(g),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);d>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+y+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],e,this);break;case 1:n=new AngleEffect(o[r],e,this);break;case 2:n=new ColorEffect(o[r],e,this);break;case 3:n=new PointEffect(o[r],e,this);break;case 4:case 7:n=new CheckboxEffect(o[r],e,this);break;case 10:n=new LayerIndexEffect(o[r],e,this);break;case 11:n=new MaskIndexEffect(o[r],e,this);break;case 5:n=new EffectsManager(o[r],e,this);break;default:n=new NoValueEffect(o[r],e,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),n=t("shape"),i=t("text"),o=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,r,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}
vendor: 7,452 bytes, line 2
2},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,n=t.length,i=this.layers.length;for(e=0;e<n;e+=1)for(r=0;r<i;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var n=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==e&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(t,i[o].parent,r):t.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(t))),o+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(t){var e,r=this.elements.length;for(e=0;e<r;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if("number"==typeof r)e=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){e=this.elements[n];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<n;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,a=e.length;for(r=0;r<a;r+=1)o=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(e=0;e<n;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var i=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),i.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var n,i,o=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,n=1;n<i;n+=1)o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&i>1&&(o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==o){var a="";r.elem&&(e.c&&(a=t.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var r=createNS("filter");return r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,n="SourceGraphic",i=t.data.ef?t.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],e=0;e<i;e+=1){r=null;var l=t.data.ef[e].ty;registeredEffects[l]&&(r=new(0,registeredEffects[l].effect)(a,t.effectsManager.effectElements[e],t,idPrefix+s,n),n=idPrefix+s,registeredEffects[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}
vendor: 14,816 bytes, line 2
2function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,r,n,i,o=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),e=createElementID(),r=filtersFactory.createFilter(e);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),c.appendChild(u),this.globalData.defs.appendChild(r);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(h),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(h),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[t]=o}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,n=e.length;r<n;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===t)return void(r[n].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var n=0,i=t.length;n<i;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,n){var i;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,a=e.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(t,e[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:e[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,n,i=4*this.data.p;for(e=0;e<i;e+=1)r=e%4==0?100:255,n=Math.round(this.prop.v[e]*r),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)r=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),n=createNS(1===e.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*e.g.p,o=0;o<a;o+=4)i=createNS("stop"),n.appendChild(i),s.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),l=createElementID();o.setAttribute("id",l);var c=createNS(1===t.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(n=4*t.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),u.push(r);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=c,this.ms=o,this.ost=u,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,n){if(0===e)return"";var i,o=t.o,a=t.i,s=t.v,l=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<e;i+=1)l+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&e&&(l+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var o,a,s,l,c,u,h,p,f,d,m,y=n.styles.length,g=n.lvl;for(u=0;
vendor: 5,855 bytes, line 2
2u<y;u+=1){if(l=n.sh._mdf||i,n.styles[u].lvl<g){for(p=e.reset(),d=g-n.styles[u].lvl,m=n.transformers.length-1;!l&&d>0;)l=n.transformers[m].mProps._mdf||l,d-=1,m-=1;if(l)for(d=g-n.styles[u].lvl,m=n.transformers.length-1;d>0;)f=n.transformers[m].mProps.v.props,p.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),d-=1,m-=1}else p=t;if(a=(h=n.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(c=h.shapes[o])&&c._length&&(s+=buildShapeString(c,c._length,c.c,p));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=l||n.styles[u]._mdf}}function o(t,e,r){var n=e.style;(e.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,r){s(t,e,r),l(0,e,r)}function s(t,e,r){var n,i,o,a,s,l=e.gf,c=e.g._hasOpacity,u=e.s.v,h=e.e.v;if(e.o._mdf||r){var p="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(p,e.o.v)}if(e.s._mdf||r){var f=1===t.t?"x1":"cx",d="x1"===f?"y1":"cy";l.setAttribute(f,u[0]),l.setAttribute(d,u[1]),c&&!e.g._collapsable&&(e.of.setAttribute(f,u[0]),e.of.setAttribute(d,u[1]))}if(e.g._cmdf||r){n=e.cst;var m=e.g.c;for(o=n.length,i=0;i<o;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(e.g._omdf||r)){var y=e.g.o;for(o=(n=e.g._collapsable?e.cst:e.ost).length,i=0;i<o;i+=1)a=n[i],e.g._collapsable||a.setAttribute("offset",y[2*i]+"%"),a.setAttribute("stop-opacity",y[2*i+1])}if(1===t.t)(e.e._mdf||r)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),c&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-h[0],2)+Math.pow(u[1]-h[1],2)),l.setAttribute("r",s),c&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.e._mdf||e.h._mdf||e.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-h[0],2)+Math.pow(u[1]-h[1],2)));var g=Math.atan2(h[1]-u[1],h[0]-u[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,w=Math.cos(g+e.a.v)*b+u[0],x=Math.sin(g+e.a.v)*b+u[1];l.setAttribute("fx",w),l.setAttribute("fy",x),c&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",x))}}function l(t,e,r){var n=e.style,i=e.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,n,i,o){this.o=t,this.sw=e,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,n,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(a.push(e),s=e._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,n=new SVGStyleData(t,e),i=n.pElem;return"st"===t.ty?r=new SVGStrokeStyleData(this,t,n):"fl"===t.ty?r=new SVGFillStyleData(this,t,n):"gf"===t.ty||"gs"===t.ty?(r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===t.ty&&(r=new SVGNoStyleData(this,t,n)),"st"!==t.ty&&"gs"!==t.ty||(i.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),i.setAttribute("fill-opacity","0"),1===t.lj&&i.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&i.setAttribute("fill-rule","evenodd"),t.ln&&i.setAttribute("id",t.ln),t.cl&&i.setAttribute("class",t.cl),t.bm&&(i.style["mix-blend-mode"]=getBlendM
vendor: 6,153 bytes, line 2
2ode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var i=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,n,i,o,a){var s,l,c,u,h,p,f=[].concat(o),d=t.length-1,m=[],y=[];for(s=d;s>=0;s-=1){if((p=this.searchProcessedElement(t[s]))?e[s]=r[p-1]:t[s]._render=a,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)p?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],i),t[s]._render&&e[s].style.pElem.parentNode!==n&&n.appendChild(e[s].style.pElem),m.push(e[s].style);else if("gr"===t[s].ty){if(p)for(c=e[s].it.length,l=0;l<c;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,i+1,f,a),t[s]._render&&e[s].gr.parentNode!==n&&n.appendChild(e[s].gr)}else"tr"===t[s].ty?(p||(e[s]=this.createTransformElement(t[s],n)),u=e[s].transform,f.push(u)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(p||(e[s]=this.createShapeElement(t[s],f,i)),this.setElementStyles(e[s])):"tm"===t[s].ty||"rd"===t[s].ty||"ms"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(p?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),y.push(h)):"rp"===t[s].ty&&(p?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),a=!1),y.push(h));this.addProcessedElement(t[s],s+1)}for(d=m.length,s=0;s<d;s+=1)m[s].closed=!0;for(d=y.length,s=0;s<d;s+=1)y[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,n=t.length;r<=n-1&&!(r===n-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,n=[],i=0,o=t.length,a=!1;i<o;)e=t.charCodeAt(i),FontManager.isCombinedCharacter(e)?n[n.length-1]+=t.charAt(i):e>=55296&&e<=56319?(r=t.charCodeAt(i+1))>
vendor: 5,654 bytes, line 2
2=56320&&r<=57343?(a||FontManager.isModifier(e,r)?(n[n.length-1]+=t.substr(i,2),a=!1):n.push(t.substr(i,2)),i+=1):n.push(t.charAt(i)):e>56319?(r=t.charCodeAt(i+1),FontManager.isZeroWidthJoiner(e,r)?(a=!0,n[n.length-1]+=t.substr(i,2),i+=1):n.push(t.charAt(i))):FontManager.isZeroWidthJoiner(e)?(n[n.length-1]+=t.charAt(i),a=!0):n.push(t.charAt(i)),i+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,n,i,o,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],h=0,p=c.m.g,f=0,d=0,m=0,y=[],g=0,v=0,b=l.getFontByName(t.f),w=0,x=getFontProperties(b);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var S,_=t.tr/1e3*t.finalSize;if(t.sz)for(var E,T,P=!0,k=t.sz[0],C=t.sz[1];P;){E=0,g=0,r=(T=this.buildFinalText(t.t)).length,_=t.tr/1e3*t.finalSize;var M=-1;for(e=0;e<r;e+=1)S=T[e].charCodeAt(0),n=!1," "===T[e]?M=e:13!==S&&3!==S||(g=0,n=!0,E+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(T[e],b.fStyle,b.fFamily),w=n?0:s.w*t.finalSize/100):w=l.measureText(T[e],t.f,t.finalSize),g+w>k&&" "!==T[e]?(-1===M?r+=1:e=M,E+=t.finalLineHeight||1.2*t.finalSize,T.splice(e,M===e?1:0,"\r"),M=-1,g=0):(g+=w,g+=_);E+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&C<E?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=T,r=t.finalText.length,P=!1)}g=-_,w=0;var D,A=0;for(e=0;e<r;e+=1)if(n=!1,13===(S=(D=t.finalText[e]).charCodeAt(0))||3===S?(A=0,y.push(g),v=g>v?g:v,g=-2*_,i="",n=!0,m+=1):i=D,l.chars?(s=l.getCharData(D,b.fStyle,l.getFontByName(t.f).fFamily),w=n?0:s.w*t.finalSize/100):w=l.measureText(i,t.f,t.finalSize)," "===D?A+=w+_:(g+=w+_+A,A=0),u.push({l:w,an:w,add:f,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==p){if(f+=w,""===i||" "===i||e===r-1){for(""!==i&&" "!==i||(f-=w);d<=e;)u[d].an=f,u[d].ind=h,u[d].extra=w,d+=1;h+=1,f=0}}else if(3==p){if(f+=w,""===i||e===r-1){for(""===i&&(f-=w);d<=e;)u[d].an=f,u[d].ind=h,u[d].extra=w,d+=1;f=0,h+=1}}else u[h].ind=h,u[h].extra=0,h+=1;if(t.l=u,v=g>v?g:v,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var O,L,I,F,R=c.a;a=R.length;var j=[];for(o=0;o<a;o+=1){for((O=R[o]).a.sc&&(t.strokeColorAnim=!0),O.a.sw&&(t.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(t.fillColorAnim=!0),F=0,I=O.s.b,e=0;e<r;e+=1)(L=u[e]).anIndexes[o]=F,(1==I&&""!==L.val||2==I&&""!==L.val&&" "!==L.val||3==I&&(L.n||" "==L.val||e==r-1)||4==I&&(L.n||e==r-1))&&(1===O.s.rn&&j.push(F),F+=1);c.a[o].s.totalChars=F;var B,V=-1;if(1===O.s.rn)for(e=0;e<r;e+=1)V!=(L=u[e]).anIndexes[o]&&(V=L.anIndexes[o],B=j.splice(Math.floor(Math.random()*j.length),1)[0]),L.anIndexes[o]=B}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,o,a,s).get,c=0,u=this.finalS,h=this.finalE,p=this.data.sh;if(2===p)c=l(c=h===u?n>=h?1:0:t(0,e(.5/(h-u)+(n-u)/(h-u),1)));else if(3===p)c=l(c=h===u?n>=h?0:1:1-t(0,e(.5/(h-u)+(n-u)/(h-u),1)));else if(4===p)h===u?c=0:(c=t(0,e(.5/(h-u)+(n-u)/(h-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===p){if(h===u)c=0;else{var f=h-u,d=-f/2+(n=e(t(0,n+.5-u),h-u)),m=f/2;c=Math.sqrt(1-d*d/(m*m))}c=l(c)}else 6===p?(h===u?c=0:(n=e(t(0,n+.5-u),h-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(h-u)))/2),c=l(c)):(n>=r(u)&&(c=t(0,e(n-u<0?e(h,1)-(u-n):h-n,1))),c=l(c));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;c<g?c=0:(c=(c-g)/y)>1&&(c=1)}return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,n=this.s.v/e+r,i=this.e.v/e+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(t,e,r){return new n(t,e,r)}}}();
vendor: 10,497 bytes, line 2
2function TextAnimatorDataProperty(t,e,r){var n={propType:!1},i=PropertyFactory.getProp,o=e.a;this.a={r:o.r?i(t,o.r,0,degToRads,r):n,rx:o.rx?i(t,o.rx,0,degToRads,r):n,ry:o.ry?i(t,o.ry,0,degToRads,r):n,sk:o.sk?i(t,o.sk,0,degToRads,r):n,sa:o.sa?i(t,o.sa,0,degToRads,r):n,s:o.s?i(t,o.s,1,.01,r):n,a:o.a?i(t,o.a,1,0,r):n,o:o.o?i(t,o.o,0,.01,r):n,p:o.p?i(t,o.p,1,0,r):n,sw:o.sw?i(t,o.sw,0,0,r):n,sc:o.sc?i(t,o.sc,1,0,r):n,fc:o.fc?i(t,o.fc,1,0,r):n,fh:o.fh?i(t,o.fh,0,0,r):n,fs:o.fs?i(t,o.fs,0,.01,r):n,fb:o.fb?i(t,o.fb,0,.01,r):n,t:o.t?i(t,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,n=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,a,s,l,c,u,h,p,f,d,m,y,g,v,b,w,x=this._moreOptions.alignment.v,S=this._animatorsData,_=this._textData,E=this.mHelper,T=this._renderType,P=this.renderedLetters.length,k=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var C,M=w.v;for(this._pathData.r.v&&(M=M.reverse()),a={tLength:0,segments:[]},o=M._length-1,g=0,i=0;i<o;i+=1)C=bez.buildBezierData(M.v[i],M.v[i+1],[M.o[i][0]-M.v[i][0],M.o[i][1]-M.v[i][1]],[M.i[i+1][0]-M.v[i+1][0],M.i[i+1][1]-M.v[i+1][1]]),a.tLength+=C.segmentLength,a.segments.push(C),g+=C.segmentLength;i=o,w.v.c&&(C=bez.buildBezierData(M.v[i],M.v[0],[M.o[i][0]-M.v[i][0],M.o[i][1]-M.v[i][1]],[M.i[0][0]-M.v[0][0],M.i[0][1]-M.v[0][1]]),a.tLength+=C.segmentLength,a.segments.push(C),g+=C.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,p=0,h=1,c=0,u=!0,m=a.segments,s<0&&w.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),h=(d=m[p=m.length-1].points).length-1;s<0;)s+=d[h].partialLength,(h-=1)<0&&(h=(d=m[p-=1].points).length-1);f=(d=m[p].points)[h-1],y=(l=d[h]).partialLength}o=k.length,r=0,n=0;var D,A,O,L,I,F=1.2*t.finalSize*.714,R=!0;O=S.length;var j,B,V,z,N,G,H,q,Y,$,W,X,U=-1,Z=s,Q=p,K=h,J=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,nt=0,it=2===t.j?-.5:-1,ot=0,at=!0;for(i=0;i<o;i+=1)if(k[i].n){for(rt&&(rt+=nt);ot<i;)k[ot].animatorJustifyOffset=rt,ot+=1;rt=0,at=!0}else{for(A=0;A<O;A+=1)(D=S[A].a).t.propType&&(at&&2===t.j&&(nt+=D.t.v*it),(I=S[A].s.getMult(k[i].anIndexes[A],_.a[A].s.totalChars)).length?rt+=D.t.v*I[0]*it:rt+=D.t.v*I*it);at=!1}for(rt&&(rt+=nt);ot<i;)k[ot].animatorJustifyOffset=rt,ot+=1}for(i=0;i<o;i+=1){if(E.reset(),z=1,k[i].n)r=0,n+=t.yOffset,n+=R?1:0,s=Z,R=!1,this._hasMaskedPath&&(h=K,f=(d=m[p=Q].points)[h-1],y=(l=d[h]).partialLength,c=0),tt="",W="",Y="",X="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==k[i].line){switch(t.j){case 1:s+=g-t.lineWidths[k[i].line];break;case 2:s+=(g-t.lineWidths[k[i].line])/2}J=k[i].line}U!==k[i].ind&&(k[U]&&(s+=k[U].extra),s+=k[i].an/2,U=k[i].ind),s+=x[0]*k[i].an*.005;var st=0;for(A=0;A<O;A+=1)(D=S[A].a).p.propType&&((I=S[A].s.getMult(k[i].anIndexes[A],_.a[A].s.totalChars)).length?st+=D.p.v[0]*I[0]:st+=D.p.v[0]*I),D.a.propType&&((I=S[A].s.getMult(k[i].anIndexes[A],_.a[A].s.totalChars)).length?st+=D.a.v[0]*I[0]:st+=D.a.v[0]*I);for(u=!0,this._pathData.a.v&&(s=.5*k[0].an+(g-this._pathData.f.v-.5*k[0].an-.5*k[k.length-1].an)*U/(o-1),s+=this._pathData.f.v);u;)c+y>=s+st||!d?(v=(s+st-c)/l.partialLength,B=f.point[0]+(l.point[0]-f.point[0])*v,V=f.point[1]+(l.point[1]-f.point[1])*v,E.translate(-x[0]*k[i].an*.005,-x[1]*F*.01),u=!1):d&&(c+=l.partialLength,(h+=1)>=d.length&&(h=0,m[p+=1]?d=m[p].points:w.v.c?(h=0,d=m[p=0].points):(c-=l.partialLength,d=null)),d&&(f=l,y=(l=d[h]).partialLength));j=k[i].an/2-k[i].add,E.translate(-j,0,0)}else j=k[i].an/2-k[i].add,E.translate(-j,0,0),E.translate(-x[0]*k[i].an*.005,-x[1]*F*.01,0);for(A=0;A<O;A+=1)(D=S[A].a).t.propType&&(I=S[A].s.getMult(k[i].anIndexes[A],_.a[A].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?I.length?s+=D.t.v*I[0]:s+=D.t.v*I:I.length?r+=D.t.v*I[0]:r+=D.t.v*I));for(t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(N=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),A=0;A<O;A+=1)(D=S[A].a).a.propType&&((I=S[A].s.getMult(k[i].anIndexes[A],_.a[A].s.totalChars)).length?E.translate(-D.a.v[0]*I[0],-D.a.v[1]*I[1],D.a.v[2]*I[2]):E.translate(-D.a.v[0]*I,-D.a.v[1]*I,D.a.v[2]*I));for(A=0;A<O;A+=1)(D=S[A].a).s.propType&&((I=S[A].s.getMult(k[i].anIndexes[A],_.a[A].s.totalChars)).length?E.scale(1+(D.s.v[0]-1)*I[0],1+(D.s.v[1]-1)*I[1],1):E.scale(1+(D.s.v[0]-1)*I,1+(D.s.v[1]-1)*I,1));for(A=0;A<O;A+=1){if(D=S[A].a,I=S[A].s.getMult(k[i].anIndexes[A],_.a[A].s.totalChars),D.sk.propType&&(I.length?E.skewFromAxis(-D.sk.v*I[0],D.sa.v*I[1]):E.skewFromAxis(-D.sk.v*I,D.sa.v*I)),D.r.propType&&(I.length?E.rotateZ(-D.r.v*I[2]):E.rotateZ(-D.r.v*I)),D.ry.propType&&(I.length?E.rotateY(D.ry.v*I[1]):E.rotateY(D.ry.v*I)),D.rx.propType&&(I.length?E.rotateX(D.rx.v*I[0]):E.rotateX(D.rx.v*I)),D.o.propType&&(I.length?z+=(D.o.v*I[0]-z)*I[0]:z+=(D.o.v*I-z)*I),t.strokeWidthAnim&&D.sw.propType&&(I.length?G+=D.sw.v*I[0]:G+=D.sw.v*I),t.strokeColorAnim&&D.sc.propType)for(q=0;q<3;q+=1)I.length?N[q]+=(D.sc.v[q]-N[q])*I[0]:N[q]+=(D.sc.v[q]-N[q])*I;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(q=0;q<3;q+=1)I.length?H[q]+=(D.fc.v[q]-H[q])*I[0]:H[q]+=(D.fc.v[q]-H[q])*I;D.fh.propType&&(H=I.length?addHueToRGB(H,D.fh.v*I[0]):addHueToRGB(H,D.fh.v*I)),D.fs.propType&&(H=I.length?addSaturationToRGB(H,D.fs.v*I[0]):addSaturationToRGB(H,D.fs.v*I)),D.fb.propType&&(H=I.length?addBrightnessToRGB(H,D.fb.v*I[0]):addBrightnessToRGB(H,D.fb.v*I))}}for(A=0;A<O;A+=1)(D=S[A].a).p.propType&&(I=S[A].s.getMult(k[i].anIndexes[A],_.a[A].s.totalChars),this._hasMaskedPath?I.length?E.translate(0,D.p.v[1]*I[0],-D.p.v[2]*I[1]):E.translate(0,D.p.v[1]*I,-D.p.v[2]*I):I.length?E.translate(D.p.v[0]*I[0],D.p.v[1]*I[1],-D.p.v[2]*I[2]):E.translate(D.p.v[0]*I,D.p.v[1]*I,-D.p.v[2]*I));if(t.strokeWidthAnim&&(Y=G<0?0:G),t.strokeColorAnim&&($="rgb("+Math.round(255*N[0])+","+Math.round(255*N[1])+","+Math.round(255*N[2])+")"),t.fillColorAnim&&t.fc&&(W="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(E.translate(0,-t.ls),E.translate(0,x[1]*F*.01+n,0),this._pathData.p.v){b=(l.point[1]-f.point[1])/(l.point[0]-f.point[0]);var lt=180*Math.atan(b)/Math.PI;l.point[0]<f.point[0]&&(lt+=180),E.rotate(-lt*Math.PI/180)}E.translate(B,V,0),s-=x[0]*k[i].an*.005,k[i+1]&&U!==k[i+1].ind&&(s+=k[i].an/2,s+=.001*t.tr*t.finalSize)}else{switch(E.translate(r,n,0),t.ps&&E.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:E.translate(k[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[k[i].line]),0,0);break;case 2:E.translate(k[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[k[i].line])/2,0,0)}E.translate(0,-t.ls),E.translate(j,0,0),E.translate(x[0]*k[i].an*.005,x[1]*F*.01,0),r+=k[i].l+.001*t.tr*t.finalSize}"html"===T?tt=E.toCSS():"svg"===T?tt=E.to2dCSS():et=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],X=z}P<=i?(L=new LetterProps(X,Y,$,W,tt,et),this.renderedLetters.push(L),P+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[i],this.lettersChangedFlag=L.update(X,Y,$,W,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,n,i=e.length,o="";for(r=0;r<i;r+=1)"sh"===e[r].ty&&(n=e[r].ks.k,o+=buildShapeString(n,n.i.length,!0,t));return o},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,n,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(n,i,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};
vendor: 7,457 bytes, line 2
2var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=e.title,this.svgElement.appendChild(n),r+=i}if(e&&e.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=e.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,n=[],i="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(i),i=""):i+=t[e],e+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=e,n.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var c=this.mHelper,u=this.data.singleShape,h=0,p=0,f=!0,d=.001*r.tr*r.finalSize;if(!u||l||r.sz){var m,y=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!u||0===t){if(a=y>t?this.textSpans[t].span:createNS(l?"g":"text"),y<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var g=createNS("g");a.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),u&&(s[t].n&&(h=-d,p+=r.yOffset,p+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(r,c,s[t].line,h,p),h+=s[t].l||0,h+=d),l){var v;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var w=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(w.layerElement),w.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var x=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",d);var _=this.buildTextContents(r.finalText);for(e=_.length,p=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=_[t],a.setAttribute("x",0),a.setAttribute("y",p),a.style.display="inherit",x.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,p+=r.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,n,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(r=o[t],n=this.textSpans[t].span,(i=this.textSpans[t].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("op
2acity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=e[n].getMatte(this.layers[t].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[n].getMatte(this.layers[e].tt);t.setMatte(i);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var n,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&
2(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVContextData.prototype.popTransform=function(){var t,e=this.saved[this.cArrPos],r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=e[t];return e},CVContextData.prototype.popOpacity=function(){var t=this.savedOp[this.cArrPos];return this.cO=t,t},CVContextData.prototype.pop=function(){return this.cArrPos-=1,{transform:this.popTransform(),opacity:this.popOpacity()}},CVContextData.prototype.push=function(){var t,e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.saved[this.cArrPos];for(t=0;t<16;t+=1)r[t]=e[t];this.savedOp[this.cArrPos]=this.cO,this.cArrPos+=1},CVContextData.prototype.getTransform=function(){return this.cTr},CVContextData.prototype.getOpacity=function(){return this.cO},CVContextData.prototype.setOpacity=function(t){this.cO=t},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,n="_";for(e=0;e<r;e+=1)n+=t[e].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(t,e){for(var r,n=0,i=t.transforms.length,o=e;n<i&&!e;){if(t.transforms[n].transform.mProps._mdf){o=!0;break}n+=1}if(o)for(t.finalTransform.reset(),n=i-1;n>=0;n-=1)r=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=o},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,r=null,n=null;function i(){var i,o,a;e||(i=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",t),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(a),i.appendChild(o),i.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),e=createTag("canvas"),(r=e.getContext("2d")).filter="url
2(#"+t+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return e||i(),e.width=n.width,e.height=n.height,r.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var r=createTag("canvas");return r.width=t,r.height=e,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas};function CVEffects(){}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),t=0;t<a;t+=1)if("n"!==this.masksProperties[t].mode){var s;this.masksProperties[t].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[t].v,e=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(e[0],e[1]);var l=n._length;for(s=1;s<l;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===e.ty?o=5:"el"===e.ty?o=6:"sr"===e.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,o,t);var a,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(a={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(a),r[i].elements.push(a))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 1,135 bytes, line 2
2w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 4,343 bytes, line 2
2w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,t.pe,0,0,this),t.ks.p.s?(this.px=n(this,t.ks.p.x,1,0,this),this.py=n(this,t.ks.p.y,1,0,this),this.pz=n(this,t.ks.p.z,1,0,this)):this.p=n(this,t.ks.p,1,0,this),t.ks.a&&(this.a=n(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var i,o=t.ks.or.k.length;for(i=0;i<o;i+=1)t.ks.or.k[i].to=null,t.ks.or.k[i].ti=null}this.or=n(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,t.ks.rx,0,degToRads,this),this.ry=n(this,t.ks.ry,0,degToRads,this),this.rz=n(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.t
vendor: 14,184 bytes, line 2
2y,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},n={};if("fl"===t.ty||"st"===t.ty?(n.c=PropertyFactory.getProp(this,t.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(n.s=PropertyFactory.getProp(this,t.s,1,null,this),n.e=PropertyFactory.getProp(this,t.e,1,null,this),n.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,t.g,this)),n.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],1==t.lj&&(r.ml=t.ml),n.w=PropertyFactory.getProp(this,t.w,0,null,this),n.w.k||(r.wi=n.w.v),t.d){var i=new DashProperty(this,t.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,n,i){var o,a,s,l,c,u,h=t.length-1,p=[],f=[],d=[].concat(i);for(o=h;o>=0;o-=1){if((l=this.searchProcessedElement(t[o]))?e[o]=r[l-1]:t[o]._shouldRender=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty)l?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],d),p.push(e[o].style);else if("gr"===t[o].ty){if(l)for(s=e[o].it.length,a=0;a<s;a+=1)e[o].prevViewData[a]=e[o].it[a];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,n,d)}else"tr"===t[o].ty?(l||(u=this.createTransformElement(t[o]),e[o]=u),d.push(e[o]),this.addTransformToStyleList(e[o])):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?l||(e[o]=this.createShapeElement(t[o])):"tm"===t[o].ty||"rd"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(l?(c=e[o]).closed=!1:((c=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=c,this.shapeModifiers.push(c)),f.push(c)):"rp"===t[o].ty&&(l?(c=e[o]).closed=!0:(c=ShapeModifiers.getModifier(t[o].ty),e[o]=c,c.init(this,t,o,e),this.shapeModifiers.push(c),n=!1),f.push(c));this.addProcessedElement(t[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),h=f.length,o=0;o<h;o+=1)f[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,n,i,o,a,s,l,c=this.stylesList.length,u=this.globalData.renderer,h=this.globalData.canvasContext;for(t=0;t<c;t+=1)if(("st"!==(s=(l=this.stylesList[t]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=l.elements,"st"===s||"gs"===s?(h.strokeStyle="st"===s?l.co:l.grd,h.lineWidth=l.wi,h.lineCap=l.lc,h.lineJoin=l.lj,h.miterLimit=l.ml||0):h.fillStyle="fl"===s?l.co:l.grd,u.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&h.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),r=o.length,e=0;e<r;e+=1){for("st"!==s&&"gs"!==s||(h.beginPath(),l.da&&(h.setLineDash(l.da),h.lineDashOffset=l.do)),i=(a=o[e].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?h.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?h.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):h.closePath();"st"!==s&&"gs"!==s||(h.stroke(),l.da&&h.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&h.fill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,n){var i,o;for(o=t,i=e.length-1;i>=0;i-=1)"tr"===e[i].ty?(o=r[i].transform,this.renderShapeTransform(t,o)):"sh"===e[i].ty||"el"===e[i].ty||"rc"===e[i].ty||"sr"===e[i].ty?this.renderPath(e[i],r[i]):"fl"===e[i].ty?this.renderFill(e[i],r[i],o):"st"===e[i].ty?this.renderStroke(e[i],r[i],o):"gf"===e[i].ty||"gs"===e[i].ty?this.renderGradientFill(e[i],r[i],o):"gr"===e[i].ty?this.renderShape(o,e[i].it,r[i].it):e[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,n,i,o=t.trNodes,a=e.paths,s=a._length;o.length=0;var l=t.transforms.finalTransform;for(i=0;i<s;i+=1){var c=a.shapes[i];if(c&&c.v){for(n=c._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===n&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&n&&(o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),o.push({t:"z"}))}}t.trNodes=o}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,n=e.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var n,i=e.style;if(!i.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var o,a=this.globalData.canvasContext,s=e.s.v,l=e.e.v;if(1===t.t)n=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),h=e.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var p=c*h,f=Math.cos(u+e.a.v)*p+s[0],d=Math.sin(u+e.a.v)*p+s[1];n=a.createRadialGradient(f,d,0,s[0],s[1],c)}var m=t.g.p,y=e.g.c,g=1;for(o=0;o<m;o+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*o+1]),n.addColorStop(y[4*o]/100,"rgba("+y[4*o+1]+","+y[4*o+2]+","+y[4*o+3]+","+g+")");i.grd=n}i.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var n=e.style,i=e.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var n,i,o,a,s,l,c,u,h,p,f,d,m=this.globalData.fontManager.getFontByName(t.f),y=t.l,g=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,i=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,w=0,x=0,S=!0,_=0;for(n=0;n<i;n+=1){a=(o=this.globalData.fontManager.getCharData(t.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&o.data||{},g.reset(),v&&y[n].n&&(w=-b,x+=t.yOffset,x+=S?1:0,S=!1),h=(c=a.shapes?a.shapes[0].it:[]).length,g.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,g,y[n].line,w,x),f=createSizedArray(h-1);var E=0;for(u=0;u<h;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,p=c[u].ks.k,d=[],s=1;s<l;s+=1)1===s&&d.push(g.applyToX(p.v[0][0],p.v[0][1],0),g.applyToY(p.v[0][0],p.v[0][1],0)),d.push(g.applyToX(p.o[s-1][0],p.o[s-1][1],0),g.applyToY(p.o[s-1][0],p.o[s-1][1],0),g.applyToX(p.i[s][0],p.i[s][1],0),g.applyToY(p.i[s][0],p.i[s][1],0),g.applyToX(p.v[s][0],p.v[s][1],0),g.applyToY(p.v[s][0],p.v[s][1],0));d.push(g.applyToX(p.o[s-1][0],p.o[s-1][1],0),g.applyToY(p.o[s-1][0],p.o[s-1][1],0),g.applyToX(p.i[0][0],p.i[0][1],0),g.applyToY(p.i[0][0],p.i[0][1],0),g.applyToX(p.v[0][0],p.v[0][1],0),g.applyToY(p.v[0][0],p.v[0][1],0)),f[E]=d,E+=1}v&&(w+=y[n].l,w+=b),this.textSpans[_]?this.textSpans[_].elem=f:this.textSpans[_]={elem:f},_+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,n,i,o,a=this.canvasContext;a.font=this.values.fValue,a.lineCap="butt",a.lineJoin="miter",a.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;e=c.length;var u,h,p=null,f=null,d=null;for(t=0;t<e;t+=1)if(!c[t].n){if((s=l[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?p!==s.fc&&(p=s.fc,a.fillStyle=s.fc):p!==this.values.fill&&(p=this.values.fill,a.fillStyle=this.values.fill),n=(u=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(h=u[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?d!==s.sw&&(d=s.sw,a.lineWidth=s.sw):d!==this.values.sWidth&&(d=this.values.sWidth,a.lineWidth=this.values.sWidth),s&&s.sc?f!==s.sc&&(f=s.sc,a.strokeStyle=s.sc):f!==this.values.stroke&&(f=this.values.stroke,a.strokeStyle=this.values.stroke),n=(u=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(h=u[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}
vendor: 6,232 bytes, line 2
2s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,n=t.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?e=(r=o)*s:r=(e=i)/s,n.drawImage(this.img,(i-e)/2,(o-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.getTransform(),r=e.props;this.transformMat.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]),e.cloneFromProps(this.transformMat.props);var n=e.props;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){var e=this.contextData.getOpacity();if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=e);e*=t<0?0:t,this.contextData.setOpacity(e),this.globalData.currentGlobalAlpha!==e&&(this.canvasContext.globalAlpha=e,this.globalData.currentGlobalAlpha=e)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){this.renderConfig.clearCanvas?(t&&this.canvasContext.save(),this.contextData.push()):this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over");var e=this.contextData.pop(),r=e.transform,n=e.opacity;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),this.globalData.currentGlobalAlpha!==n&&(this.canvasContext.globalAlpha=n,this.globalData.currentGlobalAlpha=n)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,n,i,o;if(this.reset(),t?(r=t,n=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.t
vendor: 33,477 bytes, line 2
2y="YMid"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<n;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,n,i,o,a,s=t.sh.v,l=t.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[r+1]),a=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(n,i,o,a,e);s.c&&(n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(n,i,o,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,n,i){this.getBoundsOfCurve(t,e,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,n){for(var i,o,a,s,l,c,u,h=[[t[0],n[0]],[t[1],n[1]]],p=0;p<2;++p)o=6*t[p]-12*e[p]+6*r[p],i=-3*t[p]+9*e[p]-9*r[p]+3*n[p],a=3*e[p]-3*t[p],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&h[p].push(this.calculateF(s,t,e,r,n,p)):(l=o*o-4*a*i)>=0&&((c=(-o+bmSqrt(l))/(2*i))>0&&c<1&&h[p].push(this.calculateF(c,t,e,r,n,p)),(u=(-o-bmSqrt(l))/(2*i))>0&&u<1&&h[p].push(this.calculateF(u,t,e,r,n,p))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(t,e,r,n,i,o){return bmPow(1-t,3)*e[o]+3*bmPow(1-t,2)*t*r[o]+3*(1-t)*bmPow(t,2)*n[o]+bmPow(t,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var n=0;n<t.keyframes.length;n+=1){var i=t.keyframes[n].s;i>r&&(r=i)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var n,i,o=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{e.fontFamily=o.fFamily;var a=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=a}var l,c,u,h=t.l;i=h.length;var p,f=this.mHelper,d="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var y,g=this.globalData.fontManager.getCharData(t.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(y=g?g.data:null,f.reset(),y&&y.shapes&&y.shapes.length&&(p=y.shapes[0].it,f.scale(t.finalSize/100,t.finalSize/100),d=this.createPathShape(f,p),l.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),y&&y.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute("width",v.width+2),u.setAttribute("height",v.height+2),u.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=u.style,w="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=w,b.webkitTransform=w,h[n].yOffset=v.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=h[n].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var x=l.style,S="translate3d(0,"+-t.finalSize/1.2+"px,0)";x.transform=S,x.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,o,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(n=c.length,r=0;r<n;r+=1)c[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],i=l[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=h,t.webkitTransform=h}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,n,i=this.comp.threeDElements.length;for(t=0;t<i;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){r=e.perspectiveElem.style,n=e.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var h,p,f;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(h=this.comp.threeDElements[t]).type){if(u){var d=this.mat.toCSS();(f=h.container.style).transform=d,f.webkitTransform=d}this.pe._mdf&&((p=h.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var i,o,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===e){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=s,n.webkitTransform=s}i.appendChild(o);var l={container:o,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,n="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==n&&(n="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==n&&(n="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,n=this.threeDElements.length;r<n;){if(e<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[r].container.insertBefore(t,i):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,n=e.style;n.width=t.w+"px",n.height=t.h+"px",this.resizerElem=e,styleDiv(e),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=o,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=i/this.globalData.compSize.w,e=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(t=o/this.globalData.compSize.h,e=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t<n;t+=1){var i=this.threeDElements[t].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,n=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,n=0;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var r=0,n=t.layers.length;r<n;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions=function(){var t={initExpressions:function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}}};return t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,n=createSizedArray(e.viewData.length),i=e.viewData.length;for(r=0;r<i;r+=1)n[r]=new t(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<i;){if(e.masksProperties[r].nm===t)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(n){if(!t.numKeys)return 0;var i="";i="s"in e.keyframes[n-1]?e.keyframes[n-1].s:"e"in e.keyframes[n-2]?e.keyframes[n-2].e:e.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=e.keyframes[n-1].t/e.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function n(){return t}return function(i){return i?"unidimensional"===i.propType?function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.pv*n,o=new Number(i);return o.value=i,r(o,e,"unidimensional"),function(){return e.k&&e.getValue(),i=e.v*n,o.value!==i&&((o=new Number(i)).value=i,r(o,e,"unidimensional")),o}}(i):function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.data&&t.data.l||t.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,r(o,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<i;e+=1)a[e]=t.v[e]*n,o[e]=a[e];return o}}(i):n}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,n,i,o;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?o=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(i=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?o():[r(),n(),i?i():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,t)}function r(t,e){var r=this.getMatrix(e);return this.applyPoint(r,t)}function n(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,t)}function i(t,e){var r=this.getMatrix(e);return this.invertPoint(r,t)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function s(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(c){var u;function h(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=t,h.invertPoint=a,h.applyPoint=o,h.toWorld=r,h.toWorldVec=e,h.fromWorld=i,h.fromWorldVec=n,h.toComp=r,h.fromComp=s,h.sampleImage=l,h.sourceRectAtTime=c.sourceRectAtTime.bind(c),h._elem=c;var p=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),h.startTime=c.data.st,h.index=c.data.ind,h.source=c.data.refId,h.height=0===c.data.ty?c.data.h:100,h.width=0===c.data.ty?c.data.w:100,h.inPoint=c.data.ip/c.comp.globalData.frameRate,h.outPoint=c.data.op/c.comp.globalData.frameRate,h._name=c.data.nm,h.registerMaskInterface=function(t){h.mask=new MaskManagerInterface(t,c)},h.registerEffectsInterface=function(t){h.effect=t},h}}(),propertyGroupFactory=function(t,e){return function(r){return(r=void 0===r?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(t){return(t=void 0===t?1:t)<=0?r:e(t-1)}}
vendor: 8,849 bytes, line 2
2,EffectsExpressionInterface=function(){function t(r,n,i,o){function a(t){for(var e=r.ef,n=0,i=e.length;n<i;){if(t===e[n].nm||t===e[n].mn||t===e[n].ix)return 5===e[n].ty?c[n]:c[n]();n+=1}throw new Error}var s,l=propertyGroupFactory(a,i),c=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?c.push(t(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):c.push(e(n.effectElements[s],r.ef[s].ty,o,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),a.enabled=0!==r.en,a.active=a.enabled,a}function e(t,e,r,n){var i=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===e?r.comp.compInterface(t.p.v):i()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var n,i=[],o=e.data.ef,a=e.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(t(o[n],e.effectsManager.effectElements[n],r,e));var s=e.data.ef||[],l=function(t){for(n=0,a=s.length;n<a;){if(t===s[n].nm||t===s[n].mn||t===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(t,e,r){var n=e.sh;function i(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function t(t,a,p){var f,d=[],m=t?t.length:0;for(f=0;f<m;f+=1)"gr"===t[f].ty?d.push(e(t[f],a[f],p)):"fl"===t[f].ty?d.push(r(t[f],a[f],p)):"st"===t[f].ty?d.push(i(t[f],a[f],p)):"tm"===t[f].ty?d.push(o(t[f],a[f],p)):"tr"===t[f].ty||("el"===t[f].ty?d.push(s(t[f],a[f],p)):"sr"===t[f].ty?d.push(l(t[f],a[f],p)):"sh"===t[f].ty?d.push(ShapePathInterface(t[f],a[f],p)):"rc"===t[f].ty?d.push(c(t[f],a[f],p)):"rd"===t[f].ty?d.push(u(t[f],a[f],p)):"rp"===t[f].ty?d.push(h(t[f],a[f],p)):"gf"===t[f].ty?d.push(n(t[f],a[f],p)):d.push((t[f],a[f],function(){return null})));return d}function e(e,r,n){var i=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var o=function(e,r,n){var i,o=function(t){for(var e=0,r=i.length;e<r;){if(i[e]._name===t||i[e].mn===t||i[e].propertyIndex===t||i[e].ix===t||i[e].ind===t)return i[e];e+=1}return"number"==typeof t?i[t-1]:null};o.propertyGroup=propertyGroupFactory(o,n),i=t(e.it,r.it,o.propertyGroup),o.numProperties=i.length;var s=a(e.it[e.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=e.cix,o._name=e.nm,o}(e,r,i.propertyGroup),s=a(e.it[e.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return e.nm}}),i.numProperties=e.np,i.propertyIndex=e.ix,i.nm=e.nm,i.mn=e.mn,i}function r(t,e,r){function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(t,e,r){function n(t){return"Start Point"===t||"start point"===t?n.startPoint:"End Point"===t||"end point"===t?n.endPoint:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",r)),e.e.setGroupProperty(PropertyInterface("End Point",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(t,e,r){var n,i=propertyGroupFactory(c,r),o=propertyGroupFactory(l,i);function a(r){Object.defineProperty(l,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var s=t.d?t.d.length:0,l={};for(n=0;n<s;n+=1)a(n),e.d.dataProps[n].p.setGroupProperty(o);function c(t){return"Color"===t||"color"===t?c.color:"Opacity"===t||"opacity"===t?c.opacity:"Stroke Width"===t||"stroke width"===t?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),e.w.setGroupProperty(PropertyInterface("Stroke Width",i)),c}function o(t,e,r){function n(e){return e===t.e.ix||"End"===e||"end"===e?n.end:e===t.s.ix?n.start:e===t.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",i)),e.e.setGroupProperty(PropertyInterface("End",i)),e.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=t.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),n.mn=t.mn,n}function a(t,e,r){function n(e){return t.a.ix===e||"Anchor Point"===e?n.anchorPoint:t.o.ix===e||"Opacity"===e?n.opacity:t.p.ix===e||"Position"===e?n.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?n.rotation:t.s.ix===e||"Scale"===e?n.scale:t.sk&&t.sk.ix===e||"Skew"===e?n.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?n.skewAxis:null}var i=propertyGroupFactory(n,r);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),n.ty="tr",n.mn=t.mn,n.propertyGroup=r,n}function s(t,e,r){function n(e){return t.p.ix===e?n.position:t.s.ix===e?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=t.ix;var o="tm"===e.sh.ty?e.sh.prop:e.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:t.nm}}),n.mn=t.mn,n}function l(t,e,r){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.rotation:t.pt.ix===e?n.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?n.outerRadius:t.os.ix===e?n.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),t.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:t.nm}}),n.mn=t.mn,n}function c(t,e,r){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.roun
vendor: 8,044 bytes, line 2
2dness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:t.nm}}),n.mn=t.mn,n}function u(t,e,r){function n(e){return t.r.ix===e||"Round Corners 1"===e?n.radius:null}var i=propertyGroupFactory(n,r),o=e;return n.propertyIndex=t.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:t.nm}}),n.mn=t.mn,n}function h(t,e,r){function n(e){return t.c.ix===e||"Copies"===e?n.copies:t.o.ix===e||"Offset"===e?n.offset:null}var i=propertyGroupFactory(n,r),o=e;return n.propertyIndex=t.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:t.nm}}),n.mn=t.mn,n}return function(e,r,n){var i;function o(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?n:i[t-1];for(var e=0,r=i.length;e<r;){if(i[e]._name===t)return i[e];e+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return n})),i=t(e,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(t){var e,r;function n(t){return"ADBE Text Document"===t?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){t.textProperty.getValue();var n=t.textProperty.currentData.t;return n!==e&&(e=t.textProperty.currentData.t,(r=new String(n)).value=n||new String(n),Object.defineProperty(r,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),r}}),n};function _typeof$2(t){return _typeof$2="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},_typeof$2(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",r=t.getFootageData();function n(t){if(r[t])return e=t,"object"===_typeof$2(r=r[t])?n:r;var i=t.indexOf(e);if(-1!==i){var o=parseInt(t.substr(i+e.length),10);return"object"===_typeof$2(r=r[o])?n:r}return""}return function(){return e="",r=t.getFootageData(),n}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return _typeof$1="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},_typeof$1(t)}function seedRandom(t,e){var r=this,n=256,i="random",o=e.pow(n,6),a=e.pow(2,52),s=2*a,l=255;function c(t){var e,r=t.length,i=this,o=0,a=i.i=i.j=0,s=i.S=[];for(r||(t=[r++]);o<n;)s[o]=o++;for(o=0;o<n;o++)s[o]=s[a=l&a+t[o%r]+(e=s[o])],s[a]=e;i.g=function(t){for(var e,r=0,o=i.i,a=i.j,s=i.S;t--;)e=s[o=l&o+1],r=r*n+s[l&(s[o]=s[a=l&a+e])+(s[a]=e)];return i.i=o,i.j=a,r}}function u(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function h(t,e){var r,n=[],i=_typeof$1(t);if(e&&"object"==i)for(r in t)try{n.push(h(t[r],e-1))}catch(t){}return n.length?n:"string"==i?t:t+"\0"}function p(t,e){for(var r,n=t+"",i=0;i<n.length;)e[l&i]=l&(r^=19*e[l&i])+n.charCodeAt(i++);return f(e)}function f(t){return String.fromCharCode.apply(0,t)}e["seed"+i]=function(l,d,m){var y=[],g=p(h((d=!0===d?{entropy:!0}:d||{}).entropy?[l,f(t)]:null===l?function(){try{var e=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(e),f(e)}catch(e){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,f(t)]}}():l,3),y),v=new c(y),b=function(){for(var t=v.g(6),e=o,r=0;t<a;)t=(t+r)*n,e*=n,r=v.g(1);for(;t>=s;)t/=2,e/=2,r>>>=1;return(t+r)/e};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,p(f(v.S),t),(d.pass||m||function(t,r,n,o){return o&&(o.S&&u(o,v),t.state=function(){return u(v,{})}),n?(e[i]=t,r):t})(b,g,"global"in d?d.global:this==e,d.state)},p(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return _typeof="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},_typeof(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,n=t.length,i=[];for(r=0;r<n;r+=1)i[r]=-t[r];return i}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof(t),n=_typeof(e);if("string"===r||"string"===n)return t+e;if(isNumerable(r,t)&&isNumerable(n,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,o=t.length,a=e.length,s=[];i<o||i<a;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?s[i]=t[i]+e[i]:s[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return s}return 0}var add=sum;function sub(t,e){var r=_typeof(t),n=_typeof(e);if(isNumerable(r,t)&&isNumerable(n,e))return"string"===r&&(t=parseInt(t,10)),"string"===n&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,o=t.length,a=e.length,s=[];i<o||i<a;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?s[i]=t[i]-e[i]:s[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return s}return 0}function mul(t,e){var r,n,i,o=_typeof(t),a=_typeof(e);if(isNumerable(o,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t[n]*e;return r}if(isNumerable(o,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t*e[n];return r}return 0}function div(t,e){var r,n,i,o=_typeof(t),a=_typeof(e);if(isNumerable(o,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t[n]/e;return r}if(isNumerable(o,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t/e[n];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var n=r;r=e,e=n}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}
vendor: 7,567 bytes, line 2
2var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var n=Math.min(t.length,e.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(e[r]-t[r],2);return Math.sqrt(i)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,n=t[0],i=t[1],o=t[2],a=Math.max(n,i,o),s=Math.min(n,i,o),l=(a+s)/2;if(a===s)e=0,r=0;else{var c=a-s;switch(r=l>.5?c/(2-a-s):c/(a+s),a){case n:e=(i-o)/c+(i<o?6:0);break;case i:e=(o-n)/c+2;break;case o:e=(n-i)/c+4}e/=6}return[e,r,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,n,i=t[0],o=t[1],a=t[2];if(0===o)e=a,n=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;e=hue2rgb(l,s,i+1/3),r=hue2rgb(l,s,i),n=hue2rgb(l,s,i-1/3)}return[e,r,n,t[3]]}function linear(t,e,r,n,i){if(void 0!==n&&void 0!==i||(n=e,i=r,e=0,r=1),r<e){var o=r;r=e,e=o}if(t<=e)return n;if(t>=r)return i;var a,s=r===e?0:(t-e)/(r-e);if(!n.length)return n+(i-n)*s;var l=n.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=n[a]+(i[a]-n[a])*s;return c}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,n=e.length;t||(t=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=t[r]+o*(e[r]-t[r]);return i}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,n){var i,o=t.length,a=shapePool.newElement();a.setPathData(!!n,o);var s,l,c=[0,0];for(i=0;i<o;i+=1)s=e&&e[i]?e[i]:c,l=r&&r[i]?r[i]:c,a.setTripleAt(t[i][0],t[i][1],l[0]+t[i][0],l[1]+t[i][1],s[0]+t[i][0],s[1]+t[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)o[n]+=-e+2*e*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)c[n]=this.pv[n]+o[n]+(-e+2*e*BMMath.random())*l;return c}return this.pv+o[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(t,e,r,n,i){return applyEase(easeOutBez,t,e,r,n,i)}function easeIn(t,e,r,n,i){return applyEase(easeInBez,t,e,r,n,i)}function ease(t,e,r,n,i){return applyEase(easeInOutBez,t,e,r,n,i)}function applyEase(t,e,r,n,i,o){void 0===i?(i=r,o=n):e=(e-r)/(n-r),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(i)){var s,l=i.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(o[s]-i[s])*a+i[s];return c}return(o-i)*a+i}function nearestKey(t){var e,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(e=0;e<i-1;e+=1){if(t===data.k[e].t){r=e+1,n=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,n=data.k[e+1].t):(r=e+1,n=data.k[e].t);break}}-1===r&&(r=e+1,n=data.k[e].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(t){var e,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=i.length,r=0;r<n;r+=1)e[r]=i[r],e.value[r]=i[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKe
vendor: 13,099 bytes, line 2
2ys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),n=0;if(e.length){var i;for(i=0;i<e.length;i+=1)n+=Math.pow(r[i]-e[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,n=-.001,i=this.getValueAtTime(t),o=this.getValueAtTime(t+n);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(o[r]-i[r])/n;else e=(o-i)/n;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var n,i,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(r?i=u-(n=e?Math.abs(u-this.elem.comp.globalData.frameRate*e):Math.max(0,u-this.elem.data.ip)):((!e||e>c.length-1)&&(e=c.length-1),n=u-(i=c[c.length-1-e].t)),"pingpong"===t){if(Math.floor((l-i)/n)%2!=0)return this.getValueAtTime((n-(l-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0),d=Math.floor((l-i)/n);if(this.pv.length){for(a=(s=new Array(h.length)).length,o=0;o<a;o+=1)s[o]=(p[o]-h[o])*d+f[o];return s}return(p-h)*d+f}if("continue"===t){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),y=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-y[o])*((l-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-u)/.001*(m-y)}}return this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var n,i,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(r?i=u+(n=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-u)):((!e||e>c.length-1)&&(e=c.length-1),n=(i=c[e].t)-u),"pingpong"===t){if(Math.floor((u-l)/n)%2==0)return this.getValueAtTime(((u-l)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(u-l)%n+u)/this.comp.globalData.frameRate,0),d=Math.floor((u-l)/n)+1;if(this.pv.length){for(a=(s=new Array(h.length)).length,o=0;o<a;o+=1)s[o]=f[o]-(p[o]-h[o])*d;return s}return f-(p-h)*d}if("continue"===t){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),y=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-y[o])*(u-l)/.001;return s}return m+(m-y)*(u-l)/.001}}return this.getValueAtTime((n-((u-l)%n+u))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-t,a=e>1?(i+t-o)/(e-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<e;){if(n=this.getValueAtTime(o+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=n[l];else r+=n;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=e;else r/=e;return r}function n(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(t);e.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(t);e.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(t),o=this.sa.getValueAtTime(t);e.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),c=this.rx.getValueAtTime(t),u=this.or.getValueAtTime(t);e.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(t),p=this.py.getValueAtTime(t);if(this.data.p.z){var f=this.pz.getValueAtTime(t);e.translate(h*this.px.mult,p*this.py.mult,-f*this.pz.mult)}else e.translate(h*this.px.mult,p*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return e}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var a=o(t,e,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,s,l){var c=a(n,i,o,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=t,c.loopIn=e,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===i.a?i.k.length:0,c.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,i,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(t,e){this.k&&this.getValue();var r,n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0));var i=n._length,o=n[t],a=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===t||"o"===t?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,o=i.lengths,a=i.totalLength*t,s=0,l=o.length,c=0;s<l;){if(c+o[s].addedLength>a){var u=s,h=r.c&&s===l-1?0:s+1,p=(a-c)/o[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[h],r.o[u],r.i[h],p,o[s]);break}c+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(t,e,r){1==t?t=this.v.c:0==t&&(t=.999);var n=this.pointOnPath(t,e),i=this.pointOnPath(t+.001,e),o=i[0]-n[0],a=i[1]-n[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,n,i){var o=u(t,e,r,n,i);return o.propertyIndex=e.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,o):4===r&&expressionHelpers.searchExpressions(t,e.ks,o),o.k&&t.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var n={};return this.copyData(n,t),n.t=r.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,n,i=createNS("feMerge");for(i.setAttribute("result",t),n=0;n<e.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",e[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,r,n,i){this.filterManager=e;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",n+"_tint_1"),t.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),t.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,r,n){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),t.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,n){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,t.appendChild(o)}function SVGProLevelsFilter(t,e,r,n){this.filterManager=e;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5
vendor: 4,991 bytes, line 2
2].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),t.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(t,e,r,n,i){var o=e.container.globalData.renderConfig.filterSize,a=e.data.fs||o;t.setAttribute("x",a.x||o.x),t.setAttribute("y",a.y||o.y),t.setAttribute("width",a.width||o.width),t.setAttribute("height",a.height||o.height),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=c,t.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),t.appendChild(u);var h=this.createMergeNode(n,[n+"_drop_shadow_4",i]);t.appendChild(h)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<n;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(e),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,n,i=this.paths.length;for(e=0;e<i;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();o="0 0 0 "+l*a+" ";var c,u=l*(s-a),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(u/h);for(c=0;c<p;c+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*l+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("op
2acity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+e[0],o=n[1]+" "+r[1]+" "+e[1],a=n[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,n,i){for(var o,a,s=0,l=Math.min(t,e),c=Math.max(t,e),u=Array.call(null,{length:256}),h=0,p=i-n,f=e-t;s<=256;)a=(o=s/256)<=l?f<0?i:n:o>=c?f<0?n:i:n+p*Math.pow((o-t)/f,1/r),u[h]=a,h+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,n){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var i=createNS("feGaussianBlur");i.setAttribute("result",n),t.appendChild(i),this.feGaussianBlur=i}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var n,i=r.children,o=0,a=i.length;o<a&&i[o]!==t.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+e),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var i=t.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(e,r),o.appendChild(e.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,n=e.length;r<n;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:e,i=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())},497:()=>{}},t=>{var e=e=>t(t.s=e);
2e(497),e(511)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.