(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7642],{87608:function(t,e){var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&t.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){t.push(n.toString());continue}for(var s in n)i.call(n,s)&&n[s]&&t.push(s)}}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},47070:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Tt},tabs:function(){return Bt}});var i=n(53417),r=n(32223),o=n(94449),a=n(61250),s=n(29901);function l(t){if(t.constructor!==Array)throw new TypeError("Expected array.");if(16===t.length)return t;if(6===t.length){var e=c();return e[0]=t[0],e[1]=t[1],e[4]=t[2],e[5]=t[3],e[12]=t[4],e[13]=t[5],e}throw new RangeError("Expected array with either 6 or 16 values.")}function c(){for(var t=[],e=0;e<16;e++)e%5==0?t.push(1):t.push(0);return t}function u(t,e){for(var n=l(t),i=l(e),r=[],o=0;o<4;o++)for(var a=[n[o],n[o+4],n[o+8],n[o+12]],s=0;s<4;s++){var c=4*s,u=[i[c],i[c+1],i[c+2],i[c+3]],p=a[0]*u[0]+a[1]*u[1]+a[2]*u[2]+a[3]*u[3];r[o+c]=p}return r}var p=function(t){return"number"==typeof t},f=function(t){return"function"==typeof t},h=function(t){return"[object Object]"===Object.prototype.toString.call(t)},d=function(t){return Array.prototype.slice.apply(t)},g=function(t){var e=t.reduce((function(t,e){return t[e]=(t[e]||0)+1,t}),{});return Object.keys(e).filter((function(t){return e[t]>1}))};function m(t){return[].slice.call(arguments,1).forEach((function(e){if(e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}var v,y=function(t,e,n){return t+(e-t)*n},S={__proto__:null,isNumber:p,isFunction:f,isObject:h,toArray:d,getDuplicateValsAsStrings:g,assign:m,tweenProp:y},_="data-flip-id",E="data-inverse-flip-id",w="data-portal-key",b="data-exit-container",x=_,C=E,A="data-flip-config",O=w,I={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},j=function(t){return h(t)?t:Object.keys(I).indexOf(t)>-1?I[t]:{}};"undefined"!=typeof window&&(v=window.requestAnimationFrame);var P=v=v||function(t){window.setTimeout(t,1e3/60)},V=Date.now(),U="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()-V};function k(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var F=function(){function t(){}return t.prototype.run=function(){var t=this;P((function(){t.springSystem.loop(U())}))},t}(),M=function(){this.position=0,this.velocity=0},L=0,R=.001,N=function(){function t(t){this._id="s"+L++,this._springSystem=t,this.listeners=[],this._startValue=0,this._currentState=new M,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new M,this._restSpeedThreshold=.001,this._tempState=new M,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var e=t.prototype;return e.getId=function(){return this._id},e.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},e.setSpringConfig=function(t){return this._springConfig=t,this},e.getCurrentValue=function(){return this._currentState.position},e.getDisplacementDistanceForState=function(t){return Math.abs(this._endValue-t.position)},e.setEndValue=function(t){if(t===this._endValue)return this;if(this.prevEndValue=t,this._endValue===t&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=t,this._springSystem.activateSpring(this.getId());for(var e=0,n=this.listeners.length;e<n;e++){var i=this.listeners[e].onSpringEndStateChange;i&&i(this)}return this},e.setVelocity=function(t){return t===this._currentState.velocity||(this._currentState.velocity=t,this._springSystem.activateSpring(this.getId())),this},e.setCurrentValue=function(t){this._startValue=t,this._currentState.position=t;for(var e=0,n=this.listeners.length;e<n;e++){var i=this.listeners[e];i.onSpringUpdate&&i.onSpringUpdate(this)}return this},e.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},e.setOvershootClampingEnabled=function(t){return this._overshootClampingEnabled=t,this},e.isOvershooting=function(){var t=this._startValue,e=this._endValue;return this._springConfig.tension>0&&(t<e&&this.getCurrentValue()>e||t>e&&this.getCurrentValue()<e)},e.advance=function(t,e){var n=this.isAtRest();if(!n||!this._wasAtRest){var i=e;e>.064&&(i=.064),this._timeAccumulator+=i;for(var r,o,a,s,l,c,u=this._springConfig.tension,p=this._springConfig.friction,f=this._currentState.position,h=this._currentState.velocity,d=this._tempState.position,g=this._tempState.velocity;this._timeAccumulator>=R;)this._timeAccumulator-=R,this._timeAccumulator<R&&(this._previousState.position=f,this._previousState.velocity=h),o=u*(this._endValue-d)-p*h,s=u*(this._endValue-(d=f+(r=h)*R*.5))-p*(g=h+o*R*.5),c=u*(this._endValue-(d=f+(a=g)*R*.5))-p*(g=h+s*R*.5),d=f+(l=g)*R,f+=1/6*(r+2*(a+l)+(g=h+c*R))*R,h+=1/6*(o+2*(s+c)+(u*(this._endValue-d)-p*g))*R;this._tempState.position=d,this._tempState.velocity=g,this._currentState.position=f,this._currentState.velocity=h,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/R),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),n=!0);var m=!1;this._wasAtRest&&(this._wasAtRest=!1,m=!0);var v=!1;n&&(this._wasAtRest=!0,v=!0),this.notifyPositionUpdated(m,v)}},e.notifyPositionUpdated=function(t,e){var n=this;this.listeners.filter(Boolean).forEach((function(i){t&&i.onSpringActivate&&!n._onActivateCalled&&(i.onSpringActivate(n),n._onActivateCalled=!0),i.onSpringUpdate&&i.onSpringUpdate(n),e&&i.onSpringAtRest&&i.onSpringAtRest(n)}))},e.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},e.wasAtRest=function(){return this._wasAtRest},e.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||0===this._springConfig.tension)},e._interpolate=function(t){this._currentState.position=this._currentState.position*t+this._previousState.position*(1-t),this._currentState.velocity=this._currentState.velocity*t+this._previousState.velocity*(1-t)},e.addListener=function(t){return this.listeners.push(t),this},e.addOneTimeListener=function(t){var e=this;return Object.keys(t).forEach((function(n){var i;t[n]=(i=t[n],function(){i.apply(void 0,[].slice.call(arguments)),e.removeListener(t)})})),this.listeners.push(t),this},e.removeListener=function(t){return k(this.listeners,t),this},t}(),B=function(){function t(t){this.looper=t||new F,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var e=t.prototype;return e.createSpring=function(t,e){return this.createSpringWithConfig({tension:t,friction:e})},e.createSpringWithConfig=function(t){var e=new N(this);return this.registerSpring(e),e.setSpringConfig(t),e},e.getIsIdle=function(){return this._isIdle},e.registerSpring=function(t){this._springRegistry[t.getId()]=t},e.deregisterSpring=function(t){k(this._activeSprings,t),delete this._springRegistry[t.getId()]},e.advance=function(t,e){for(var n=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach((function(i){i.systemShouldAdvance()?i.advance(t/1e3,e/1e3):n._idleSpringIndices.push(n._activeSprings.indexOf(i))}));this._idleSpringIndices.length>0;){var i=this._idleSpringIndices.pop();i>=0&&this._activeSprings.splice(i,1)}},e.loop=function(t){var e;-1===this._lastTimeMillis&&(this._lastTimeMillis=t-1);var n=t-this._lastTimeMillis;this._lastTimeMillis=t;var i=0,r=this.listeners.length;for(i=0;i<r;i++)(e=this.listeners[i]).onBeforeIntegrate&&e.onBeforeIntegrate(this);for(this.advance(t,n),0===this._activeSprings.length&&(this._isIdle=!0,this._lastTimeMillis=-1),i=0;i<r;i++)(e=this.listeners[i]).onAfterIntegrate&&e.onAfterIntegrate(this);this._isIdle||this.looper.run()},e.activateSpring=function(t){var e=this._springRegistry[t];-1===this._activeSprings.indexOf(e)&&this._activeSprings.push(e),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},t}(),T=new B,z=function(t){var e=t.springConfig,n=e.overshootClamping,i=t.getOnUpdateFunc,r=t.onAnimationEnd,o=t.onSpringActivate,a=T.createSpring(e.stiffness,e.damping);a.setOvershootClampingEnabled(!!n);var s={onSpringActivate:o,onSpringAtRest:function(){a.destroy(),r()},onSpringUpdate:i({spring:a,onAnimationEnd:r})};return a.addListener(s),a},D=function(t){var e=z(t);return e.setEndValue(1),e},K=function(t,e){if(void 0===e&&(e={}),t&&t.length){e.reverse&&t.reverse();var n,i="number"!=typeof(n=e.speed)?1.1:1+Math.min(Math.max(5*n,0),5),r=1/Math.max(Math.min(t.length,100),10),o=t.map((function(t,e){var n=t.getOnUpdateFunc;return t.getOnUpdateFunc=function(t){var a=n(t);return function(t){var n=t.getCurrentValue();(n=n<.01?0:n>.99?1:n)>=r&&o[e+1]&&o[e+1](Math.max(Math.min(n*i,1),0)),a(t)}},t})).map((function(t){var e=z(t);if(e)return e.setEndValue.bind(e)})).filter(Boolean);o[0]&&o[0](1)}},H=function(t){return[0,1,4,5,12,13].map((function(e){return t[e]}))},Z=function(t){return t.top<window.innerHeight&&t.bottom>0&&t.left<window.innerWidth&&t.right>0};function q(t){return JSON.parse(t.dataset.flipConfig||"{}")}var W=function(t,e){var n;return m(t,((n={})[e[0]]=e[1],n))},J=function(t,e){return d(e?document.querySelectorAll("["+w+'="'+e+'"]'):t.querySelectorAll("["+_+"]"))},X=function(t){return t.map((function(t){return[t,t.getBoundingClientRect()]}))},Y=function(t){var e,n=t.cachedOrderedFlipIds,i=void 0===n?[]:n,r=t.inProgressAnimations,o=void 0===r?{}:r,a=t.flippedElementPositionsBeforeUpdate,s=void 0===a?{}:a,h=t.flipCallbacks,v=void 0===h?{}:h,S=t.containerEl,b=t.applyTransformOrigin,x=t.spring,C=t.debug,A=t.portalKey,O=t.staggerConfig,P=void 0===O?{}:O,V=t.decisionData,U=void 0===V?{}:V,k=t.handleEnterUpdateDelete,F=t.onComplete,M=t.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var L,R=X(J((L={element:S,portalKey:A}).element,L.portalKey)).map((function(t){var e=t[0],n=t[1],i=window.getComputedStyle(e);return[e.dataset.flipId,{element:e,rect:n,opacity:parseFloat(i.opacity),transform:i.transform}]})).reduce(W,{}),N=function(t){var e=t.containerEl,n=t.portalKey;return n?function(t){return function(e){return d(document.querySelectorAll("["+w+'="'+t+'"]'+e))}}(n):e?function(t){var e=Math.random().toFixed(5);return t.dataset.flipperId=e,function(n){return d(t.querySelectorAll('[data-flipper-id="'+e+'"] '+n))}}(e):function(){return[]}}({containerEl:S,portalKey:A}),B=(e=N,function(t){return e("["+_+'="'+t+'"]')[0]}),T=function(t){return s[t]&&R[t]},z=Object.keys(s).concat(Object.keys(R)).filter((function(t){return!T(t)})),Y={flipCallbacks:v,getElement:B,flippedElementPositionsBeforeUpdate:s,flippedElementPositionsAfterUpdate:R,inProgressAnimations:o,decisionData:U},G=function(t){var e,n=t.unflippedIds,i=t.flipCallbacks,r=t.getElement,o=t.flippedElementPositionsBeforeUpdate,a=t.flippedElementPositionsAfterUpdate,s=t.inProgressAnimations,l=t.decisionData,c=n.filter((function(t){return a[t]})).filter((function(t){return i[t]&&i[t].onAppear})),u=n.filter((function(t){return o[t]&&i[t]&&i[t].onExit})),p=new Promise((function(t){e=t})),f=[],h=0,d=u.map((function(t,n){var r=o[t].domDataForExitAnimations,a=r.element,c=r.parent,u=r.childPosition,p=u.top,d=u.left,g=u.width,m=u.height;"static"===getComputedStyle(c).position&&(c.style.position="relative"),a.style.transform="matrix(1, 0, 0, 1, 0, 0)",a.style.position="absolute",a.style.top=p+"px",a.style.left=d+"px",a.style.height=m+"px",a.style.width=g+"px";var v=f.filter((function(t){return t[0]===c}))[0];v||(v=[c,document.createDocumentFragment()],f.push(v)),v[1].appendChild(a),h+=1;var y=function(){try{c.removeChild(a)}catch(t){}finally{0==(h-=1)&&e()}};return s[t]={stop:y},function(){return i[t].onExit(a,n,y,l)}}));return f.forEach((function(t){t[0].appendChild(t[1])})),d.length||e(),{hideEnteringElements:function(){c.forEach((function(t){var e=r(t);e&&(e.style.opacity="0")}))},animateEnteringElements:function(){c.forEach((function(t,e){var n=r(t);n&&i[t].onAppear(n,e,l)}))},animateExitingElements:function(){return d.forEach((function(t){return t()})),p}}}(m({},Y,{unflippedIds:z})),$=G.hideEnteringElements,Q=G.animateEnteringElements,tt=G.animateExitingElements,et=m({},Y,{containerEl:S,flippedIds:i.filter(T),applyTransformOrigin:b,spring:x,debug:C,staggerConfig:P,scopedSelector:N,onComplete:F});M&&M(S,U);var nt=function(t){var e,n=t.flippedIds,i=t.flipCallbacks,r=t.inProgressAnimations,o=t.flippedElementPositionsBeforeUpdate,a=t.flippedElementPositionsAfterUpdate,s=t.applyTransformOrigin,h=t.spring,v=t.getElement,S=t.debug,_=t.staggerConfig,w=void 0===_?{}:_,b=t.decisionData,x=void 0===b?{}:b,C=t.onComplete,A=t.containerEl,O=new Promise((function(t){e=t}));if(C&&O.then((function(){return C(A,x)})),!n.length)return function(){return e([]),O};var P=[],V=v(n[0]),U=V?V.ownerDocument.querySelector("body"):document.querySelector("body");g(n);var k=n.map((function(t){var n=o[t].rect,g=a[t].rect,v=o[t].opacity,S=a[t].opacity,_=g.width<1||g.height<1,w=a[t].element;if(!Z(n)&&!Z(g))return!1;if(!w)return!1;var b,C,A,O=q(w),V=(A=(C=void 0===(b={flipperSpring:h,flippedSpring:O.spring})?{}:b).flippedSpring,m({},I.noWobble,j(C.flipperSpring),j(A))),F=!0===O.stagger?"default":O.stagger,M={element:w,id:t,stagger:F,springConfig:V};if(i[t]&&i[t].shouldFlip&&!i[t].shouldFlip(x.previous,x.current))return!1;var L=Math.abs(n.left-g.left)+Math.abs(n.top-g.top),R=Math.abs(n.width-g.width)+Math.abs(n.height-g.height),N=Math.abs(S-v);if(0===n.height&&0===g.height||0===n.width&&0===g.width||L<.5&&R<.5&&N<.01)return!1;var B=function(t){if("string"===typeof t){var e=t.match(/matrix(3d)?\(([^)]+)\)/);if(e)return l(e[2].split(", ").map(parseFloat))}return c()}(a[t].transform),T={matrix:B},z={matrix:[]},D=[B];O.translate&&(D.push(function(t){var e=c();return e[12]=t,e}(n.left-g.left)),D.push(function(t){var e=c();return e[13]=t,e}(n.top-g.top))),O.scale&&(D.push(function(t){var e=c();return e[0]=t,e}(Math.max(n.width,1)/Math.max(g.width,1))),D.push(function(t){var e=c();return e[5]=t,e}(Math.max(n.height,1)/Math.max(g.height,1)))),O.opacity&&(z.opacity=v,T.opacity=S);var K=[];if(!i[t]||!i[t].shouldInvert||i[t].shouldInvert(x.previous,x.current)){var W=function(t,e){return d(t.querySelectorAll("["+E+'="'+e+'"]'))}(w,t);K=W.map((function(t){return[t,q(t)]}))}z.matrix=H(D.reduce(u)),T.matrix=H(T.matrix);var J,X=function(t){var e=t.element,n=t.invertedChildren,i=t.body;return function(t){var r=t.matrix,o=t.opacity,a=t.forceMinVals;if(p(o)&&(e.style.opacity=o+""),a&&(e.style.minHeight="1px",e.style.minWidth="1px"),r){var s=function(t){return"matrix("+t.join(", ")+")"}(r);e.style.transform=s,n&&function(t){var e=t.matrix,n=t.body;t.invertedChildren.forEach((function(t){var i=t[0],r=t[1];if(n.contains(i)){var o=e[0],a=e[3],s=e[5],l={translateX:0,translateY:0,scaleX:1,scaleY:1},c="";r.translate&&(l.translateX=-e[4]/o,l.translateY=-s/a,c+="translate("+l.translateX+"px, "+l.translateY+"px)"),r.scale&&(l.scaleX=1/o,l.scaleY=1/a,c+=" scale("+l.scaleX+", "+l.scaleY+")"),i.style.transform=c}}))}({invertedChildren:n,matrix:r,body:i})}}}({element:w,invertedChildren:K,body:U});if(i[t]&&i[t].onComplete){var Y=i[t].onComplete;J=function(){return Y(w,x)}}var G=p(z.opacity)&&p(T.opacity)&&z.opacity!==T.opacity,$=!1;return m({},M,{stagger:F,springConfig:V,getOnUpdateFunc:function(e){var n=e.spring,o=e.onAnimationEnd;return r[t]={destroy:n.destroy.bind(n),onAnimationEnd:o},function(e){i[t]&&i[t].onSpringUpdate&&i[t].onSpringUpdate(e.getCurrentValue()),$||($=!0,i[t]&&i[t].onStart&&i[t].onStart(w,x));var n=e.getCurrentValue();if(U.contains(w)){var r={matrix:[]};r.matrix=z.matrix.map((function(t,e){return y(t,T.matrix[e],n)})),G&&(r.opacity=y(z.opacity,T.opacity,n)),X(r)}else e.destroy()}},initializeFlip:function(){X({matrix:z.matrix,opacity:G?z.opacity:void 0,forceMinVals:_}),i[t]&&i[t].onStartImmediate&&i[t].onStartImmediate(w,x),O.transformOrigin?w.style.transformOrigin=O.transformOrigin:s&&(w.style.transformOrigin="0 0"),K.forEach((function(t){var e=t[0],n=t[1];n.transformOrigin?e.style.transformOrigin=n.transformOrigin:s&&(e.style.transformOrigin="0 0")}))},onAnimationEnd:function(n){delete r[t],f(J)&&J(),w.style.transform="",K.forEach((function(t){t[0].style.transform=""})),_&&w&&(w.style.minHeight="",w.style.minWidth=""),n||(P.push(t),P.length>=k.length&&e(P))},delayUntil:O.delayUntil})})).filter(Boolean);if(k.forEach((function(t){return(0,t.initializeFlip)()})),S)return function(){};var F=k.filter((function(t){return t.delayUntil&&(e=t.delayUntil,k.filter((function(t){return t.id===e})).length);var e})),M={},L={},R={};F.forEach((function(t){t.stagger?(R[t.stagger]=!0,L[t.delayUntil]?L[t.delayUntil].push(t.stagger):L[t.delayUntil]=[t.stagger]):M[t.delayUntil]?M[t.delayUntil].push(t):M[t.delayUntil]=[t]}));var N=k.filter((function(t){return t.stagger})).reduce((function(t,e){return t[e.stagger]?t[e.stagger].push(e):t[e.stagger]=[e],t}),{}),B=k.filter((function(t){return-1===F.indexOf(t)}));return B.forEach((function(t){t.onSpringActivate=function(){M[t.id]&&M[t.id].forEach(D),L[t.id]&&Object.keys(L[t.id].reduce((function(t,e){var n;return m(t,((n={})[e]=!0,n))}),{})).forEach((function(t){K(N[t],w[t])}))}})),function(){return k.length||e([]),B.filter((function(t){return!t.stagger})).forEach(D),Object.keys(N).forEach((function(t){R[t]||K(N[t],w[t])})),O}}(et);k?k({hideEnteringElements:$,animateEnteringElements:Q,animateExitingElements:tt,animateFlippedElements:nt}):($(),tt().then(Q),nt())}},G=function(t){var e=t.element,n=t.flipCallbacks,i=void 0===n?{}:n,r=t.inProgressAnimations,o=void 0===r?{}:r,a=J(e,t.portalKey),s=d(e.querySelectorAll("["+E+"]")),l={},c=[],u={};a.filter((function(t){return i&&i[t.dataset.flipId]&&i[t.dataset.flipId].onExit})).forEach((function(t){var e=t.parentNode;if(t.closest){var n=t.closest("["+b+"]");n&&(e=n)}var i=c.findIndex((function(t){return t[0]===e}));-1===i&&(c.push([e,e.getBoundingClientRect()]),i=c.length-1),l[t.dataset.flipId]=c[i][1],u[t.dataset.flipId]=e}));var p=X(a),f=p.map((function(t){var e=t[0],n=t[1],r={};if(i&&i[e.dataset.flipId]&&i[e.dataset.flipId].onExit){var o=l[e.dataset.flipId];m(r,{element:e,parent:u[e.dataset.flipId],childPosition:{top:n.top-o.top,left:n.left-o.left,width:n.width,height:n.height}})}return[e.dataset.flipId,{rect:n,opacity:parseFloat(window.getComputedStyle(e).opacity||"1"),domDataForExitAnimations:r}]})).reduce(W,{});return function(t,e){Object.keys(t).forEach((function(e){t[e].destroy&&t[e].destroy(),t[e].onAnimationEnd&&t[e].onAnimationEnd(!0),delete t[e]})),e.forEach((function(t){t.style.transform="",t.style.opacity=""}))}(o,a.concat(s)),{flippedElementPositions:f,cachedOrderedFlipIds:p.map((function(t){return t[0].dataset.flipId}))}};new B;function $(t,e){return($=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Q(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}var tt=(0,s.createContext)({}),et=(0,s.createContext)("portal"),nt=function(t){var e,n;function i(){var e;return(e=t.apply(this,arguments)||this).inProgressAnimations={},e.flipCallbacks={},e.el=void 0,e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,$(e,n);var r=i.prototype;return r.getSnapshotBeforeUpdate=function(t){return t.flipKey!==this.props.flipKey&&this.el?G({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},r.componentDidUpdate=function(t,e,n){this.props.flipKey!==t.flipKey&&this.el&&Y({flippedElementPositionsBeforeUpdate:n.flippedElementPositions,cachedOrderedFlipIds:n.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:t.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},r.render=function(){var t=this,e=this.props,n=e.portalKey,i=s.createElement(tt.Provider,{value:this.flipCallbacks},s.createElement(e.element,{className:e.className,ref:function(e){return t.el=e}},this.props.children));return n&&(i=s.createElement(et.Provider,{value:n},i)),i},i}(s.Component);nt.defaultProps={applyTransformOrigin:!0,element:"div"};var it=function(t){var e,n=t.children,i=t.flipId,r=t.inverseFlipId,o=t.portalKey,a=Q(t,["children","flipId","inverseFlipId","portalKey"]),l=n,c=function(t){return"function"==typeof t}(l);if(!c)try{l=s.Children.only(n)}catch(t){throw new Error("Each Flipped component must wrap a single child")}a.scale||a.translate||a.opacity||S.assign(a,{translate:!0,scale:!0,opacity:!0});var u=((e={})[A]=JSON.stringify(a),e);return void 0!==i?u[x]=String(i):r&&(u[C]=String(r)),void 0!==o&&(u[O]=o),c?l(u):(0,s.cloneElement)(l,u)},rt=function(t){var e=t.children,n=t.flipId,i=t.shouldFlip,r=t.shouldInvert,o=t.onAppear,a=t.onStart,l=t.onStartImmediate,c=t.onComplete,u=t.onExit,p=t.onSpringUpdate,f=Q(t,["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"]);return e?f.inverseFlipId?s.createElement(it,Object.assign({},f),e):s.createElement(et.Consumer,null,(function(t){return s.createElement(tt.Consumer,null,(function(h){return S.isObject(h)&&n&&(h[n]={shouldFlip:i,shouldInvert:r,onAppear:o,onStart:a,onStartImmediate:l,onComplete:c,onExit:u,onSpringUpdate:p}),s.createElement(it,Object.assign({flipId:n},f,{portalKey:t}),e)}))})):null};rt.displayName="Flipped";var ot,at=n(87608),st=n.n(at),lt=n(75619);function ct(){return ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ct.apply(this,arguments)}var ut,pt=function(t){return s.createElement("svg",ct({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"icon"},t),ot||(ot=s.createElement("path",{d:"M9.855 3.853l-5.886 5.13-.076.071a3.043 3.043 0 00-.843 1.605l-.04.279-.009.145L3 17.833a3.167 3.167 0 006.333 0v-2.5l.004-.069c.003-.03.076-.097.163-.097h5l.07.003c.029.003.097.076.097.163v2.5a3.167 3.167 0 106.333 0v-6.666c0-.114-.008-.228-.025-.34a2.996 2.996 0 00-.868-1.773l-.076-.07-5.887-5.131.065.062a3.124 3.124 0 00-4.274-.135l-.08.073zm3.293 1.123l5.898 5.139a1.544 1.544 0 01.454 1.052v6.666a1.667 1.667 0 01-3.333 0v-2.5c0-.878-.68-1.598-1.543-1.662l-.124-.004h-5c-.879 0-1.598.68-1.662 1.542l-.005.124v2.5a1.667 1.667 0 01-3.333 0v-6.666a1.544 1.544 0 01.454-1.052l5.898-5.14a1.624 1.624 0 012.296 0z",fill:"currentcolor",fillRule:"evenodd"})))};function ft(){return ft=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ft.apply(this,arguments)}var ht=function(t){return s.createElement("svg",ft({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"icon"},t),ut||(ut=s.createElement("path",{d:"M13.378 3.57l7.077 6.168A1.853 1.853 0 0121 11v8a2 2 0 11-4 0v-3a2 2 0 00-1.85-1.995L15 14H9a2 2 0 00-1.995 1.85L7 16v3a2 2 0 11-4 0v-8a1.853 1.853 0 01.545-1.262l7.077-6.167a1.949 1.949 0 012.756 0z",fill:"currentcolor",fillRule:"evenodd"})))},dt=function(t){return(0,a.jsx)(lt.ZP,(0,o.Z)((0,r.Z)({},t),{IconPrimary:pt,IconSecondary:ht}))},gt=n(61794),mt=n(58328),vt=n(90151),yt=n(25549),St=n(6879),_t=n(2832),Et=n(64947),wt=n(7725),bt=n(18657),xt=n(16753),Ct=n(75683),At=n(57077),Ot=n(1168),It={transition:"transform 0.1s ease-out, opacity 0.1s ease-out",willChange:"transform, opacity"};function jt(){var t=(0,s.useState)(!1),e=t[0],n=t[1],i=(0,Ot.V)(Ot.d.Laptop),l=(0,Ot.V)(Ot.d.Tablet),c=i?Ct.qE.XLarge:l?Ct.qE.Large:Ct.qE.Small;if((0,s.useEffect)((function(){var t=function(){n(document.documentElement.scrollTop>=window.innerHeight/2)};return window.addEventListener("scroll",t,{passive:!0}),function(){return window.removeEventListener("scroll",t)}}),[]),!e)return(0,a.jsx)(a.Fragment,{});var u={icon:(0,a.jsx)(At.e0,{}),onClick:function(){return window.scrollTo({top:0,behavior:"smooth"})}},p=(0,o.Z)((0,r.Z)({},It),{transform:e?void 0:"translateY(1rem)",opacity:e?void 0:0});return(0,a.jsx)(xt.zx,(0,o.Z)((0,r.Z)({"aria-label":"scroll to top"},u),{className:"absolute -top-12 right-4 z-2 tablet:-top-18 laptop:-top-24 laptop:right-8",variant:Ct.Wu.Primary,size:c,style:p}))}var Pt=n(46404),Vt=n(16573),Ut=n(3336),kt=n(32305),Ft=n(20763),Mt=n(74655),Lt=n(7229),Rt=n.n(Lt),Nt="/notifications",Bt=[{path:"/",title:"Home",icon:function(t){return(0,a.jsx)(dt,{secondary:t,size:lt.Jh.Medium})}},{path:"/bookmarks",title:"Bookmarks",icon:function(t){return(0,a.jsx)(gt.p,{secondary:t,size:lt.Jh.Medium})},shouldShowLogin:!0},{path:"/search",title:"Search",icon:function(t){return(0,a.jsx)(mt.W,{secondary:t,size:lt.Jh.Medium})}},{requiresLogin:!0,shouldShowLogin:!0,path:Nt,title:"Notifications",icon:function(t,e){return(0,a.jsxs)("span",{className:"relative",children:[e>0?(0,a.jsx)(Vt.x,{className:"right-0 top-0 translate-x-1/2 px-1",children:(0,Ut.i$)(e)}):null,(0,a.jsx)(vt.Dk,{secondary:t,size:lt.Jh.Medium})]})}},{path:"/filters",title:"Filters",icon:function(t){return(0,a.jsx)(yt.k,{secondary:t,size:lt.Jh.Medium})}}];function Tt(t){var e=t.showNav,n=void 0!==e&&e,l=(0,s.useContext)(St.ZP),c=l.user,u=l.showLogin,p=(0,kt.nw)().unreadCount,f=(0,Ft.Os)().trackEvent,h=(0,_t.useRouter)(),d=Bt.findIndex((function(t){return t.path===(null===h||void 0===h?void 0:h.pathname)})),g={variant:Ct.Wu.Tertiary,style:{width:"100%"},size:Ct.qE.Large},m=(0,i.Z)({},Nt,(function(){f({event_name:Mt.s6.ClickNotificationIcon,target_id:Mt.jc.Footer,extra:JSON.stringify({notifications_number:p})})}));return(0,a.jsxs)("div",{className:"fixed !bottom-0 left-0 z-2 w-full",children:[(0,a.jsx)(jt,{}),(0,a.jsx)(nt,{flipKey:d,spring:"veryGentle",element:"nav",className:st()("grid w-full grid-flow-col items-center border-t border-theme-divider-tertiary bg-background-default",!n&&"hidden",Rt().footerNavBar),children:Bt.map((function(t,e){return t.requiresLogin&&!c?null:(0,a.jsxs)("div",{className:"relative",children:[!t.shouldShowLogin||c?(0,a.jsx)(wt.t,{href:t.path,prefetch:!1,passHref:!0,tooltip:{content:t.title},children:(0,a.jsx)(xt.zx,(0,o.Z)((0,r.Z)({},g),{tag:"a",icon:t.icon(e===d,p),pressed:e===d,onClick:m[t.path]}))}):(0,a.jsx)(Et.i,{content:t.title,children:(0,a.jsx)(xt.zx,(0,o.Z)((0,r.Z)({},g),{icon:t.icon(e===d,p),onClick:function(){return u({trigger:Pt.IP.Bookmark})}}))}),(0,a.jsx)(rt,{flipId:"activeTabIndicator",children:d===e&&(0,a.jsx)(bt.Ud,{className:"w-12",style:{top:"-0.125rem"}})})]},t.path)}))})]})}},25549:function(t,e,n){"use strict";n.d(e,{k:function(){return d}});var i,r=n(32223),o=n(94449),a=n(61250),s=n(29901),l=n(75619);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c.apply(this,arguments)}var u,p=function(t){return s.createElement("svg",c({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"icon"},t),i||(i=s.createElement("path",{d:"M16.5 12a3 3 0 013 3v1.5a3 3 0 01-3 3H15a3 3 0 01-3-3H5.25a.75.75 0 110-1.5H12a3 3 0 013-3h1.5zm0 1.5H15a1.5 1.5 0 00-1.493 1.356L13.5 15v1.5a1.5 1.5 0 001.356 1.493L15 18h1.5a1.5 1.5 0 001.493-1.356L18 16.5V15a1.5 1.5 0 00-1.356-1.493L16.5 13.5zM9 4.5a3 3 0 013 3h6.75a.75.75 0 110 1.5H12a3 3 0 01-3 3H7.5a3 3 0 01-3-3V7.5a3 3 0 013-3H9zM7.5 6a1.5 1.5 0 00-1.493 1.356L6 7.5V9a1.5 1.5 0 001.356 1.493l.144.007H9a1.5 1.5 0 001.493-1.356L10.5 9V7.5a1.5 1.5 0 00-1.356-1.493L9 6H7.5z",fill:"currentcolor",fillRule:"evenodd"})))};function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},f.apply(this,arguments)}var h=function(t){return s.createElement("svg",f({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"icon"},t),u||(u=s.createElement("path",{d:"M17.4 12a3.6 3.6 0 013.594 3.388L21 15.6v1.8a3.6 3.6 0 01-3.388 3.594L17.4 21h-1.8a3.601 3.601 0 01-3.508-2.789l-.042-.21L4.5 18l-.153-.008a1.5 1.5 0 01-1.34-1.339L3 16.5l.008-.153.022-.15c.13-.634.661-1.123 1.317-1.19L4.5 15h7.55a3.601 3.601 0 013.329-2.993L15.6 12h1.8zm-9-9a3.601 3.601 0 013.55 3h7.55a1.5 1.5 0 011.47 1.198l.022.149L21 7.5a1.5 1.5 0 01-1.347 1.492L19.5 9h-7.55a3.601 3.601 0 01-3.55 3H6.6A3.6 3.6 0 013 8.4V6.6A3.6 3.6 0 016.6 3h1.8z",fill:"currentcolor",fillRule:"evenodd"})))},d=function(t){return(0,a.jsx)(l.ZP,(0,o.Z)((0,r.Z)({},t),{IconPrimary:p,IconSecondary:h}))}},7229:function(t){t.exports={footerNavBar:"FooterNavBar_footerNavBar__9NplU"}}}]);