UNPKG

ember-svg-jar

Version:

Best way to use SVG images in Ember applications

1 lines 337 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(70)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.r(t),n.d(t,"default",function(){return r})},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",function(){return r})},function(e,t,n){e.exports=n(97)()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.r(t),n.d(t,"default",function(){return r})},function(e,t,n){"use strict";var r={encode:function(e){if(null!=e)return String(e)},decode:function(e){if(null!=e){var t=e instanceof Array?e[0]:e;if(null!=t)return String(t)}}},o=n(25),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&""!==r&&(t[n]=r),t},{})}function u(e,t){var n=Object(o.stringify)(a(e));return i({},t,{key:""+Date.now(),search:n.length?"?"+n:""})}function l(e,t){var n=t.query||Object(o.parse)(t.search);return u(a(i({},n,e)),t)}function s(e,t){for(var n={},r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];null!=a?e[i]?n[i]=e[i].encode(t[i]):n[i]=String(a):n[i]=void 0}return n}var c=n(0),f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function d(e){return{replace:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!0})},push:function(t){e.navigate(t.protocol+"//"+t.host+t.pathname+t.search,{replace:!1})}}}function p(e){void 0===e&&(e={});var t,n=f({},e);return"undefined"!==typeof window&&(n.history||(n.history=(t=window.history,{replace:function(e){t.replaceState(e.state,"",e.protocol+"//"+e.host+e.pathname+e.search)},push:function(e){t.pushState(e.state,"",e.protocol+"//"+e.host+e.pathname+e.search)}})),n.location||(n.location=window.location)),n}var h=c.createContext(p());function m(e){var t=e.children,n=e.ReactRouterRoute,r=e.reachHistory,o=e.history,i=e.location;return n?c.createElement(n,null,function(e){return c.createElement(h.Provider,{value:p(e)},t)}):r?c.createElement(h.Provider,{value:p({history:d(r),location:i})},t):c.createElement(h.Provider,{value:p({history:o,location:i})},t)}function v(e,t,n,r){switch(void 0===r&&(r="replaceIn"),r){case"replaceIn":n.replace(l(e,t));break;case"pushIn":n.push(l(e,t));break;case"replace":n.replace(u(e,t));break;case"push":n.push(u(e,t))}}var g=v,y=function(e,t,n){void 0===t&&(t=r);var i=c.useContext(h),a=i.history,u=i.location;n||(n=c.useMemo(function(){return Object(o.parse)(u.search)||{}},[u.search]));var l=n[e];return[c.useMemo(function(){if(null!=l)return t.decode(l)},[l instanceof Array?Object(o.stringify)({name:l}):l]),c.useCallback(function(n,r){var o,i=t.encode(n);v(((o={})[e]=i,o),u,a,r)},[u])]},b=function(e){var t=c.useContext(h),n=t.history,r=t.location,i=c.useMemo(function(){return Object(o.parse)(r.search)||{}},[r.search]),a=Object.keys(e),u=a.map(function(t){return y(t,e[t],i)[0]});return[c.useMemo(function(){for(var e={},t=0;t<a.length;++t)e[a[t]]=u[t];return e},u),c.useCallback(function(t,o){var i=s(e,t);g(i,r,n,o)},[r])]};n.d(t,"b",function(){return r}),n.d(t,"c",function(){return y}),n.d(t,"d",function(){return b}),n.d(t,"a",function(){return m})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(11);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){Object(r.a)(e,t,n[t])})}return e}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(41),o=n(77),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function u(e){return null!==e&&"object"===typeof e}function l(e){return"[object Function]"===i.call(e)}function s(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:u,isUndefined:function(e){return"undefined"===typeof e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return u(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!==typeof window&&"undefined"!==typeof document},forEach:s,merge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)s(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]="object"===typeof n?e({},n):n}for(var r=0,o=arguments.length;r<o;r++)s(arguments[r],n);return t},extend:function(e,t,n){return s(t,function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";var r=!0,o="Invariant failed";t.a=function(e,t){if(!e)throw r?new Error(o):new Error(o+": "+(t||""))}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(1);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],a=e&&o(e),u=t&&o(t),l=a||u;if(e&&o(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var c=r[r.length-1];s="."===c||".."===c||""===c}else s=!1;for(var f=0,d=r.length;d>=0;d--){var p=r[d];"."===p?i(r,d):".."===p?(i(r,d),f++):f&&(i(r,d),f--)}if(!l)for(;f--;f)r.unshift("..");!l||""===r[0]||r[0]&&o(r[0])||r.unshift("");var h=r.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h},u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r="undefined"===typeof t?"undefined":u(t);if(r!==("undefined"===typeof n?"undefined":u(n)))return!1;if("object"===r){var o=t.valueOf(),i=n.valueOf();if(o!==t||i!==n)return e(o,i);var a=Object.keys(t),l=Object.keys(n);return a.length===l.length&&a.every(function(r){return e(t[r],n[r])})}return!1},s=n(13);function c(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.default)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(u){throw u instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):u}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}n.d(t,"a",function(){return E}),n.d(t,"b",function(){return O}),n.d(t,"d",function(){return j}),n.d(t,"c",function(){return m}),n.d(t,"f",function(){return v}),n.d(t,"e",function(){return h});var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",x="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),y||Object(s.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,u=void 0!==a&&a,l=i.getUserConfirmation,f=void 0===l?b:l,v=i.keyLength,E=void 0===v?6:v,S=e.basename?p(c(e.basename)):"";function _(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=d(i,S)),m(i,r,n)}function T(){return Math.random().toString(36).substr(2,E)}var C=g();function O(e){Object(r.default)(D,e),D.length=t.length,C.notifyListeners(D.location,D.action)}function P(e){(function(e){void 0===e.state&&navigator.userAgent.indexOf("CriOS")})(e)||F(_(e.state))}function j(){F(_(k()))}var A=!1;function F(e){if(A)A=!1,O();else{C.confirmTransitionTo(e,"POP",f,function(t){t?O({action:"POP",location:e}):function(e){var t=D.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,M(o))}(e)})}}var R=_(k()),N=[R.key];function L(e){return S+h(e)}function M(e){t.go(e)}var I=0;function z(e){1===(I+=e)&&1===e?(window.addEventListener(w,P),o&&window.addEventListener(x,j)):0===I&&(window.removeEventListener(w,P),o&&window.removeEventListener(x,j))}var U=!1;var D={length:t.length,action:"POP",location:R,createHref:L,push:function(e,r){var o=m(e,r,T(),D.location);C.confirmTransitionTo(o,"PUSH",f,function(e){if(e){var r=L(o),i=o.key,a=o.state;if(n)if(t.pushState({key:i,state:a},null,r),u)window.location.href=r;else{var l=N.indexOf(D.location.key),s=N.slice(0,-1===l?0:l+1);s.push(o.key),N=s,O({action:"PUSH",location:o})}else window.location.href=r}})},replace:function(e,r){var o=m(e,r,T(),D.location);C.confirmTransitionTo(o,"REPLACE",f,function(e){if(e){var r=L(o),i=o.key,a=o.state;if(n)if(t.replaceState({key:i,state:a},null,r),u)window.location.replace(r);else{var l=N.indexOf(D.location.key);-1!==l&&(N[l]=o.key),O({action:"REPLACE",location:o})}else window.location.replace(r)}})},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),t()}},listen:function(e){var t=C.appendListener(e);return z(1),function(){z(-1),t()}}};return D}var S="hashchange",_={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:c},slash:{encodePath:c,decodePath:c}};function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)}function O(e){void 0===e&&(e={}),y||Object(s.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?b:o,a=n.hashType,u=void 0===a?"slash":a,l=e.basename?p(c(e.basename)):"",f=_[u],w=f.encodePath,x=f.decodePath;function k(){var e=x(T());return l&&(e=d(e,l)),m(e)}var E=g();function O(e){Object(r.default)(D,e),D.length=t.length,E.notifyListeners(D.location,D.action)}var P=!1,j=null;function A(){var e=T(),t=w(e);if(e!==t)C(t);else{var n=k(),r=D.location;if(!P&&v(r,n))return;if(j===h(n))return;j=null,function(e){if(P)P=!1,O();else{E.confirmTransitionTo(e,"POP",i,function(t){t?O({action:"POP",location:e}):function(e){var t=D.location,n=L.lastIndexOf(h(t));-1===n&&(n=0);var r=L.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(P=!0,M(o))}(e)})}}(n)}}var F=T(),R=w(F);F!==R&&C(R);var N=k(),L=[h(N)];function M(e){t.go(e)}var I=0;function z(e){1===(I+=e)&&1===e?window.addEventListener(S,A):0===I&&window.removeEventListener(S,A)}var U=!1;var D={length:t.length,action:"POP",location:N,createHref:function(e){return"#"+w(l+h(e))},push:function(e,t){var n=m(e,void 0,void 0,D.location);E.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=h(n),r=w(l+t);if(T()!==r){j=t,function(e){window.location.hash=e}(r);var o=L.lastIndexOf(h(D.location)),i=L.slice(0,-1===o?0:o+1);i.push(t),L=i,O({action:"PUSH",location:n})}else O()}})},replace:function(e,t){var n=m(e,void 0,void 0,D.location);E.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=h(n),r=w(l+t);T()!==r&&(j=t,C(r));var o=L.indexOf(h(D.location));-1!==o&&(L[o]=t),O({action:"REPLACE",location:n})}})},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),t()}},listen:function(e){var t=E.appendListener(e);return z(1),function(){z(-1),t()}}};return D}function P(e,t,n){return Math.min(Math.max(e,t),n)}function j(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,u=void 0===a?0:a,l=t.keyLength,s=void 0===l?6:l,c=g();function f(e){Object(r.default)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,s)}var p=P(u,0,i.length-1),v=i.map(function(e){return m(e,void 0,"string"===typeof e?d():e.key||d())}),y=h;function b(e){var t=P(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,function(e){e?f({action:"POP",location:r,index:t}):f()})}var w={length:v.length,action:"POP",location:v[p],index:p,entries:v,createHref:y,push:function(e,t){var r=m(e,t,d(),w.location);c.confirmTransitionTo(r,"PUSH",n,function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,t){var r=m(e,t,d(),w.location);c.confirmTransitionTo(r,"REPLACE",n,function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))})},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(60),o=n.n(r),i=n(23),a=n.n(i),u=n(4),l=n.n(u),s=n(22),c=n.n(s),f=n(5),d=n.n(f),p=n(0),h=n(38),m=n(61),v=n.n(m)()({setReferenceNode:void 0,referenceNode:void 0}),g=function(e){function t(){var t;return t=e.call(this)||this,d()(l()(t),"setReferenceNode",function(e){e&&t.state.context.referenceNode!==e&&t.setState(function(t){var n=t.context;return{context:a()({},n,{referenceNode:e})}})}),t.state={context:{setReferenceNode:t.setReferenceNode,referenceNode:void 0}},t}return c()(t,e),t.prototype.render=function(){return p.createElement(v.Provider,{value:this.state.context},this.props.children)},t}(p.Component),y=function(e){return Array.isArray(e)?e[0]:e},b=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},w={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},x={},k=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,d()(l()(t),"state",{data:void 0,placement:void 0}),d()(l()(t),"popperInstance",void 0),d()(l()(t),"popperNode",null),d()(l()(t),"arrowNode",null),d()(l()(t),"setPopperNode",function(e){e&&t.popperNode!==e&&(b(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())}),d()(l()(t),"setArrowNode",function(e){t.arrowNode=e}),d()(l()(t),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),d()(l()(t),"getOptions",function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:a()({},t.props.modifiers,{arrow:a()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}}),d()(l()(t),"getPopperStyle",function(){return t.popperNode&&t.state.data?a()({position:t.state.data.offsets.popper.position},t.state.data.styles):w}),d()(l()(t),"getPopperPlacement",function(){return t.state.data?t.state.placement:void 0}),d()(l()(t),"getArrowStyle",function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:x}),d()(l()(t),"getOutOfBoundariesState",function(){return t.state.data?t.state.data.hide:void 0}),d()(l()(t),"destroyPopperInstance",function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)}),d()(l()(t),"updatePopperInstance",function(){t.destroyPopperInstance();var e=l()(t).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new h.a(n,e,t.getOptions()))}),d()(l()(t),"scheduleUpdate",function(){t.popperInstance&&t.popperInstance.scheduleUpdate()}),t}c()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement!==e.placement||this.props.referenceElement!==e.referenceElement||this.props.positionFixed!==e.positionFixed?this.updatePopperInstance():this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){b(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return y(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(p.Component);d()(k,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});h.a.placements;function E(e){var t=e.referenceElement,n=o()(e,["referenceElement"]);return p.createElement(v.Consumer,null,function(e){var r=e.referenceNode;return p.createElement(k,a()({referenceElement:void 0!==t?t:r},n))})}var S=n(37),_=n.n(S),T=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,d()(l()(t),"refHandler",function(e){b(t.props.innerRef,e),b(t.props.setReferenceNode,e)}),t}c()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){b(this.props.innerRef,null)},n.render=function(){return _()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),y(this.props.children)({ref:this.refHandler})},t}(p.Component);function C(e){return p.createElement(v.Consumer,null,function(t){var n=t.setReferenceNode;return p.createElement(T,a()({setReferenceNode:n},e))})}n.d(t,"b",function(){return E}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return C})},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}var i=n(17);function a(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?Object(i.a)(e):t}n.d(t,"a",function(){return a})},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";var r=n(74),o=n(35),i=n(75);function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function l(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=o({arrayFormat:"none"},t)),r=Object.create(null);return"string"!==typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:i(a),n(i(o),a,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"===typeof t?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(n):e[t]=n,e},Object.create(null))):r}t.extract=u,t.parse=l,t.stringify=function(e,t){!1===(t=o({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[a(t,e),"[",r,"]"].join(""):[a(t,e),"[",a(r,e),"]=",a(n,e)].join("")};case"bracket":return function(t,n){return null===n?a(t,e):[a(t,e),"[]=",a(n,e)].join("")};default:return function(t,n){return null===n?a(t,e):[a(t,e),"=",a(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map(function(r){var o=e[r];if(void 0===o)return"";if(null===o)return a(r,t);if(Array.isArray(o)){var i=[];return o.slice().forEach(function(e){void 0!==e&&i.push(n(r,e,i.length))}),i.join("&")}return a(r,t)+"="+a(o,t)}).filter(function(e){return e.length>0}).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:l(u(e),t)}}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(22),a=n.n(i),u=n(3),l=n.n(u),s=n(36),c=n.n(s),f=1073741823;var d=o.a.createContext||function(e,t){var n,o,i="__create-react-context-"+c()()+"__",u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(n,r){e=n,t.forEach(function(t){return t(e,r)})}}}(t.props.value),t}a()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);u.childContextTypes=((n={})[i]=l.a.object.isRequired,n);var s=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}a()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?f:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?f:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return s.contextTypes=((o={})[i]=l.a.object,o),{Provider:u,Consumer:s}},p=n(16),h=n(15),m=n(13),v=n(39),g=n.n(v),y=n(1),b=(n(141),n(7));n(67);n.d(t,"a",function(){return T}),n.d(t,"b",function(){return x}),n.d(t,"d",function(){return _}),n.d(t,"c",function(){return w});var w=function(e){var t=d();return t.displayName=e,t}("Router"),x=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e})),n}Object(p.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(w.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(o.a.Component);o.a.Component;o.a.Component;var k={},E=1e4,S=0;function _(e,t){void 0===t&&(t={}),"string"===typeof t&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,u=void 0!==a&&a,l=n.sensitive,s=void 0!==l&&l;return[].concat(r).reduce(function(t,n){if(!n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var o=[],i={regexp:g()(e,o,t),keys:o};return S<E&&(r[e]=i,S++),i}(n,{end:i,strict:u,sensitive:s}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var c=l[0],f=l.slice(1),d=e===c;return i&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce(function(e,t,n){return e[t.name]=f[n],e},{})}},null)}var T=function(e){function t(){return e.apply(this,arguments)||this}return Object(p.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(w.Consumer,null,function(t){t||Object(m.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?_(n.pathname,e.props):t.match,i=Object(y.default)({},t,{location:n,match:r}),a=e.props,u=a.children,l=a.component,s=a.render;(Array.isArray(u)&&0===u.length&&(u=null),"function"===typeof u)&&(void 0===(u=u(i))&&(u=null));return o.a.createElement(w.Provider,{value:i},u&&!function(e){return 0===o.a.Children.count(e)}(u)?u:i.match?l?o.a.createElement(l,i):s?s(i):null:null)})},t}(o.a.Component);function C(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=C(e);return 0!==t.pathname.indexOf(n)?t:Object(y.default)({},t,{pathname:t.pathname.substr(n.length)})}function P(e){return"string"===typeof e?e:Object(h.e)(e)}function j(e){return function(){Object(m.a)(!1)}}function A(){}o.a.Component;o.a.Component},function(e,t,n){"use strict";n.d(t,"a",function(){return Fe}),n.d(t,"b",function(){return K}),n.d(t,"c",function(){return te});var r=n(29),o=n(21),i=n(19),a=n(17),u=n(20),l=n(14),s=n(24),c=n(11),f=n(1),d=n(7),p=n(0),h=n.n(p),m={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"===typeof e},str:function(e){return"string"===typeof e},num:function(e){return"number"===typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!==typeof t)return!1;if(m.str(e)||m.num(e))return e===t;if(m.obj(e)&&m.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!m.und(n)||e===t}};function v(){var e=Object(p.useState)(!1)[1];return Object(p.useCallback)(function(){return e(function(e){return!e})},[])}function g(e,t){return m.und(e)||m.nul(e)?t:e}function y(e){return m.und(e)?[]:m.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return m.fun(e)?e.apply(void 0,n):e}function w(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Object(d.default)(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(m.und(t))return Object(f.default)({to:t},e);var n=Object.keys(e).reduce(function(n,r){return m.und(t[r])?Object(f.default)({},n,Object(c.a)({},r,e[r])):n},{});return Object(f.default)({to:t},n)}var x,k,E=function(){function e(){Object(l.a)(this,e),this.payload=void 0,this.children=[]}return Object(s.a)(e,[{key:"getAnimatedValue",value:function(){return this.getValue()}},{key:"getPayload",value:function(){return this.payload||this}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"getChildren",value:function(){return this.children}},{key:"addChild",value:function(e){0===this.children.length&&this.attach(),this.children.push(e)}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}]),e}(),S=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(o.a)(this,Object(i.a)(t).apply(this,arguments))).payload=[],e.attach=function(){return e.payload.forEach(function(t){return t instanceof E&&t.addChild(Object(a.a)(e))})},e.detach=function(){return e.payload.forEach(function(t){return t instanceof E&&t.removeChild(Object(a.a)(e))})},e}return Object(u.a)(t,e),t}(E),_=function(e){function t(){var e;return Object(l.a)(this,t),(e=Object(o.a)(this,Object(i.a)(t).apply(this,arguments))).payload={},e.attach=function(){return Object.values(e.payload).forEach(function(t){return t instanceof E&&t.addChild(Object(a.a)(e))})},e.detach=function(){return Object.values(e.payload).forEach(function(t){return t instanceof E&&t.removeChild(Object(a.a)(e))})},e}return Object(u.a)(t,e),Object(s.a)(t,[{key:"getValue",value:function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof E)&&(t[n]=r instanceof E?r[e?"getAnimatedValue":"getValue"]():r)}return t}},{key:"getAnimatedValue",value:function(){return this.getValue(!0)}}]),t}(E);function T(e,t){x={fn:e,transform:t}}function C(e){k=e}var O,P=function(e){return"undefined"!==typeof window?window.requestAnimationFrame(e):-1};function j(e){O=e}var A=function(){return Date.now()};function F(e){e}var R,N,L=function(e){return e.current};function M(e){R=e}var I=function(e){function t(e,n){var r;return Object(l.a)(this,t),(r=Object(o.a)(this,Object(i.a)(t).call(this))).update=void 0,r.payload=e.style?Object(f.default)({},e,{style:R(e.style)}):e,r.update=n,r.attach(),r}return Object(u.a)(t,e),t}(_),z=!1,U=new Set,D=function e(){if(!z)return!1;var t=A(),n=!0,r=!1,o=void 0;try{for(var i,a=U[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){for(var u=i.value,l=!1,s=0;s<u.configs.length;s++){for(var c=u.configs[s],f=void 0,d=void 0,p=0;p<c.animatedValues.length;p++){var h=c.animatedValues[p];if(!h.done){var m=c.fromValues[p],v=c.toValues[p],g=h.lastPosition,y=v instanceof E,b=Array.isArray(c.initialVelocity)?c.initialVelocity[p]:c.initialVelocity;if(y&&(v=v.getValue()),c.immediate)h.setValue(v),h.done=!0;else if("string"!==typeof m&&"string"!==typeof v){if(void 0!==c.duration)g=m+c.easing((t-h.startTime)/c.duration)*(v-m),f=t>=h.startTime+c.duration;else if(c.decay)g=m+b/(1-.998)*(1-Math.exp(-(1-.998)*(t-h.startTime))),(f=Math.abs(h.lastPosition-g)<.1)&&(v=g);else{d=void 0!==h.lastTime?h.lastTime:t,b=void 0!==h.lastVelocity?h.lastVelocity:c.initialVelocity,t>d+64&&(d=t);for(var w=Math.floor(t-d),x=0;x<w;++x){g+=1*(b+=1*((-c.tension*(g-v)+-c.friction*b)/c.mass)/1e3)/1e3}var k=!(!c.clamp||0===c.tension)&&(m<v?g>v:g<v),S=Math.abs(b)<=c.precision,_=0===c.tension||Math.abs(v-g)<=c.precision;f=k||S&&_,h.lastVelocity=b,h.lastTime=t}y&&!c.toValues[p].done&&(f=!1),f?(h.value!==v&&(g=v),h.done=!0):l=!0,h.setValue(g),h.lastPosition=g}else h.setValue(v),h.done=!0}}u.props.onFrame&&(u.values[c.name]=c.interpolation.getValue())}u.props.onFrame&&u.props.onFrame(u.values),l||(U.delete(u),u.stop(!0))}}catch(T){r=!0,o=T}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return U.size?N?N():P(e):z=!1,z};function V(e,t,n){if("function"===typeof e)return e;if(Array.isArray(e))return V({range:e,output:t,extrapolate:n});if(O&&"string"===typeof e.output[0])return O(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",u=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,u,l){var s=l?l(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===u)return s;"clamp"===u&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],l,a,u,r.map)}}var $=function(e){function t(e,n,r,a){var u;return Object(l.a)(this,t),(u=Object(o.a)(this,Object(i.a)(t).call(this))).calc=void 0,u.payload=e instanceof S&&!(e instanceof t)?e.getPayload():Array.isArray(e)?e:[e],u.calc=V(n,r,a),u}return Object(u.a)(t,e),Object(s.a)(t,[{key:"getValue",value:function(){return this.calc.apply(this,Object(r.a)(this.payload.map(function(e){return e.getValue()})))}},{key:"updateConfig",value:function(e,t,n){this.calc=V(e,t,n)}},{key:"interpolate",value:function(e,n,r){return new t(this,e,n,r)}}]),t}(S);var W=function(e){function t(e){var n,r;return Object(l.a)(this,t),n=Object(o.a)(this,Object(i.a)(t).call(this)),r=Object(a.a)(n),n.animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),r.value=e,t&&r.flush()},n.value=e,n.startPosition=e,n.lastPosition=e,n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"flush",value:function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach(function(t){return e(t,n)})}(this,this.animatedStyles),this.animatedStyles.forEach(function(e){return e.update()})}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new $(this,e,t,n)}}]),t}(E),B=function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(o.a)(this,Object(i.a)(t).call(this))).payload=e.map(function(e){return new W(e)}),n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(function(e,r){return n.payload[r].setValue(e,t)}):this.payload.forEach(function(n){return n.setValue(e,t)})}},{key:"getValue",value:function(){return this.payload.map(function(e){return e.getValue()})}},{key:"interpolate",value:function(e,t){return new $(this,e,t)}}]),t}(S),H=0,q=function(){function e(){var t=this;Object(l.a)(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=H++}return Object(s.a)(e,[{key:"update",value:function(e){if(!e)return this;var t=w(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=Object(d.default)(t,["delay","to"]);if(m.arr(o)||m.fun(o))this.queue.push(Object(f.default)({},i,{delay:r,to:o}));else if(o){var a={};Object.entries(o).forEach(function(e){var t=e[0],n=e[1],o=Object(f.default)({to:Object(c.a)({},t,n),delay:b(r,t)},i),u=a[o.delay]&&a[o.delay].to;a[o.delay]=Object(f.default)({},a[o.delay],o,{to:Object(f.default)({},u,o.to)})}),this.queue=Object.values(a)}return this.queue=this.queue.sort(function(e,t){return e.delay-t.delay}),this.diff(i),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(function(e){var t=e.from,r=void 0===t?{}:t,o=e.to,i=void 0===o?{}:o;m.obj(r)&&(n.merged=Object(f.default)({},r,n.merged)),m.obj(i)&&(n.merged=Object(f.default)({},n.merged,i))});var r=this.local=++this.guid,o=this.localQueue=this.queue;this.queue=[],o.forEach(function(t,i){var a=t.delay,u=Object(d.default)(t,["delay"]),l=function(t){i===o.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},s=m.arr(u.to)||m.fun(u.to);a?setTimeout(function(){r===n.guid&&(s?n.runAsync(u,l):n.diff(u).start(l))},a):s?n.runAsync(u,l):n.diff(u).start(l)})}else m.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,U.has(t)||U.add(t),z||(z=!0,P(N||D));return this}},{key:"stop",value:function(e){return this.listeners.forEach(function(t){return t(e)}),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,U.has(t)&&U.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,r=this,o=(e.delay,Object(d.default)(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(m.arr(o.to))for(var u=function(e){var t=e,r=Object(f.default)({},o,w(o.to[t]));m.arr(r.config)&&(r.config=r.config[t]),a=a.then(function(){if(i===n.guid)return new Promise(function(e){return n.diff(r).start(e)})})},l=0;l<o.to.length;l++)u(l);else if(m.fun(o.to)){var s,c=0;a=a.then(function(){return o.to(function(e){var t=Object(f.default)({},o,w(e));if(m.arr(t.config)&&(t.config=t.config[c]),c++,i===n.guid)return s=new Promise(function(e){return n.diff(t).start(e)})},function(e){return void 0===e&&(e=!0),r.stop(e)}).then(function(){return s})})}a.then(t)}},{key:"diff",value:function(e){var t=this;this.props=Object(f.default)({},this.props,e);var n=this.props,r=n.from,o=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,u=n.config,l=void 0===u?{}:u,s=n.reverse,d=n.attach,p=n.reset,h=n.immediate;if(s){var v=[a,o];o=v[0],a=v[1]}this.merged=Object(f.default)({},o,this.merged,a),this.hasChanged=!1;var w=d&&d(this);if(this.animations=Object.entries(this.merged).reduce(function(e,n){var r=n[0],i=n[1],a=e[r]||{},u=m.num(i),s=m.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!k[i],d=m.arr(i),v=!u&&!d&&!s,x=m.und(o[r])?i:o[r],E=u||d?i:s?i:1,S=b(l,r);w&&(E=w.animations[r].parent);var _,T=a.parent,C=a.interpolation,P=y(w?E.getPayload():E),j=i;v&&(j=O({range:[0,1],output:[i,i]})(1));var F=C&&C.getValue(),R=!m.und(T)&&a.animatedValues.some(function(e){return!e.done}),N=!m.equ(j,F),L=!m.equ(j,a.previous),M=!m.equ(S,a.config);if(p||L&&N||M){if(u||s)T=C=a.parent||new W(x);else if(d)T=C=a.parent||new B(x);else if(v){var I=a.interpolation&&a.interpolation.calc(a.parent.value);I=void 0===I||p?x:I,a.parent?(T=a.parent).setValue(0,!1):T=new W(0);var z={output:[I,i]};a.interpolation?(C=a.interpolation,a.interpolation.updateConfig(z)):C=T.interpolate(z)}return P=y(w?E.getPayload():E),_=y(T.getPayload()),p&&!v&&T.setValue(x,!1),t.hasChanged=!0,_.forEach(function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=R?e.lastVelocity:void 0,e.lastTime=R?e.lastTime:void 0,e.startTime=A(),e.done=!1,e.animatedStyles.clear()}),b(h,r)&&T.setValue(v?E:i,!1),Object(f.default)({},e,Object(c.a)({},r,Object(f.default)({},a,{name:r,parent:T,interpolation:C,animatedValues:_,toValues:P,previous:j,config:S,fromValues:y(T.getValue()),immediate:b(h,r),initialVelocity:g(S.velocity,0),clamp:g(S.clamp,!1),precision:g(S.precision,.01),tension:g(S.tension,170),friction:g(S.friction,26),mass:g(S.mass,1),duration:S.duration,easing:g(S.easing,function(e){return e}),decay:S.decay})))}return N?e:(v&&(T.setValue(1,!1),C.updateConfig({output:[j,j]})),T.done=!0,t.hasChanged=!0,Object(f.default)({},e,Object(c.a)({},r,Object(f.default)({},e[r],{previous:j}))))},this.animations),this.hasChanged)for(var x in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[x]=this.animations[x].interpolation,this.values[x]=this.animations[x].interpolation.getValue();return this}},{key:"destroy",value:function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}]),e}(),Q=function(e,t){var n=Object(p.useRef)(!1),r=Object(p.useRef)(),o=m.fun(t),i=Object(p.useMemo)(function(){var n;return r.current&&(r.current.map(function(e){return e.destroy()}),r.current=void 0),[new Array(e).fill().map(function(e,r){var i=new q,a=o?b(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i}),n]},[e]),a=i[0],u=i[1];r.current=a;Object(p.useImperativeHandle)(u,function(){return{start:function(){return Promise.all(r.current.map(function(e){return new Promise(function(t){return e.start(t)})}))},stop:function(e){return r.current.forEach(function(t){return t.stop(e)})},get controllers(){return r.current}}});var l=Object(p.useMemo)(function(){return function(e){return r.current.map(function(t,n){t.update(o?b(e,n,t):e[n]),u||t.start()})}},[e]);Object(p.useEffect)(function(){n.current?o||l(t):u||r.current.forEach(function(e){return e.start()})}),Object(p.useEffect)(function(){return n.current=!0,function(){return r.current.forEach(function(e){return e.destroy()})}},[]);var s=r.current.map(function(e){return e.getValues()});return o?[s,l,function(e){return r.current.forEach(function(t){return t.pause(e)})}]:s},K=function(e){var t=m.fun(e),n=Q(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},G=0,Y="enter",X="leave",Z="update",J=function(e,t){return("function"===typeof t?e.map(t):y(t)).map(String)},ee=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,o=Object(d.default)(e,["items","keys"]);return t=y(void 0!==t?t:null),Object(f.default)({items:t,keys:J(t,r)},o)};function te(e,t,n){var o=Object(f.default)({items:e,keys:t||function(e){return e}},n),i=ee(o),a=i.lazy,u=void 0!==a&&a,l=(i.unique,i.reset),s=void 0!==l&&l,c=(i.enter,i.leave,i.update,i.onDestroyed),h=(i.keys,i.items,i.onFrame),m=i.onRest,g=i.onStart,y=i.ref,w=Object(d.default)(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),x=v(),k=Object(p.useRef)(!1),E=Object(p.useRef)({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!o.ref,instances:!k.current&&new Map,forceUpdate:x});return Object(p.useImperativeHandle)(o.ref,function(){return{start:function(){return Promise.all(Array.from(E.current.instances).map(function(e){var t=e[1];return new Promise(function(e){return t.start(e)})}))},stop:function(e){return Array.from(E.current.instances).forEach(function(t){return t[1].stop(e)})},get controllers(){return Array.from(E.current.instances).map(function(e){return e[1]})}}}),E.current=function(e,t){var n=e.first,o=e.prevProps,i=Object(d.default)(e,["first","prevProps"]),a=ee(t),u=a.items,l=a.keys,s=a.initial,c=a.from,p=a.enter,h=a.leave,m=a.update,v=a.trail,g=void 0===v?0:v,y=a.unique,w=a.config,x=a.order,k=void 0===x?[Y,X,Z]:x,E=ee(o),S=E.keys,_=E.items,T=Object(f.default)({},i.current),C=Object(r.a)(i.deleted),O=Object.keys(T),P=new Set(O),j=new Set(l),A=l.filter(function(e){return!P.has(e)}),F=i.transitions.filter(function(e){return!e.destroyed&&!j.has(e.originalKey)}).map(function(e){return e.originalKey}),R=l.filter(function(e){return P.has(e)}),N=-g;for(;k.length;){var L=k.shift();switch(L){case Y:A.forEach(function(e,t){y&&C.find(function(t){return t.originalKey===e})&&(C=C.filter(function(t){return t.originalKey!==e}));var r=l.indexOf(e),o=u[r],i=n&&void 0!==s?"initial":Y;T[e]={slot:i,originalKey:e,key:y?String(e):G++,item:o,trail:N+=g,config:b(w,o,i),from:b(n&&void 0!==s?s||{}:c,o),to:b(p,o)}});break;case X:F.forEach(function(e){var t=S.indexOf(e),n=_[t],r=X;C.unshift(Object(f.default)({},T[e],{slot:r,destroyed:!0,left:S[Math.max(0,t-1)],right:S[Math.min(S.length,t+1)],trail:N+=g,config:b(w,n,r),to:b(h,n)})),delete T[e]});break;case Z:R.forEach(function(e){var t=l.indexOf(e),n=u[t],r=Z;T[e]=Object(f.default)({},T[e],{item:n,slot:r,trail:N+=g,config:b(w,n,r),to:b(m,n)})})}}var M=l.map(function(e){return T[e]});return C.forEach(function(e){var t,n=e.left,o=(e.right,Object(d.default)(e,["left","right"]));-1!==(t=M.findIndex(function(e){return e.originalKey===n}))&&(t+=1),t=Math.max(0,t),M=[].concat(Object(r.a)(M.slice(0,t)),[o],Object(r.a)(M.slice(t)))}),Object(f.default)({},i,{changed:A.length||F.length||R.length,first:n&&0===A.length,transitions:M,current:T,deleted:C,prevProps:t})}(E.current,o),E.current.changed&&E.current.transitions.forEach(function(e){var t=e.slot,n=e.from,r=e.to,o=e.config,i=e.trail,a=e.key,l=e.item;E.current.instances.has(a)||E.current.instances.set(a,new q);var d=E.current.instances.get(a),p=Object(f.default)({},w,{to:r,from:n,config:o,ref:y,onRest:function(n){E.current.mounted&&(e.destroyed&&(y||u||ne(E,a),c&&c(l)),!Array.from(E.current.instances).some(function(e){return!e[1].idle})&&(y||u)&&E.current.deleted.length>0&&ne(E),m&&m(l,t,n))},onStart:g&&function(){return g(l,t)},onFrame:h&&function(e){return h