0?l(this.el,"odometer-animating-up"):l(this.el,"odometer-animating-down"),this.stopWatchingMutations(),this.animate(e),this.startWatchingMutations(),setTimeout(function(){return n.el.offsetHeight,l(n.el,"odometer-animating")},0),this.value=e},Odometer.prototype.renderDigit=function(){return u('8')},Odometer.prototype.insertDigit=function(e,t){return null!=t?this.inside.insertBefore(e,t):this.inside.children.length?this.inside.insertBefore(e,this.inside.children[0]):this.inside.appendChild(e)},Odometer.prototype.addSpacer=function(e,t,n){var r;return(r=u('')).innerHTML=e,n&&l(r,n),this.insertDigit(r,t)},Odometer.prototype.addDigit=function(e,t){var n,r,i,o;if(null==t&&(t=!0),"-"===e)return this.addSpacer(e,null,"odometer-negation-mark");if("."===e)return this.addSpacer(null!=(o=this.format.radix)?o:".",null,"odometer-radix-mark");if(t)for(i=!1;;){if(!this.format.repeating.length){if(i)throw Error("Bad odometer format without digits");this.resetFormat(),i=!0}if(n=this.format.repeating[this.format.repeating.length-1],this.format.repeating=this.format.repeating.substring(0,this.format.repeating.length-1),"d"===n)break;this.addSpacer(n)}return(r=this.renderDigit()).querySelector(".odometer-value").innerHTML=e,this.digits.push(r),this.insertDigit(r)},Odometer.prototype.animate=function(e){return s&&"count"!==this.options.animation?this.animateSlide(e):this.animateCount(e)},Odometer.prototype.animateCount=function(e){var t,n,r,i,o,s=this;if(n=+e-this.value)return i=r=f(),t=this.value,(o=function(){var l,u;if(f()-i>s.options.duration){s.value=e,s.render(),g(s.el,"odometerdone");return}return(l=f()-r)>50&&(r=f(),u=l/s.options.duration,t+=n*u,s.render(Math.round(t))),null!=d?d(o):setTimeout(o,50)})()},Odometer.prototype.getDigitCount=function(){var e,t,n,r,i;for(n=1<=arguments.length?S.call(arguments,0):[],e=r=0,i=n.length;ri;h=0<=i?++S:--S){if(M=v(O/Math.pow(10,i-h-1)),Math.abs(s=(u=v(e/Math.pow(10,i-h-1)))-M)>this.MAX_VALUES){for(d=[],m=s/(this.MAX_VALUES+this.MAX_VALUES*t*.5),n=M;s>0&ν)d.push(Math.round(n)),n+=m;d[d.length-1]!==u&&d.push(u),t++}else d=(function(){k=[];for(var e=M;M<=u?e<=u:e>=u;M<=u?e++:e--)k.push(e);return k}).apply(this);for(h=E=0,P=d.length;E=f),null==(x=this.ribbons)[h]&&(x[h]=this.digits[h].querySelector(".odometer-ribbon-inner")),this.ribbons[h].innerHTML="",r<0&&(d=d.reverse()),g=L=0,B=d.length;L=s)return g;t=collectCharacters(f),n=[],","===t.slice(-1)?(t=t.replace(p,""),parseDescriptors()):function(){for(collectCharacters(l),r="",i="in descriptor";;){if(o=e.charAt(m),"in descriptor"===i){if(isSpace(o))r&&(n.push(r),r="",i="after descriptor");else if(","===o){m+=1,r&&n.push(r),parseDescriptors();return}else if("("===o)r+=o,i="in parens";else if(""===o){r&&n.push(r),parseDescriptors();return}else r+=o}else if("in parens"===i){if(")"===o)r+=o,i="in descriptor";else if(""===o){n.push(r),parseDescriptors();return}else r+=o}else if("after descriptor"===i){if(isSpace(o));else if(""===o){parseDescriptors();return}else i="in descriptor",m-=1}m+=1}}()}function parseDescriptors(){var r,i,o,s,l,u,f,p,m,v=!1,y={};for(s=0;s=0)return 1;return 0}(),o=r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i))}};function isFunction(e){return e&&"[object Function]"===({}).toString.call(e)}function getStyleComputedProperty(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function getParentNode(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function getScrollParent(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=getStyleComputedProperty(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:getScrollParent(getParentNode(e))}function getReferenceNode(e){return e&&e.referenceNode?e.referenceNode:e}var s=r&&!!(window.MSInputMethodContext&&document.documentMode),l=r&&/MSIE 10/.test(navigator.userAgent);function isIE(e){return 11===e?s:10===e?l:s||l}function getOffsetParent(e){if(!e)return document.documentElement;for(var t=isIE(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===getStyleComputedProperty(n,"position")?getOffsetParent(n):n:e?e.ownerDocument.documentElement:document.documentElement}function getRoot(e){return null!==e.parentNode?getRoot(e.parentNode):e}function findCommonOffsetParent(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n,r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=r?e:t,o=r?t:e,s=document.createRange();s.setStart(i,0),s.setEnd(o,0);var l=s.commonAncestorContainer;if(e!==l&&t!==l||i.contains(o))return"BODY"!==(n=l.nodeName)&&("HTML"===n||getOffsetParent(l.firstElementChild)===l)?l:getOffsetParent(l);var u=getRoot(e);return u.host?findCommonOffsetParent(u.host,t):findCommonOffsetParent(e,getRoot(t).host)}function getScroll(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[n]}return e[n]}function getBordersSize(e,t){var n="x"===t?"Left":"Top";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+("Left"===n?"Right":"Bottom")+"Width"])}function getSize(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],isIE(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function getWindowSizes(e){var t=e.body,n=e.documentElement,r=isIE(10)&&getComputedStyle(n);return{height:getSize("Height",t,n,r),width:getSize("Width",t,n,r)}}var classCallCheck=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},u=function(){function defineProperties(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=isIE(10),i="HTML"===t.nodeName,o=getBoundingClientRect(e),s=getBoundingClientRect(t),l=getScrollParent(e),u=getStyleComputedProperty(t),f=parseFloat(u.borderTopWidth),p=parseFloat(u.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=getClientRect({top:o.top-s.top-f,left:o.left-s.left-p,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var h=parseFloat(u.marginTop),m=parseFloat(u.marginLeft);d.top-=f-h,d.bottom-=f-h,d.left-=p-m,d.right-=p-m,d.marginTop=h,d.marginLeft=m}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=getScroll(t,"top"),i=getScroll(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function getFixedPositionOffsetParent(e){if(!e||!e.parentElement||isIE())return document.documentElement;for(var t=e.parentElement;t&&"none"===getStyleComputedProperty(t,"transform");)t=t.parentElement;return t||document.documentElement}function getBoundaries(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=i?getFixedPositionOffsetParent(e):findCommonOffsetParent(e,getReferenceNode(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=getOffsetRectRelativeToArbitraryNode(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:getScroll(n),l=t?0:getScroll(n,"left");return getClientRect({top:s-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:i,height:o})}(s,i);else{var l=void 0;"scrollParent"===r?"BODY"===(l=getScrollParent(getParentNode(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var u=getOffsetRectRelativeToArbitraryNode(l,s,i);if("HTML"===l.nodeName&&!function isFixed(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===getStyleComputedProperty(e,"position"))return!0;var n=getParentNode(e);return!!n&&isFixed(n)}(s)){var f=getWindowSizes(e.ownerDocument),p=f.height,d=f.width;o.top+=u.top-u.marginTop,o.bottom=p+u.top,o.left+=u.left-u.marginLeft,o.right=d+u.left}else o=u}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function computeAutoPlacement(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=getBoundaries(n,r,o,i),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},u=Object.keys(l).map(function(e){var t;return f({key:e},l[e],{area:(t=l[e]).width*t.height})}).sort(function(e,t){return t.area-e.area}),p=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),d=p.length>0?p[0].key:u[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function getReferenceOffsets(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?getFixedPositionOffsetParent(t):findCommonOffsetParent(t,getReferenceNode(n));return getOffsetRectRelativeToArbitraryNode(n,i,r)}function getOuterSizes(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function getOppositePlacement(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function getPopperOffsets(e,t,n){n=n.split("-")[0];var r=getOuterSizes(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",l=o?"left":"top",u=o?"height":"width";return i[s]=t[s]+t[u]/2-r[u]/2,n===l?i[l]=t[l]-r[o?"width":"height"]:i[l]=t[getOppositePlacement(l)],i}function find(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function runModifiers(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=find(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&isFunction(n)&&(t.offsets.popper=getClientRect(t.offsets.popper),t.offsets.reference=getClientRect(t.offsets.reference),t=n(t,e))}),t}function update(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=computeAutoPlacement(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=getPopperOffsets(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=runModifiers(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function isModifierEnabled(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function getSupportedPropertyName(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=h.indexOf(e),r=h.slice(n+1).concat(h.slice(0,n));return t?r.reverse():r}var m={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},g=function(){function Popper(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,Popper),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=o(this.update.bind(this)),this.options=f({},Popper.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(f({},Popper.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=f({},Popper.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return f({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&isFunction(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return u(Popper,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),Popper}();g.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,g.placements=d,g.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,s=i.popper,l=-1!==["bottom","top"].indexOf(n),u=l?"left":"top",p=l?"width":"height",d={start:defineProperty({},u,o[u]),end:defineProperty({},u,o[u]+o[p]-s[p])};e.offsets.popper=f({},s,d[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r,i,o,s,l=t.offset,u=e.placement,f=e.offsets,p=f.popper,d=f.reference,h=u.split("-")[0],m=void 0;return isNumeric(+l)?m=[+l,0]:(n=[0,0],r=-1!==["right","left"].indexOf(h),o=(i=l.split(/(\+|\-)/).map(function(e){return e.trim()})).indexOf(find(i,function(e){return -1!==e.search(/,|\s/)})),i[o]&&-1===i[o].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),s=/\s*,\s*|\s+/,(-1!==o?[i.slice(0,o).concat([i[o].split(s)[0]]),[i[o].split(s)[1]].concat(i.slice(o+1))]:[i]).map(function(e,t){var n=(1===t?!r:r)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return e;if(0===s.indexOf("%")){var l=void 0;return getClientRect("%p"===s?n:r)[t]/100*o}return"vh"!==s&&"vw"!==s?o:("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}(e,n,p,d)})}).forEach(function(e,t){e.forEach(function(r,i){isNumeric(r)&&(n[t]+=r*("-"===e[i-1]?-1:1))})}),m=n),"left"===h?(p.top+=m[0],p.left-=m[1]):"right"===h?(p.top+=m[0],p.left+=m[1]):"top"===h?(p.left+=m[0],p.top-=m[1]):"bottom"===h&&(p.left+=m[0],p.top+=m[1]),e.popper=p,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||getOffsetParent(e.instance.popper);e.instance.reference===n&&(n=getOffsetParent(n));var r=getSupportedPropertyName("transform"),i=e.instance.popper.style,o=i.top,s=i.left,l=i[r];i.top="",i.left="",i[r]="";var u=getBoundaries(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=s,i[r]=l,t.boundaries=u;var p=t.priority,d=e.offsets.popper,h={primary:function(e){var n=d[e];return d[e]u[e]&&!t.escapeWithReference&&(r=Math.min(d[n],u[e]-("right"===e?d.width:d.height))),defineProperty({},n,r)}};return p.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=f({},d,h[t](e))}),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),l=s?"right":"bottom",u=s?"left":"top";return n[l]o(r[l])&&(e.offsets.popper[u]=o(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!isModifierRequired(e.instance.modifiers,"arrow","keepTogether"))return e;var n,r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,l=o.reference,u=-1!==["left","right"].indexOf(i),f=u?"height":"width",p=u?"Top":"Left",d=p.toLowerCase(),h=u?"bottom":"right",m=getOuterSizes(r)[f];l[h]-ms[h]&&(e.offsets.popper[d]+=l[d]+m-s[h]),e.offsets.popper=getClientRect(e.offsets.popper);var g=l[d]+l[f]/2-m/2,v=getStyleComputedProperty(e.instance.popper),y=parseFloat(v["margin"+p]),w=parseFloat(v["border"+p+"Width"]),O=g-e.offsets.popper[d]-y-w;return O=Math.max(Math.min(s[f]-m,O),0),e.arrowElement=r,e.offsets.arrow=(defineProperty(n={},d,Math.round(O)),defineProperty(n,u?"left":"top",""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(isModifierEnabled(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=getBoundaries(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=getOppositePlacement(r),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case m.FLIP:s=[r,i];break;case m.CLOCKWISE:s=clockwise(r);break;case m.COUNTERCLOCKWISE:s=clockwise(r,!0);break;default:s=t.behavior}return s.forEach(function(l,u){if(r!==l||s.length===u+1)return e;i=getOppositePlacement(r=e.placement.split("-")[0]);var p,d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g="left"===r&&m(d.right)>m(h.left)||"right"===r&&m(d.left)m(h.top)||"bottom"===r&&m(d.top)m(n.right),w=m(d.top)m(n.bottom),M="left"===r&&v||"right"===r&&y||"top"===r&&w||"bottom"===r&&O,x=-1!==["top","bottom"].indexOf(r),S=!!t.flipVariations&&(x&&"start"===o&&v||x&&"end"===o&&y||!x&&"start"===o&&w||!x&&"end"===o&&O),E=!!t.flipVariationsByContent&&(x&&"start"===o&&y||x&&"end"===o&&v||!x&&"start"===o&&O||!x&&"end"===o&&w),C=S||E;(g||M||C)&&(e.flipped=!0,(g||M)&&(r=s[u+1]),C&&(o="end"===(p=o)?"start":"start"===p?"end":p),e.placement=r+(o?"-"+o:""),e.offsets.popper=f({},e.offsets.popper,getPopperOffsets(e.instance.popper,e.offsets.reference,e.placement)),e=runModifiers(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(l?i[s?"width":"height"]:0),e.placement=getOppositePlacement(t),e.offsets.popper=getClientRect(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!isModifierRequired(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=find(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightvoid 0!==e[t])}function spring(e){var{from:t=0,to:n=1,restSpeed:u=2,restDelta:f}=e,p=(0,r._T)(e,["from","to","restSpeed","restDelta"]);let d={done:!1,value:t},{stiffness:h,damping:m,mass:g,velocity:v,duration:y,isResolvedFromDuration:w}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!isSpringType(e,l)&&isSpringType(e,s)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let s,l;(0,i.K)(e<=1e4,"Spring duration must be 10 seconds or less");let u=1-t;u=(0,o.u)(.05,1,u),e=(0,o.u)(.01,10,e/1e3),u<1?(s=t=>{let r=t*u,i=r*e,o=calcAngularFreq(t,u),s=Math.exp(-i);return .001-(r-n)/o*s},l=t=>{let r=t*u,i=r*e,o=Math.pow(u,2)*Math.pow(t,2)*e,l=Math.exp(-i),f=calcAngularFreq(Math.pow(t,2),u),p=-s(t)+.001>0?-1:1;return p*((i*n+n-o)*l)/f}):(s=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},l=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let f=5/e,p=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(s,l,f);if(e*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(p,2)*r;return{stiffness:t,damping:2*u*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(p),O=zero,M=zero;function createSpring(){let e=v?-(v/1e3):0,r=n-t,i=m/(2*Math.sqrt(h*g)),o=Math.sqrt(h/g)/1e3;if(void 0===f&&(f=Math.min(Math.abs(n-t)/100,.4)),i<1){let t=calcAngularFreq(o,i);O=s=>{let l=Math.exp(-i*o*s);return n-l*((e+i*o*r)/t*Math.sin(t*s)+r*Math.cos(t*s))},M=n=>{let s=Math.exp(-i*o*n);return i*o*s*(Math.sin(t*n)*(e+i*o*r)/t+r*Math.cos(t*n))-s*(Math.cos(t*n)*(e+i*o*r)-t*r*Math.sin(t*n))}}else if(1===i)O=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(i*i-1);O=s=>{let l=Math.exp(-i*o*s),u=Math.min(t*s,300);return n-l*((e+i*o*r)*Math.sinh(u)+t*r*Math.cosh(u))/t}}}return createSpring(),{next:e=>{let t=O(e);if(w)d.done=e>=y;else{let r=1e3*M(e),i=Math.abs(r)<=u,o=Math.abs(n-t)<=f;d.done=i&&o}return d.value=d.done?n:t,d},flipTarget:()=>{v=-v,[t,n]=[n,t],createSpring()}}}spring.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let zero=e=>0;var u=n("JeBA"),f=n("QlcQ"),p=n("3Igj"),d=n("6d6S"),h=n("l0UI");function hueToRgb(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslaToRgba({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,l=2*n-r;i=hueToRgb(l,r,e+1/3),o=hueToRgb(l,r,e),s=hueToRgb(l,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}let mixLinearColor=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},m=[p.$,d.m,h.J],getColorType=e=>m.find(t=>t.test(e)),notAnimatable=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,mixColor=(e,t)=>{let n=getColorType(e),r=getColorType(t);(0,i.k)(!!n,notAnimatable(e)),(0,i.k)(!!r,notAnimatable(t));let o=n.parse(e),s=r.parse(t);n===h.J&&(o=hslaToRgba(o),n=d.m),r===h.J&&(s=hslaToRgba(s),r=d.m);let l=Object.assign({},o);return e=>{for(let t in l)"alpha"!==t&&(l[t]=mixLinearColor(o[t],s[t],e));return l.alpha=(0,f.C)(o.alpha,s.alpha,e),n.transform(l)}};var g=n("YXVj"),v=n("uX0q"),y=n("hbNO"),w=n("jGS1");function getMixer(e,t){return(0,y.e)(e)?n=>(0,f.C)(e,t,n):g.$.test(e)?mixColor(e,t):mixComplex(e,t)}let mixArray=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>getMixer(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=getMixer(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function analyse(e){let t=v.P.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=v.P.createTransformer(t),r=analyse(e),o=analyse(t),s=r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers;return s?(0,w.z)(mixArray(r.parsed,o.parsed),n):((0,i.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},mixNumber=(e,t)=>n=>(0,f.C)(e,t,n);function interpolate(e,t,{clamp:n=!0,ease:r,mixer:s}={}){let l=e.length;(0,i.k)(l===t.length,"Both input and output ranges must be the same length"),(0,i.k)(!r||!Array.isArray(r)||r.length===l-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[l-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let f=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?mixNumber:"string"==typeof r?g.$.test(r)?mixColor:mixComplex:Array.isArray(r)?mixArray:"object"==typeof r?mixObject:void 0),s=e.length-1;for(let n=0;nn((0,u.Y)(e,t,r))}(e,f):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[r]&&(o=r-1,s=!0),!s){let t=1;for(;ti)&&t!==r;t++);o=t-1}let l=(0,u.Y)(e[o],e[o+1],i);return t[o](l)}}(e,f);return n?t=>p((0,o.u)(e[0],e[l-1],t)):p}var O=n("dtBG");function keyframes({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],l=(r&&r.length===s.length?r:function(e){let t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(s)).map(e=>e*i);function createInterpolator(){return interpolate(l,s,{ease:Array.isArray(n)?n:s.map(()=>n||O.mZ).splice(0,s.length-1)})}let u=createInterpolator();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{s.reverse(),u=createInterpolator()}}}let M={keyframes:keyframes,spring:spring,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let s={done:!1,value:t},l=n*e,u=t+l,f=void 0===o?u:o(u);return f!==u&&(l=f-t),{next:e=>{let t=-l*Math.exp(-e/r);return s.done=!(t>i||t<-i),s.value=s.done?f:f+t,s},flipTarget:()=>{}}}};var x=n("S41x");function loopElapsed(e,t,n=0){return e-t-n}let framesync=e=>{let passTimestamp=({delta:t})=>e(t);return{start:()=>x.ZP.update(passTimestamp,!0),stop:()=>x.qY.update(passTimestamp)}};function animate(e){let t,n,i;var o,{from:s,autoplay:l=!0,driver:u=framesync,elapsed:f=0,repeat:p=0,repeatType:d="loop",repeatDelay:h=0,onPlay:m,onStop:g,onComplete:v,onRepeat:y,onUpdate:w}=e,O=(0,r._T)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:x}=O,S=0,E=O.duration,C=!1,P=!0,T=function(e){if(Array.isArray(e.to))return keyframes;if(M[e.type])return M[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return spring;return keyframes}(O);(null===(o=T.needsInterpolation)||void 0===o?void 0:o.call(T,s,x))&&(i=interpolate([0,100],[s,x],{clamp:!1}),s=0,x=100);let B=T(Object.assign(Object.assign({},O),{from:s,to:x}));return l&&(null==m||m(),(t=u(function(e){if(P||(e=-e),f+=e,!C){let e=B.next(Math.max(0,f));n=e.value,i&&(n=i(n)),C=P?e.done:f<=0}if(null==w||w(n),C){if(0===S&&(null!=E||(E=f)),S=o+h:r<=-h)&&(S++,"reverse"===d?f=function(e,t,n=0,r=!0){return r?loopElapsed(t+-e,t,n):t-(e-t)+n}(f,E,h,P=S%2==0):(f=loopElapsed(f,E,h),"mirror"===d&&B.flipTarget()),C=!1,y&&y())}else t.stop(),v&&v()}})).start()),{stop:()=>{null==g||g(),t.stop()}}}},GHbL:function(e,t,n){"use strict";n.d(t,{I:function(){return inertia}});var r=n("UoJ7"),i=n("rOze"),o=n("S41x");function inertia({from:e=0,velocity:t=0,min:n,max:s,power:l=.8,timeConstant:u=750,bounceStiffness:f=500,bounceDamping:p=10,restDelta:d=1,modifyTarget:h,driver:m,onUpdate:g,onComplete:v,onStop:y}){let w;function isOutOfBounds(e){return void 0!==n&&es}function boundaryNearest(e){return void 0===n?s:void 0===s?n:Math.abs(n-e){var n;null==g||g(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:v,onStop:y}))}function startSpring(e){startAnimation(Object.assign({type:"spring",stiffness:f,damping:p,restDelta:d},e))}if(isOutOfBounds(e))startSpring({from:e,velocity:t,to:boundaryNearest(e)});else{let r,s,f=l*t+e;void 0!==h&&(f=h(f));let p=boundaryNearest(f),m=p===n?-1:1;startAnimation({type:"decay",from:e,velocity:t,timeConstant:u,power:l,restDelta:d,modifyTarget:h,onUpdate:isOutOfBounds(f)?e=>{r=s,s=e,t=(0,i.R)(e-r,(0,o.$B)().delta),(1===m&&e>p||-1===m&&enull==w?void 0:w.stop()}}},"I4l+":function(e,t,n){"use strict";n.d(t,{_:function(){return cubicBezier}});var r=n("dtBG");let a=(e,t)=>1-3*t+3*e,b=(e,t)=>3*t-6*e,c=e=>3*e,calcBezier=(e,t,n)=>((a(t,n)*e+b(t,n))*e+c(t))*e,getSlope=(e,t,n)=>3*a(t,n)*e*e+2*b(t,n)*e+c(t);function cubicBezier(e,t,n,i){if(e===t&&n===i)return r.GE;let o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=calcBezier(.1*t,e,n);return r=>0===r||1===r?r:calcBezier(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=.1;--i;let s=(t-o[i])/(o[i+1]-o[i]),l=r+.1*s,u=getSlope(l,e,n);return u>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=getSlope(t,n,r);if(0===i)break;let o=calcBezier(t,n,r)-e;t-=o/i}return t}(t,l,e,n):0===u?l:function(e,t,n,r,i){let o,s;let l=0;do(o=calcBezier(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++l<10);return s}(t,r,r+.1,e,n)}(r),t,i)}},dtBG:function(e,t,n){"use strict";n.d(t,{LU:function(){return h},G2:function(){return f},XL:function(){return d},CG:function(){return p},h9:function(){return y},yD:function(){return bounceInOut},gJ:function(){return bounceOut},Z7:function(){return circIn},X7:function(){return u},Bn:function(){return l},YQ:function(){return easeIn},mZ:function(){return s},Vv:function(){return o},GE:function(){return linear}});let reverseEasing=e=>t=>1-e(1-t),mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,createBackIn=e=>t=>t*t*((e+1)*t-e),r=4/11,i=8/11,linear=e=>e,easeIn=e=>Math.pow(e,2),o=reverseEasing(easeIn),s=mirrorEasing(easeIn),circIn=e=>1-Math.sin(Math.acos(e)),l=reverseEasing(circIn),u=mirrorEasing(l),f=createBackIn(1.525),p=reverseEasing(f),d=mirrorEasing(f),h=(e=>{let t=createBackIn(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),m=4356/361,g=35442/1805,v=16061/1805,bounceOut=e=>{if(1===e||0===e)return e;let t=e*e;return ee<.5?.5*(1-bounceOut(1-2*e)):.5*bounceOut(2*e-1)+.5},eZKA:function(e,t,n){"use strict";n.d(t,{u:function(){return clamp}});let clamp=(e,t,n)=>Math.min(Math.max(n,e),t)},GPpE:function(e,t,n){"use strict";n.d(t,{T:function(){return distance}});let isPoint=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),isPoint3D=e=>isPoint(e)&&e.hasOwnProperty("z");var r=n("hbNO");let distance1D=(e,t)=>Math.abs(e-t);function distance(e,t){if((0,r.e)(e)&&(0,r.e)(t))return distance1D(e,t);if(isPoint(e)&&isPoint(t)){let n=distance1D(e.x,t.x),r=distance1D(e.y,t.y),i=isPoint3D(e)&&isPoint3D(t)?distance1D(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}},hbNO:function(e,t,n){"use strict";n.d(t,{e:function(){return isNum}});let isNum=e=>"number"==typeof e},QlcQ:function(e,t,n){"use strict";n.d(t,{C:function(){return mix}});let mix=(e,t,n)=>-n*e+n*t+e},jGS1:function(e,t,n){"use strict";n.d(t,{z:function(){return pipe}});let combineFunctions=(e,t)=>n=>t(e(n)),pipe=(...e)=>e.reduce(combineFunctions)},JeBA:function(e,t,n){"use strict";n.d(t,{Y:function(){return progress}});let progress=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r}},rOze:function(e,t,n){"use strict";function velocityPerSecond(e,t){return t?e*(1e3/t):0}n.d(t,{R:function(){return velocityPerSecond}})}}]);