react-voodoo 2.5.9 → 2.5.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/react-voodoo.js +1 -1
- package/dist/react-voodoo.js.map +1 -1
- package/package.json +3 -3
package/dist/react-voodoo.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
/*! For license information please see react-voodoo.js.LICENSE.txt */
|
2
|
-
(()=>{var e={253:e=>{e.exports={walknSetExport:function(e,t,r){var n,o,i=t.split("/"),a=e;for(n=0;n<i.length-1;)a=a[i[n]]=a[i[n]]||{},n++;o=1===Object.keys(r).length&&r.default||r,a[i[n]]?(a[i[n]].__esModule||Object.assign(o,a[i[n]]),a[i[n]]=o):a[i[n]]=o}}},821:(e,t,r)=>{"use strict";r.d(t,{Bw:()=>l,CG:()=>p,ai:()=>u,bz:()=>i,lc:()=>a,m3:()=>c,yW:()=>s});var n={},o=r(253).walknSetExport;o(n,"any",r(592)),o(n,"bool",r(724)),o(n,"color",r(494)),o(n,"multi",r(835)),o(n,"ratio",r(497)),o(n,"length",r(48)),o(n,"number",r(125)),o(n,"shadow",r(464));var i=n.any,a=n.bool,s=n.color,l=n.length,c=n.multi,u=n.number,p=n.ratio},573:(e,t,r)=>{"use strict";r.d(t,{$U:()=>a,FK:()=>i,J0:()=>l,MD:()=>o,Tl:()=>s,VP:()=>c,xk:()=>n});var n={margin:{properties:["marginTop","marginRight","marginBottom","marginLeft"],multiple:!0},marginBottom:{types:["length"]},marginLeft:{types:["length"]},marginRight:{types:["length"]},marginTop:{types:["length"]},padding:{properties:["paddingTop","paddingRight","paddingBottom","paddingLeft"],multiple:!0},paddingBottom:{types:["length"]},paddingLeft:{types:["length"]},paddingRight:{types:["length"]},paddingTop:{types:["length"]},bottom:{types:["length-percentage-calc"]},left:{types:["length-percentage-calc"]},right:{types:["length-percentage-calc"]},top:{types:["length-percentage-calc"]},zIndex:{types:["integer"]},width:{types:["length-percentage-calc"]},maxWidth:{types:["length-percentage-calc"]},minWidth:{types:["length-percentage-calc"]},height:{types:["length-percentage-calc"]},maxHeight:{types:["length-percentage-calc"]},minHeight:{types:["length-percentage-calc"]},lineHeight:{types:["length"]},verticalAlign:{types:["length"]},visibility:{types:["visibility"]},borderSpacing:{types:["length"],multiple:!0},color:{types:["color"]},opacity:{types:["number"]},backgroundColor:{types:["color"]},backgroundPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},backgroundSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},border:{properties:["borderStyle","borderWidth","borderColor"]},borderBottom:{properties:["borderBottomStyle","borderBottomWidth","borderBottomColor"]},borderLeft:{properties:["borderLeftStyle","borderLeftWidth","borderLeftColor"]},borderRight:{properties:["borderRightStyle","borderRightWidth","borderRightColor"]},borderTop:{properties:["borderTopStyle","borderTopWidth","borderTopColor"]},borderColor:{properties:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderWidth:{properties:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"]},borderBottomColor:{types:["color"]},borderLeftColor:{types:["color"]},borderRightColor:{types:["color"]},borderTopColor:{types:["color"]},borderBottomWidth:{types:["length"]},borderLeftWidth:{types:["length"]},borderRightWidth:{types:["length"]},borderTopWidth:{types:["length"]},borderRadius:{properties:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},borderTopLeftRadius:{types:["length-percentage-calc"],multiple:!0},borderTopRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomLeftRadius:{types:["length-percentage-calc"],multiple:!0},boxShadow:{types:["shadow-list"]},caretColor:{types:["color"]},outline:{properties:["outlineColor","outlineWidth"]},outlineColor:{types:["color"]},outlineWidth:{types:["length"]},outlineOffset:{types:["length"]},flex:{properties:["flexGrow","flexShrink","flexBasis"]},flexGrow:{types:["number"]},flexShrink:{types:["number"]},flexBasis:{types:["length-percentage-calc"]},order:{types:["integer"]},font:{properties:["fontWeight","fontStretch","fontSize","lineHeight"]},fontWeight:{types:["font-weight"]},fontStretch:{types:["font-stretch"]},fontSize:{types:["length"]},fontSizeAdjust:{types:["number"]},gridTemplateColumns:{types:["length-percentage-calc"],multiple:!0},gridTemplateRows:{types:["length-percentage-calc"],multiple:!0},gridTemplate:{properties:["gridTemplateRows","gridTemplateColumns"]},grid:{properties:["gridTemplateRows","gridTemplateColumns"]},gridRowGap:{types:["length-percentage-calc"]},gridColumnGap:{types:["length-percentage-calc"]},gridGap:{properties:["gridRowGap","gridColumnGap"]},clip:{types:["rectangle"]},clipPath:{types:["basic-shape"]},mask:{properties:["maskPosition","maskSize"]},maskPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},maskSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},shapeOutside:{types:["basic-shape"]},shapeMargin:{types:["length-percentage-calc"]},shapeImageThreshold:{types:["number"]},scrollPadding:{properties:["scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft"]},scrollPaddingTop:{types:["length-percentage-calc"]},scrollPaddingRight:{types:["length-percentage-calc"]},scrollPaddingBottom:{types:["length-percentage-calc"]},scrollPaddingLeft:{types:["length-percentage-calc"]},scrollPaddingBlock:{properties:["scrollPaddingBlockStart","scrollPaddingBlockEnd"]},scrollPaddingBlockStart:{types:["length-percentage-calc"]},scrollPaddingBlockEnd:{types:["length-percentage-calc"]},scrollPaddingInline:{properties:["scrollPaddingInlineStart","scrollPaddingInlineEnd"]},scrollPaddingInlineStart:{types:["length-percentage-calc"]},scrollPaddingInlineEnd:{types:["length-percentage-calc"]},scrollSnapMargin:{properties:["scrollSnapMarginTop","scrollSnapMarginRight","scrollSnapMarginBottom","scrollSnapMarginLeft"]},scrollSnapMarginTop:{types:["length"]},scrollSnapMarginRight:{types:["length"]},scrollSnapMarginBottom:{types:["length"]},scrollSnapMarginLeft:{types:["length"]},scrollSnapMarginBlock:{properties:["scrollSnapMarginBlockStart","scrollSnapMarginBlockEnd"]},scrollSnapMarginBlockStart:{types:["length"]},scrollSnapMarginBlockEnd:{types:["length"]},scrollSnapMarginInline:{properties:["scrollSnapMarginInlineStart","scrollSnapMarginInlineEnd"]},scrollSnapMarginInlineStart:{types:["length"]},scrollSnapMarginInlineEnd:{types:["length"]},textDecoration:{properties:["textDecorationColor"]},textDecorationColor:{types:["color"]},textEmphasis:{properties:["textEmphasisColor"]},textEmphasisColor:{types:["color"]},textShadow:{types:["shadow-list"]},columns:{properties:["columnWidth","columnCount"]},columnWidth:{types:["length"]},columnCount:{types:["integer"]},columnGap:{types:["length-percentage-calc"]},columnRule:{properties:["columnRuleColor","columnRuleWidth"]},columnRuleColor:{types:["color"]},columnRuleWidth:{types:["length"]},letterSpacing:{types:["length"]},tabSize:{types:["length"]},textIndent:{types:["length-percentage-calc"]},wordSpacing:{types:["length-percentage-calc"]},transform:{types:["transform"]},transformOrigin:{types:["length-percentage-calc"],multiple:!0},perspective:{types:["length"]},perspectiveOrigin:{types:["length-percentage-calc"],multiple:!0}},o=["","deg","box","bz","bh","bw","deg","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"],i=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["\\w+","deg","bz","bh","bw","cap","ch","deg","em","ic","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")"),a=function(){return Number((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toFixed(3))};function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n[e],i=o&&o.properties,a=t.split(" ");return o.multiple?i&&i.forEach((function(e,t){r[e]=a[t%a.length]})):i&&i.forEach((function(e,t){a[t]&&(r[e]=a[t])})),r}function l(e){var t=n[e],r=t&&t.properties;return r&&!!r.length}function c(e,t){return!!n[e]}},90:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,mux:()=>n.mux,release:()=>n.release});var n=r(494)},504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,demuxOne:()=>n.demuxOne,mux:()=>n.mux,muxOne:()=>n.muxOne,release:()=>n.release});var n=r(464)},479:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>g,demuxOne:()=>d,mux:()=>v,muxOne:()=>h,release:()=>f});var n=r(116),o=r.n(n),i=r(92),a=r.n(i),s=r(573);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={blur:"px",brightness:"%",contrast:"%",dropShadow:!0,grayscale:"%",hueRotate:"deg",invert:"%",opacity:"%",saturate:"%",sepia:"%"},p={};function f(e,t,r,n,o,i){var a,s=e.split("_");if(4===s.length){if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();0!==n[a].length||i||delete n[a],0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function d(e,t,r,n,o,i){var a=r,l=s.MD[e]||u[n];return"bw"===l&&(a*=i.x,l="px"),"wh"===l&&(a*=i.y,l="px"),"bz"===l&&(a*=i.z,l="px"),"deg"===l&&(a%=360),l?(0,s.$U)(a)+l:(0,s.$U)(a)}function g(e,t,r,n,o){for(var i,a,s,l,c,u,p="",f=0,g=0;f<n[e].length;f++)for(a in i=n[e][f])if(i.hasOwnProperty(a)){for(l=e+"_"+f+"_"+a,u="",g=0,s=0;s<n[l].length;s++)n[l][s]&&(c=d(s,0,t[l+"_"+s],a,0,o),g&&"-"===c[0]?c=" - "+c.substr(1):g&&(c=" + "+c),u+=c,g++);g>1&&(u="calc("+u+")"),g>0&&(p+=a+"("+(u||"0")+") ")}r.filter=p}function h(e,t,r,n,o,i,l,c){var f=!!a().string(r)&&r.match(s.FK),d=f&&f[2]||u[t],h=s.MD.indexOf(d),v=-1!==h&&e+"_"+h||e;return i[v]=p[t]||0,o[e][h]=o[e][h]||0,c&&c[h]?n[v]+=f?parseFloat(f[1]):parseFloat(r):(!l&&o[e][h]++,n[v]=f?parseFloat(f[1]):parseFloat(r),c&&(c[h]=!0)),g}var v=function(e,t,r,n,o,i,s){n[e]=n[e]||[],a().array(t)||(t=[t]);for(var l,u,p,f,d,v,y,m=0;m<t.length;m++){for(u in l=t[m],p=s?{}:c({},n[e][m]||{}),l)if(l.hasOwnProperty(u))if(f=l[u],y={},d=e+"_"+m+"_"+u,p[u]=p[u]||n[e][m]&&n[e][m][u]||0,!i&&p[u]++,n[d]=n[d]||[],a().array(f))for(v=0;v<f.length;v++)h(d,u,f[v]||0,r,n,o,i,y);else h(d,u,f||0,r,n,o,i);n[e][m]=s?c(c(c({},p),n[e][m]||{}),p):p}return g}},402:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,demuxOne:()=>n.demuxOne,mux:()=>n.mux,muxOne:()=>n.muxOne,release:()=>n.release});var n=r(464)},841:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>h,demuxOne:()=>g,mux:()=>y,muxOne:()=>v,release:()=>d});var n=r(116),o=r.n(n),i=r(92),a=r.n(i),s=r(573);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={translateX:"px",translateY:"px",translateZ:"px",scale:"",scaleZ:"",scaleX:"",scaleY:"",rotate:"deg",skewX:"deg",skewY:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",perspective:"px"},p={translateX:"x",translateY:"y",translateZ:"z",rotateX:"x",rotateY:"y",rotateZ:"z",left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},f={scale:1,scaleX:1,scaleY:1,scaleZ:1};function d(e,t,r,n,o,i){var a,s=e.split("_");if(4===s.length){if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();0!==n[a].length||i||delete n[a],0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function g(e,t,r,n,o,i){var a=r,l=s.MD[e]||u[n];return"box"===l&&(a*=i[p[n]]||i.x,l="px"),"bw"===l&&(a*=i.x,l="px"),"wh"===l&&(a*=i.y,l="px"),"bz"===l&&(a*=i.z,l="px"),"deg"===l&&(a%=360),l?(0,s.$U)(a)+l:(0,s.$U)(a)}function h(e,t,r,n,o){for(var i,a,s,l,c,u,p="",f=0,d=0;f<n[e].length;f++)for(a in i=n[e][f])if(i.hasOwnProperty(a)){for(l=e+"_"+f+"_"+a,u="",d=0,s=0;s<n[l].length;s++)n[l][s]&&(c=g(s,0,t[l+"_"+s],a,0,o),d&&"-"===c[0]?c=" - "+c.substr(1):d&&(c=" + "+c),u+=c,d++);d>1&&(u="calc("+u+")"),d>0&&(p+=a+"("+(u||"0")+") ")}r.transform=p}function v(e,t,r,n,o,i,l,c){var p=!!a().string(r)&&r.match(s.FK),d=p&&p[2]||u[t],g=s.MD.indexOf(d),v=-1!==g&&e+"_"+g||e;return i[v]=f[t]||0,o[e][g]=o[e][g]||0,c&&c[g]?n[v]+=p?parseFloat(p[1]):parseFloat(r):(!l&&o[e][g]++,n[v]=p?parseFloat(p[1]):parseFloat(r),c&&(c[g]=!0)),h}var y=function(e,t,r,n,o,i,s){if(n[e]=n[e]||[],!a().array(t)&&!a().object(t))return console.warn("React-Voodoo: Ignore unexpected value ",e,":",t," on ",r),h;a().array(t)||(t=[t]);for(var l,u,p,f,d,g,y,m=0;m<t.length;m++){for(u in l=t[m],p=s?{}:c({},n[e][m]||{}),l)if(l.hasOwnProperty(u))if(f=l[u],y={},d=e+"_"+m+"_"+u,p[u]=p[u]||n[e][m]&&n[e][m][u]||0,!i&&p[u]++,n[d]=n[d]||[],a().array(f))for(g=0;g<f.length;g++)v(d,u,f[g]||0,r,n,o,i,y);else v(d,u,f||0,r,n,o,i);n[e][m]=s?c(c(c({},p),n[e][m]||{}),p):p}return h}},592:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>p,demuxOne:()=>u,mux:()=>g,muxOne:()=>d,muxer:()=>f,release:()=>c});var n=r(92),o=r.n(n),i=r(573),a={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"},s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function c(e,t,r,n,o,i){var a=e.split("_");if(2===a.length){if(--n[a[0]][a[1]]||i||delete t[e],!i)for(;n[a[0]].length&&!n[a[0]][n[a[0]].length-1];)n[a[0]].pop();0!==n[a[0]].length||i||(delete n[a[0]],delete o[a[0]],r&&delete r[a[0]])}else console.log("wtf",a)}function u(e,t,r,n,o){var l=t,c=i.MD[e]||a[r]||"px";return"box"===c&&(l*=o[s[r]]||o.x,c="px"),"bw"===c&&(l*=o.x,c="px"),"bh"===c&&(l*=o.y,c="px"),"bz"===c&&(l*=o.z,c="px"),c?(0,i.$U)(l)+c:(0,i.$U)(l)}function p(e,t,r,n,o,i){var a,s,l,c=0;if(a="",n[e].isString)return r[e]=n[e].value,n[e].value;for(s=0;s<n[e].length;s++)n[e][s]&&(t[l=e+"_"+s]<0?a+=(c?" - ":"-")+u(s,-t[l],i||e,0,o):a+=(c?" + ":"")+u(s,t[l],i||e,0,o),c++);return c>1&&(a="calc("+a+")"),r?r[e]=a:a}function f(e,t,r,n,i,a){n[e]=n[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,r,n,i,a,s);else d(e,t||0,r,n,i,a);return p}function d(e,t,r,n,s,c,u){var f=!!o().string(t)&&t.match(i.FK),d=f&&f[2]||a[e]||"px",g=i.MD.indexOf(d),h=-1!==g&&e+"_"+g||e;return s[h]=l[e]||0,n[e][g]=n[e][g]||0,!f&&o().string(t)?(n[e].isString=!0,n[e].value=t,p):(u&&u[g]?r[h]+=f?parseFloat(f[1]):parseFloat(t):(!c&&n[e][g]++,r[h]=f?parseFloat(f[1]):parseFloat(t),u&&(u[g]=!0)),p)}var g=f},724:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>i,mux:()=>a,release:()=>o});var n={opacity:1};function o(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function i(e,t,r,n,o){var i=!!t[e];return r?r[e]=i:i}var a=function(e,t,r,o,a,s){return a[e]=n[e]||0,r[e]=!1===t?0:1,o[e]=o[e]||0,!s&&o[e]++,i}},494:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>a,mux:()=>s,release:()=>i});const n=require("color-rgba");var o=r.n(n);function i(e,t,r,n,o,i){var a=e.split("_"),s=a.slice(0,a.length-1).join("_");--n[e]||i||(delete t[e],delete n[e]),--n[s]||i||(delete t[e],delete n[e])}function a(e,t,r,n){var o="rgba("+t[e+"_r"]+", "+t[e+"_g"]+", "+t[e+"_b"]+", "+t[e+"_a"]+")";return r?r[e]=o:o}function s(e,t,r,n,i,s){var l=o()(t);return n[e]=n[e]||0,n[e+"_r"]=n[e+"_r"]||0,n[e+"_g"]=n[e+"_g"]||0,n[e+"_b"]=n[e+"_b"]||0,n[e+"_a"]=n[e+"_a"]||0,s||(n[e]+=4,n[e+"_r"]++,n[e+"_g"]++,n[e+"_b"]++,n[e+"_a"]++),r[e+"_r"]=l[0],r[e+"_g"]=l[1],r[e+"_b"]=l[2],r[e+"_a"]=l[3],i[e]=0,i[e+"_r"]=0,i[e+"_g"]=0,i[e+"_b"]=0,i[e+"_a"]=1,a}},48:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>p,demuxOne:()=>u,mux:()=>g,muxOne:()=>d,muxer:()=>f,release:()=>c});var n=r(92),o=r.n(n),i=r(573),a={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"},s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function c(e,t,r,n,o,i){var a=e.split("_");if(2===a.length){if(--n[a[0]][a[1]]||i||delete t[e],!i)for(;n[a[0]].length&&!n[a[0]][n[a[0]].length-1];)n[a[0]].pop();0!==n[a[0]].length||i||(delete n[a[0]],delete o[a[0]],r&&delete r[a[0]])}else console.log("wtf",a)}function u(e,t,r,n,o){var l=t,c=i.MD[e]||a[r]||"px";return"box"===c&&(l*=o[s[r]]||o.x,c="px"),"bw"===c&&(l*=o.x,c="px"),"bh"===c&&(l*=o.y,c="px"),"bz"===c&&(l*=o.z,c="px"),c?(0,i.$U)(l)+c:(0,i.$U)(l)}function p(e,t,r,n,o,i){var a,s,l,c=0;for(a="",s=0;s<n[e].length;s++)n[e][s]&&(t[l=e+"_"+s]<0?a+=(c?" - ":"-")+u(s,-t[l],i||e,0,o):a+=(c?" + ":"")+u(s,t[l],i||e,0,o),c++);return c>1&&(a="calc("+a+")"),r?r[e]=a:a}function f(e,t,r,n,i,a){n[e]=n[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,r,n,i,a,s);else d(e,t||0,r,n,i,a);return p}function d(e,t,r,n,s,c,u){var f=!!o().string(t)&&t.match(i.FK),d=f&&f[2]||a[e]||"px",g=i.MD.indexOf(d),h=-1!==g&&e+"_"+g||e;return s[h]=l[e]||0,n[e][g]=n[e][g]||0,u&&u[g]?r[h]+=f?parseFloat(f[1]):parseFloat(t):(!c&&n[e][g]++,r[h]=f?parseFloat(f[1]):parseFloat(t),u&&(u[g]=!0)),p}var g=f},835:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(92),o=r.n(n),i=r(125),a={top:"0%",bottom:"100%",center:"50%",left:"0%",right:"100%"};function s(e,t,r,n,o,a){for(var s=n["_"+e],l="",c={},u=0;u<s;u++)i.demux(e+"_"+u,t,c,n,o,a),l+=c[e+"_"+u]+" ";r[e]=l}function l(e,t,r,n,o,i){e.split("_")}const c=function(e){return{mux:function(t,r,n,l,c,u){var p,f=r.split(" ");l[t]=l[t]||0,u&&l[t]++,l["_"+t]=e;for(var d=0;d<e;d++)p=f[d%f.length],p=o().string(p)&&a[p]||p,i.mux(t+"_"+d,p,n,l,c,u);return s},demux:s,release:l}}},125:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function o(e,t,r,n,o){r[e]=~~t[e]}r.r(t),r.d(t,{demux:()=>o,mux:()=>i,release:()=>n});var i=function(e,t,r,n,i,a){return i[e]=0,r[e]=~~t,n[e]=n[e]||0,!a&&n[e]++,o}},497:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>a,mux:()=>s,release:()=>i});var n=r(573),o={opacity:1};function i(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function a(e,t,r,o,i){r[e]=Math.min(1,Math.max(0,(0,n.$U)(t[e])))}var s=function(e,t,r,n,i,s){return i[e]=o[e]||0,r[e]=t,n[e]=n[e]||0,!s&&n[e]++,a}},464:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>T,demuxOne:()=>S,mux:()=>j,muxOne:()=>D,release:()=>P});var n=r(116),o=r.n(n),i=r(826),a=r.n(i),s=r(92),l=r.n(s),c=r(573),u=r(821);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d,g,h,v,y,m,b,x,w=(d=/,(?![^\(]*\))/,g=/\s(?![^(]*\))/,h=/^[0-9]+[a-zA-Z%]+?$/,v=function(e){var t=e.split(g),r=t.includes("inset"),n=t.slice(-1)[0],o=m(n)?void 0:n,i=t.filter((function(e){return"inset"!==e})).filter((function(e){return e!==o})).map(b),s=a()(i,4);return{inset:r,offsetX:s[0],offsetY:s[1],blurRadius:s[2],spreadRadius:s[3],color:o}},y=function(e){var t=e||{},r=t.inset,n=t.offsetX,o=void 0===n?0:n,i=t.offsetY,a=void 0===i?0:i,s=t.blurRadius;return[r?"inset":null,o,a,void 0===s?0:s,t.spreadRadius,t.color].filter((function(e){return null!=e})).map(x).map((function(e){return(""+e).trim()})).join(" ")},m=function(e){return"0"===e||h.test(e)},b=function(e){if(!/px$/.test(e)&&"0"!==e)return e;var t=parseFloat(e);return isNaN(t)?e:t},x=function(e){return"number"==typeof e&&0!==e?e+"px":e},{parse:function(e){return e.split(d).map((function(e){return e.trim()})).map(v)},stringify:function(e){return e.map(y).join(", ")}}),_={perspective:"px"},O={translateX:"x"},R={inset:u.lc,color:u.yW};function P(e,t,r,n,o,i){var a,s=e.split("_");if(s.length>2){if(a=s[0]+"_"+s[1]+"_"+s[2],R[s[2]])return R[s[2]].release(e,t,r,n,o,i),n[a]||--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],void(0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]]));if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();if(0!==n[a].length||i||delete n[a],!i)for(;n[s[0]].length&&!Object.keys(n[s[0]][n[s[0]].length-1]).length;)n[s[0]].pop();0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function S(e,t,r,n,o,i){var a=r,s=c.MD[e]||_[n];return"box"===s&&(a*=i[O[n]]||i.x,s="px"),"bw"===s&&(a*=i.x,s="px"),"wh"===s&&(a*=i.y,s="px"),"bz"===s&&(a*=i.z,s="px"),"deg"===s&&(a%=360),s?(0,c.$U)(a)+s:(0,c.$U)(a)}function T(e,t,r,n,o){for(var i,a,s,l,c,u,p=[],f={},d=0,g=0;d<n[e].length;d++){for(a in f={},i=n[e][d])if(i.hasOwnProperty(a)){if(l=e+"_"+d+"_"+a,R[a])u=R[a].demux(l,t,void 0,n,o);else{for(u="",g=0,s=0;s<n[l].length;s++)n[l][s]&&(c=S(s,0,t[l+"_"+s],a,0,o),g&&"-"===c[0]?c=" - "+c.substr(1):g&&(c=" + "+c),u+=c,g++);g>1&&(u="calc("+u+")")}f[a]=u||0}p.push(f)}r[e]=w.stringify(p)}function D(e,t,r,n,o,i,a,s){var u=!!l().string(r)&&r.match(c.FK),p=u&&u[2]||_[t]||"px",f=c.MD.indexOf(p),d=-1!==f&&e+"_"+f||e;return i[d]=0,o[e][f]=o[e][f]||0,s&&s[f]?n[d]+=u?parseFloat(u[1]):parseFloat(r):(!a&&o[e][f]++,n[d]=u?parseFloat(u[1]):parseFloat(r),s&&(s[f]=!0)),T}var j=function(e,t,r,n,o,i,a){n[e]=n[e]||[],l().array(t)||(t=[t]);for(var s,c,u,p,d,g,h,v=0;v<t.length;v++){for(c in s=t[v],l().string(s)&&(s=w.parse(s)[0]),u=a?{}:f({},n[e][v]||{}),s)if(s.hasOwnProperty(c))if(p=s[c],d=e+"_"+v+"_"+c,u[c]=u[c]||n[e][v]&&n[e][v][c]||0,!i&&u[c]++,R[c])R[c].mux(d,p,r,n,o,i,a);else if(h={},n[d]=n[d]||[],l().array(p))for(g=0;g<p.length;g++)D(d,c,p[g]||0,r,n,o,i,h);else D(d,c,p||0,r,n,o,i);n[e][v]=a?f(f(f({},u),n[e][v]||{}),u):u}return T}},116:e=>{"use strict";e.exports=require("@babel/runtime/helpers/defineProperty")},826:e=>{"use strict";e.exports=require("@babel/runtime/helpers/slicedToArray")},50:e=>{"use strict";e.exports=require("d3-ease")},92:e=>{"use strict";e.exports=require("is")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{Axis:()=>Ue,Component:()=>yt,Context:()=>P,Draggable:()=>at,Node:()=>nt,child:()=>gt,default:()=>mt,dom:()=>we,hook:()=>Ye,tools:()=>e,tweener:()=>ut,useTweener:()=>st,useVoodoo:()=>Ye});var e={};r.r(e),r.d(e,{addCss:()=>Y,cssAdd:()=>L,cssMult:()=>F,extractCss:()=>X,offset:()=>N,re_cssValueWithUnit:()=>I,reverse:()=>H,scale:()=>z,shiftTransforms:()=>G,target:()=>$});const t=require("@babel/runtime/helpers/classCallCheck");var o=r.n(t);const i=require("@babel/runtime/helpers/createClass");var a=r.n(i);const s=require("@babel/runtime/helpers/possibleConstructorReturn");var l=r.n(s);const c=require("@babel/runtime/helpers/getPrototypeOf");var u=r.n(c);const p=require("@babel/runtime/helpers/inherits");var f=r.n(p);const d=require("react");var g=r.n(d),h=r(826),v=r.n(h);const y=require("fast-deep-equal");var m=r.n(y);const b=require("@babel/runtime/helpers/extends");var x=r.n(b);const w=require("@babel/runtime/helpers/objectWithoutProperties");var _=r.n(w),O=r(92),R=r.n(O);const P=g().createContext(null),S=require("@babel/runtime/helpers/toConsumableArray");var T=r.n(S);const D=require("@babel/runtime/helpers/get");var j=r.n(D),k=r(116),E=r.n(k),B=r(50);const M=require("react-dom");var A=r.n(M);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var I=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["box","bz","bh","bw","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")");function L(e,t){R().array(e)||(e=[e]),R().array(t)||(t=[t]);var r,n=e.map((function(e){return e&&e.match&&e.match(I)||[,e||0,"px"]})),o=t.map((function(e){return e&&e.match&&e.match(I)||[,e||0,"px"]})),i={},a=[];for(r=0;r<n.length;)i[n[r][2]]=i[n[r][2]]||0,i[n[r][2]]+=parseFloat(n[r][1]),r++;for(r=0;r<o.length;)i[o[r][2]]=i[o[r][2]]||0,i[o[r][2]]+=parseFloat(o[r][1]),r++;Object.keys(i).forEach((function(e){return a.push(i[e]+e)}));for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];return l.length?L.apply(void 0,[a].concat(l)):a}function F(e,t){R().array(e)||(e=[e]);var r,n=e.map((function(e){return e&&e.match&&e.match(I)||[,e||0,"px"]})),o={},i=[];for(r=0;r<n.length;)o[n[r][2]]=o[n[r][2]]||1,o[n[r][2]]=parseFloat(n[r][1])*t,r++;return Object.keys(o).forEach((function(e){return i.push(o[e]+e)})),i}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e=R().array(e)?e:e&&[e]||e).map((function(e){return W(W({},e),{},{from:e.from+t})}))}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;e=R().array(e)?e:e&&[e]||e;var n=0;return e.forEach((function(e){n=Math.max(n,e.from+e.duration)})),e=e.map((function(e){return W(W({},e),{},{from:e.from/n*t,duration:e.duration/n*t})})),r?N(e,r):e}function V(e){return R().number(e)?-e:R().object(e)?Object.keys(e).reduce((function(t,r){return t[r]=V(e[r]),t}),{}):R().array(e)?e.map((function(e){return V(e)})):e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function(e,t){return t%2?-parseFloat(e):e})).join("")}function H(e){e=R().array(e)?e:e&&[e]||e;var t=0;return e.forEach((function(e){t=Math.max(t,e.from+e.duration)})),e.map((function(e){return W(W({},e),{},{from:t-(e.from+e.duration)},e.apply?{apply:V(e.apply)}:void 0)}))}var q={transform:!0,filter:!0,textShadow:!0,boxShadow:!0};function Y(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r.shift();for(var i in o){var a;o.hasOwnProperty(i)&&(q[i]?(e[i]||(e[i]=[]),R().array(o[i])?Y(e[i],o[i]):Y(e[i],[o[i]])):R().array(o[i])?(e[i]||(e[i]=[]),R().array(e[i])?(a=e[i]).push.apply(a,T()(o[i])):e[i]=[].concat(T()(o[i]),[e[i]])):e[i]?R().object(e[i])&&R().object(o[i])?Y(e[i],o[i]):e[i]=U(e[i],o[i]):R().object(o[i])?e[i]=W({},o[i]):e[i]=o[i])}return r.length&&Y.apply(void 0,[e].concat(r))||e}function U(e,t){if(!e)return t;if(!t)return e;var r=(""+e).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),n=(""+t).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),o=r.map((function(e,t){return t%2?parseFloat(e)+parseFloat(n[t]||0):e})).filter((function(e){return""!==e}));return 1===o.length?parseInt(o[0]):o.join("")}function X(e,t){var r={};return(e=R().array(e)?e:e&&[e]||e).forEach((function(e){Y(r,e.apply)})),t&&(r=V(r)),r}function $(e,t){return(e=R().array(e)?e:e&&[e]||e).map((function(e){return W(W({},e),{},{target:t})}))}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(e=R().array(e)?e:e&&[e]||e).map((function(e){var r=e.apply&&e.apply.transform;if(r){r=R().array(r)?r:[r];for(var n=0;n<t;n++)r.unshift({});e=W(W({},e),{},{apply:W(W({},e.apply),{},{transform:r})})}return e}))}var K=r(573),Z={},J=r(253).walknSetExport;J(Z,"filter",r(479)),J(Z,"boxShadow",r(504)),J(Z,"transform",r(841)),J(Z,"textShadow",r(402)),J(Z,"backgroundColor",r(90));const Q=Z;var ee=r(821);function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ne=re(re({},Q),{},{height:ee.Bw,width:ee.Bw,top:ee.Bw,left:ee.Bw,right:ee.Bw,bottom:ee.Bw,marginTop:ee.Bw,marginLeft:ee.Bw,marginRight:ee.Bw,marginBottom:ee.Bw,paddingTop:ee.Bw,paddingLeft:ee.Bw,paddingRight:ee.Bw,paddingBottom:ee.Bw,borderRadius:ee.Bw,borderTopColor:ee.yW,borderLeftColor:ee.yW,borderRightColor:ee.yW,borderBottomColor:ee.yW,borderTopWidth:ee.Bw,borderLeftWidth:ee.Bw,borderRightWidth:ee.Bw,borderBottomWidth:ee.Bw,transformOrigin:(0,ee.m3)(2),zIndex:ee.ai,opacity:ee.CG});function oe(e,t,r,n,o,i,a){var s;null===(s=i[t.split("_")[0]])||void 0===s||s.release(t,r,n,o,i,a)}function ie(e,t,r,n,o){Object.keys(r).forEach((function(i){r[i].demux(i,e,t,n,o)}))}function ae(e,t,r,n,o,i,a){var s={},l={};return e&&Object.keys(e).forEach((function(t){ne[t]?s[t]=e[t]:(0,K.VP)(t,e[t])?(0,K.J0)(t)?(0,K.Tl)(t,e[t],s):s[t]=e[t]:l[t]=e[t]})),s&&Object.keys(s).forEach((function(e){ne[e]?(o[e]=ne[e]).mux(e,s[e],t,n,r,i,a):(o[e]=function(e){var t=K.xk[e],r=t&&t.types;if(!r)return ee.bz;for(var n=0;n<r.length;n++)switch(r[n]){case"length":case"length-percentage-calc":return ee.Bw;case"number":case"integer":return ee.ai;case"color":return ee.yW}return ee.bz}(e)).mux(e,s[e],t,n,r,i,a)})),l}function se(e,t,r,n,o){o=o&&{};var i={},a=e.reduce((function(e,a){var s={};return n[a.target]=n[a.target]||{},t[a.target]=t[a.target]||{},r[a.target]=r[a.target]||{},a.type&&"Tween"!==a.type?e.push(re({},a)):(!o&&Y(i[a.target]=i[a.target]||{},a.apply),ae(a.apply,s,t[a.target],r[a.target],n[a.target],!0),e.push(re(re({},a),{},{apply:s}))),e}),[]);return!o&&Object.keys(i).forEach((function(e){return ae(i[e],{},{},r[e],n[e])})),a}const le=require("tween-axis");var ce=r.n(le);function ue(e,t,r){return t=u()(t),l()(e,pe()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pe=function(){return!!e})()}var fe,de,ge=[],he=function(e){function t(e,r){if(o()(this,t),ge.length){var n=ge.pop();return n.scope=r,R().array(e)?(n.localLength=1,n.mount(e,r)):e.Axis&&n.mount(e.Axis,r),l()(void 0,n)}return ue(this,t,arguments)}return f()(t,e),a()(t,[{key:"destroy",value:function(){this.scope=void 0,this.__marks.length=0,this.__marksLength.length=0,this.__marksKeys.length=0,this.__processors.length=0,this.__config.length=0,this.__activeProcess.length=0,this.__activeProcess.length=0,this.__outgoing.length=0,this.__incoming.length=0,this.__cPos=0,this.duration=0,this.__cIndex=0,this.__cMaxKey=1,ge.push(this)}}])}(ce()),ve=r(92),ye="undefined"!=typeof window,me=(ye&&(de=" -webkit- -moz- -o- -ms- ".split(" "),!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(fe=["(",de.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia&&window.matchMedia(fe).matches)),ye?{prefix:/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":/trident/i.test(navigator.userAgent)?"ms":"opera"in window?"O":"",dashedPrefix:/webkit/i.test(navigator.appVersion)?"-webkit-":/firefox/i.test(navigator.userAgent)?"-moz-":/trident/i.test(navigator.userAgent)?"-ms-":"opera"in window?"-o-":""}:{prefix:"",dashedPrefix:""}),be={onPageHided:[],onPageShown:[],dragging:[],dragEnabled:[],dragEnabledDesc:[],fingers:{},nbFingers:0,dragstartAnywhere:function(e){var t,r,n,o=be,i=o.dragEnabled.indexOf(this),a=[];if(-1!==i){o.nbFingers||(xe.addEvent(document,{touchmove:o.dragAnywhere,mousemove:o.dragAnywhere,touchend:o.dropAnywhere,mouseup:o.dropAnywhere}),xe.addEvent(this,{click:o.dropWithoutClick},null,null,null,!0)),e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)if(r=a[s],!(n=o.dragEnabledDesc[i]).nbFingers)for(o.nbFingers++,o.fingers[r.identifier]=o.fingers[r.identifier]||[],o.fingers[r.identifier].push(n),n.nbFingers++,n._startPos.x="MS"==me.prefix?r.x:r.pageX,n._startPos.y="MS"==me.prefix?r.y:r.pageY,n._startTs=e.timeStamp,n._lastPos.x="MS"==me.prefix?r.x:r.pageX,n._lastPos.y="MS"==me.prefix?r.y:r.pageY,t=0;t<n.dragstart.length;t++)n.dragstart[t][0].call(n.dragstart[t][1]||this,e,r,n)}},dragAnywhere:function(e){var t,r,n,o=this,i=be,a=[];be.dragging[0],e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)r=a[s],i.fingers[r.identifier],i.fingers[r.identifier]&&i.fingers[r.identifier].forEach((function(i){if(n)return i._lastPos.x=i._startPos.x="MS"==me.prefix?r.x:r.pageX,void(i._lastPos.y=i._startPos.y="MS"==me.prefix?r.y:r.pageY);for(i._lastPos.x="MS"==me.prefix?r.x:r.pageX,i._lastPos.y="MS"==me.prefix?r.y:r.pageY,t=0;t<i.drag.length;t++)n=!1===i.drag[t][0].call(i.drag[t][1]||o,e,r,i)}))},dropWithoutClick:function(e){be.preventNextClick&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),be.preventNextClick=!1),xe.removeEvent(this,{click:this.dropWithoutClick})},dropAnywhere:function(e){var t,r,n,o=this,i=be,a=[];e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)r=a[s],i.nbFingers--,i.fingers[r.identifier]&&i.fingers[r.identifier].forEach((function(i){for(i.nbFingers--,n=n||i.mouseDrag&&e.timeStamp-i._startTs>250,i._lastPos.x="MS"==me.prefix?r.x:r.pageX,i._lastPos.y="MS"==me.prefix?r.y:r.pageY,t=0;t<i.dropped.length;t++)i.dropped[t][0].call(i.dropped[t][1]||o,e,r,i)})),i.fingers[r.identifier]=null;n&&(i.preventNextClick=!0),i.nbFingers||xe.removeEvent(document,{touchmove:i.dragAnywhere,mousemove:i.dragAnywhere,touchend:i.dropAnywhere,mouseup:i.dropAnywhere})},getDraggable:function(e,t,r){var n,o=this.dragEnabled.indexOf(e);return-1===o?(this.dragEnabled.push(e),this.dragEnabledDesc.push(n={mouseDrag:t,touchDrag:r,nbFingers:0,locks:0,_startPos:{x:0,y:0},_lastPos:{x:0,y:0},dragstart:[],drag:[],dragEnd:[],dropped:[]}),xe.addEvent(e,{mousedown:t&&this.dragstartAnywhere,touchstart:r&&this.dragstartAnywhere},null,null,null,!0)):n=this.dragEnabledDesc[o],n},freeDraggable:function(e){var t=this.dragEnabled.indexOf(e);-1!==t&&(this.dragEnabled.splice(t,1),this.dragEnabledDesc.splice(t,1),xe.removeEvent(e,{mousedown:this.dragstartAnywhere,touchstart:this.dragstartAnywhere}))},addEvent:function(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on"+t,r.related=function(t){return r.call(e,t)})},removeEvent:function(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.attachEvent&&e.detachEvent("on"+t,r.related)},rmDragFn:function(e,t,r){for(var n=0,o=e.length;n<o;n++)if(e[n][0]===t)return e.splice(n,1);console.warn("Rm event : Listener not found !!")}},xe={addEvent:function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0;if(ve.object(t))for(var a in t)t.hasOwnProperty(a)&&t[a]&&this.addEvent(e,a,t[a],n,o,i);else"dragstart"===t?be.getDraggable(e,n,o).dragstart.push([r]):"drag"===t?be.getDraggable(e,n,o).drag.push([r]):"dropped"===t?be.getDraggable(e,n,o).dropped.push([r]):e.addEventListener?e.addEventListener(t,r,{passive:!1}):e.attachEvent&&e.attachEvent("on"+t,r.related=function(t){return r.call(e,t)})},removeEvent:function(e,t,r,n,o){var i;if(ve.object(t))for(var a in t)t.hasOwnProperty(a)&&this.removeEvent(e,a,t[a],n);else/^(drag|drop)/.test(t)?(i=be.getDraggable(e),be.rmDragFn(i[t],r,n),i.dragstart.length||i.drag.length||i.dragEnd.length||i.dropped.length||be.freeDraggable(e)):e.removeEventListener?e.removeEventListener(t,r,o):e.attachEvent&&e.detachEvent("on"+t,r.related)},offset:function(e){for(var t={top:0,left:0,width:e.offsetWidth,height:e.offsetHeight};e;)t.top=t.top+parseInt(e.offsetTop),t.left=t.left+parseInt(e.offsetLeft),e=e.offsetParent;return t},findReactParents:function(e){var t,r=[e];for(var n in e)if(n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber$")){for(t=e[n];t.return;)t.stateNode&&!r.includes(t.stateNode)&&r.push(t.stateNode),t=t.return;return r}return e.parentNode&&this.findReactParents(e.parentNode)}};const we=xe;function _e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Re=r(92),Pe=r(50),Se=function(e){return"number"==typeof e?e?e<0?-1:1:e==e?e:NaN:NaN},Te=Math.abs,De=Math.floor,je=(Math.round,Math.min),ke=Math.max,Ee=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toFixed(3)},Be=function(){return a()((function e(t){o()(this,e);var r=this._={};r.conf=Oe(Oe({},this.constructor.config),t),this.active=!1,r.pos=t.value||0,r.refFPS=16,r.min=t.min||0,r.max=t.max||0,r.currentStop=0,r.lastInertiaPos=0,r.stops=r.conf.stops,r.disabled=r.conf.disabled,r.wayPoints=r.conf.wayPoints,r.inertiaFn=Pe.easePolyOut,r.targetWayPointIndex=0,this._detectCurrentSnap()}),[{key:"updateConf",value:function(e){var t=this._;t.min=e.min||0,t.max=e.max||0,t.stops=e.stops,t.disabled=e.disabled,t.wayPoints=e.wayPoints,t.conf.willStop=e.willStop,t.conf.willSnap=e.willSnap,t.conf.onStop=e.onStop,t.conf.onSnap=e.onSnap,t.conf.shouldLoop=e.shouldLoop}},{key:"startMove",value:function(){var e=this._;e.baseTS=e.startTS=Date.now()/1e3,e.lastVelocity=e.lastIVelocity=0,e.lastAccel=0,e.posDiff=0,e.loopsDiff=0,this.active=!0,this.holding=!0,e.inertia=!1}},{key:"hold",value:function(e){var t,r=this._,n=void 0!==r.lastHoldPos?e-r.lastHoldPos:0,o=Date.now()/1e3,i=o-r.baseTS,a=e,s=n/i;if(r.lastHoldPos=e,r.lastBaseTs||(r.lastBasePos=e,r.lastBaseTs=r.baseTS),i<.003||((s<=0&&r.lastVelocity>0||s>=0&&r.lastVelocity<0||Te(s)<Te(.2*r.lastVelocity))&&o-r.lastBaseTs>.15?(r.lastBasePos=e,r.lastBaseTs=o,r.lastVelocity=0,r.lastIVelocity=0,r.baseTS=o,r.targetDist=0,r.lastInertiaPos=0):s<=0&&r.lastVelocity>0||s>=0&&r.lastVelocity<0||Te(s)<Te(.2*r.lastVelocity)||(r.lastIVelocity=s,r.lastVelocity=(a-r.lastBasePos)/(o-r.lastBaseTs),r.baseTS=o,r.targetDist=0,r.lastInertiaPos=0,r.targetWayPoint=void 0,r.targetWayPointIndex=void 0)),r.conf.bounds&&(a>r.max?a=r.max:a<r.min&&(a=r.min)),r.conf.shouldLoop)for(;t=r.conf.shouldLoop(a,n);)a+=t;r.pos=a}},{key:"release",value:function(){var e,t,r=this._;Se(r.lastVelocity),this.holding=!1,function(e){var t=Se(e.lastVelocity);e.disabled?(e.loopsTarget=0,e.loopsVelSum=0,e.targetDist=0,e.targetDuration=0):(e.loopsTarget=De(Math.log(.05/Te(e.lastVelocity))/Math.log(.9)),e.loopsVelSum=(Math.pow(.9,e.loopsTarget)-Te(e.lastVelocity))/(.9-1),e.targetDist=e.loopsVelSum*e.refFPS*t/1e3||0,e.targetDuration=Te(e.loopsTarget*e.refFPS*t)||0)}(r),r.lastHoldPos=void 0,r.lastBasePos=void 0,r.lastBaseTs=void 0,r.holding=!1,r.conf.bounds&&r.conf.snapToBounds&&(r.pos+r.targetDist>r.max?(r.targetDist=r.max-r.pos,r.targetDuration=Te(10*r.targetDist)):r.pos+r.targetDist<r.min&&(r.targetDist=r.min-r.pos,r.targetDuration=Te(10*r.targetDist))),r.targetDuration||(r.targetDuration=50),this.active=!0,r.inertia=!0,r.lastInertiaPos=0,r.inertiaStartTm=r.inertiaLastTm=Date.now(),this._doSnap(null,500),null===(e=(t=r.conf).willEnd)||void 0===e||e.call(t,r.targetDist+r.pos,r.targetDist,r.targetDuration)}},{key:"update",value:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=this._,o=n.inertiaFn((r-n.inertiaStartTm)/n.targetDuration)*n.targetDist;if(!n.inertia)return n.pos;var i=o-n.lastInertiaPos;if(n.lastInertiaPos=o,r-n.inertiaStartTm>=n.targetDuration&&(n.inertia=this.active=!1,n.lastInertiaPos=i=0,n.targetDist=0,n.targetWayPoint&&(i=n.targetWayPoint.at-n.pos,n.currentWayPoint=n.targetWayPoint,n.currentWayPointIndex=n.targetWayPointIndex,n.targetWayPoint=null,n.targetWayPointIndex=null),n.conf.onStop&&n.conf.onStop(n.pos,n.currentWayPoint),n.conf.onSnap&&n.conf.onSnap(n.currentWayPointIndex,n.currentWayPoint)),i=i||0,e=n.pos+i,n.conf.shouldLoop)for(;t=n.conf.shouldLoop(e,i);)e+=t,n.inertia;return n.pos=e,e}},{key:"setPos",value:function(e){var t=this._;if(t.inertia=!1,this.active=!1,t.lastInertiaPos=0,t.targetDist=0,t.inertiaStartTm=0,t.inertiaLastTm=0,t.targetDuration=0,t.conf.shouldLoop){for(var r,n=e;r=t.conf.shouldLoop(n,t.pos-e);)n+=r;e=n}t.pos=e,t.conf.bounds&&(t.pos=ke(t.pos,t.min),t.pos=je(t.pos,t.max))}},{key:"setWayPoints",value:function(e){this._.wayPoints=e,this._detectCurrentSnap()}},{key:"teleport",value:function(e){var t=this._;if(!t.inertia)return t.pos+=e;t.pos+=e}},{key:"dispatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=this._,n=Date.now();this.active=!0,r.inertia&&Se(e)===Se(r.targetDist)?(r.targetDist+=e,r.targetDuration+=t/2):(r.inertia=!0,r.lastInertiaPos=0,r.inertiaStartTm=r.inertiaLastTm=n,r.targetDist=e,r.targetDuration=t),r.conf.bounds&&(r.pos+r.targetDist>r.max?(r.targetDist=r.max-r.pos,r.targetDuration=Te(10*r.targetDist)):r.pos+r.targetDist<r.min&&(r.targetDist=r.min-r.pos,r.targetDuration=Te(10*r.targetDist))),this._doSnap(Se(e),750)}},{key:"_detectCurrentSnap",value:function(){var e,t=this._,r=t.pos;if(t.wayPoints&&t.wayPoints.length)for(e=0;e<t.wayPoints.length;e++)if(Ee(t.wayPoints[e].at)===Ee(r))return t.currentWayPoint=t.wayPoints[e],t.currentWayPointIndex=e,e}},{key:"_doSnap",value:function(e){var t,r,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,a=this._,s=a.targetDist+(a.pos-(a.lastInertiaPos||0)),l=0;if(a.wayPoints&&a.wayPoints.length){if(a.conf.shouldLoop)for(;o=a.conf.shouldLoop(s,0);)s+=o,l+=o;for(n=0;n<a.wayPoints.length&&!(a.wayPoints[n].at>s);n++);if(n===a.wayPoints.length?n--:0===n?n=0:(r=(a.wayPoints[n].at-a.wayPoints[n-1].at)/2,r=a.wayPoints[n-1].at+r*((a.wayPoints[n].gravity||1)/(a.wayPoints[n-1].gravity||1)),e?e<0&&n--:s<r&&n--),a.conf.maxJump&&Re.number(a.currentWayPointIndex)){var c=n-a.currentWayPointIndex;Te(c)>a.conf.maxJump&&(n=a.currentWayPointIndex+Se(c)*a.conf.maxJump)}t=a.wayPoints[n].at,a.conf.willSnap&&a.conf.willSnap(n,a.wayPoints[n]),a.lastInertiaPos=a.lastInertiaPos||0,t=t-(a.pos-a.lastInertiaPos)-l,a.targetDuration=ke(50,je(i,Te(a.targetDuration/a.targetDist*t)))||0,a.targetDist=t,a.targetWayPoint=a.wayPoints[n],a.targetWayPointIndex=n}else t=~~(a.pos-a.lastInertiaPos),a.conf.infinite||(t>a.max?(t=a.max-t,a.targetDuration=je(i,Te(a.targetDuration/a.targetDist*t)),a.targetDist=t):t<a.min&&(t=a.min-t,a.targetDuration=je(i,Te(a.targetDuration/a.targetDist*t)),a.targetDist=t))}},{key:"setBounds",value:function(e,t){var r=this._;r.min=e,r.max=t}},{key:"isInbound",value:function(e){var t=this._,r=void 0!==t.lastHoldPos?e-t.lastHoldPos:0,n=(t.targetDist||0)+(t.pos-(t.lastInertiaPos||0))+r;return n>=t.min&&n<=t.max}}])}();function Me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ce(e,t,r){return t=u()(t),l()(e,We()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function We(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(We=function(){return!!e})()}E()(Be,"config",{bounds:!0,snapToBounds:!0});var Ie,Le,Fe=new Function("try {return this===window;}catch(e){ return false;}")(),Ne=R().array,ze=[],Ve=function e(){var t=0,r=Date.now(),n=r-Le;for(Le=r;t<ze.length;t++)ze[t].cpos=Math.min(n+ze[t].cpos,ze[t].duration),ze[t].apply(ze[t].cpos,ze[t].duration),ze[t].cpos==ze[t].duration&&(ze[t].cb&&setTimeout(ze[t].cb),ze.splice(t,1),t--);ze.length?setTimeout(e,16):Ie=!1},He=function(e){function t(e){var r;o()(this,t),r=Ce(this,t,arguments),E()(r,"axes",{}),E()(r,"_scrollWatcherByAxis",{}),E()(r,"_updateNodeInertia",(function(){var e,t=r._,n=t.activeInertia.length;r._inertiaRaf&&cancelAnimationFrame(r._inertiaRaf);for(var o=0;n>o;o++)((e=t.activeInertia[o]).inertia.x.active||e.inertia.x.holding)&&(e.target.scrollLeft=~~e.inertia.x.update()),(e.inertia.y.active||e.inertia.y.holding)&&(e.target.scrollTop=~~e.inertia.y.update()),e.inertia.x.active||e.inertia.y.active||e.inertia.x.holding||e.inertia.y.holding||(t.activeInertia.slice(o,1),o--,n--);r._inertiaRaf=0!==n?requestAnimationFrame(r._updateNodeInertia):null})),E()(r,"_swap",{});var n=r._={refs:{},muxByTarget:{}};return n.box={x:100,y:100,z:800},r.__isTweener=!0,n._rafLoop=r._rafLoop.bind(r),n.rootRef=r.props.forwardedRef||g().createRef(),n.options=Ae({maxClickTm:200,maxClickOffset:5},e.tweenerOptions||{}),n.tweenRefCSS={},n.tweenRefs={},n.tweenRefMaps={},n.iMapOrigin={},n.tweenRefInitialData={},n.tweenEnabled=!0,n.tweenRefOrigin={},n.tweenRefOriginCss={},n.muxDataByTarget=n.muxDataByTarget||{},n.tweenRefDemuxed=n.tweenRefDemuxed||{},n.tweenRefTargets=n.tweenRefTargets||[],n.runningAnims=n.runningAnims||[],n.scrollHook=[],n.activeInertia=[],Fe&&window.addEventListener("resize",r._.onResize=function(e){var t,o;r._updateBox(),r._updateTweenRefs(),null===(t=n.rootRef)||void 0===t||null===(t=t.current)||void 0===t||null===(o=t.windowDidResize)||void 0===o||o.call(t,e)}),r}return f()(t,e),a()(t,[{key:"tweenRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,a=this._,s={},l={};return a.tweenRefs[e]||a.tweenRefTargets.push(e),!a.tweenRefs[e]||!i&&a.iMapOrigin[e]===r&&m()(r,a.iMapOrigin[e])&&a.tweenRefOriginCss[e]===t&&m()(t,a.tweenRefOriginCss[e])?a.tweenRefs[e]?ie(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box):(a.iMapOrigin[e]=r,t=t||{},r=r||{},a.tweenRefs[e]=!0,a.muxByTarget[e]=a.muxByTarget[e]||{},a.muxDataByTarget[e]=a.muxDataByTarget[e]||{},a.tweenRefOriginCss[e]=t,a.tweenRefMaps[e]=a.tweenRefMaps[e]||{},a.tweenRefOrigin[e]?(t=Ae(Ae({},t),ae(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e],!1,!0)),Object.keys(l).forEach((function(t){return a.tweenRefMaps[e][t]=R().number(a.tweenRefMaps[e][t])?a.tweenRefMaps[e][t]-l[t]:0})),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]+=s[t]}))):(t=Ae(Ae({},t),ae(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e])),s=Object.assign({},l,s||{}),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]=(a.tweenRefMaps[e][t]||0)+s[t]}))),a.tweenRefOrigin[e]=Ae({},s),a.tweenRefCSS[e]=t,ie(s=a.tweenRefMaps[e],t,a.muxByTarget[e],a.muxDataByTarget[e],a.box)):(a.iMapOrigin[e]=r,a.tweenRefOriginCss[e]=t,r=r||{},t=Ae(Ae({},t=t||{}),ae(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e],!1,!0)),Object.keys(a.tweenRefOrigin[e]).forEach((function(t){return a.tweenRefMaps[e][t]-=a.tweenRefOrigin[e][t]})),Object.keys(l).forEach((function(t){return a.tweenRefMaps[e][t]=R().number(a.tweenRefMaps[e][t])?a.tweenRefMaps[e][t]:l[t]})),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]+=s[t]})),Object.keys(a.tweenRefOrigin[e]).forEach((function(t){oe(0,t,a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxDataByTarget[e],a.muxByTarget[e])})),Object.keys(a.tweenRefCSS[e]).forEach((function(r){!a.tweenRefCSS[e][r]||a.muxByTarget[e][r]||t[r]||delete a.tweenRefCSS[e][r]})),Object.keys(t).forEach((function(r){a.tweenRefCSS[e][r]===t[r]||a.muxByTarget[e][r]||(a.tweenRefCSS[e][r]=t[r])})),a.tweenRefOrigin[e]=Ae({},s),ie(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box),this._updateTweenRef(e,!0)),o?{style:Ae({},a.tweenRefCSS[e])}:{style:Ae({},a.tweenRefCSS[e]),ref:R().function(n)?function(t){return a.refs[e]=n(t)}:n?function(t){return a.refs[e]=n.current=t}:function(t){return a.refs[e]=t}}}},{key:"rmTweenRef",value:function(e){this._.tweenRefs[e]&&(this._.tweenRefTargets.splice(this._.tweenRefTargets.indexOf(e),1),delete this._.tweenRefs[e],delete this._.muxByTarget[e],delete this._.muxDataByTarget[e],delete this._.iMapOrigin[e],delete this._.tweenRefOrigin[e],delete this._.tweenRefCSS[e],delete this._.tweenRefMaps[e],delete this._.refs[e])}},{key:"resetTweenable",value:function(){for(var e=this,t=this._,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];n.forEach((function(r){e.tweenRef(r,t.tweenRefOriginCss[r],t.iMapOrigin[r],null,null,null,!0)})),this._updateTweenRefs()}},{key:"updateRefStyle",value:function(e,t,r){var n,o=this,i=this._;return Ne(e)&&Ne(t)?e.map((function(e,n){return o.updateRefStyle(e,t[n],r)})):Ne(e)?e.map((function(e){return o.updateRefStyle(e,t,r)})):i.tweenRefMaps[e]?(n=ae(t,i.tweenRefMaps[e],{},i.muxDataByTarget[e],i.muxByTarget[e]),Object.assign(i.tweenRefCSS[e],n),Object.assign(i.tweenRefOriginCss[e],n),ie(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box),void this._updateTweenRef(e,!0)):console.warn("React-Voodoo : Can't update styles of an unknown Node id '",e,"'")}},{key:"getTweenableRef",value:function(e){try{return this._.refs[e]&&A().findDOMNode(this._.refs[e])}catch(t){try{return this._.refs[e]._.rootRef.current}catch(t){return void console.warn("react-voodoo: Can't find voodooNode ",e,t)}}}},{key:"getRootNode",value:function(){try{return this.getTweenableRef(this._.rootRef)||this.isMountedFromHook&&this._.rootRef&&this._.rootRef.current||A().findDOMNode(this)}catch(e){return this._.rootRef&&this._.rootRef.current}}},{key:"pushAnim",value:function(e,r){var n,o,i=this,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this._,l={};if(Ne(e)?n=e:(n=e.anims,e.initial),n instanceof he||(n=se(n,l,this._.muxDataByTarget,this._.muxByTarget),n=new he(n,this._.tweenRefMaps),Object.keys(l).forEach((function(e){return i._.tweenRefMaps[e]&&Object.assign(i._.tweenRefMaps[e],Ae(Ae({},l[e]),i._.tweenRefMaps[e]))||(o=console.warn("react-voodoo : Can't find tween target ",e," in ",t.displayName)||!0)}))),!o)return new Promise((function(e){n.run(i._.tweenRefMaps,(function(){var t=i._.runningAnims.indexOf(n);-1!=t&&i._.runningAnims.splice(t,1),Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(t){oe(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e],a)}))})),n.destroy(),e(n)})),i._.runningAnims.push(n),i._.live||(i._.live=!0,requestAnimationFrame(i._._rafLoop=i._._rafLoop||i._rafLoop.bind(i)))})).then((function(e){return r&&r(e)}))}},{key:"applyTweenState",value:function(e,t,r){var n=this,o={},i={};ae(t,o,i,this._.muxDataByTarget[e],this._.muxByTarget[e],!0),Object.keys(o).map((function(t){return n._.tweenRefMaps[e][t]=(!r&&n._.tweenRefMaps[e][t]||i[t])+o[t]}))}},{key:"initAxis",value:function(e,t,r){var n,o,i=this,a=t.inertia,s=t.scrollableArea,l=void 0===s?0:s,c=t.scrollableBounds,u=t.scrollableWindow,p=t.defaultPosition,f=t.scrollFirst,d=(this._,this.axes[e]),g=c,h=!r&&d?d.scrollPos:p||g&&g.min||0,v=Math.max(d&&d.scrollableArea||0,l),y=Math.max(d&&d.scrollableWindow||0,u),m=d?d.targetPos:h,b=d?d.inertia:new Be(Ae(Ae({disabled:!a},a||{}),{},{value:h})),x={scrollFirst:f,tweenAxis:d&&d.tweenAxis||[],scrollPos:h,targetPos:m,inertia:b,scrollableWindow:y,scrollableBounds:g,scrollableArea:v,scrollTo:function(t,r,n,o){return i.scrollTo(t,r,e,n,o)}};this.axes[e]=x,!a&&(b._.disabled=!0),a&&b&&!b.active&&(b._.pos=h),a&&b&&b.updateConf(a),b&&g?null===(n=b.setBounds)||void 0===n||n.call(b,g.min,g.max):b&&(null===(o=b.setBounds)||void 0===o||o.call(b,0,v))}},{key:"_getAxis",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scrollY",r=this._;return this.axes[t]=this.axes[t]||{tweenAxis:[],scrollPos:r.options.initialScrollPos&&r.options.initialScrollPos[t]||0,targetPos:0,scrollableWindow:0,scrollableArea:0,inertia:new Be(Ae({value:r.options.initialScrollPos&&r.options.initialScrollPos[t]||0},r.options.axes&&r.options.axes[t]&&r.options.axes[t].inertia||{})),scrollTo:function(r,n,o,i){return e.scrollTo(r,n,t,o,i)}},this.axes[t]}},{key:"getAxisState",value:function(e){var t=this,r=(this._,{});return this.axes&&Object.keys(this.axes).forEach((function(e){return r[e]=t.axes[e].targetPos||t.axes[e].scrollPos})),r}},{key:"getScrollPos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scrollY";return this._,this.axes[e]?this.axes[e].targetPos||this.axes[e].scrollPos:0}},{key:"scrollTo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"scrollY",o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=this._;return Fe?new Promise((function(s,l){if(t.axes&&t.axes[n]){var c,u,p,f=t.axes[n].targetPos,d=function(e){var r,o;e=~~(1e4*e)/1e4,t.axes[n].targetPos=t.axes[n].scrollPos=e,~~e!==f&&(t.axisDidScroll(~~e,n),null===(r=a.rootRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.componentDidScroll)||void 0===o||o.call(r,~~e,n)),t._updateTweenRefs()};if(e=Math.max(0,e),e=Math.min(e,t.axes[n].scrollableArea||0),t.axes[n].targetPos=e,r)t._runScrollGoTo(n,e,r,B[o],i,d,s);else null===(c=t.axes)||void 0===c||null===(c=c[n])||void 0===c||null===(c=c.inertia)||void 0===c||c.setPos(e),null!==(u=t.axes)&&void 0!==u&&null!==(u=u[n])&&void 0!==u&&null!==(u=u.inertia)&&void 0!==u&&u._&&(e=null===(p=t.axes)||void 0===p||null===(p=p[n])||void 0===p||null===(p=p.inertia)||void 0===p?void 0:p._.pos),t.axes[n].tweenAxis.forEach((function(t){return t.goTo(e,a.tweenRefMaps,!1,i)})),d(e),s();a.live||(a.live=!0,requestAnimationFrame(a._rafLoop))}})).then((function(e){var r;null===(r=t.axes)||void 0===r||null===(r=r[n])||void 0===r||null===(r=r.inertia)||void 0===r||r._detectCurrentSnap()})):(console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"),Promise.resolve())}},{key:"addScrollableAnim",value:function(e){var t,r,n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"scrollY",i=this._,a={},s=this._getAxis(o);return Ne(e)?r=e:(r=e.anims,e.length),r instanceof he||(r=se(r,a,this._.muxDataByTarget,this._.muxByTarget),(r=new he(r,i.tweenRefMaps)).initials=a,Object.keys(a).forEach((function(e){i.tweenRefOrigin[e]=i.tweenRefOrigin[e]||{},i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},Object.assign(n._.tweenRefMaps[e],Ae(Ae({},a[e]),n._.tweenRefMaps[e]))}))),s.tweenAxis.push(r),s.scrollPos=s.scrollPos||0,s.scrollableArea=s.scrollableArea||0,s.scrollableArea=Math.max(s.scrollableArea,r.duration),s.scrollableBounds||null===(t=s.inertia)||void 0===t||t.setBounds(0,s.scrollableArea),r.goTo(s.scrollPos,this._.tweenRefMaps,!1,!0),this._updateTweenRefs(),r}},{key:"rmScrollableAnim",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"scrollY",o=this._,i=this._getAxis(n),a=i.tweenAxis.indexOf(e);-1!==a&&(i.tweenAxis.splice(a,1),i.scrollableArea=Math.max.apply(Math,T()(i.tweenAxis.map((function(e){return e.duration}))).concat([0])),i.scrollableBounds||null===(r=i.inertia)||void 0===r||r.setBounds(0,i.scrollableArea||0),e.goTo(0,this._.tweenRefMaps,!1,!0),Object.keys(e.initials).forEach((function(t){Object.keys(e.initials[t]).forEach((function(e){oe(0,e,o.tweenRefMaps[t],o.tweenRefCSS[t],o.muxDataByTarget[t],o.muxByTarget[t])}))})),delete e.initials,e.destroy(),t=!0,this._updateTweenRefs()),!t&&console.warn("react-voodoo: Axis not found : ",n)}},{key:"_runScrollGoTo",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e},i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,l=this.axes[e].scrollPos,c=t-l;ze.push({apply:function(t,r){var s,u,p,f=l+o(t/r)*c;n._.tweenEnabled&&(null===(s=n.axes)||void 0===s||null===(s=s[e])||void 0===s||null===(s=s.inertia)||void 0===s||s.setPos(f),null!==(u=n.axes)&&void 0!==u&&null!==(u=u[e])&&void 0!==u&&null!==(u=u.inertia)&&void 0!==u&&u._&&(f=null===(p=n.axes)||void 0===p||null===(p=p[e])||void 0===p||null===(p=p.inertia)||void 0===p?void 0:p._.pos),n.axes[e].tweenAxis.forEach((function(e){return e.goTo(f,n._.tweenRefMaps,!1,i)})),a&&a(f))},duration:r,cpos:0,cb:s}),Ie||(Ie=!0,Le=Date.now(),setTimeout(Ve,16))}},{key:"componentShouldScroll",value:function(){var e,t=this._;return!(t.rootRef&&t.rootRef.current&&t.rootRef.current.componentShouldScroll)||(e=t.rootRef.current).componentShouldScroll.apply(e,arguments)}},{key:"watchAxis",value:function(e,t){var r=this._scrollWatcherByAxis;return r[e]=r[e]||[],r[e].push(t),function(){var n=r[e].indexOf(t);r[e].splice(n,1)}}},{key:"axisDidScroll",value:function(e,t){var r=this._scrollWatcherByAxis[t],n=null==r?void 0:r.length;if(r)for(;n;)r[--n](e)}},{key:"applyInertia",value:function(e,t){var r,n,o=this,i=e.inertia.update(),a=this._;this.axes[t].tweenAxis.forEach((function(e){o.axes[t].targetPos=o.axes[t].scrollPos=i,e.goTo(i,o._.tweenRefMaps)})),null===(r=a.rootRef)||void 0===r||null===(r=r.current)||void 0===r||null===(n=r.componentDidScroll)||void 0===n||n.call(r,i,t),this.axisDidScroll(i,t),this._updateTweenRefs(),e.inertia.active||e.inertia.holding?e.inertiaFrame=setTimeout(this.applyInertia.bind(this,e,t),33):e.inertiaFrame=null}},{key:"isInertiaActive",value:function(){var e=this,t=(this._,!1);return this.axes&&Object.keys(this.axes).forEach((function(r){return t=t||e.axes[r]&&e.axes[r].inertia.active})),t}},{key:"isAxisOut",value:function(e,t,r){this._;var n=this.axes&&this.axes[e],o=r?t:n&&n.scrollPos+t;return o=o&&Math.round(o),!n||(n.scrollableBounds?o<=n.scrollableBounds.min||o>=n.scrollableBounds.max:o<=0||o>=n.scrollableArea)}},{key:"_activateNodeInertia",value:function(e){var t=this._,r=t.activeInertia.findIndex((function(t){return t.target===e}));return-1===r&&(t.activeInertia.push({inertia:{x:new Be({max:e.scrollWidth-e.offsetLeft,value:e.scrollLeft}),y:new Be({max:e.scrollHeight-e.offsetHeight,value:e.scrollTop})},target:e}),r=t.activeInertia.length-1),t.activeInertia[r].inertia}},{key:"setRootRef",value:function(e){this._.rootRef=e}},{key:"_updateBox",value:function(){var e=this.getRootNode();e&&(this._.box.inited=!0,this._.box.x=e.offsetWidth,this._.box.y=e.offsetHeight)}},{key:"_rafLoop",value:function(){this._updateTweenRefs(),this._.runningAnims.length?requestAnimationFrame(this._._rafLoop):this._.live=!1}},{key:"_updateTweenRefs",value:function(){if(this._.tweenEnabled)for(var e,t=0;t<this._.tweenRefTargets.length;t++)e=this._.tweenRefTargets[t],this._updateTweenRef(e)}},{key:"_updateTweenRef",value:function(e,t){var r,n=this._swap;if(this._.tweenRefCSS[e]&&ie(this._.tweenRefMaps[e],n,this._.muxByTarget[e],this._.muxDataByTarget[e],this._.box),r=this.getTweenableRef(e)){for(var o in this._.tweenRefCSS[e])void 0===n[o]&&(r.style[o]=this._.tweenRefCSS[e][o]);for(var i in n)this._.tweenRefCSS[e].hasOwnProperty(i)&&((t||n[i]!==this._.tweenRefCSS[e][i])&&(r.style[i]=this._.tweenRefCSS[e][i]=n[i]),delete n[i])}return this._.tweenRefCSS[e]}},{key:"componentWillUnmount",value:function(){var e=this;this.getRootNode(),this._.tweenEnabled&&(this._.tweenEnabled=!1,window.removeEventListener("resize",this._.onResize),Object.keys(this.axes).forEach((function(t){e.axes[t].inertiaFrame&&clearTimeout(e.axes[t].inertiaFrame)}))),j()(u()(t.prototype),"componentWillUnmount",this)&&j()(u()(t.prototype),"componentWillUnmount",this).apply(this,arguments)}},{key:"componentDidMount",value:function(){var e=this,r=this.constructor;this._.rendered=!0,this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),r.scrollableAnim&&(R().array(r.scrollableAnim)?this.addScrollableAnim(r.scrollableAnim):Object.keys(r.scrollableAnim).forEach((function(t){return e.addScrollableAnim(r.scrollableAnim[t],t)}))),j()(u()(t.prototype),"componentDidMount",this)&&j()(u()(t.prototype),"componentDidMount",this).apply(this,arguments)}},{key:"componentDidUpdate",value:function(e,r){this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),j()(u()(t.prototype),"componentDidUpdate",this)&&j()(u()(t.prototype),"componentDidUpdate",this).apply(this,arguments)}},{key:"render",value:function(){var e=this,t=this.props,r=t.BaseComponent,n=t.oProps;return g().createElement(P.Consumer,null,(function(t){return e._parentTweener=t,g().createElement(P.Provider,{value:e},g().createElement(r,x()({},n,{ref:e._.rootRef,tweener:e})))}))}}])}(g().Component),qe=["children"];const Ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",r=g().useContext(P),n=g().useRef(),o=g().useRef(),i=g().useMemo((function(){return!0===e||R().string(e)}),[]),a=g().useMemo((function(){if(!0===e)return r;if(R().string(e)){for(var t=r;null!==(o=t)&&void 0!==o&&o._&&t._.options.name!==e;){var o;if(!t._parentTweener){console.warn('react-voodoo: No parent tweener found with option.key === "'+e+'"');break}t=t._parentTweener}return t}var i=new He({forwardedRef:n,tweenerOptions:e});return i.isMountedFromHook=!0,i._parentTweener=r,i}),[]),s=g().useMemo((function(){return g().forwardRef((function(e,r){var o=e.children,i=_()(e,qe);return g().createElement(P.Provider,{value:a},g().createElement(t,x()({ref:r?function(e){return r.current=n.current=e}:n},i),o))}))}),[]);return g().useEffect((function(){var e;if(!i&&null!==(e=o.current)&&void 0!==e&&e._)return a.componentDidMount(),o.current=a,function(){var e;null!==(e=o.current)&&void 0!==e&&e._&&(o.current.componentWillUnmount(),o.current=null)}}),[]),g().useEffect((function(){var e;!i&&null!==(e=o.current)&&void 0!==e&&e._&&(o.current._updateBox(),o.current._updateTweenRefs())}),[n.current]),g().useEffect((function(){var e;!i&&null!==(e=o.current)&&void 0!==e&&e._&&(o.current._parentTweener=r)}),[r]),g().useEffect((function(){var t;!i&&null!==(t=o.current)&&void 0!==t&&t._&&(o.current._.options=e,o.current._updateBox(),o.current._updateTweenRefs())}),[e]),g().useMemo((function(){return[a,s]}),[s,a])},Ue=function(e){e.children;var t=e.id,r=e.axe,n=void 0===r?t:r,o=e.scrollFirst,i=e.bounds,a=e.scrollableWindow,s=e.inertia,l=e.size,c=e.defaultPosition,u=e.items,p=void 0===u?[]:u,f=g().useRef({}).current,d=Ye(!0),h=v()(d,1)[0];return f.previousAxis&&f.previousAxis===n?f.previousInertia&&f.previousInertia===s&&f.previousBounds===i&&f.previousScrollableWindow===a||(f.previousInertia=s,f.previousAxis=n,f.previousBounds=i,f.previousScrollableWindow=a,h.initAxis(n,{inertia:s,size:l,scrollableWindow:a,defaultPosition:c,scrollFirst:o,scrollableBounds:i})):(f.previousAxis=n,f.previousInertia=s,h.initAxis(n,{inertia:s,size:l,scrollableWindow:a,defaultPosition:c,scrollFirst:o,scrollableBounds:i},!0)),f.previousTweener&&f.previousTweener===h?f.previousTweens===p||f.previousTweens&&m()(p,f.previousTweens)||(f.lastTL&&f.previousTweener&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),f.lastTL=null,p.length&&(f.lastTL=h.addScrollableAnim(p,n,l)),f.previousTweens=p):(f.previousTweener&&f.lastTL&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),p.length&&(f.lastTL=h.addScrollableAnim(p,n,l)),f.previousTweener=h,f.previousTweens=p),g().useEffect((function(){return function(){f.lastTL&&f.previousTweener&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),delete f.previousTweener,delete f.previousScrollable}}),[]),g().createElement(g().Fragment,null)},Xe=require("shortid");var $e=r.n(Xe);function Ge(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)}function Ke(e){return function(e){return"function"==typeof e&&!!e.prototype.isReactComponent}(e)||Ge(e)}var Ze=["children","id","style","initial","pos","noRef","reset","tweener","isRoot","axes","refProp","tweenLines","tweenAxis"],Je=["children","className"];function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t){return e.map((function(e){return et(et({},e),{},{target:t})}))}var rt=g().forwardRef((function(e,t){var r=e.children,n=e.id,o=void 0===n?g().useMemo((function(){return $e().generate()}),[]):n,i=e.style,a=e.initial,s=e.pos,l=e.noRef,c=(e.reset,e.tweener),u=(e.isRoot,e.axes),p=e.refProp,f=void 0===p?"nodeRef":p,d=e.tweenLines,h=void 0===d?u:d,y=e.tweenAxis,b=void 0===y?h:y,w=_()(e,Ze),O=g().useRef({}).current,P=Ye(!0),S=v()(P,1)[0];if(!(S=c||S))return console.error("No Voodoo tweener found in the context, is there any parent ViewBox ?"),g().createElement(g().Fragment,null);var T,D=S.tweenRef(o,r.props&&r.props.style,i||a,s,t,l);g().useEffect((function(){return function(){O._tweenAxisObj&&Object.keys(O._tweenAxisObj).forEach((function(e){return O._currentTweener.rmScrollableAnim(O._tweenAxisObj[e],e)})),O._currentTweener&&(O._currentTweener.rmTweenRef(O.__tweenableId),O._currentTweener.setRootRef(void 0)),delete O._currentTweener,delete O._tweenAxisObj,delete O._previousScrollable}}),[]),(T=O._tweenAxis!==b&&!(O._tweenAxis&&m()(b,O._tweenAxis))||b&&!O._tweenAxis)||O._currentTweener!==S||O._previousScrollable!==b?(O._currentTweener&&T&&O._tweenAxisObj&&Object.keys(O._tweenAxisObj).forEach((function(e){return O._currentTweener.rmScrollableAnim(O._tweenAxisObj[e],e)})),O._currentTweener&&O._currentTweener!==S&&O._currentTweener.rmTweenRef(o),T&&(O._tweenAxis=b,b&&R().array(b)?O._tweenAxisObj={scrollY:S.addScrollableAnim(tt(b,o))}:O._tweenAxisObj=b&&Object.keys(b).reduce((function(e,t){return e[t]=S.addScrollableAnim(tt(b[t],o),t),e}),{}),D=S.tweenRef(o,r.props&&r.props.style,i||a,s,t,l)),D.style=et({},S._updateTweenRef(o,!0)),w.hasOwnProperty("isRoot")&&(O._currentTweener&&O._currentTweener.setRootRef(void 0),c.setRootRef(o)),O._currentTweener=S,O._previousScrollable=b):D&&(D.style=et({},S._updateTweenRef(o,!0)));var j=g().Children.only(r);return j&&g().isValidElement(j)?(O._lastRef=D,Ge(j.type)?g().createElement(j.type,x()({},w,j.props,D,{ref:void 0},E()({},f,D.ref))):g().createElement(j.type,x()({},w,j.props,D))):(console.error("Invalid voodoo Node child : ",o),g().createElement("div",null,"Invalid"))}));const nt=rt;rt.div=g().forwardRef((function(e,t){var r=e.children,n=e.className,o=_()(e,Je);return g().createElement(rt,x()({},o,{ref:t}),g().createElement("div",{className:n},r))}));var ot=["children","Comp","nodeRef","items","xAxis","yAxis","yBoxRef","xBoxRef","yRef","yHook","xHook","tweener","mouseDrag","touchDrag","button"],it=g().forwardRef((function(e,t){var r=e.children,n=e.Comp,o=void 0===n?"div":n,i=e.nodeRef,a=(e.items,e.xAxis),s=e.yAxis,l=e.yBoxRef,c=e.xBoxRef,u=(e.yRef,e.yHook),p=e.xHook,f=e.tweener,d=e.mouseDrag,h=void 0!==d&&d,y=e.touchDrag,m=void 0===y||y,b=e.button,w=void 0===b?0:b,O=_()(e,ot),P=g().useRef(),S=g().useRef({root:P,_:{}}).current,T=Ye(!0),D=v()(T,1)[0],j=g().useMemo((function(){return{getScrollableNodes:function(e){for(var t=[],r=S._parentTweener;r;)t.push(r),r=r._parentTweener;return t},_registerScrollListeners:function(){var e,t,r,n,o,i,a,s,l,c=null===(e=S.root)||void 0===e?void 0:e.current,u=S.props,p=u.xAxis,f=u.yAxis,d=u.yHook,g=u.xHook,h=u.mouseDrag,v=u.touchDrag,y=u.tweener,m=u.xBoxRef,b=u.yBoxRef,x=u.button,w=y._;c?(we.addEvent(c,S._.dragList={dragstart:function(e,r,u){var d,g,h,v;if(!(e instanceof MouseEvent&&e.button!==x))for(o=j.getScrollableNodes(e.target),t=Date.now(),n=0,i=0,a=[],s=null===(d=(null==m?void 0:m.current)||c)||void 0===d?void 0:d.offsetWidth,l=null===(g=(null==b?void 0:b.current)||c)||void 0===g?void 0:g.offsetHeight,v=0;v<o.length;v++){var y,w;(h=o[v])._updateBox(),h.__isTweener&&(p&&(null===(y=h.axes)||void 0===y||y[p]),f&&(null===(w=h.axes)||void 0===w||w[f]),h._updateNodeInertia())}},click:function(e,r,o){e instanceof MouseEvent&&e.button!==x||t&&(t-Date.now()>w.options.maxClickTm||Math.abs(i)>w.options.maxClickOffset||Math.abs(n)>w.options.maxClickOffset)&&(e.preventDefault(),e.stopPropagation())},drag:function(e,c,u){var h,v,y,_,O,R,P,S,T,D;if(!(e instanceof MouseEvent&&e.button!==x||(n=-(u._lastPos.x-u._startPos.x),i=-(u._lastPos.y-u._startPos.y),t&&t>Date.now()-w.options.maxClickTm&&Math.abs(i)<w.options.maxClickOffset&&Math.abs(n)<w.options.maxClickOffset)))for(_=!n,S=!i,w.options.dragDirectionLock&&("Y"===r||!r&&Math.abs(.5*i)>Math.abs(n)?(r="Y",n=0):("X"===r||!r&&Math.abs(.5*n)>Math.abs(i))&&(r="X",i=0)),D=0;D<o.length;D++)if((h=o[D]).__isTweener){var j,k,E,B,M,A,C,W,I,L;if(v=p&&(null===(j=h.axes)||void 0===j?void 0:j[p]),R=f&&(null===(k=h.axes)||void 0===k?void 0:k[f]),!v&&!R)continue;a[D]||(a[D]={x:null===(M=v)||void 0===M?void 0:M.scrollPos,y:null===(A=R)||void 0===A?void 0:A.scrollPos},null===(C=v)||void 0===C||null===(C=C.inertia)||void 0===C||C.startMove(),null===(W=R)||void 0===W||null===(W=W.inertia)||void 0===W||W.startMove(),p&&v&&(null===(I=v)||void 0===I||!I.inertiaFrame)&&h.applyInertia(v,p),f&&R&&(null===(L=R)||void 0===L||!L.inertiaFrame)&&h.applyInertia(R,f)),v&&(O=null!=m&&m.current?s:h._.box.x,y=n&&n/O*(v.scrollableWindow||v.scrollableArea)||0,g&&(y=g(y))),R&&(T=null!=b&&b.current?l:h._.box.y,P=i&&i/T*(R.scrollableWindow||R.scrollableArea)||0,d&&(P=d(P))),v&&!_&&y&&null!==(E=v)&&void 0!==E&&null!==(E=E.inertia)&&void 0!==E&&E.isInbound(a[D].x+y)&&h.componentShouldScroll(p,y)&&(v.inertia.hold(a[D].x+y),_=!0),R&&!S&&P&&null!==(B=R)&&void 0!==B&&null!==(B=B.inertia)&&void 0!==B&&B.isInbound(a[D].y+P)&&h.componentShouldScroll(f,P)&&(R.inertia.hold(a[D].y+P),S=!0)}},dropped:function(e,s,l){var c,u;if(!(e instanceof MouseEvent&&e.button!==x)){for(r=void 0,u=0;u<o.length;u++){var d,g;(c=o[u]).__isTweener&&a[u]&&(null===(d=c.axes)||void 0===d||null===(d=d[p])||void 0===d||null===(d=d.inertia)||void 0===d||d.release(),null===(g=c.axes)||void 0===g||null===(g=g[f])||void 0===g||null===(g=g.inertia)||void 0===g||g.release())}!t||t>Date.now()-w.options.maxClickTm&&Math.abs(i)<w.options.maxClickOffset&&Math.abs(n)<w.options.maxClickOffset||(e.stopPropagation(),e.cancelable&&e.preventDefault()),o=a=null}}},null,w.options.enableMouseDrag||h,v),S._.doRegister=!!c):S._.doRegister=!0}}}),[]);return g().useEffect((function(){return j._registerScrollListeners(),function(){var e,t=null===(e=S.root)||void 0===e?void 0:e.current;S._.scrollEnabled&&(S._.scrollEnabled=!1,t&&S._.dragList&&we.removeEvent(t,S._.dragList))}}),[]),g().useEffect((function(){R().function(i)&&i(P.current),R().function(t)?t(P.current):t&&(t.current=P.current)}),[i,t]),S.props={xAxis:a,yAxis:s,yHook:u,xHook:p,mouseDrag:h,touchDrag:m,tweener:f||D,xBoxRef:c,yBoxRef:l,button:w},S._parentTweener=D,g().createElement(o,x()({ref:P},O),r)}));const at=it;it.div=function(e){return g().createElement(it,e)};const st=function(){return g().useContext(P)};function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ct={}.constructor;function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(!t[0]||Ke(t[0]))&&t.shift(),o=(!t[0]||t[0]instanceof ct)&&t.shift()||{};if(!n)return function(e){return ut(e,o)};o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({wheelRatio:5,maxClickTm:200,maxClickOffset:20},o);var i=g().forwardRef((function(e,t){return g().createElement(He,{oProps:e,forwardedRef:t,BaseComponent:n,tweenerOptions:o})}));return i.displayName=String.fromCharCode(55358,56793)+(n.displayName||n.name),i}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pt=function(){return!!e})()}var ft,dt={}.constructor;function gt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(!t[0]||Ke(t[0]))&&t.shift(),i=(!t[0]||t[0]instanceof dt)&&t.shift()||{};if(!n||!(n.prototype instanceof g().Component||n===g().Component))return function(e){return gt(e,i)};var s=function(e){function t(){return o()(this,t),e=this,r=t,n=arguments,r=u()(r),l()(e,pt()?Reflect.construct(r,n||[],u()(e).constructor):r.apply(e,n));var e,r,n}return f()(t,e),a()(t,[{key:"render",value:function(){var e=this;return g().createElement(P.Consumer,null,(function(t){return g().createElement(n,x()({},e.props,{tweener:t,ref:e.props.forwardedRef}))}))}}])}(g().Component);E()(s,"displayName",n.displayName||n.name);var c=g().forwardRef((function(e,t){return g().createElement(s,x()({},e,{forwardedRef:t}))}));return c.displayName=s.displayName,c}function ht(e,t,r){return t=u()(t),l()(e,vt()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function vt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vt=function(){return!!e})()}ce().EasingFunctions=B;var yt=ut(ft=function(e){function t(){return o()(this,t),ht(this,t,arguments)}return f()(t,e),a()(t,[{key:"render",value:function(){return this.props.children}}])}(g().Component))||ft;const mt={tweener:ut,child:gt,useTweener:st,useVoodoo:Ye,hook:Ye,tools:e,Draggable:at,Component:yt,Node:nt,Context:P,Axis:Ue,dom:we}})(),module.exports=n})();
|
2
|
+
(()=>{var e={253:e=>{e.exports={walknSetExport:function(e,t,r){var n,o,i=t.split("/"),a=e;for(n=0;n<i.length-1;)a=a[i[n]]=a[i[n]]||{},n++;o=1===Object.keys(r).length&&r.default||r,a[i[n]]?(a[i[n]].__esModule||Object.assign(o,a[i[n]]),a[i[n]]=o):a[i[n]]=o}}},821:(e,t,r)=>{"use strict";r.d(t,{Bw:()=>l,CG:()=>p,ai:()=>u,bz:()=>i,lc:()=>a,m3:()=>c,yW:()=>s});var n={},o=r(253).walknSetExport;o(n,"any",r(592)),o(n,"bool",r(724)),o(n,"color",r(494)),o(n,"multi",r(835)),o(n,"ratio",r(497)),o(n,"length",r(48)),o(n,"number",r(125)),o(n,"shadow",r(464));var i=n.any,a=n.bool,s=n.color,l=n.length,c=n.multi,u=n.number,p=n.ratio},573:(e,t,r)=>{"use strict";r.d(t,{$U:()=>a,FK:()=>i,J0:()=>l,MD:()=>o,Tl:()=>s,VP:()=>c,xk:()=>n});var n={margin:{properties:["marginTop","marginRight","marginBottom","marginLeft"],multiple:!0},marginBottom:{types:["length"]},marginLeft:{types:["length"]},marginRight:{types:["length"]},marginTop:{types:["length"]},padding:{properties:["paddingTop","paddingRight","paddingBottom","paddingLeft"],multiple:!0},paddingBottom:{types:["length"]},paddingLeft:{types:["length"]},paddingRight:{types:["length"]},paddingTop:{types:["length"]},bottom:{types:["length-percentage-calc"]},left:{types:["length-percentage-calc"]},right:{types:["length-percentage-calc"]},top:{types:["length-percentage-calc"]},zIndex:{types:["integer"]},width:{types:["length-percentage-calc"]},maxWidth:{types:["length-percentage-calc"]},minWidth:{types:["length-percentage-calc"]},height:{types:["length-percentage-calc"]},maxHeight:{types:["length-percentage-calc"]},minHeight:{types:["length-percentage-calc"]},lineHeight:{types:["length"]},verticalAlign:{types:["length"]},visibility:{types:["visibility"]},borderSpacing:{types:["length"],multiple:!0},color:{types:["color"]},opacity:{types:["number"]},backgroundColor:{types:["color"]},backgroundPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},backgroundSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},border:{properties:["borderStyle","borderWidth","borderColor"]},borderBottom:{properties:["borderBottomStyle","borderBottomWidth","borderBottomColor"]},borderLeft:{properties:["borderLeftStyle","borderLeftWidth","borderLeftColor"]},borderRight:{properties:["borderRightStyle","borderRightWidth","borderRightColor"]},borderTop:{properties:["borderTopStyle","borderTopWidth","borderTopColor"]},borderColor:{properties:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderWidth:{properties:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"]},borderBottomColor:{types:["color"]},borderLeftColor:{types:["color"]},borderRightColor:{types:["color"]},borderTopColor:{types:["color"]},borderBottomWidth:{types:["length"]},borderLeftWidth:{types:["length"]},borderRightWidth:{types:["length"]},borderTopWidth:{types:["length"]},borderRadius:{properties:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},borderTopLeftRadius:{types:["length-percentage-calc"],multiple:!0},borderTopRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomLeftRadius:{types:["length-percentage-calc"],multiple:!0},boxShadow:{types:["shadow-list"]},caretColor:{types:["color"]},outline:{properties:["outlineColor","outlineWidth"]},outlineColor:{types:["color"]},outlineWidth:{types:["length"]},outlineOffset:{types:["length"]},flex:{properties:["flexGrow","flexShrink","flexBasis"]},flexGrow:{types:["number"]},flexShrink:{types:["number"]},flexBasis:{types:["length-percentage-calc"]},order:{types:["integer"]},font:{properties:["fontWeight","fontStretch","fontSize","lineHeight"]},fontWeight:{types:["font-weight"]},fontStretch:{types:["font-stretch"]},fontSize:{types:["length"]},fontSizeAdjust:{types:["number"]},gridTemplateColumns:{types:["length-percentage-calc"],multiple:!0},gridTemplateRows:{types:["length-percentage-calc"],multiple:!0},gridTemplate:{properties:["gridTemplateRows","gridTemplateColumns"]},grid:{properties:["gridTemplateRows","gridTemplateColumns"]},gridRowGap:{types:["length-percentage-calc"]},gridColumnGap:{types:["length-percentage-calc"]},gridGap:{properties:["gridRowGap","gridColumnGap"]},clip:{types:["rectangle"]},clipPath:{types:["basic-shape"]},mask:{properties:["maskPosition","maskSize"]},maskPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},maskSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},shapeOutside:{types:["basic-shape"]},shapeMargin:{types:["length-percentage-calc"]},shapeImageThreshold:{types:["number"]},scrollPadding:{properties:["scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft"]},scrollPaddingTop:{types:["length-percentage-calc"]},scrollPaddingRight:{types:["length-percentage-calc"]},scrollPaddingBottom:{types:["length-percentage-calc"]},scrollPaddingLeft:{types:["length-percentage-calc"]},scrollPaddingBlock:{properties:["scrollPaddingBlockStart","scrollPaddingBlockEnd"]},scrollPaddingBlockStart:{types:["length-percentage-calc"]},scrollPaddingBlockEnd:{types:["length-percentage-calc"]},scrollPaddingInline:{properties:["scrollPaddingInlineStart","scrollPaddingInlineEnd"]},scrollPaddingInlineStart:{types:["length-percentage-calc"]},scrollPaddingInlineEnd:{types:["length-percentage-calc"]},scrollSnapMargin:{properties:["scrollSnapMarginTop","scrollSnapMarginRight","scrollSnapMarginBottom","scrollSnapMarginLeft"]},scrollSnapMarginTop:{types:["length"]},scrollSnapMarginRight:{types:["length"]},scrollSnapMarginBottom:{types:["length"]},scrollSnapMarginLeft:{types:["length"]},scrollSnapMarginBlock:{properties:["scrollSnapMarginBlockStart","scrollSnapMarginBlockEnd"]},scrollSnapMarginBlockStart:{types:["length"]},scrollSnapMarginBlockEnd:{types:["length"]},scrollSnapMarginInline:{properties:["scrollSnapMarginInlineStart","scrollSnapMarginInlineEnd"]},scrollSnapMarginInlineStart:{types:["length"]},scrollSnapMarginInlineEnd:{types:["length"]},textDecoration:{properties:["textDecorationColor"]},textDecorationColor:{types:["color"]},textEmphasis:{properties:["textEmphasisColor"]},textEmphasisColor:{types:["color"]},textShadow:{types:["shadow-list"]},columns:{properties:["columnWidth","columnCount"]},columnWidth:{types:["length"]},columnCount:{types:["integer"]},columnGap:{types:["length-percentage-calc"]},columnRule:{properties:["columnRuleColor","columnRuleWidth"]},columnRuleColor:{types:["color"]},columnRuleWidth:{types:["length"]},letterSpacing:{types:["length"]},tabSize:{types:["length"]},textIndent:{types:["length-percentage-calc"]},wordSpacing:{types:["length-percentage-calc"]},transform:{types:["transform"]},transformOrigin:{types:["length-percentage-calc"],multiple:!0},perspective:{types:["length"]},perspectiveOrigin:{types:["length-percentage-calc"],multiple:!0}},o=["","deg","box","bz","bh","bw","deg","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"],i=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["\\w+","deg","bz","bh","bw","cap","ch","deg","em","ic","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")"),a=function(){return Number((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toFixed(3))};function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n[e],i=o&&o.properties,a=t.split(" ");return o.multiple?i&&i.forEach((function(e,t){r[e]=a[t%a.length]})):i&&i.forEach((function(e,t){a[t]&&(r[e]=a[t])})),r}function l(e){var t=n[e],r=t&&t.properties;return r&&!!r.length}function c(e,t){return!!n[e]}},90:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,mux:()=>n.mux,release:()=>n.release});var n=r(494)},504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,demuxOne:()=>n.demuxOne,mux:()=>n.mux,muxOne:()=>n.muxOne,release:()=>n.release});var n=r(464)},479:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>g,demuxOne:()=>d,mux:()=>v,muxOne:()=>h,release:()=>f});var n=r(116),o=r.n(n),i=r(92),a=r.n(i),s=r(573);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={blur:"px",brightness:"%",contrast:"%",dropShadow:!0,grayscale:"%",hueRotate:"deg",invert:"%",opacity:"%",saturate:"%",sepia:"%"},p={};function f(e,t,r,n,o,i){var a,s=e.split("_");if(4===s.length){if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();0!==n[a].length||i||delete n[a],0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function d(e,t,r,n,o,i){var a=r,l=s.MD[e]||u[n];return"bw"===l&&(a*=i.x,l="px"),"wh"===l&&(a*=i.y,l="px"),"bz"===l&&(a*=i.z,l="px"),"deg"===l&&(a%=360),l?(0,s.$U)(a)+l:(0,s.$U)(a)}function g(e,t,r,n,o){for(var i,a,s,l,c,u,p="",f=0,g=0;f<n[e].length;f++)for(a in i=n[e][f])if(i.hasOwnProperty(a)){for(l=e+"_"+f+"_"+a,u="",g=0,s=0;s<n[l].length;s++)n[l][s]&&(c=d(s,0,t[l+"_"+s],a,0,o),g&&"-"===c[0]?c=" - "+c.substr(1):g&&(c=" + "+c),u+=c,g++);g>1&&(u="calc("+u+")"),g>0&&(p+=a+"("+(u||"0")+") ")}r.filter=p}function h(e,t,r,n,o,i,l,c){var f=!!a().string(r)&&r.match(s.FK),d=f&&f[2]||u[t],h=s.MD.indexOf(d),v=-1!==h&&e+"_"+h||e;return i[v]=p[t]||0,o[e][h]=o[e][h]||0,c&&c[h]?n[v]+=f?parseFloat(f[1]):parseFloat(r):(!l&&o[e][h]++,n[v]=f?parseFloat(f[1]):parseFloat(r),c&&(c[h]=!0)),g}var v=function(e,t,r,n,o,i,s){n[e]=n[e]||[],a().array(t)||(t=[t]);for(var l,u,p,f,d,v,y,m=0;m<t.length;m++){for(u in l=t[m],p=s?{}:c({},n[e][m]||{}),l)if(l.hasOwnProperty(u))if(f=l[u],y={},d=e+"_"+m+"_"+u,p[u]=p[u]||n[e][m]&&n[e][m][u]||0,!i&&p[u]++,n[d]=n[d]||[],a().array(f))for(v=0;v<f.length;v++)h(d,u,f[v]||0,r,n,o,i,y);else h(d,u,f||0,r,n,o,i);n[e][m]=s?c(c(c({},p),n[e][m]||{}),p):p}return g}},402:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,demuxOne:()=>n.demuxOne,mux:()=>n.mux,muxOne:()=>n.muxOne,release:()=>n.release});var n=r(464)},841:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>h,demuxOne:()=>g,mux:()=>y,muxOne:()=>v,release:()=>d});var n=r(116),o=r.n(n),i=r(92),a=r.n(i),s=r(573);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={translateX:"px",translateY:"px",translateZ:"px",scale:"",scaleZ:"",scaleX:"",scaleY:"",rotate:"deg",skewX:"deg",skewY:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",perspective:"px"},p={translateX:"x",translateY:"y",translateZ:"z",rotateX:"x",rotateY:"y",rotateZ:"z",left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},f={scale:1,scaleX:1,scaleY:1,scaleZ:1};function d(e,t,r,n,o,i){var a,s=e.split("_");if(4===s.length){if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();0!==n[a].length||i||delete n[a],0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function g(e,t,r,n,o,i){var a=r,l=s.MD[e]||u[n];return"box"===l&&(a*=i[p[n]]||i.x,l="px"),"bw"===l&&(a*=i.x,l="px"),"wh"===l&&(a*=i.y,l="px"),"bz"===l&&(a*=i.z,l="px"),"deg"===l&&(a%=360),l?(0,s.$U)(a)+l:(0,s.$U)(a)}function h(e,t,r,n,o){for(var i,a,s,l,c,u,p="",f=0,d=0;f<n[e].length;f++)for(a in i=n[e][f])if(i.hasOwnProperty(a)){for(l=e+"_"+f+"_"+a,u="",d=0,s=0;s<n[l].length;s++)n[l][s]&&(c=g(s,0,t[l+"_"+s],a,0,o),d&&"-"===c[0]?c=" - "+c.substr(1):d&&(c=" + "+c),u+=c,d++);d>1&&(u="calc("+u+")"),d>0&&(p+=a+"("+(u||"0")+") ")}r.transform=p}function v(e,t,r,n,o,i,l,c){var p=!!a().string(r)&&r.match(s.FK),d=p&&p[2]||u[t],g=s.MD.indexOf(d),v=-1!==g&&e+"_"+g||e;return i[v]=f[t]||0,o[e][g]=o[e][g]||0,c&&c[g]?n[v]+=p?parseFloat(p[1]):parseFloat(r):(!l&&o[e][g]++,n[v]=p?parseFloat(p[1]):parseFloat(r),c&&(c[g]=!0)),h}var y=function(e,t,r,n,o,i,s){if(n[e]=n[e]||[],!a().array(t)&&!a().object(t))return console.warn("React-Voodoo: Ignore unexpected value ",e,":",t," on ",r),h;a().array(t)||(t=[t]);for(var l,u,p,f,d,g,y,m=0;m<t.length;m++){for(u in l=t[m],p=s?{}:c({},n[e][m]||{}),l)if(l.hasOwnProperty(u))if(f=l[u],y={},d=e+"_"+m+"_"+u,p[u]=p[u]||n[e][m]&&n[e][m][u]||0,!i&&p[u]++,n[d]=n[d]||[],a().array(f))for(g=0;g<f.length;g++)v(d,u,f[g]||0,r,n,o,i,y);else v(d,u,f||0,r,n,o,i);n[e][m]=s?c(c(c({},p),n[e][m]||{}),p):p}return h}},592:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>p,demuxOne:()=>u,mux:()=>g,muxOne:()=>d,muxer:()=>f,release:()=>c});var n=r(92),o=r.n(n),i=r(573),a={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"},s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function c(e,t,r,n,o,i){var a=e.split("_");if(2===a.length){if(--n[a[0]][a[1]]||i||delete t[e],!i)for(;n[a[0]].length&&!n[a[0]][n[a[0]].length-1];)n[a[0]].pop();0!==n[a[0]].length||i||(delete n[a[0]],delete o[a[0]],r&&delete r[a[0]])}else console.log("wtf",a)}function u(e,t,r,n,o){var l=t,c=i.MD[e]||a[r]||"px";return"box"===c&&(l*=o[s[r]]||o.x,c="px"),"bw"===c&&(l*=o.x,c="px"),"bh"===c&&(l*=o.y,c="px"),"bz"===c&&(l*=o.z,c="px"),c?(0,i.$U)(l)+c:(0,i.$U)(l)}function p(e,t,r,n,o,i){var a,s,l,c=0;if(a="",n[e].isString)return r[e]=n[e].value,n[e].value;for(s=0;s<n[e].length;s++)n[e][s]&&(t[l=e+"_"+s]<0?a+=(c?" - ":"-")+u(s,-t[l],i||e,0,o):a+=(c?" + ":"")+u(s,t[l],i||e,0,o),c++);return c>1&&(a="calc("+a+")"),r?r[e]=a:a}function f(e,t,r,n,i,a){n[e]=n[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,r,n,i,a,s);else d(e,t||0,r,n,i,a);return p}function d(e,t,r,n,s,c,u){var f=!!o().string(t)&&t.match(i.FK),d=f&&f[2]||a[e]||"px",g=i.MD.indexOf(d),h=-1!==g&&e+"_"+g||e;return s[h]=l[e]||0,n[e][g]=n[e][g]||0,!f&&o().string(t)?(n[e].isString=!0,n[e].value=t,p):(u&&u[g]?r[h]+=f?parseFloat(f[1]):parseFloat(t):(!c&&n[e][g]++,r[h]=f?parseFloat(f[1]):parseFloat(t),u&&(u[g]=!0)),p)}var g=f},724:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>i,mux:()=>a,release:()=>o});var n={opacity:1};function o(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function i(e,t,r,n,o){var i=!!t[e];return r?r[e]=i:i}var a=function(e,t,r,o,a,s){return a[e]=n[e]||0,r[e]=!1===t?0:1,o[e]=o[e]||0,!s&&o[e]++,i}},494:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>a,mux:()=>s,release:()=>i});const n=require("color-rgba");var o=r.n(n);function i(e,t,r,n,o,i){var a=e.split("_"),s=a.slice(0,a.length-1).join("_");--n[e]||i||(delete t[e],delete n[e]),--n[s]||i||(delete t[e],delete n[e])}function a(e,t,r,n){var o="rgba("+t[e+"_r"]+", "+t[e+"_g"]+", "+t[e+"_b"]+", "+t[e+"_a"]+")";return r?r[e]=o:o}function s(e,t,r,n,i,s){var l=o()(t);return n[e]=n[e]||0,n[e+"_r"]=n[e+"_r"]||0,n[e+"_g"]=n[e+"_g"]||0,n[e+"_b"]=n[e+"_b"]||0,n[e+"_a"]=n[e+"_a"]||0,s||(n[e]+=4,n[e+"_r"]++,n[e+"_g"]++,n[e+"_b"]++,n[e+"_a"]++),r[e+"_r"]=l[0],r[e+"_g"]=l[1],r[e+"_b"]=l[2],r[e+"_a"]=l[3],i[e]=0,i[e+"_r"]=0,i[e+"_g"]=0,i[e+"_b"]=0,i[e+"_a"]=1,a}},48:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>p,demuxOne:()=>u,mux:()=>g,muxOne:()=>d,muxer:()=>f,release:()=>c});var n=r(92),o=r.n(n),i=r(573),a={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"},s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function c(e,t,r,n,o,i){var a=e.split("_");if(2===a.length){if(--n[a[0]][a[1]]||i||delete t[e],!i)for(;n[a[0]].length&&!n[a[0]][n[a[0]].length-1];)n[a[0]].pop();0!==n[a[0]].length||i||(delete n[a[0]],delete o[a[0]],r&&delete r[a[0]])}else console.log("wtf",a)}function u(e,t,r,n,o){var l=t,c=i.MD[e]||a[r]||"px";return"box"===c&&(l*=o[s[r]]||o.x,c="px"),"bw"===c&&(l*=o.x,c="px"),"bh"===c&&(l*=o.y,c="px"),"bz"===c&&(l*=o.z,c="px"),c?(0,i.$U)(l)+c:(0,i.$U)(l)}function p(e,t,r,n,o,i){var a,s,l,c=0;for(a="",s=0;s<n[e].length;s++)n[e][s]&&(t[l=e+"_"+s]<0?a+=(c?" - ":"-")+u(s,-t[l],i||e,0,o):a+=(c?" + ":"")+u(s,t[l],i||e,0,o),c++);return c>1&&(a="calc("+a+")"),r?r[e]=a:a}function f(e,t,r,n,i,a){n[e]=n[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,r,n,i,a,s);else d(e,t||0,r,n,i,a);return p}function d(e,t,r,n,s,c,u){var f=!!o().string(t)&&t.match(i.FK),d=f&&f[2]||a[e]||"px",g=i.MD.indexOf(d),h=-1!==g&&e+"_"+g||e;return s[h]=l[e]||0,n[e][g]=n[e][g]||0,u&&u[g]?r[h]+=f?parseFloat(f[1]):parseFloat(t):(!c&&n[e][g]++,r[h]=f?parseFloat(f[1]):parseFloat(t),u&&(u[g]=!0)),p}var g=f},835:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(92),o=r.n(n),i=r(125),a={top:"0%",bottom:"100%",center:"50%",left:"0%",right:"100%"};function s(e,t,r,n,o,a){for(var s=n["_"+e],l="",c={},u=0;u<s;u++)i.demux(e+"_"+u,t,c,n,o,a),l+=c[e+"_"+u]+" ";r[e]=l}function l(e,t,r,n,o,i){e.split("_")}const c=function(e){return{mux:function(t,r,n,l,c,u){var p,f=r.split(" ");l[t]=l[t]||0,u&&l[t]++,l["_"+t]=e;for(var d=0;d<e;d++)p=f[d%f.length],p=o().string(p)&&a[p]||p,i.mux(t+"_"+d,p,n,l,c,u);return s},demux:s,release:l}}},125:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function o(e,t,r,n,o){r[e]=~~t[e]}r.r(t),r.d(t,{demux:()=>o,mux:()=>i,release:()=>n});var i=function(e,t,r,n,i,a){return i[e]=0,r[e]=~~t,n[e]=n[e]||0,!a&&n[e]++,o}},497:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>a,mux:()=>s,release:()=>i});var n=r(573),o={opacity:1};function i(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function a(e,t,r,o,i){r[e]=Math.min(1,Math.max(0,(0,n.$U)(t[e])))}var s=function(e,t,r,n,i,s){return i[e]=o[e]||0,r[e]=t,n[e]=n[e]||0,!s&&n[e]++,a}},464:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>T,demuxOne:()=>S,mux:()=>j,muxOne:()=>D,release:()=>P});var n=r(116),o=r.n(n),i=r(826),a=r.n(i),s=r(92),l=r.n(s),c=r(573),u=r(821);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d,g,h,v,y,m,b,x,w=(d=/,(?![^\(]*\))/,g=/\s(?![^(]*\))/,h=/^[0-9]+[a-zA-Z%]+?$/,v=function(e){var t=e.split(g),r=t.includes("inset"),n=t.slice(-1)[0],o=m(n)?void 0:n,i=t.filter((function(e){return"inset"!==e})).filter((function(e){return e!==o})).map(b),s=a()(i,4);return{inset:r,offsetX:s[0],offsetY:s[1],blurRadius:s[2],spreadRadius:s[3],color:o}},y=function(e){var t=e||{},r=t.inset,n=t.offsetX,o=void 0===n?0:n,i=t.offsetY,a=void 0===i?0:i,s=t.blurRadius;return[r?"inset":null,o,a,void 0===s?0:s,t.spreadRadius,t.color].filter((function(e){return null!=e})).map(x).map((function(e){return(""+e).trim()})).join(" ")},m=function(e){return"0"===e||h.test(e)},b=function(e){if(!/px$/.test(e)&&"0"!==e)return e;var t=parseFloat(e);return isNaN(t)?e:t},x=function(e){return"number"==typeof e&&0!==e?e+"px":e},{parse:function(e){return e.split(d).map((function(e){return e.trim()})).map(v)},stringify:function(e){return e.map(y).join(", ")}}),_={perspective:"px"},O={translateX:"x"},R={inset:u.lc,color:u.yW};function P(e,t,r,n,o,i){var a,s=e.split("_");if(s.length>2){if(a=s[0]+"_"+s[1]+"_"+s[2],R[s[2]])return R[s[2]].release(e,t,r,n,o,i),n[a]||--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],void(0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]]));if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();if(0!==n[a].length||i||delete n[a],!i)for(;n[s[0]].length&&!Object.keys(n[s[0]][n[s[0]].length-1]).length;)n[s[0]].pop();0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function S(e,t,r,n,o,i){var a=r,s=c.MD[e]||_[n];return"box"===s&&(a*=i[O[n]]||i.x,s="px"),"bw"===s&&(a*=i.x,s="px"),"wh"===s&&(a*=i.y,s="px"),"bz"===s&&(a*=i.z,s="px"),"deg"===s&&(a%=360),s?(0,c.$U)(a)+s:(0,c.$U)(a)}function T(e,t,r,n,o){for(var i,a,s,l,c,u,p=[],f={},d=0,g=0;d<n[e].length;d++){for(a in f={},i=n[e][d])if(i.hasOwnProperty(a)){if(l=e+"_"+d+"_"+a,R[a])u=R[a].demux(l,t,void 0,n,o);else{for(u="",g=0,s=0;s<n[l].length;s++)n[l][s]&&(c=S(s,0,t[l+"_"+s],a,0,o),g&&"-"===c[0]?c=" - "+c.substr(1):g&&(c=" + "+c),u+=c,g++);g>1&&(u="calc("+u+")")}f[a]=u||0}p.push(f)}r[e]=w.stringify(p)}function D(e,t,r,n,o,i,a,s){var u=!!l().string(r)&&r.match(c.FK),p=u&&u[2]||_[t]||"px",f=c.MD.indexOf(p),d=-1!==f&&e+"_"+f||e;return i[d]=0,o[e][f]=o[e][f]||0,s&&s[f]?n[d]+=u?parseFloat(u[1]):parseFloat(r):(!a&&o[e][f]++,n[d]=u?parseFloat(u[1]):parseFloat(r),s&&(s[f]=!0)),T}var j=function(e,t,r,n,o,i,a){n[e]=n[e]||[],l().array(t)||(t=[t]);for(var s,c,u,p,d,g,h,v=0;v<t.length;v++){for(c in s=t[v],l().string(s)&&(s=w.parse(s)[0]),u=a?{}:f({},n[e][v]||{}),s)if(s.hasOwnProperty(c))if(p=s[c],d=e+"_"+v+"_"+c,u[c]=u[c]||n[e][v]&&n[e][v][c]||0,!i&&u[c]++,R[c])R[c].mux(d,p,r,n,o,i,a);else if(h={},n[d]=n[d]||[],l().array(p))for(g=0;g<p.length;g++)D(d,c,p[g]||0,r,n,o,i,h);else D(d,c,p||0,r,n,o,i);n[e][v]=a?f(f(f({},u),n[e][v]||{}),u):u}return T}},116:e=>{"use strict";e.exports=require("@babel/runtime/helpers/defineProperty")},826:e=>{"use strict";e.exports=require("@babel/runtime/helpers/slicedToArray")},50:e=>{"use strict";e.exports=require("d3-ease")},92:e=>{"use strict";e.exports=require("is")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{Axis:()=>qe,Component:()=>ht,Context:()=>P,Draggable:()=>ot,Node:()=>tt,child:()=>ft,default:()=>vt,dom:()=>be,hook:()=>He,tools:()=>e,tweener:()=>lt,useTweener:()=>it,useVoodoo:()=>He});var e={};r.r(e),r.d(e,{addCss:()=>H,cssAdd:()=>W,cssMult:()=>I,extractCss:()=>Y,offset:()=>L,re_cssValueWithUnit:()=>C,reverse:()=>N,scale:()=>F,shiftTransforms:()=>X,target:()=>U});const t=require("@babel/runtime/helpers/classCallCheck");var o=r.n(t);const i=require("@babel/runtime/helpers/createClass");var a=r.n(i);const s=require("@babel/runtime/helpers/possibleConstructorReturn");var l=r.n(s);const c=require("@babel/runtime/helpers/getPrototypeOf");var u=r.n(c);const p=require("@babel/runtime/helpers/inherits");var f=r.n(p);const d=require("react");var g=r.n(d),h=r(826),v=r.n(h);const y=require("fast-deep-equal");var m=r.n(y);const b=require("@babel/runtime/helpers/extends");var x=r.n(b);const w=require("@babel/runtime/helpers/objectWithoutProperties");var _=r.n(w),O=r(92),R=r.n(O);const P=g().createContext(null),S=require("@babel/runtime/helpers/toConsumableArray");var T=r.n(S);const D=require("@babel/runtime/helpers/get");var j=r.n(D),k=r(116),E=r.n(k),B=r(50);function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}require("react-dom");var C=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["box","bz","bh","bw","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")");function W(e,t){R().array(e)||(e=[e]),R().array(t)||(t=[t]);var r,n=e.map((function(e){return e&&e.match&&e.match(C)||[,e||0,"px"]})),o=t.map((function(e){return e&&e.match&&e.match(C)||[,e||0,"px"]})),i={},a=[];for(r=0;r<n.length;)i[n[r][2]]=i[n[r][2]]||0,i[n[r][2]]+=parseFloat(n[r][1]),r++;for(r=0;r<o.length;)i[o[r][2]]=i[o[r][2]]||0,i[o[r][2]]+=parseFloat(o[r][1]),r++;Object.keys(i).forEach((function(e){return a.push(i[e]+e)}));for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];return l.length?W.apply(void 0,[a].concat(l)):a}function I(e,t){R().array(e)||(e=[e]);var r,n=e.map((function(e){return e&&e.match&&e.match(C)||[,e||0,"px"]})),o={},i=[];for(r=0;r<n.length;)o[n[r][2]]=o[n[r][2]]||1,o[n[r][2]]=parseFloat(n[r][1])*t,r++;return Object.keys(o).forEach((function(e){return i.push(o[e]+e)})),i}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e=R().array(e)?e:e&&[e]||e).map((function(e){return A(A({},e),{},{from:e.from+t})}))}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;e=R().array(e)?e:e&&[e]||e;var n=0;return e.forEach((function(e){n=Math.max(n,e.from+e.duration)})),e=e.map((function(e){return A(A({},e),{},{from:e.from/n*t,duration:e.duration/n*t})})),r?L(e,r):e}function z(e){return R().number(e)?-e:R().object(e)?Object.keys(e).reduce((function(t,r){return t[r]=z(e[r]),t}),{}):R().array(e)?e.map((function(e){return z(e)})):e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function(e,t){return t%2?-parseFloat(e):e})).join("")}function N(e){e=R().array(e)?e:e&&[e]||e;var t=0;return e.forEach((function(e){t=Math.max(t,e.from+e.duration)})),e.map((function(e){return A(A({},e),{},{from:t-(e.from+e.duration)},e.apply?{apply:z(e.apply)}:void 0)}))}var V={transform:!0,filter:!0,textShadow:!0,boxShadow:!0};function H(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r.shift();for(var i in o){var a;o.hasOwnProperty(i)&&(V[i]?(e[i]||(e[i]=[]),R().array(o[i])?H(e[i],o[i]):H(e[i],[o[i]])):R().array(o[i])?(e[i]||(e[i]=[]),R().array(e[i])?(a=e[i]).push.apply(a,T()(o[i])):e[i]=[].concat(T()(o[i]),[e[i]])):e[i]?R().object(e[i])&&R().object(o[i])?H(e[i],o[i]):e[i]=q(e[i],o[i]):R().object(o[i])?e[i]=A({},o[i]):e[i]=o[i])}return r.length&&H.apply(void 0,[e].concat(r))||e}function q(e,t){if(!e)return t;if(!t)return e;var r=(""+e).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),n=(""+t).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),o=r.map((function(e,t){return t%2?parseFloat(e)+parseFloat(n[t]||0):e})).filter((function(e){return""!==e}));return 1===o.length?parseInt(o[0]):o.join("")}function Y(e,t){var r={};return(e=R().array(e)?e:e&&[e]||e).forEach((function(e){H(r,e.apply)})),t&&(r=z(r)),r}function U(e,t){return(e=R().array(e)?e:e&&[e]||e).map((function(e){return A(A({},e),{},{target:t})}))}function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(e=R().array(e)?e:e&&[e]||e).map((function(e){var r=e.apply&&e.apply.transform;if(r){r=R().array(r)?r:[r];for(var n=0;n<t;n++)r.unshift({});e=A(A({},e),{},{apply:A(A({},e.apply),{},{transform:r})})}return e}))}var $=r(573),G={},K=r(253).walknSetExport;K(G,"filter",r(479)),K(G,"boxShadow",r(504)),K(G,"transform",r(841)),K(G,"textShadow",r(402)),K(G,"backgroundColor",r(90));const Z=G;var J=r(821);function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var te=ee(ee({},Z),{},{height:J.Bw,width:J.Bw,top:J.Bw,left:J.Bw,right:J.Bw,bottom:J.Bw,marginTop:J.Bw,marginLeft:J.Bw,marginRight:J.Bw,marginBottom:J.Bw,paddingTop:J.Bw,paddingLeft:J.Bw,paddingRight:J.Bw,paddingBottom:J.Bw,borderRadius:J.Bw,borderTopColor:J.yW,borderLeftColor:J.yW,borderRightColor:J.yW,borderBottomColor:J.yW,borderTopWidth:J.Bw,borderLeftWidth:J.Bw,borderRightWidth:J.Bw,borderBottomWidth:J.Bw,transformOrigin:(0,J.m3)(2),zIndex:J.ai,opacity:J.CG});function re(e,t,r,n,o,i,a){var s;null===(s=i[t.split("_")[0]])||void 0===s||s.release(t,r,n,o,i,a)}function ne(e,t,r,n,o){Object.keys(r).forEach((function(i){r[i].demux(i,e,t,n,o)}))}function oe(e,t,r,n,o,i,a){var s={},l={};return e&&Object.keys(e).forEach((function(t){te[t]?s[t]=e[t]:(0,$.VP)(t,e[t])?(0,$.J0)(t)?(0,$.Tl)(t,e[t],s):s[t]=e[t]:l[t]=e[t]})),s&&Object.keys(s).forEach((function(e){te[e]?(o[e]=te[e]).mux(e,s[e],t,n,r,i,a):(o[e]=function(e){var t=$.xk[e],r=t&&t.types;if(!r)return J.bz;for(var n=0;n<r.length;n++)switch(r[n]){case"length":case"length-percentage-calc":return J.Bw;case"number":case"integer":return J.ai;case"color":return J.yW}return J.bz}(e)).mux(e,s[e],t,n,r,i,a)})),l}function ie(e,t,r,n,o){o=o&&{};var i={},a=e.reduce((function(e,a){var s={};return n[a.target]=n[a.target]||{},t[a.target]=t[a.target]||{},r[a.target]=r[a.target]||{},a.type&&"Tween"!==a.type?e.push(ee({},a)):(!o&&H(i[a.target]=i[a.target]||{},a.apply),oe(a.apply,s,t[a.target],r[a.target],n[a.target],!0),e.push(ee(ee({},a),{},{apply:s}))),e}),[]);return!o&&Object.keys(i).forEach((function(e){return oe(i[e],{},{},r[e],n[e])})),a}const ae=require("tween-axis");var se=r.n(ae);function le(e,t,r){return t=u()(t),l()(e,ce()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ce=function(){return!!e})()}var ue,pe,fe=[],de=function(e){function t(e,r){if(o()(this,t),fe.length){var n=fe.pop();return n.scope=r,R().array(e)?(n.localLength=1,n.mount(e,r)):e.Axis&&n.mount(e.Axis,r),l()(void 0,n)}return le(this,t,arguments)}return f()(t,e),a()(t,[{key:"destroy",value:function(){this.scope=void 0,this.__marks.length=0,this.__marksLength.length=0,this.__marksKeys.length=0,this.__processors.length=0,this.__config.length=0,this.__activeProcess.length=0,this.__activeProcess.length=0,this.__outgoing.length=0,this.__incoming.length=0,this.__cPos=0,this.duration=0,this.__cIndex=0,this.__cMaxKey=1,fe.push(this)}}])}(se()),ge=r(92),he="undefined"!=typeof window,ve=(he&&(pe=" -webkit- -moz- -o- -ms- ".split(" "),!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(ue=["(",pe.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia&&window.matchMedia(ue).matches)),he?{prefix:/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":/trident/i.test(navigator.userAgent)?"ms":"opera"in window?"O":"",dashedPrefix:/webkit/i.test(navigator.appVersion)?"-webkit-":/firefox/i.test(navigator.userAgent)?"-moz-":/trident/i.test(navigator.userAgent)?"-ms-":"opera"in window?"-o-":""}:{prefix:"",dashedPrefix:""}),ye={onPageHided:[],onPageShown:[],dragging:[],dragEnabled:[],dragEnabledDesc:[],fingers:{},nbFingers:0,dragstartAnywhere:function(e){var t,r,n,o=ye,i=o.dragEnabled.indexOf(this),a=[];if(-1!==i){o.nbFingers||(me.addEvent(document,{touchmove:o.dragAnywhere,mousemove:o.dragAnywhere,touchend:o.dropAnywhere,mouseup:o.dropAnywhere}),me.addEvent(this,{click:o.dropWithoutClick},null,null,null,!0)),e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)if(r=a[s],!(n=o.dragEnabledDesc[i]).nbFingers)for(o.nbFingers++,o.fingers[r.identifier]=o.fingers[r.identifier]||[],o.fingers[r.identifier].push(n),n.nbFingers++,n._startPos.x="MS"==ve.prefix?r.x:r.pageX,n._startPos.y="MS"==ve.prefix?r.y:r.pageY,n._startTs=e.timeStamp,n._lastPos.x="MS"==ve.prefix?r.x:r.pageX,n._lastPos.y="MS"==ve.prefix?r.y:r.pageY,t=0;t<n.dragstart.length;t++)n.dragstart[t][0].call(n.dragstart[t][1]||this,e,r,n)}},dragAnywhere:function(e){var t,r,n,o=this,i=ye,a=[];ye.dragging[0],e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)r=a[s],i.fingers[r.identifier],i.fingers[r.identifier]&&i.fingers[r.identifier].forEach((function(i){if(n)return i._lastPos.x=i._startPos.x="MS"==ve.prefix?r.x:r.pageX,void(i._lastPos.y=i._startPos.y="MS"==ve.prefix?r.y:r.pageY);for(i._lastPos.x="MS"==ve.prefix?r.x:r.pageX,i._lastPos.y="MS"==ve.prefix?r.y:r.pageY,t=0;t<i.drag.length;t++)n=!1===i.drag[t][0].call(i.drag[t][1]||o,e,r,i)}))},dropWithoutClick:function(e){ye.preventNextClick&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),ye.preventNextClick=!1),me.removeEvent(this,{click:this.dropWithoutClick})},dropAnywhere:function(e){var t,r,n,o=this,i=ye,a=[];e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)r=a[s],i.nbFingers--,i.fingers[r.identifier]&&i.fingers[r.identifier].forEach((function(i){for(i.nbFingers--,n=n||i.mouseDrag&&e.timeStamp-i._startTs>250,i._lastPos.x="MS"==ve.prefix?r.x:r.pageX,i._lastPos.y="MS"==ve.prefix?r.y:r.pageY,t=0;t<i.dropped.length;t++)i.dropped[t][0].call(i.dropped[t][1]||o,e,r,i)})),i.fingers[r.identifier]=null;n&&(i.preventNextClick=!0),i.nbFingers||me.removeEvent(document,{touchmove:i.dragAnywhere,mousemove:i.dragAnywhere,touchend:i.dropAnywhere,mouseup:i.dropAnywhere})},getDraggable:function(e,t,r){var n,o=this.dragEnabled.indexOf(e);return-1===o?(this.dragEnabled.push(e),this.dragEnabledDesc.push(n={mouseDrag:t,touchDrag:r,nbFingers:0,locks:0,_startPos:{x:0,y:0},_lastPos:{x:0,y:0},dragstart:[],drag:[],dragEnd:[],dropped:[]}),me.addEvent(e,{mousedown:t&&this.dragstartAnywhere,touchstart:r&&this.dragstartAnywhere},null,null,null,!0)):n=this.dragEnabledDesc[o],n},freeDraggable:function(e){var t=this.dragEnabled.indexOf(e);-1!==t&&(this.dragEnabled.splice(t,1),this.dragEnabledDesc.splice(t,1),me.removeEvent(e,{mousedown:this.dragstartAnywhere,touchstart:this.dragstartAnywhere}))},addEvent:function(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on"+t,r.related=function(t){return r.call(e,t)})},removeEvent:function(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.attachEvent&&e.detachEvent("on"+t,r.related)},rmDragFn:function(e,t,r){for(var n=0,o=e.length;n<o;n++)if(e[n][0]===t)return e.splice(n,1);console.warn("Rm event : Listener not found !!")}},me={addEvent:function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0;if(ge.object(t))for(var a in t)t.hasOwnProperty(a)&&t[a]&&this.addEvent(e,a,t[a],n,o,i);else"dragstart"===t?ye.getDraggable(e,n,o).dragstart.push([r]):"drag"===t?ye.getDraggable(e,n,o).drag.push([r]):"dropped"===t?ye.getDraggable(e,n,o).dropped.push([r]):e.addEventListener?e.addEventListener(t,r,{passive:!1}):e.attachEvent&&e.attachEvent("on"+t,r.related=function(t){return r.call(e,t)})},removeEvent:function(e,t,r,n,o){var i;if(ge.object(t))for(var a in t)t.hasOwnProperty(a)&&this.removeEvent(e,a,t[a],n);else/^(drag|drop)/.test(t)?(i=ye.getDraggable(e),ye.rmDragFn(i[t],r,n),i.dragstart.length||i.drag.length||i.dragEnd.length||i.dropped.length||ye.freeDraggable(e)):e.removeEventListener?e.removeEventListener(t,r,o):e.attachEvent&&e.detachEvent("on"+t,r.related)},offset:function(e){for(var t={top:0,left:0,width:e.offsetWidth,height:e.offsetHeight};e;)t.top=t.top+parseInt(e.offsetTop),t.left=t.left+parseInt(e.offsetLeft),e=e.offsetParent;return t},findReactParents:function(e){var t,r=[e];for(var n in e)if(n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber$")){for(t=e[n];t.return;)t.stateNode&&!r.includes(t.stateNode)&&r.push(t.stateNode),t=t.return;return r}return e.parentNode&&this.findReactParents(e.parentNode)}};const be=me;function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _e=r(92),Oe=r(50),Re=function(e){return"number"==typeof e?e?e<0?-1:1:e==e?e:NaN:NaN},Pe=Math.abs,Se=Math.floor,Te=(Math.round,Math.min),De=Math.max,je=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toFixed(3)},ke=function(){return a()((function e(t){o()(this,e);var r=this._={};r.conf=we(we({},this.constructor.config),t),this.active=!1,r.pos=t.value||0,r.refFPS=16,r.min=t.min||0,r.max=t.max||0,r.currentStop=0,r.lastInertiaPos=0,r.stops=r.conf.stops,r.disabled=r.conf.disabled,r.wayPoints=r.conf.wayPoints,r.inertiaFn=Oe.easePolyOut,r.targetWayPointIndex=0,this._detectCurrentSnap()}),[{key:"updateConf",value:function(e){var t=this._;t.min=e.min||0,t.max=e.max||0,t.stops=e.stops,t.disabled=e.disabled,t.wayPoints=e.wayPoints,t.conf.willStop=e.willStop,t.conf.willSnap=e.willSnap,t.conf.onStop=e.onStop,t.conf.onSnap=e.onSnap,t.conf.shouldLoop=e.shouldLoop}},{key:"startMove",value:function(){var e=this._;e.baseTS=e.startTS=Date.now()/1e3,e.lastVelocity=e.lastIVelocity=0,e.lastAccel=0,e.posDiff=0,e.loopsDiff=0,this.active=!0,this.holding=!0,e.inertia=!1}},{key:"hold",value:function(e){var t,r=this._,n=void 0!==r.lastHoldPos?e-r.lastHoldPos:0,o=Date.now()/1e3,i=o-r.baseTS,a=e,s=n/i;if(r.lastHoldPos=e,r.lastBaseTs||(r.lastBasePos=e,r.lastBaseTs=r.baseTS),i<.003||((s<=0&&r.lastVelocity>0||s>=0&&r.lastVelocity<0||Pe(s)<Pe(.2*r.lastVelocity))&&o-r.lastBaseTs>.15?(r.lastBasePos=e,r.lastBaseTs=o,r.lastVelocity=0,r.lastIVelocity=0,r.baseTS=o,r.targetDist=0,r.lastInertiaPos=0):s<=0&&r.lastVelocity>0||s>=0&&r.lastVelocity<0||Pe(s)<Pe(.2*r.lastVelocity)||(r.lastIVelocity=s,r.lastVelocity=(a-r.lastBasePos)/(o-r.lastBaseTs),r.baseTS=o,r.targetDist=0,r.lastInertiaPos=0,r.targetWayPoint=void 0,r.targetWayPointIndex=void 0)),r.conf.bounds&&(a>r.max?a=r.max:a<r.min&&(a=r.min)),r.conf.shouldLoop)for(;t=r.conf.shouldLoop(a,n);)a+=t;r.pos=a}},{key:"release",value:function(){var e,t,r=this._;Re(r.lastVelocity),this.holding=!1,function(e){var t=Re(e.lastVelocity);e.disabled?(e.loopsTarget=0,e.loopsVelSum=0,e.targetDist=0,e.targetDuration=0):(e.loopsTarget=Se(Math.log(.05/Pe(e.lastVelocity))/Math.log(.9)),e.loopsVelSum=(Math.pow(.9,e.loopsTarget)-Pe(e.lastVelocity))/(.9-1),e.targetDist=e.loopsVelSum*e.refFPS*t/1e3||0,e.targetDuration=Pe(e.loopsTarget*e.refFPS*t)||0)}(r),r.lastHoldPos=void 0,r.lastBasePos=void 0,r.lastBaseTs=void 0,r.holding=!1,r.conf.bounds&&r.conf.snapToBounds&&(r.pos+r.targetDist>r.max?(r.targetDist=r.max-r.pos,r.targetDuration=Pe(10*r.targetDist)):r.pos+r.targetDist<r.min&&(r.targetDist=r.min-r.pos,r.targetDuration=Pe(10*r.targetDist))),r.targetDuration||(r.targetDuration=50),this.active=!0,r.inertia=!0,r.lastInertiaPos=0,r.inertiaStartTm=r.inertiaLastTm=Date.now(),this._doSnap(null,500),null===(e=(t=r.conf).willEnd)||void 0===e||e.call(t,r.targetDist+r.pos,r.targetDist,r.targetDuration)}},{key:"update",value:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=this._,o=n.inertiaFn((r-n.inertiaStartTm)/n.targetDuration)*n.targetDist;if(!n.inertia)return n.pos;var i=o-n.lastInertiaPos;if(n.lastInertiaPos=o,r-n.inertiaStartTm>=n.targetDuration&&(n.inertia=this.active=!1,n.lastInertiaPos=i=0,n.targetDist=0,n.targetWayPoint&&(i=n.targetWayPoint.at-n.pos,n.currentWayPoint=n.targetWayPoint,n.currentWayPointIndex=n.targetWayPointIndex,n.targetWayPoint=null,n.targetWayPointIndex=null),n.conf.onStop&&n.conf.onStop(n.pos,n.currentWayPoint),n.conf.onSnap&&n.conf.onSnap(n.currentWayPointIndex,n.currentWayPoint)),i=i||0,e=n.pos+i,n.conf.shouldLoop)for(;t=n.conf.shouldLoop(e,i);)e+=t,n.inertia;return n.pos=e,e}},{key:"setPos",value:function(e){var t=this._;if(t.inertia=!1,this.active=!1,t.lastInertiaPos=0,t.targetDist=0,t.inertiaStartTm=0,t.inertiaLastTm=0,t.targetDuration=0,t.conf.shouldLoop){for(var r,n=e;r=t.conf.shouldLoop(n,t.pos-e);)n+=r;e=n}t.pos=e,t.conf.bounds&&(t.pos=De(t.pos,t.min),t.pos=Te(t.pos,t.max))}},{key:"setWayPoints",value:function(e){this._.wayPoints=e,this._detectCurrentSnap()}},{key:"teleport",value:function(e){var t=this._;if(!t.inertia)return t.pos+=e;t.pos+=e}},{key:"dispatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=this._,n=Date.now();this.active=!0,r.inertia&&Re(e)===Re(r.targetDist)?(r.targetDist+=e,r.targetDuration+=t/2):(r.inertia=!0,r.lastInertiaPos=0,r.inertiaStartTm=r.inertiaLastTm=n,r.targetDist=e,r.targetDuration=t),r.conf.bounds&&(r.pos+r.targetDist>r.max?(r.targetDist=r.max-r.pos,r.targetDuration=Pe(10*r.targetDist)):r.pos+r.targetDist<r.min&&(r.targetDist=r.min-r.pos,r.targetDuration=Pe(10*r.targetDist))),this._doSnap(Re(e),750)}},{key:"_detectCurrentSnap",value:function(){var e,t=this._,r=t.pos;if(t.wayPoints&&t.wayPoints.length)for(e=0;e<t.wayPoints.length;e++)if(je(t.wayPoints[e].at)===je(r))return t.currentWayPoint=t.wayPoints[e],t.currentWayPointIndex=e,e}},{key:"_doSnap",value:function(e){var t,r,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,a=this._,s=a.targetDist+(a.pos-(a.lastInertiaPos||0)),l=0;if(a.wayPoints&&a.wayPoints.length){if(a.conf.shouldLoop)for(;o=a.conf.shouldLoop(s,0);)s+=o,l+=o;for(n=0;n<a.wayPoints.length&&!(a.wayPoints[n].at>s);n++);if(n===a.wayPoints.length?n--:0===n?n=0:(r=(a.wayPoints[n].at-a.wayPoints[n-1].at)/2,r=a.wayPoints[n-1].at+r*((a.wayPoints[n].gravity||1)/(a.wayPoints[n-1].gravity||1)),e?e<0&&n--:s<r&&n--),a.conf.maxJump&&_e.number(a.currentWayPointIndex)){var c=n-a.currentWayPointIndex;Pe(c)>a.conf.maxJump&&(n=a.currentWayPointIndex+Re(c)*a.conf.maxJump)}t=a.wayPoints[n].at,a.conf.willSnap&&a.conf.willSnap(n,a.wayPoints[n]),a.lastInertiaPos=a.lastInertiaPos||0,t=t-(a.pos-a.lastInertiaPos)-l,a.targetDuration=De(50,Te(i,Pe(a.targetDuration/a.targetDist*t)))||0,a.targetDist=t,a.targetWayPoint=a.wayPoints[n],a.targetWayPointIndex=n}else t=~~(a.pos-a.lastInertiaPos),a.conf.infinite||(t>a.max?(t=a.max-t,a.targetDuration=Te(i,Pe(a.targetDuration/a.targetDist*t)),a.targetDist=t):t<a.min&&(t=a.min-t,a.targetDuration=Te(i,Pe(a.targetDuration/a.targetDist*t)),a.targetDist=t))}},{key:"setBounds",value:function(e,t){var r=this._;r.min=e,r.max=t}},{key:"isInbound",value:function(e){var t=this._,r=void 0!==t.lastHoldPos?e-t.lastHoldPos:0,n=(t.targetDist||0)+(t.pos-(t.lastInertiaPos||0))+r;return n>=t.min&&n<=t.max}}])}();function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Me(e,t,r){return t=u()(t),l()(e,Ae()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function Ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ae=function(){return!!e})()}E()(ke,"config",{bounds:!0,snapToBounds:!0});var Ce,We,Ie=new Function("try {return this===window;}catch(e){ return false;}")(),Le=R().array,Fe=[],ze=function e(){var t=0,r=Date.now(),n=r-We;for(We=r;t<Fe.length;t++)Fe[t].cpos=Math.min(n+Fe[t].cpos,Fe[t].duration),Fe[t].apply(Fe[t].cpos,Fe[t].duration),Fe[t].cpos==Fe[t].duration&&(Fe[t].cb&&setTimeout(Fe[t].cb),Fe.splice(t,1),t--);Fe.length?setTimeout(e,16):Ce=!1},Ne=function(e){function t(e){var r;o()(this,t),r=Me(this,t,arguments),E()(r,"axes",{}),E()(r,"_scrollWatcherByAxis",{}),E()(r,"_swap",{}),E()(r,"_updateNodeInertia",(function(){var e,t=r._,n=t.activeInertia.length;r._inertiaRaf&&cancelAnimationFrame(r._inertiaRaf);for(var o=0;n>o;o++)((e=t.activeInertia[o]).inertia.x.active||e.inertia.x.holding)&&(e.target.scrollLeft=~~e.inertia.x.update()),(e.inertia.y.active||e.inertia.y.holding)&&(e.target.scrollTop=~~e.inertia.y.update()),e.inertia.x.active||e.inertia.y.active||e.inertia.x.holding||e.inertia.y.holding||(t.activeInertia.slice(o,1),o--,n--);r._inertiaRaf=0!==n?requestAnimationFrame(r._updateNodeInertia):null}));var n=r._={refs:{},muxByTarget:{}};return n.box={x:100,y:100,z:800},r.__isTweener=!0,n._rafLoop=r._rafLoop.bind(r),n.rootRef=r.props.forwardedRef||g().createRef(),n.options=Be({maxClickTm:200,maxClickOffset:5},e.tweenerOptions||{}),n.tweenRefCSS={},n.tweenRefs={},n.tweenRefMaps={},n.iMapOrigin={},n.tweenRefInitialData={},n.tweenEnabled=!0,n.tweenRefOrigin={},n.tweenRefOriginCss={},n.muxDataByTarget=n.muxDataByTarget||{},n.tweenRefDemuxed=n.tweenRefDemuxed||{},n.tweenRefTargets=n.tweenRefTargets||[],n.runningAnims=n.runningAnims||[],n.scrollHook=[],n.activeInertia=[],Ie&&window.addEventListener("resize",r._.onResize=function(e){var t,o;r._updateBox(),r._updateTweenRefs(),null===(t=n.rootRef)||void 0===t||null===(t=t.current)||void 0===t||null===(o=t.windowDidResize)||void 0===o||o.call(t,e)}),r}return f()(t,e),a()(t,[{key:"tweenRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,a=this._,s={},l={};return a.tweenRefs[e]||a.tweenRefTargets.push(e),!a.tweenRefs[e]||!i&&a.iMapOrigin[e]===r&&m()(r,a.iMapOrigin[e])&&a.tweenRefOriginCss[e]===t&&m()(t,a.tweenRefOriginCss[e])?a.tweenRefs[e]?ne(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box):(a.iMapOrigin[e]=r,t=t||{},r=r||{},a.tweenRefs[e]=!0,a.muxByTarget[e]=a.muxByTarget[e]||{},a.muxDataByTarget[e]=a.muxDataByTarget[e]||{},a.tweenRefOriginCss[e]=t,a.tweenRefMaps[e]=a.tweenRefMaps[e]||{},a.tweenRefOrigin[e]?(t=Be(Be({},t),oe(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e],!1,!0)),Object.keys(l).forEach((function(t){return a.tweenRefMaps[e][t]=R().number(a.tweenRefMaps[e][t])?a.tweenRefMaps[e][t]-l[t]:0})),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]+=s[t]}))):(t=Be(Be({},t),oe(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e])),s=Object.assign({},l,s||{}),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]=(a.tweenRefMaps[e][t]||0)+s[t]}))),a.tweenRefOrigin[e]=Be({},s),a.tweenRefCSS[e]=t,ne(s=a.tweenRefMaps[e],t,a.muxByTarget[e],a.muxDataByTarget[e],a.box)):(a.iMapOrigin[e]=r,a.tweenRefOriginCss[e]=t,r=r||{},t=Be(Be({},t=t||{}),oe(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e],!1,!0)),Object.keys(a.tweenRefOrigin[e]).forEach((function(t){return a.tweenRefMaps[e][t]-=a.tweenRefOrigin[e][t]})),Object.keys(l).forEach((function(t){return a.tweenRefMaps[e][t]=R().number(a.tweenRefMaps[e][t])?a.tweenRefMaps[e][t]:l[t]})),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]+=s[t]})),Object.keys(a.tweenRefOrigin[e]).forEach((function(t){re(0,t,a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxDataByTarget[e],a.muxByTarget[e])})),Object.keys(a.tweenRefCSS[e]).forEach((function(r){!a.tweenRefCSS[e][r]||a.muxByTarget[e][r]||t[r]||delete a.tweenRefCSS[e][r]})),Object.keys(t).forEach((function(r){a.tweenRefCSS[e][r]===t[r]||a.muxByTarget[e][r]||(a.tweenRefCSS[e][r]=t[r])})),a.tweenRefOrigin[e]=Be({},s),ne(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box),this._updateTweenRef(e,!0)),o?{style:Be({},a.tweenRefCSS[e])}:{style:Be({},a.tweenRefCSS[e]),ref:R().function(n)?function(t){return a.refs[e]=n(t)}:n?function(t){return a.refs[e]=n.current=t}:function(t){return a.refs[e]=t}}}},{key:"rmTweenRef",value:function(e){this._.tweenRefs[e]&&(this._.tweenRefTargets.splice(this._.tweenRefTargets.indexOf(e),1),delete this._.tweenRefs[e],delete this._.muxByTarget[e],delete this._.muxDataByTarget[e],delete this._.iMapOrigin[e],delete this._.tweenRefOrigin[e],delete this._.tweenRefCSS[e],delete this._.tweenRefMaps[e],delete this._.refs[e])}},{key:"resetTweenable",value:function(){for(var e=this,t=this._,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];n.forEach((function(r){e.tweenRef(r,t.tweenRefOriginCss[r],t.iMapOrigin[r],null,null,null,!0)})),this._updateTweenRefs()}},{key:"updateRefStyle",value:function(e,t,r){var n,o=this,i=this._;return Le(e)&&Le(t)?e.map((function(e,n){return o.updateRefStyle(e,t[n],r)})):Le(e)?e.map((function(e){return o.updateRefStyle(e,t,r)})):i.tweenRefMaps[e]?(n=oe(t,i.tweenRefMaps[e],{},i.muxDataByTarget[e],i.muxByTarget[e]),Object.assign(i.tweenRefCSS[e],n),Object.assign(i.tweenRefOriginCss[e],n),ne(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box),void this._updateTweenRef(e,!0)):console.warn("React-Voodoo : Can't update styles of an unknown Node id '",e,"'")}},{key:"getTweenableRef",value:function(e){var t;return R().element(this._.refs[e])?this._.refs[e]:null!==(t=this._.refs[e])&&void 0!==t&&null!==(t=t._)&&void 0!==t&&null!==(t=t.rootRef)&&void 0!==t&&t.current&&R().element(this._.refs[e]._.rootRef.current)?this._.refs[e]._.rootRef.current:void(this._.tweenRefs[e]||console.warn("react-voodoo: Can't find voodooNode ",e))}},{key:"getRootNode",value:function(){try{return this._.rootRef&&this._.rootRef.current}catch(e){return this._.rootRef&&this._.rootRef.current}}},{key:"pushAnim",value:function(e,r){var n,o,i=this,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this._,l={};if(Le(e)?n=e:(n=e.anims,e.initial),n instanceof de||(n=ie(n,l,this._.muxDataByTarget,this._.muxByTarget),n=new de(n,this._.tweenRefMaps),Object.keys(l).forEach((function(e){return i._.tweenRefMaps[e]&&Object.assign(i._.tweenRefMaps[e],Be(Be({},l[e]),i._.tweenRefMaps[e]))||(o=console.warn("react-voodoo : Can't find tween target ",e," in ",t.displayName)||!0)}))),!o)return new Promise((function(e){n.run(i._.tweenRefMaps,(function(){var t=i._.runningAnims.indexOf(n);-1!=t&&i._.runningAnims.splice(t,1),Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(t){re(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e],a)}))})),n.destroy(),e(n)})),i._.runningAnims.push(n),i._.live||(i._.live=!0,requestAnimationFrame(i._._rafLoop=i._._rafLoop||i._rafLoop.bind(i)))})).then((function(e){return r&&r(e)}))}},{key:"applyTweenState",value:function(e,t,r){var n=this,o={},i={};oe(t,o,i,this._.muxDataByTarget[e],this._.muxByTarget[e],!0),Object.keys(o).map((function(t){return n._.tweenRefMaps[e][t]=(!r&&n._.tweenRefMaps[e][t]||i[t])+o[t]}))}},{key:"initAxis",value:function(e,t,r){var n,o,i=this,a=t.inertia,s=t.scrollableArea,l=void 0===s?0:s,c=t.scrollableBounds,u=t.scrollableWindow,p=t.defaultPosition,f=t.scrollFirst,d=(this._,this.axes[e]),g=c,h=!r&&d?d.scrollPos:p||g&&g.min||0,v=Math.max(d&&d.scrollableArea||0,l),y=Math.max(d&&d.scrollableWindow||0,u),m=d?d.targetPos:h,b=d?d.inertia:new ke(Be(Be({disabled:!a},a||{}),{},{value:h})),x={scrollFirst:f,tweenAxis:d&&d.tweenAxis||[],scrollPos:h,targetPos:m,inertia:b,scrollableWindow:y,scrollableBounds:g,scrollableArea:v,scrollTo:function(t,r,n,o){return i.scrollTo(t,r,e,n,o)}};this.axes[e]=x,!a&&(b._.disabled=!0),a&&b&&!b.active&&(b._.pos=h),a&&b&&b.updateConf(a),b&&g?null===(n=b.setBounds)||void 0===n||n.call(b,g.min,g.max):b&&(null===(o=b.setBounds)||void 0===o||o.call(b,0,v))}},{key:"_getAxis",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scrollY",r=this._;return this.axes[t]=this.axes[t]||{tweenAxis:[],scrollPos:r.options.initialScrollPos&&r.options.initialScrollPos[t]||0,targetPos:0,scrollableWindow:0,scrollableArea:0,inertia:new ke(Be({value:r.options.initialScrollPos&&r.options.initialScrollPos[t]||0},r.options.axes&&r.options.axes[t]&&r.options.axes[t].inertia||{})),scrollTo:function(r,n,o,i){return e.scrollTo(r,n,t,o,i)}},this.axes[t]}},{key:"getAxisState",value:function(e){var t=this,r=(this._,{});return this.axes&&Object.keys(this.axes).forEach((function(e){return r[e]=t.axes[e].targetPos||t.axes[e].scrollPos})),r}},{key:"getScrollPos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scrollY";return this._,this.axes[e]?this.axes[e].targetPos||this.axes[e].scrollPos:0}},{key:"scrollTo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"scrollY",o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=this._;return Ie?new Promise((function(s,l){if(t.axes&&t.axes[n]){var c,u,p,f=t.axes[n].targetPos,d=function(e){var r,o;e=~~(1e4*e)/1e4,t.axes[n].targetPos=t.axes[n].scrollPos=e,~~e!==f&&(t.axisDidScroll(~~e,n),null===(r=a.rootRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.componentDidScroll)||void 0===o||o.call(r,~~e,n)),t._updateTweenRefs()};if(e=Math.max(0,e),e=Math.min(e,t.axes[n].scrollableArea||0),t.axes[n].targetPos=e,r)t._runScrollGoTo(n,e,r,B[o],i,d,s);else null===(c=t.axes)||void 0===c||null===(c=c[n])||void 0===c||null===(c=c.inertia)||void 0===c||c.setPos(e),null!==(u=t.axes)&&void 0!==u&&null!==(u=u[n])&&void 0!==u&&null!==(u=u.inertia)&&void 0!==u&&u._&&(e=null===(p=t.axes)||void 0===p||null===(p=p[n])||void 0===p||null===(p=p.inertia)||void 0===p?void 0:p._.pos),t.axes[n].tweenAxis.forEach((function(t){return t.goTo(e,a.tweenRefMaps,!1,i)})),d(e),s();a.live||(a.live=!0,requestAnimationFrame(a._rafLoop))}})).then((function(e){var r;null===(r=t.axes)||void 0===r||null===(r=r[n])||void 0===r||null===(r=r.inertia)||void 0===r||r._detectCurrentSnap()})):(console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"),Promise.resolve())}},{key:"addScrollableAnim",value:function(e){var t,r,n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"scrollY",i=this._,a={},s=this._getAxis(o);return Le(e)?r=e:(r=e.anims,e.length),r instanceof de||(r=ie(r,a,this._.muxDataByTarget,this._.muxByTarget),(r=new de(r,i.tweenRefMaps)).initials=a,Object.keys(a).forEach((function(e){i.tweenRefOrigin[e]=i.tweenRefOrigin[e]||{},i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},Object.assign(n._.tweenRefMaps[e],Be(Be({},a[e]),n._.tweenRefMaps[e]))}))),s.tweenAxis.push(r),s.scrollPos=s.scrollPos||0,s.scrollableArea=s.scrollableArea||0,s.scrollableArea=Math.max(s.scrollableArea,r.duration),s.scrollableBounds||null===(t=s.inertia)||void 0===t||t.setBounds(0,s.scrollableArea),r.goTo(s.scrollPos,this._.tweenRefMaps,!1,!0),this._updateTweenRefs(),r}},{key:"rmScrollableAnim",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"scrollY",o=this._,i=this._getAxis(n),a=i.tweenAxis.indexOf(e);-1!==a&&(i.tweenAxis.splice(a,1),i.scrollableArea=Math.max.apply(Math,T()(i.tweenAxis.map((function(e){return e.duration}))).concat([0])),i.scrollableBounds||null===(r=i.inertia)||void 0===r||r.setBounds(0,i.scrollableArea||0),e.goTo(0,this._.tweenRefMaps,!1,!0),Object.keys(e.initials).forEach((function(t){Object.keys(e.initials[t]).forEach((function(e){re(0,e,o.tweenRefMaps[t],o.tweenRefCSS[t],o.muxDataByTarget[t],o.muxByTarget[t])}))})),delete e.initials,e.destroy(),t=!0,this._updateTweenRefs()),!t&&console.warn("react-voodoo: Axis not found : ",n)}},{key:"_runScrollGoTo",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e},i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,l=this.axes[e].scrollPos,c=t-l;Fe.push({apply:function(t,r){var s,u,p,f=l+o(t/r)*c;n._.tweenEnabled&&(null===(s=n.axes)||void 0===s||null===(s=s[e])||void 0===s||null===(s=s.inertia)||void 0===s||s.setPos(f),null!==(u=n.axes)&&void 0!==u&&null!==(u=u[e])&&void 0!==u&&null!==(u=u.inertia)&&void 0!==u&&u._&&(f=null===(p=n.axes)||void 0===p||null===(p=p[e])||void 0===p||null===(p=p.inertia)||void 0===p?void 0:p._.pos),n.axes[e].tweenAxis.forEach((function(e){return e.goTo(f,n._.tweenRefMaps,!1,i)})),a&&a(f))},duration:r,cpos:0,cb:s}),Ce||(Ce=!0,We=Date.now(),setTimeout(ze,16))}},{key:"componentShouldScroll",value:function(){var e,t=this._;return!(t.rootRef&&t.rootRef.current&&t.rootRef.current.componentShouldScroll)||(e=t.rootRef.current).componentShouldScroll.apply(e,arguments)}},{key:"watchAxis",value:function(e,t){var r=this._scrollWatcherByAxis;return r[e]=r[e]||[],r[e].push(t),function(){var n=r[e].indexOf(t);r[e].splice(n,1)}}},{key:"axisDidScroll",value:function(e,t){var r=this._scrollWatcherByAxis[t],n=null==r?void 0:r.length;if(r)for(;n;)r[--n](e)}},{key:"applyInertia",value:function(e,t){var r,n,o=this,i=e.inertia.update(),a=this._;this.axes[t].tweenAxis.forEach((function(e){o.axes[t].targetPos=o.axes[t].scrollPos=i,e.goTo(i,o._.tweenRefMaps)})),null===(r=a.rootRef)||void 0===r||null===(r=r.current)||void 0===r||null===(n=r.componentDidScroll)||void 0===n||n.call(r,i,t),this.axisDidScroll(i,t),this._updateTweenRefs(),e.inertia.active||e.inertia.holding?e.inertiaFrame=setTimeout(this.applyInertia.bind(this,e,t),33):e.inertiaFrame=null}},{key:"isInertiaActive",value:function(){var e=this,t=(this._,!1);return this.axes&&Object.keys(this.axes).forEach((function(r){return t=t||e.axes[r]&&e.axes[r].inertia.active})),t}},{key:"isAxisOut",value:function(e,t,r){this._;var n=this.axes&&this.axes[e],o=r?t:n&&n.scrollPos+t;return o=o&&Math.round(o),!n||(n.scrollableBounds?o<=n.scrollableBounds.min||o>=n.scrollableBounds.max:o<=0||o>=n.scrollableArea)}},{key:"_activateNodeInertia",value:function(e){var t=this._,r=t.activeInertia.findIndex((function(t){return t.target===e}));return-1===r&&(t.activeInertia.push({inertia:{x:new ke({max:e.scrollWidth-e.offsetLeft,value:e.scrollLeft}),y:new ke({max:e.scrollHeight-e.offsetHeight,value:e.scrollTop})},target:e}),r=t.activeInertia.length-1),t.activeInertia[r].inertia}},{key:"setRootRef",value:function(e){this._.rootRef=e}},{key:"_updateBox",value:function(){var e=this.getRootNode();e&&(this._.box.inited=!0,this._.box.x=e.offsetWidth,this._.box.y=e.offsetHeight)}},{key:"_rafLoop",value:function(){this._updateTweenRefs(),this._.runningAnims.length?requestAnimationFrame(this._._rafLoop):this._.live=!1}},{key:"_updateTweenRefs",value:function(){if(this._.tweenEnabled)for(var e,t=0;t<this._.tweenRefTargets.length;t++)e=this._.tweenRefTargets[t],this._updateTweenRef(e)}},{key:"_updateTweenRef",value:function(e,t){var r,n=this._swap;if(this._.tweenRefCSS[e]&&ne(this._.tweenRefMaps[e],n,this._.muxByTarget[e],this._.muxDataByTarget[e],this._.box),r=this.getTweenableRef(e)){for(var o in this._.tweenRefCSS[e])void 0===n[o]&&(r.style[o]=this._.tweenRefCSS[e][o]);for(var i in n)this._.tweenRefCSS[e].hasOwnProperty(i)&&((t||n[i]!==this._.tweenRefCSS[e][i])&&(r.style[i]=this._.tweenRefCSS[e][i]=n[i]),delete n[i])}return this._.tweenRefCSS[e]}},{key:"componentWillUnmount",value:function(){var e=this;this.getRootNode(),this._.tweenEnabled&&(this._.tweenEnabled=!1,window.removeEventListener("resize",this._.onResize),Object.keys(this.axes).forEach((function(t){e.axes[t].inertiaFrame&&clearTimeout(e.axes[t].inertiaFrame)}))),j()(u()(t.prototype),"componentWillUnmount",this)&&j()(u()(t.prototype),"componentWillUnmount",this).apply(this,arguments)}},{key:"componentDidMount",value:function(){var e=this,r=this.constructor;this._.rendered=!0,this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),r.scrollableAnim&&(R().array(r.scrollableAnim)?this.addScrollableAnim(r.scrollableAnim):Object.keys(r.scrollableAnim).forEach((function(t){return e.addScrollableAnim(r.scrollableAnim[t],t)}))),j()(u()(t.prototype),"componentDidMount",this)&&j()(u()(t.prototype),"componentDidMount",this).apply(this,arguments)}},{key:"componentDidUpdate",value:function(e,r){this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),j()(u()(t.prototype),"componentDidUpdate",this)&&j()(u()(t.prototype),"componentDidUpdate",this).apply(this,arguments)}},{key:"render",value:function(){var e=this,t=this.props,r=t.BaseComponent,n=t.oProps;return g().createElement(P.Consumer,null,(function(t){return e._parentTweener=t,g().createElement(P.Provider,{value:e},g().createElement(r,x()({},n,{ref:e._.rootRef,tweener:e})))}))}}])}(g().Component),Ve=["children"];const He=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",r=g().useContext(P),n=g().useRef(),o=g().useRef(),i=g().useMemo((function(){return!0===e||R().string(e)}),[]),a=g().useMemo((function(){if(!0===e)return r;if(R().string(e)){for(var t=r;null!==(o=t)&&void 0!==o&&o._&&t._.options.name!==e;){var o;if(!t._parentTweener){console.warn('react-voodoo: No parent tweener found with option.key === "'+e+'"');break}t=t._parentTweener}return t}var i=new Ne({forwardedRef:n,tweenerOptions:e});return i.isMountedFromHook=!0,i._parentTweener=r,i}),[]),s=g().useMemo((function(){return g().forwardRef((function(e,r){var o=e.children,i=_()(e,Ve);return g().createElement(P.Provider,{value:a},g().createElement(t,x()({ref:r?function(e){return r.current=n.current=e}:n},i),o))}))}),[]);return g().useEffect((function(){var e;if(!i&&null!==(e=o.current)&&void 0!==e&&e._)return a.componentDidMount(),o.current=a,function(){var e;null!==(e=o.current)&&void 0!==e&&e._&&(o.current.componentWillUnmount(),o.current=null)}}),[]),g().useEffect((function(){var e;!i&&null!==(e=o.current)&&void 0!==e&&e._&&(o.current._updateBox(),o.current._updateTweenRefs())}),[n.current]),g().useEffect((function(){var e;!i&&null!==(e=o.current)&&void 0!==e&&e._&&(o.current._parentTweener=r)}),[r]),g().useEffect((function(){var t;!i&&null!==(t=o.current)&&void 0!==t&&t._&&(o.current._.options=e,o.current._updateBox(),o.current._updateTweenRefs())}),[e]),g().useMemo((function(){return[a,s]}),[s,a])},qe=function(e){e.children;var t=e.id,r=e.axe,n=void 0===r?t:r,o=e.scrollFirst,i=e.bounds,a=e.scrollableWindow,s=e.inertia,l=e.size,c=e.defaultPosition,u=e.items,p=void 0===u?[]:u,f=g().useRef({}).current,d=He(!0),h=v()(d,1)[0];return f.previousAxis&&f.previousAxis===n?f.previousInertia&&f.previousInertia===s&&f.previousBounds===i&&f.previousScrollableWindow===a||(f.previousInertia=s,f.previousAxis=n,f.previousBounds=i,f.previousScrollableWindow=a,h.initAxis(n,{inertia:s,size:l,scrollableWindow:a,defaultPosition:c,scrollFirst:o,scrollableBounds:i})):(f.previousAxis=n,f.previousInertia=s,h.initAxis(n,{inertia:s,size:l,scrollableWindow:a,defaultPosition:c,scrollFirst:o,scrollableBounds:i},!0)),f.previousTweener&&f.previousTweener===h?f.previousTweens===p||f.previousTweens&&m()(p,f.previousTweens)||(f.lastTL&&f.previousTweener&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),f.lastTL=null,p.length&&(f.lastTL=h.addScrollableAnim(p,n,l)),f.previousTweens=p):(f.previousTweener&&f.lastTL&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),p.length&&(f.lastTL=h.addScrollableAnim(p,n,l)),f.previousTweener=h,f.previousTweens=p),g().useEffect((function(){return function(){f.lastTL&&f.previousTweener&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),delete f.previousTweener,delete f.previousScrollable}}),[]),g().createElement(g().Fragment,null)},Ye=require("shortid");var Ue=r.n(Ye);function Xe(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)}function $e(e){return function(e){return"function"==typeof e&&!!e.prototype.isReactComponent}(e)||Xe(e)}var Ge=["children","id","style","initial","pos","noRef","reset","tweener","isRoot","axes","refProp","tweenLines","tweenAxis"],Ke=["children","className"];function Ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qe(e,t){return e.map((function(e){return Je(Je({},e),{},{target:t})}))}var et=g().forwardRef((function(e,t){var r=e.children,n=e.id,o=void 0===n?g().useMemo((function(){return Ue().generate()}),[]):n,i=e.style,a=e.initial,s=e.pos,l=e.noRef,c=(e.reset,e.tweener),u=(e.isRoot,e.axes),p=e.refProp,f=void 0===p?"nodeRef":p,d=e.tweenLines,h=void 0===d?u:d,y=e.tweenAxis,b=void 0===y?h:y,w=_()(e,Ge),O=g().useRef({}).current,P=He(!0),S=v()(P,1)[0];if(!(S=c||S))return console.error("No Voodoo tweener found in the context, is there any parent ViewBox ?"),g().createElement(g().Fragment,null);var T,D=S.tweenRef(o,r.props&&r.props.style,i||a,s,t,l);g().useEffect((function(){return function(){O._tweenAxisObj&&Object.keys(O._tweenAxisObj).forEach((function(e){return O._currentTweener.rmScrollableAnim(O._tweenAxisObj[e],e)})),O._currentTweener&&(O._currentTweener.rmTweenRef(O.__tweenableId),O._currentTweener.setRootRef(void 0)),delete O._currentTweener,delete O._tweenAxisObj,delete O._previousScrollable}}),[]),(T=O._tweenAxis!==b&&!(O._tweenAxis&&m()(b,O._tweenAxis))||b&&!O._tweenAxis)||O._currentTweener!==S||O._previousScrollable!==b?(O._currentTweener&&T&&O._tweenAxisObj&&Object.keys(O._tweenAxisObj).forEach((function(e){return O._currentTweener.rmScrollableAnim(O._tweenAxisObj[e],e)})),O._currentTweener&&O._currentTweener!==S&&O._currentTweener.rmTweenRef(o),T&&(O._tweenAxis=b,b&&R().array(b)?O._tweenAxisObj={scrollY:S.addScrollableAnim(Qe(b,o))}:O._tweenAxisObj=b&&Object.keys(b).reduce((function(e,t){return e[t]=S.addScrollableAnim(Qe(b[t],o),t),e}),{}),D=S.tweenRef(o,r.props&&r.props.style,i||a,s,t,l)),D.style=Je({},S._updateTweenRef(o,!0)),w.hasOwnProperty("isRoot")&&(O._currentTweener&&O._currentTweener.setRootRef(void 0),c.setRootRef(o)),O._currentTweener=S,O._previousScrollable=b):D&&(D.style=Je({},S._updateTweenRef(o,!0)));var j=g().Children.only(r);return j&&g().isValidElement(j)?(O._lastRef=D,Xe(j.type)?g().createElement(j.type,x()({},w,j.props,D,{ref:void 0},E()({},f,D.ref))):g().createElement(j.type,x()({},w,j.props,D))):(console.error("Invalid voodoo Node child : ",o),g().createElement("div",null,"Invalid"))}));const tt=et;et.div=g().forwardRef((function(e,t){var r=e.children,n=e.className,o=_()(e,Ke);return g().createElement(et,x()({},o,{ref:t}),g().createElement("div",{className:n},r))}));var rt=["children","Comp","nodeRef","items","xAxis","yAxis","yBoxRef","xBoxRef","yRef","yHook","xHook","tweener","mouseDrag","touchDrag","button"],nt=g().forwardRef((function(e,t){var r=e.children,n=e.Comp,o=void 0===n?"div":n,i=e.nodeRef,a=(e.items,e.xAxis),s=e.yAxis,l=e.yBoxRef,c=e.xBoxRef,u=(e.yRef,e.yHook),p=e.xHook,f=e.tweener,d=e.mouseDrag,h=void 0!==d&&d,y=e.touchDrag,m=void 0===y||y,b=e.button,w=void 0===b?0:b,O=_()(e,rt),P=g().useRef(),S=g().useRef({root:P,_:{}}).current,T=He(!0),D=v()(T,1)[0],j=g().useMemo((function(){return{getScrollableNodes:function(e){for(var t=[],r=S._parentTweener;r;)t.push(r),r=r._parentTweener;return t},_registerScrollListeners:function(){var e,t,r,n,o,i,a,s,l,c=null===(e=S.root)||void 0===e?void 0:e.current,u=S.props,p=u.xAxis,f=u.yAxis,d=u.yHook,g=u.xHook,h=u.mouseDrag,v=u.touchDrag,y=u.tweener,m=u.xBoxRef,b=u.yBoxRef,x=u.button,w=y._;c?(be.addEvent(c,S._.dragList={dragstart:function(e,r,u){var d,g,h,v;if(!(e instanceof MouseEvent&&e.button!==x))for(o=j.getScrollableNodes(e.target),t=Date.now(),n=0,i=0,a=[],s=null===(d=(null==m?void 0:m.current)||c)||void 0===d?void 0:d.offsetWidth,l=null===(g=(null==b?void 0:b.current)||c)||void 0===g?void 0:g.offsetHeight,v=0;v<o.length;v++){var y,w;(h=o[v])._updateBox(),h.__isTweener&&(p&&(null===(y=h.axes)||void 0===y||y[p]),f&&(null===(w=h.axes)||void 0===w||w[f]),h._updateNodeInertia())}},click:function(e,r,o){e instanceof MouseEvent&&e.button!==x||t&&(t-Date.now()>w.options.maxClickTm||Math.abs(i)>w.options.maxClickOffset||Math.abs(n)>w.options.maxClickOffset)&&(e.preventDefault(),e.stopPropagation())},drag:function(e,c,u){var h,v,y,_,O,R,P,S,T,D;if(!(e instanceof MouseEvent&&e.button!==x||(n=-(u._lastPos.x-u._startPos.x),i=-(u._lastPos.y-u._startPos.y),t&&t>Date.now()-w.options.maxClickTm&&Math.abs(i)<w.options.maxClickOffset&&Math.abs(n)<w.options.maxClickOffset)))for(_=!n,S=!i,w.options.dragDirectionLock&&("Y"===r||!r&&Math.abs(.5*i)>Math.abs(n)?(r="Y",n=0):("X"===r||!r&&Math.abs(.5*n)>Math.abs(i))&&(r="X",i=0)),D=0;D<o.length;D++)if((h=o[D]).__isTweener){var j,k,E,B,M,A,C,W,I,L;if(v=p&&(null===(j=h.axes)||void 0===j?void 0:j[p]),R=f&&(null===(k=h.axes)||void 0===k?void 0:k[f]),!v&&!R)continue;a[D]||(a[D]={x:null===(M=v)||void 0===M?void 0:M.scrollPos,y:null===(A=R)||void 0===A?void 0:A.scrollPos},null===(C=v)||void 0===C||null===(C=C.inertia)||void 0===C||C.startMove(),null===(W=R)||void 0===W||null===(W=W.inertia)||void 0===W||W.startMove(),p&&v&&(null===(I=v)||void 0===I||!I.inertiaFrame)&&h.applyInertia(v,p),f&&R&&(null===(L=R)||void 0===L||!L.inertiaFrame)&&h.applyInertia(R,f)),v&&(O=null!=m&&m.current?s:h._.box.x,y=n&&n/O*(v.scrollableWindow||v.scrollableArea)||0,g&&(y=g(y))),R&&(T=null!=b&&b.current?l:h._.box.y,P=i&&i/T*(R.scrollableWindow||R.scrollableArea)||0,d&&(P=d(P))),v&&!_&&y&&null!==(E=v)&&void 0!==E&&null!==(E=E.inertia)&&void 0!==E&&E.isInbound(a[D].x+y)&&h.componentShouldScroll(p,y)&&(v.inertia.hold(a[D].x+y),_=!0),R&&!S&&P&&null!==(B=R)&&void 0!==B&&null!==(B=B.inertia)&&void 0!==B&&B.isInbound(a[D].y+P)&&h.componentShouldScroll(f,P)&&(R.inertia.hold(a[D].y+P),S=!0)}},dropped:function(e,s,l){var c,u;if(!(e instanceof MouseEvent&&e.button!==x)){for(r=void 0,u=0;u<o.length;u++){var d,g;(c=o[u]).__isTweener&&a[u]&&(null===(d=c.axes)||void 0===d||null===(d=d[p])||void 0===d||null===(d=d.inertia)||void 0===d||d.release(),null===(g=c.axes)||void 0===g||null===(g=g[f])||void 0===g||null===(g=g.inertia)||void 0===g||g.release())}!t||t>Date.now()-w.options.maxClickTm&&Math.abs(i)<w.options.maxClickOffset&&Math.abs(n)<w.options.maxClickOffset||(e.stopPropagation(),e.cancelable&&e.preventDefault()),o=a=null}}},null,w.options.enableMouseDrag||h,v),S._.doRegister=!!c):S._.doRegister=!0}}}),[]);return g().useEffect((function(){return j._registerScrollListeners(),function(){var e,t=null===(e=S.root)||void 0===e?void 0:e.current;S._.scrollEnabled&&(S._.scrollEnabled=!1,t&&S._.dragList&&be.removeEvent(t,S._.dragList))}}),[]),g().useEffect((function(){R().function(i)&&i(P.current),R().function(t)?t(P.current):t&&(t.current=P.current)}),[i,t]),S.props={xAxis:a,yAxis:s,yHook:u,xHook:p,mouseDrag:h,touchDrag:m,tweener:f||D,xBoxRef:c,yBoxRef:l,button:w},S._parentTweener=D,g().createElement(o,x()({ref:P},O),r)}));const ot=nt;nt.div=function(e){return g().createElement(nt,e)};const it=function(){return g().useContext(P)};function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var st={}.constructor;function lt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(!t[0]||$e(t[0]))&&t.shift(),o=(!t[0]||t[0]instanceof st)&&t.shift()||{};if(!n)return function(e){return lt(e,o)};o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({wheelRatio:5,maxClickTm:200,maxClickOffset:20},o);var i=g().forwardRef((function(e,t){return g().createElement(Ne,{oProps:e,forwardedRef:t,BaseComponent:n,tweenerOptions:o})}));return i.displayName=String.fromCharCode(55358,56793)+(n.displayName||n.name),i}function ct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ct=function(){return!!e})()}var ut,pt={}.constructor;function ft(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(!t[0]||$e(t[0]))&&t.shift(),i=(!t[0]||t[0]instanceof pt)&&t.shift()||{};if(!n||!(n.prototype instanceof g().Component||n===g().Component))return function(e){return ft(e,i)};var s=function(e){function t(){return o()(this,t),e=this,r=t,n=arguments,r=u()(r),l()(e,ct()?Reflect.construct(r,n||[],u()(e).constructor):r.apply(e,n));var e,r,n}return f()(t,e),a()(t,[{key:"render",value:function(){var e=this;return g().createElement(P.Consumer,null,(function(t){return g().createElement(n,x()({},e.props,{tweener:t,ref:e.props.forwardedRef}))}))}}])}(g().Component);E()(s,"displayName",n.displayName||n.name);var c=g().forwardRef((function(e,t){return g().createElement(s,x()({},e,{forwardedRef:t}))}));return c.displayName=s.displayName,c}function dt(e,t,r){return t=u()(t),l()(e,gt()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gt=function(){return!!e})()}se().EasingFunctions=B;var ht=lt(ut=function(e){function t(){return o()(this,t),dt(this,t,arguments)}return f()(t,e),a()(t,[{key:"render",value:function(){return this.props.children}}])}(g().Component))||ut;const vt={tweener:lt,child:ft,useTweener:it,useVoodoo:He,hook:He,tools:e,Draggable:ot,Component:ht,Node:tt,Context:P,Axis:qe,dom:be}})(),module.exports=n})();
|
3
3
|
//# sourceMappingURL=react-voodoo.js.map
|