react-voodoo 2.2.4 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see react-voodoo.js.LICENSE.txt */
2
- (()=>{var e={450:e=>{e.exports={walknSetExport:function(e,t,r){var n,o,a=t.split("/"),i=e;for(n=0;n<a.length-1;)i=i[a[n]]=i[a[n]]||{},n++;o=1===Object.keys(r).length&&r.default||r,i[a[n]]?(i[a[n]].__esModule||Object.assign(o,i[a[n]]),i[a[n]]=o):i[a[n]]=o}}},227:(e,t,r)=>{"use strict";r.d(t,{Yj:()=>a,Xg:()=>i,$_:()=>s,e$:()=>l,fi:()=>u,Rx:()=>c,bC:()=>p});var n={},o=r(450).walknSetExport;o(n,"any",r(582)),o(n,"int",r(74)),o(n,"bool",r(584)),o(n,"color",r(192)),o(n,"multi",r(822)),o(n,"ratio",r(425)),o(n,"number",r(277)),o(n,"shadow",r(940));var a=n.any,i=n.bool,s=n.color,l=n.int,u=n.multi,c=n.number,p=n.ratio},259:(e,t,r)=>{"use strict";r.d(t,{Dl:()=>o,_9:()=>a,HM:()=>i,dn:()=>s,_j:()=>l,JO:()=>u});var n={margin:{properties:["marginTop","marginRight","marginBottom","marginLeft"]},marginBottom:{types:["length"]},marginLeft:{types:["length"]},marginRight:{types:["length"]},marginTop:{types:["length"]},padding:{properties:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},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:["number","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"],a=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("|")+")"),i=function(e){return void 0===e&&(e=0),Number(e.toFixed(3))};function s(e,t,r){void 0===r&&(r={});var o=n[e],a=o&&o.properties,i=t.split(" ");return o.multiple?a&&a.forEach((function(e,t){r[e]=i[t%i.length]})):a&&a.forEach((function(e,t){i[t]&&(r[e]=i[t])})),r}function l(e){var t=n[e],r=t&&t.properties;return r&&!!r.length}function u(e,t){return!!n[e]}},38:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,mux:()=>n.mux,release:()=>n.release});var n=r(192)},39:(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(940)},111:(e,t,r)=>{"use strict";r.r(t),r.d(t,{release:()=>c,demuxOne:()=>p,demux:()=>f,muxOne:()=>d,mux:()=>h});var n=r(213),o=r.n(n),a=r(73),i=r.n(a),s=r(259),l={blur:"px",brightness:"%",contrast:"%",dropShadow:!0,grayscale:"%",hueRotate:"deg",invert:"%",opacity:"%",saturate:"%",sepia:"%"},u={};function c(e,t,r,n,o,a){var i,s=e.split("_");if(4===s.length){if(--n[s[0]][s[1]][s[2]]||a||delete n[s[0]][s[1]][s[2]],!a)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[i=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||a||(delete n[i][s[3]],delete t[e]),!a)for(;n[i].length&&!n[i][n[i].length-1];)n[i].pop();0!==n[i].length||a||delete n[i],0!==n[s[0]].length||a||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function p(e,t,r,n,o,a){var i=r,u=s.Dl[e]||l[n];return"bw"===u&&(i*=a.x,u="px"),"wh"===u&&(i*=a.y,u="px"),"bz"===u&&(i*=a.z,u="px"),"deg"===u&&(i%=360),u?(0,s.HM)(i)+u:(0,s.HM)(i)}function f(e,t,r,n,o){for(var a,i,s,l,u,c,f="",d=0,h=0;d<n[e].length;d++)for(i in a=n[e][d])if(a.hasOwnProperty(i)){for(l=e+"_"+d+"_"+i,c="",h=0,s=0;s<n[l].length;s++)n[l][s]&&(u=p(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")"),h>0&&(f+=i+"("+(c||"0")+") ")}r.filter=f}function d(e,t,r,n,o,a,c,p){var d=!!i().string(r)&&r.match(s._9),h=d&&d[2]||l[t],g=s.Dl.indexOf(h),m=-1!==g&&e+"_"+g||e;return a[m]=u[t]||0,o[e][g]=o[e][g]||0,p&&p[g]?n[m]+=d?parseFloat(d[1]):parseFloat(r):(!c&&o[e][g]++,n[m]=d?parseFloat(d[1]):parseFloat(r),p&&(p[g]=!0)),f}var h=function(e,t,r,n,a,s,l){n[e]=n[e]||[],i().array(t)||(t=[t]);for(var u,c,p,h,g,m,x,v=0;v<t.length;v++){for(c in u=t[v],p=l?{}:o()({},n[e][v]||{}),u)if(u.hasOwnProperty(c))if(h=u[c],x={},g=e+"_"+v+"_"+c,p[c]=p[c]||n[e][v]&&n[e][v][c]||0,!s&&p[c]++,n[g]=n[g]||[],i().array(h))for(m=0;m<h.length;m++)d(g,c,h[m]||0,r,n,a,s,x);else d(g,c,h||0,r,n,a,s);n[e][v]=l?o()({},p,n[e][v]||{},p):p}return f}},178:(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(940)},374:(e,t,r)=>{"use strict";r.r(t),r.d(t,{release:()=>p,demuxOne:()=>f,demux:()=>d,muxOne:()=>h,mux:()=>g});var n=r(213),o=r.n(n),a=r(73),i=r.n(a),s=r(259),l={translateX:"px",translateY:"px",translateZ:"px",scale:"",scaleZ:"",scaleX:"",scaleY:"",rotate:"deg",skewX:"deg",skewY:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",perspective:"px"},u={translateX:"x",translateY:"y",translateZ:"z",rotateX:"x",rotateY:"y",rotateZ:"z",left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},c={scale:1,scaleX:1,scaleY:1,scaleZ:1};function p(e,t,r,n,o,a){var i,s=e.split("_");if(4===s.length){if(--n[s[0]][s[1]][s[2]]||a||delete n[s[0]][s[1]][s[2]],!a)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[i=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||a||(delete n[i][s[3]],delete t[e]),!a)for(;n[i].length&&!n[i][n[i].length-1];)n[i].pop();0!==n[i].length||a||delete n[i],0!==n[s[0]].length||a||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function f(e,t,r,n,o,a){var i=r,c=s.Dl[e]||l[n];return"box"===c&&(i*=a[u[n]]||a.x,c="px"),"bw"===c&&(i*=a.x,c="px"),"wh"===c&&(i*=a.y,c="px"),"bz"===c&&(i*=a.z,c="px"),"deg"===c&&(i%=360),c?(0,s.HM)(i)+c:(0,s.HM)(i)}function d(e,t,r,n,o){for(var a,i,s,l,u,c,p="",d=0,h=0;d<n[e].length;d++)for(i in a=n[e][d])if(a.hasOwnProperty(i)){for(l=e+"_"+d+"_"+i,c="",h=0,s=0;s<n[l].length;s++)n[l][s]&&(u=f(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")"),h>0&&(p+=i+"("+(c||"0")+") ")}r.transform=p}function h(e,t,r,n,o,a,u,p){var f=!!i().string(r)&&r.match(s._9),h=f&&f[2]||l[t],g=s.Dl.indexOf(h),m=-1!==g&&e+"_"+g||e;return a[m]=c[t]||0,o[e][g]=o[e][g]||0,p&&p[g]?n[m]+=f?parseFloat(f[1]):parseFloat(r):(!u&&o[e][g]++,n[m]=f?parseFloat(f[1]):parseFloat(r),p&&(p[g]=!0)),d}var g=function(e,t,r,n,a,s,l){n[e]=n[e]||[],i().array(t)||(t=[t]);for(var u,c,p,f,g,m,x,v=0;v<t.length;v++){for(c in u=t[v],p=l?{}:o()({},n[e][v]||{}),u)if(u.hasOwnProperty(c))if(f=u[c],x={},g=e+"_"+v+"_"+c,p[c]=p[c]||n[e][v]&&n[e][v][c]||0,!s&&p[c]++,n[g]=n[g]||[],i().array(f))for(m=0;m<f.length;m++)h(g,c,f[m]||0,r,n,a,s,x);else h(g,c,f||0,r,n,a,s);n[e][v]=l?o()({},p,n[e][v]||{},p):p}return d}},582:(e,t,r)=>{"use strict";r.r(t),r.d(t,{release:()=>u,demuxOne:()=>c,demux:()=>p,muxer:()=>f,muxOne:()=>d,mux:()=>h});var n=r(73),o=r.n(n),a=r(259),i=(r(582),{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 u(e,t,r,n,o,a){var i=e.split("_");if(2===i.length){if(--n[i[0]][i[1]]||a||delete t[e],!a)for(;n[i[0]].length&&!n[i[0]][n[i[0]].length-1];)n[i[0]].pop();0!==n[i[0]].length||a||(delete n[i[0]],delete o[i[0]],r&&delete r[i[0]])}else console.log("wtf",i)}function c(e,t,r,n,o){var l=t,u=a.Dl[e]||i[r]||"px";return"box"===u&&(l*=o[s[r]]||o.x,u="px"),"bw"===u&&(l*=o.x,u="px"),"bh"===u&&(l*=o.y,u="px"),"bz"===u&&(l*=o.z,u="px"),u?(0,a.HM)(l)+u:(0,a.HM)(l)}function p(e,t,r,n,o,a){var i,s,l,u=0;if(i="",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?i+=(u?" - ":"-")+c(s,-t[l],a||e,0,o):i+=(u?" + ":"")+c(s,t[l],a||e,0,o),u++);return u>1&&(i="calc("+i+")"),r?r[e]=i:i}function f(e,t,r,n,a,i){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,a,i,s);else d(e,t||0,r,n,a,i);return p}function d(e,t,r,n,s,u,c){var f=!!o().string(t)&&t.match(a._9),d=f&&f[2]||i[e]||"px",h=a.Dl.indexOf(d),g=-1!==h&&e+"_"+h||e;return s[g]=l[e]||0,n[e][h]=n[e][h]||0,!f&&o().string(t)?(n[e].isString=!0,n[e].value=t,p):(c&&c[h]?r[g]+=f?parseFloat(f[1]):parseFloat(t):(!u&&n[e][h]++,r[g]=f?parseFloat(f[1]):parseFloat(t),c&&(c[h]=!0)),p)}var h=f},584:(e,t,r)=>{"use strict";r.r(t),r.d(t,{release:()=>o,demux:()=>a,mux:()=>i});var n={opacity:1};function o(e,t,r,n,o,a){--n[e]||a||(delete t[e],delete n[e],delete o[e],delete r[e])}function a(e,t,r,n,o){var a=!!t[e];return r?r[e]=a:a}var i=function(e,t,r,o,i,s){return i[e]=n[e]||0,r[e]=!1===t?0:1,o[e]=o[e]||0,!s&&o[e]++,a}},192:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>i,mux:()=>s,release:()=>a});const n=require("color-rgba");var o=r.n(n);function a(e,t,r,n,o,a){var i=e.split("_"),s=i.slice(0,i.length-1).join("_");--n[e]||a||(delete t[e],delete n[e]),--n[s]||a||(delete t[e],delete n[e])}function i(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,a,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],a[e]=0,a[e+"_r"]=0,a[e+"_g"]=0,a[e+"_b"]=0,a[e+"_a"]=1,i}},74:(e,t,r)=>{"use strict";function n(e,t,r,n,o,a){--n[e]||a||(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,{release:()=>n,demux:()=>o,mux:()=>a});var a=function(e,t,r,n,a,i){return a[e]=0,r[e]=~~t,n[e]=n[e]||0,!i&&n[e]++,o}},822:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(73),o=r.n(n),a=r(277),i={top:"0%",bottom:"100%",center:"50%",left:"0%",right:"100%"};function s(e,t,r,n,o,i){for(var s=n["_"+e],l="",u={},c=0;c<s;c++)a.demux(e+"_"+c,t,u,n,o,i),l+=u[e+"_"+c]+" ";r[e]=l}function l(e,t,r,n,o,a){e.split("_")}const u=function(e){return{mux:function(t,r,n,l,u,c){var p,f=r.split(" ");l[t]=l[t]||0,c&&l[t]++,l["_"+t]=e;for(var d=0;d<e;d++)p=f[d%f.length],p=o().string(p)&&i[p]||p,a.mux(t+"_"+d,p,n,l,u,c);return s},demux:s,release:l}}},277:(e,t,r)=>{"use strict";r.r(t),r.d(t,{release:()=>u,demuxOne:()=>c,demux:()=>p,muxer:()=>f,muxOne:()=>d,mux:()=>h});var n=r(73),o=r.n(n),a=r(259),i={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 u(e,t,r,n,o,a){var i=e.split("_");if(2===i.length){if(--n[i[0]][i[1]]||a||delete t[e],!a)for(;n[i[0]].length&&!n[i[0]][n[i[0]].length-1];)n[i[0]].pop();0!==n[i[0]].length||a||(delete n[i[0]],delete o[i[0]],r&&delete r[i[0]])}else console.log("wtf",i)}function c(e,t,r,n,o){var l=t,u=a.Dl[e]||i[r]||"px";return"box"===u&&(l*=o[s[r]]||o.x,u="px"),"bw"===u&&(l*=o.x,u="px"),"bh"===u&&(l*=o.y,u="px"),"bz"===u&&(l*=o.z,u="px"),u?(0,a.HM)(l)+u:(0,a.HM)(l)}function p(e,t,r,n,o,a){var i,s,l,u=0;for(i="",s=0;s<n[e].length;s++)n[e][s]&&(t[l=e+"_"+s]<0?i+=(u?" - ":"-")+c(s,-t[l],a||e,0,o):i+=(u?" + ":"")+c(s,t[l],a||e,0,o),u++);return u>1&&(i="calc("+i+")"),r?r[e]=i:i}function f(e,t,r,n,a,i){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,a,i,s);else d(e,t||0,r,n,a,i);return p}function d(e,t,r,n,s,u,c){var f=!!o().string(t)&&t.match(a._9),d=f&&f[2]||i[e]||"px",h=a.Dl.indexOf(d),g=-1!==h&&e+"_"+h||e;return s[g]=l[e]||0,n[e][h]=n[e][h]||0,c&&c[h]?r[g]+=f?parseFloat(f[1]):parseFloat(t):(!u&&n[e][h]++,r[g]=f?parseFloat(f[1]):parseFloat(t),c&&(c[h]=!0)),p}var h=f},425:(e,t,r)=>{"use strict";r.r(t),r.d(t,{release:()=>a,demux:()=>i,mux:()=>s});var n=r(259),o={opacity:1};function a(e,t,r,n,o,a){--n[e]||a||(delete t[e],delete n[e],delete o[e],delete r[e])}function i(e,t,r,o,a){r[e]=Math.min(1,Math.max(0,(0,n.HM)(t[e])))}var s=function(e,t,r,n,a,s){return a[e]=o[e]||0,r[e]=t,n[e]=n[e]||0,!s&&n[e]++,i}},940:(e,t,r)=>{"use strict";r.r(t),r.d(t,{release:()=>b,demuxOne:()=>_,demux:()=>R,muxOne:()=>T,mux:()=>S});var n,o,a,i,s,l,u,c,p=r(213),f=r.n(p),d=r(73),h=r.n(d),g=r(259),m=r(227),x=(n=/,(?![^\(]*\))/,o=/\s(?![^(]*\))/,a=/^[0-9]+[a-zA-Z%]+?$/,i=function(e){var t=e.split(o),r=t.includes("inset"),n=t.slice(-1)[0],a=l(n)?void 0:n,i=t.filter((function(e){return"inset"!==e})).filter((function(e){return e!==a})).map(u);return{inset:r,offsetX:i[0],offsetY:i[1],blurRadius:i[2],spreadRadius:i[3],color:a}},s=function(e){var t=e||{},r=t.inset,n=t.offsetX,o=void 0===n?0:n,a=t.offsetY,i=void 0===a?0:a,s=t.blurRadius;return[r?"inset":null,o,i,void 0===s?0:s,t.spreadRadius,t.color].filter((function(e){return null!=e})).map(c).map((function(e){return(""+e).trim()})).join(" ")},l=function(e){return"0"===e||a.test(e)},u=function(e){if(!/px$/.test(e)&&"0"!==e)return e;var t=parseFloat(e);return isNaN(t)?e:t},c=function(e){return"number"==typeof e&&0!==e?e+"px":e},{parse:function(e){return e.split(n).map((function(e){return e.trim()})).map(i)},stringify:function(e){return e.map(s).join(", ")}}),v={perspective:"px"},y={translateX:"x"},w={inset:m.Xg,color:m.$_};function b(e,t,r,n,o,a){var i,s=e.split("_");if(s.length>2){if(i=s[0]+"_"+s[1]+"_"+s[2],w[s[2]])return w[s[2]].release(e,t,r,n,o,a),n[i]||--n[s[0]][s[1]][s[2]]||a||delete n[s[0]][s[1]][s[2]],void(0!==n[s[0]].length||a||(delete n[s[0]],delete o[s[0]],delete r[s[0]]));if(--n[s[0]][s[1]][s[2]]||a||delete n[s[0]][s[1]][s[2]],!a)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[i][s[3]]||a||(delete n[i][s[3]],delete t[e]),!a)for(;n[i].length&&!n[i][n[i].length-1];)n[i].pop();if(0!==n[i].length||a||delete n[i],!a)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||a||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function _(e,t,r,n,o,a){var i=r,s=g.Dl[e]||v[n];return"box"===s&&(i*=a[y[n]]||a.x,s="px"),"bw"===s&&(i*=a.x,s="px"),"wh"===s&&(i*=a.y,s="px"),"bz"===s&&(i*=a.z,s="px"),"deg"===s&&(i%=360),s?(0,g.HM)(i)+s:(0,g.HM)(i)}function R(e,t,r,n,o){for(var a,i,s,l,u,c,p=[],f={},d=0,h=0;d<n[e].length;d++){for(i in f={},a=n[e][d])if(a.hasOwnProperty(i)){if(l=e+"_"+d+"_"+i,w[i])c=w[i].demux(l,t,void 0,n,o);else{for(c="",h=0,s=0;s<n[l].length;s++)n[l][s]&&(u=_(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")")}f[i]=c||0}p.push(f)}r[e]=x.stringify(p)}function T(e,t,r,n,o,a,i,s){var l=!!h().string(r)&&r.match(g._9),u=l&&l[2]||v[t]||"px",c=g.Dl.indexOf(u),p=-1!==c&&e+"_"+c||e;return a[p]=0,o[e][c]=o[e][c]||0,s&&s[c]?n[p]+=l?parseFloat(l[1]):parseFloat(r):(!i&&o[e][c]++,n[p]=l?parseFloat(l[1]):parseFloat(r),s&&(s[c]=!0)),R}var S=function(e,t,r,n,o,a,i){n[e]=n[e]||[],h().array(t)||(t=[t]);for(var s,l,u,c,p,d,g,m=0;m<t.length;m++){for(l in s=t[m],h().string(s)&&(s=x.parse(s)[0]),u=i?{}:f()({},n[e][m]||{}),s)if(s.hasOwnProperty(l))if(c=s[l],p=e+"_"+m+"_"+l,u[l]=u[l]||n[e][m]&&n[e][m][l]||0,!a&&u[l]++,w[l])w[l].mux(p,c,r,n,o,a,i);else if(g={},n[p]=n[p]||[],h().array(c))for(d=0;d<c.length;d++)T(p,l,c[d]||0,r,n,o,a,g);else T(p,l,c||0,r,n,o,a);n[e][m]=i?f()({},u,n[e][m]||{},u):u}return R}},213:e=>{"use strict";e.exports=require("@babel/runtime/helpers/extends")},367:e=>{"use strict";e.exports=require("d3-ease")},73:e=>{"use strict";e.exports=require("is")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.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:()=>ye,Component:()=>je,Context:()=>g,Draggable:()=>Ae,Node:()=>Me,child:()=>We,default:()=>Fe,dom:()=>ee,hook:()=>ve,tools:()=>e,tweener:()=>ke,useTweener:()=>Be,useVoodoo:()=>ve});var e={};r.r(e),r.d(e,{addCss:()=>O,cssAdd:()=>_,cssMult:()=>R,extractCss:()=>A,offset:()=>T,re_cssValueWithUnit:()=>b,reverse:()=>D,scale:()=>S,shiftTransforms:()=>C,target:()=>B});const t=require("@babel/runtime/helpers/inheritsLoose");var o=r.n(t);const a=require("react");var i=r.n(a);const s=require("fast-deep-equal");var l=r.n(s),u=r(213),c=r.n(u);const p=require("@babel/runtime/helpers/objectWithoutPropertiesLoose");var f=r.n(p),d=r(73),h=r.n(d);const g=i().createContext(null),m=require("@babel/runtime/helpers/assertThisInitialized");var x=r.n(m),v=r(367);const y=require("react-dom");var w=r.n(y),b=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 _(e,t){h().array(e)||(e=[e]),h().array(t)||(t=[t]);var r,n=e.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),o=t.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),a={},i=[];for(r=0;r<n.length;)a[n[r][2]]=a[n[r][2]]||0,a[n[r][2]]+=parseFloat(n[r][1]),r++;for(r=0;r<o.length;)a[o[r][2]]=a[o[r][2]]||0,a[o[r][2]]+=parseFloat(o[r][1]),r++;Object.keys(a).forEach((function(e){return i.push(a[e]+e)}));for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];return l.length?_.apply(void 0,[i].concat(l)):i}function R(e,t){h().array(e)||(e=[e]);var r,n=e.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),o={},a=[];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 a.push(o[e]+e)})),a}function T(e,t){return void 0===t&&(t=0),(e=h().array(e)?e:e&&[e]||e).map((function(e){return c()({},e,{from:e.from+t})}))}function S(e,t,r){void 0===t&&(t=0),e=h().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 c()({},e,{from:e.from/n*t,duration:e.duration/n*t})})),r?T(e,r):e}function P(e){return h().number(e)?-e:h().object(e)?Object.keys(e).reduce((function(t,r){return t[r]=P(e[r]),t}),{}):h().array(e)?e.map((function(e){return P(e)})):e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function(e,t){return t%2?-parseFloat(e):e})).join("")}function D(e){e=h().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 c()({},e,{from:t-(e.from+e.duration)},e.apply?{apply:P(e.apply)}:void 0)}))}var M={transform:!0,filter:!0,textShadow:!0,boxShadow:!0};function O(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 a in o){var i;o.hasOwnProperty(a)&&(M[a]?(e[a]||(e[a]=[]),h().array(o[a])?O(e[a],o[a]):O(e[a],[o[a]])):h().array(o[a])?(e[a]||(e[a]=[]),h().array(e[a])?(i=e[a]).push.apply(i,o[a]):e[a]=[].concat(o[a],[e[a]])):e[a]?h().object(e[a])&&h().object(o[a])?O(e[a],o[a]):e[a]=E(e[a],o[a]):h().object(o[a])?e[a]=c()({},o[a]):e[a]=o[a])}return r.length&&O.apply(void 0,[e].concat(r))||e}function E(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 A(e,t){var r={};return(e=h().array(e)?e:e&&[e]||e).forEach((function(e){O(r,e.apply)})),t&&(r=P(r)),r}function B(e,t){return(e=h().array(e)?e:e&&[e]||e).map((function(e){return c()({},e,{target:t})}))}function C(e,t){return void 0===t&&(t=1),(e=h().array(e)?e:e&&[e]||e).map((function(e){var r=e.apply&&e.apply.transform;if(r){r=h().array(r)?r:[r];for(var n=0;n<t;n++)r.unshift({});e=c()({},e,{apply:c()({},e.apply,{transform:r})})}return e}))}var k=r(259),I={},L=r(450).walknSetExport;L(I,"filter",r(111)),L(I,"boxShadow",r(39)),L(I,"transform",r(374)),L(I,"textShadow",r(178)),L(I,"backgroundColor",r(38));const W=I;var j=r(227),F=c()({},W,{height:j.Rx,width:j.Rx,top:j.Rx,left:j.Rx,right:j.Rx,bottom:j.Rx,marginTop:j.Rx,marginLeft:j.Rx,marginRight:j.Rx,marginBottom:j.Rx,paddingTop:j.Rx,paddingLeft:j.Rx,paddingRight:j.Rx,paddingBottom:j.Rx,borderRadius:j.Rx,borderTopColor:j.$_,borderLeftColor:j.$_,borderRightColor:j.$_,borderBottomColor:j.$_,borderTopWidth:j.Rx,borderLeftWidth:j.Rx,borderRightWidth:j.Rx,borderBottomWidth:j.Rx,transformOrigin:(0,j.fi)(2),zIndex:j.e$,opacity:j.bC});function N(e,t,r,n,o,a,i){var s,l=t.split("_");null==(s=F[l[0]])||s.release(t,r,n,o,a,i)}function H(e,t,r,n,o){Object.keys(r).forEach((function(a){r[a].demux(a,e,t,n,o)}))}function z(e,t,r,n,o,a,i){var s={},l={};return e&&Object.keys(e).forEach((function(t){F[t]?s[t]=e[t]:(0,k.JO)(t,e[t])?(0,k._j)(t)?(0,k.dn)(t,e[t],s):s[t]=e[t]:l[t]=e[t]})),s&&Object.keys(s).forEach((function(e){F[e]?(o[e]=F[e]).mux(e,s[e],t,n,r,a,i):(o[e]=j.Yj).mux(e,s[e],t,n,r,a,i)})),l}function V(e,t,r,n,o){o=o&&{};var a={},i=e.reduce((function(e,i){var s={};return n[i.target]=n[i.target]||{},t[i.target]=t[i.target]||{},r[i.target]=r[i.target]||{},i.type&&"Tween"!==i.type?e.push(c()({},i)):(!o&&O(a[i.target]=a[i.target]||{},i.apply),z(i.apply,s,t[i.target],r[i.target],n[i.target],!0),e.push(c()({},i,{apply:s}))),e}),[]);return!o&&Object.keys(a).forEach((function(e){return z(a[e],{},{},r[e],n[e])})),i}const Y=require("tween-axis");var X,q,$=[],G=function(e){function t(t,r){var n;if($.length){var o=$.pop();return o.scope=r,h().array(t)?(o.localLength=1,o.mount(t,r)):t.Axis&&o.mount(t.Axis,r),o||x()(n)}return e.apply(this,arguments)||this}return o()(t,e),t.prototype.destroy=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.__activeForks.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,$.push(this)},t}(r.n(Y)()),U=r(73),Z="undefined"!=typeof window,J=(Z&&(q=" -webkit- -moz- -o- -ms- ".split(" "),!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(X=["(",q.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia&&window.matchMedia(X).matches)),Z?{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:""}),K={onPageHided:[],onPageShown:[],dragging:[],dragEnabled:[],dragEnabledDesc:[],fingers:{},nbFingers:0,dragstartAnywhere:function(e){var t,r,n,o=K,a=o.dragEnabled.indexOf(this),i=[];if(-1!==a){o.nbFingers||(Q.addEvent(document,{touchmove:o.dragAnywhere,mousemove:o.dragAnywhere,touchend:o.dropAnywhere,mouseup:o.dropAnywhere}),Q.addEvent(this,{click:o.dropWithoutClick},null,null,null,!0)),e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)if(r=i[s],!(n=o.dragEnabledDesc[a]).nbFingers)for(o.nbFingers++,o.fingers[r.identifier]=o.fingers[r.identifier]||[],o.fingers[r.identifier].push(n),n.nbFingers++,n._startPos.x="MS"==J.prefix?r.x:r.pageX,n._startPos.y="MS"==J.prefix?r.y:r.pageY,n._startTs=e.timeStamp,n._lastPos.x="MS"==J.prefix?r.x:r.pageX,n._lastPos.y="MS"==J.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,a=K,i=[];K.dragging[0],e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)r=i[s],a.fingers[r.identifier],a.fingers[r.identifier]&&a.fingers[r.identifier].forEach((function(a){if(n)return a._lastPos.x=a._startPos.x="MS"==J.prefix?r.x:r.pageX,void(a._lastPos.y=a._startPos.y="MS"==J.prefix?r.y:r.pageY);for(a._lastPos.x="MS"==J.prefix?r.x:r.pageX,a._lastPos.y="MS"==J.prefix?r.y:r.pageY,t=0;t<a.drag.length;t++)n=!1===a.drag[t][0].call(a.drag[t][1]||o,e,r,a)}))},dropWithoutClick:function(e){K.preventNextClick&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),K.preventNextClick=!1),Q.removeEvent(this,{click:this.dropWithoutClick})},dropAnywhere:function(e){var t,r,n,o=this,a=K,i=[];e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)r=i[s],a.nbFingers--,a.fingers[r.identifier]&&a.fingers[r.identifier].forEach((function(a){for(a.nbFingers--,n=n||a.mouseDrag&&e.timeStamp-a._startTs>250,a._lastPos.x="MS"==J.prefix?r.x:r.pageX,a._lastPos.y="MS"==J.prefix?r.y:r.pageY,t=0;t<a.dropped.length;t++)a.dropped[t][0].call(a.dropped[t][1]||o,e,r,a)})),a.fingers[r.identifier]=null;n&&(a.preventNextClick=!0),a.nbFingers||Q.removeEvent(document,{touchmove:a.dragAnywhere,mousemove:a.dragAnywhere,touchend:a.dropAnywhere,mouseup:a.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:[]}),Q.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),Q.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 !!")}},Q={addEvent:function(e,t,r,n,o,a){if(void 0===o&&(o=!0),U.object(t))for(var i in t)t.hasOwnProperty(i)&&t[i]&&this.addEvent(e,i,t[i],n,o,a);else"dragstart"===t?K.getDraggable(e,n,o).dragstart.push([r]):"drag"===t?K.getDraggable(e,n,o).drag.push([r]):"dropped"===t?K.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 a;if(U.object(t))for(var i in t)t.hasOwnProperty(i)&&this.removeEvent(e,i,t[i],n);else/^(drag|drop)/.test(t)?(a=K.getDraggable(e),K.rmDragFn(a[t],r,n),a.dragstart.length||a.drag.length||a.dragEnd.length||a.dropped.length||K.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 ee=Q;var te=r(73),re=r(367),ne=function(e){return"number"==typeof e?e?e<0?-1:1:e==e?e:NaN:NaN},oe=Math.abs,ae=Math.floor,ie=(Math.round,Math.min),se=Math.max,le=function(e){return void 0===e&&(e=0),e.toFixed(3)},ue=function(){function e(e){var t=this._={};t.conf=c()({},this.constructor.config,e),this.active=!1,t.pos=e.value||0,t.refFPS=16,t.min=e.min||0,t.max=e.max||0,t.currentStop=0,t.lastInertiaPos=0,t.stops=t.conf.stops,t.disabled=t.conf.disabled,t.wayPoints=t.conf.wayPoints,t.inertiaFn=re.easePolyOut,t.targetWayPointIndex=0,this._detectCurrentSnap()}var t=e.prototype;return t.updateConf=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},t.startMove=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},t.hold=function(e){var t,r=this._,n=void 0!==r.lastHoldPos?e-r.lastHoldPos:0,o=Date.now()/1e3,a=o-r.baseTS,i=e,s=n/a;if(r.lastHoldPos=e,r.lastBaseTs||(r.lastBasePos=e,r.lastBaseTs=r.baseTS),a<.003||((s<=0&&r.lastVelocity>0||s>=0&&r.lastVelocity<0||oe(s)<oe(.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||oe(s)<oe(.2*r.lastVelocity)||(r.lastIVelocity=s,r.lastVelocity=(i-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&&(i>r.max?i=r.max:i<r.min&&(i=r.min)),r.conf.shouldLoop)for(;t=r.conf.shouldLoop(i,n);)i+=t;r.pos=i},t.release=function(){var e=this._;ne(e.lastVelocity),this.holding=!1,function(e){var t=ne(e.lastVelocity);e.disabled?(e.loopsTarget=0,e.loopsVelSum=0,e.targetDist=0,e.targetDuration=0):(e.loopsTarget=ae(Math.log(.05/oe(e.lastVelocity))/Math.log(.9)),e.loopsVelSum=(Math.pow(.9,e.loopsTarget)-oe(e.lastVelocity))/(.9-1),e.targetDist=e.loopsVelSum*e.refFPS*t/1e3||0,e.targetDuration=oe(e.loopsTarget*e.refFPS*t)||0)}(e),e.lastHoldPos=void 0,e.lastBasePos=void 0,e.lastBaseTs=void 0,e.holding=!1,e.conf.bounds&&e.conf.snapToBounds&&(e.pos+e.targetDist>e.max?(e.targetDist=e.max-e.pos,e.targetDuration=oe(10*e.targetDist)):e.pos+e.targetDist<e.min&&(e.targetDist=e.min-e.pos,e.targetDuration=oe(10*e.targetDist))),e.targetDuration||(e.targetDuration=50),this.active=!0,e.inertia=!0,e.lastInertiaPos=0,e.inertiaStartTm=e.inertiaLastTm=Date.now(),this._doSnap(null,500),null==e.conf.willEnd||e.conf.willEnd(e.targetDist+e.pos,e.targetDist,e.targetDuration)},t.update=function(e){void 0===e&&(e=Date.now());var t,r,n=this._,o=n.inertiaFn((e-n.inertiaStartTm)/n.targetDuration)*n.targetDist;if(!n.inertia)return n.pos;var a=o-n.lastInertiaPos;if(n.lastInertiaPos=o,e-n.inertiaStartTm>=n.targetDuration&&(n.inertia=this.active=!1,n.lastInertiaPos=a=0,n.targetDist=0,n.targetWayPoint&&(a=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)),a=a||0,t=n.pos+a,n.conf.shouldLoop)for(;r=n.conf.shouldLoop(t,a);)t+=r,n.inertia;return n.pos=t,t},t.setPos=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=se(t.pos,t.min),t.pos=ie(t.pos,t.max))},t.setWayPoints=function(e){this._.wayPoints=e,this._detectCurrentSnap()},t.teleport=function(e){var t=this._;if(!t.inertia)return t.pos+=e;t.pos+=e},t.dispatch=function(e,t){void 0===t&&(t=500);var r=this._,n=Date.now();this.active=!0,r.inertia&&ne(e)===ne(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=oe(10*r.targetDist)):r.pos+r.targetDist<r.min&&(r.targetDist=r.min-r.pos,r.targetDuration=oe(10*r.targetDist))),this._doSnap(ne(e),750)},t._detectCurrentSnap=function(){var e,t=this._,r=t.pos;if(t.wayPoints&&t.wayPoints.length)for(e=0;e<t.wayPoints.length;e++)if(le(t.wayPoints[e].at)===le(r))return t.currentWayPoint=t.wayPoints[e],t.currentWayPointIndex=e,e},t._doSnap=function(e,t){void 0===t&&(t=2e3);var r,n,o,a,i=this._,s=i.targetDist+(i.pos-(i.lastInertiaPos||0)),l=0;if(i.wayPoints&&i.wayPoints.length){if(i.conf.shouldLoop)for(;a=i.conf.shouldLoop(s,0);)s+=a,l+=a;for(o=0;o<i.wayPoints.length&&!(i.wayPoints[o].at>s);o++);if(o===i.wayPoints.length?o--:0===o?o=0:(n=(i.wayPoints[o].at-i.wayPoints[o-1].at)/2,n=i.wayPoints[o-1].at+n*((i.wayPoints[o].gravity||1)/(i.wayPoints[o-1].gravity||1)),e?e<0&&o--:s<n&&o--),i.conf.maxJump&&te.number(i.currentWayPointIndex)){var u=o-i.currentWayPointIndex;oe(u)>i.conf.maxJump&&(o=i.currentWayPointIndex+ne(u)*i.conf.maxJump)}r=i.wayPoints[o].at,i.conf.willSnap&&i.conf.willSnap(o,i.wayPoints[o]),i.lastInertiaPos=i.lastInertiaPos||0,r=r-(i.pos-i.lastInertiaPos)-l,i.targetDuration=se(50,ie(t,oe(i.targetDuration/i.targetDist*r)))||0,i.targetDist=r,i.targetWayPoint=i.wayPoints[o],i.targetWayPointIndex=o}else r=~~(i.pos-i.lastInertiaPos),i.conf.infinite||(r>i.max?(r=i.max-r,i.targetDuration=ie(t,oe(i.targetDuration/i.targetDist*r)),i.targetDist=r):r<i.min&&(r=i.min-r,i.targetDuration=ie(t,oe(i.targetDuration/i.targetDist*r)),i.targetDist=r))},t.setBounds=function(e,t){var r=this._;r.min=e,r.max=t},t.isInbound=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},e}();ue.config={bounds:!0,snapToBounds:!0};var ce,pe,fe=new Function("try {return this===window;}catch(e){ return false;}")(),de=h().array,he=[],ge=function e(){var t=0,r=Date.now(),n=r-pe;for(pe=r;t<he.length;t++)he[t].cpos=Math.min(n+he[t].cpos,he[t].duration),he[t].apply(he[t].cpos,he[t].duration),he[t].cpos==he[t].duration&&(he[t].cb&&setTimeout(he[t].cb),he.splice(t,1),t--);he.length?setTimeout(e,16):ce=!1},me=function(e){function t(t){var r;(r=e.apply(this,arguments)||this).axes={},r._scrollWatcherByAxis={},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},r._swap={};var n=r._={refs:{},muxByTarget:{}};return n.box={x:100,y:100,z:800},r.__isTweener=!0,n._rafLoop=r._rafLoop.bind(x()(r)),n.rootRef=r.props.forwardedRef||i().createRef(),n.options=c()({maxClickTm:200,maxClickOffset:5},t.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)||null==(o=t.current)||null==o.windowDidResize||o.windowDidResize(e)}),r}o()(t,e);var r=t.prototype;return r.tweenRef=function(e,t,r,n,o,a){void 0===t&&(t={}),void 0===r&&(r={});var i=this._,s={},u={};return i.tweenRefs[e]||i.tweenRefTargets.push(e),i.tweenRefs[e]&&(a||i.iMapOrigin[e]!==r&&!l()(r,i.iMapOrigin[e])||i.tweenRefOriginCss[e]!==t&&!l()(t,i.tweenRefOriginCss[e]))?(i.iMapOrigin[e]=r,i.tweenRefOriginCss[e]=t,t=t||{},r=r||{},t=c()({},t,z(r,s,u,i.muxDataByTarget[e],i.muxByTarget[e],!1,!0)),Object.keys(i.tweenRefOrigin[e]).forEach((function(t){return i.tweenRefMaps[e][t]-=i.tweenRefOrigin[e][t]})),Object.keys(u).forEach((function(t){return i.tweenRefMaps[e][t]=h().number(i.tweenRefMaps[e][t])?i.tweenRefMaps[e][t]:u[t]})),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]+=s[t]})),Object.keys(i.tweenRefOrigin[e]).forEach((function(t){N(0,t,i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxDataByTarget[e],i.muxByTarget[e])})),i.tweenRefOrigin[e]=c()({},s),H(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box),this._updateTweenRef(e,!0)):i.tweenRefs[e]?H(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box):(i.iMapOrigin[e]=r,t=t||{},r=r||{},i.tweenRefs[e]=!0,i.muxByTarget[e]=i.muxByTarget[e]||{},i.muxDataByTarget[e]=i.muxDataByTarget[e]||{},i.tweenRefOriginCss[e]=t,i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},i.tweenRefOrigin[e]?(t=c()({},t,z(r,s,u,i.muxDataByTarget[e],i.muxByTarget[e],!1,!0)),Object.keys(u).forEach((function(t){return i.tweenRefMaps[e][t]=h().number(i.tweenRefMaps[e][t])?i.tweenRefMaps[e][t]-u[t]:0})),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]+=s[t]}))):(t=c()({},t,z(r,s,u,i.muxDataByTarget[e],i.muxByTarget[e])),s=Object.assign({},u,s||{}),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]=(i.tweenRefMaps[e][t]||0)+s[t]}))),i.tweenRefOrigin[e]=c()({},s),i.tweenRefCSS[e]=t,H(s=i.tweenRefMaps[e],t,i.muxByTarget[e],i.muxDataByTarget[e],i.box)),o?{style:c()({},i.tweenRefCSS[e])}:{style:c()({},i.tweenRefCSS[e]),ref:function(t){return i.refs[e]=t}}},r.rmTweenRef=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])},r.resetTweenable=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,!0)})),this._updateTweenRefs()},r.updateRefStyle=function(e,t,r){var n,o=this,a=this._;return de(e)&&de(t)?e.map((function(e,n){return o.updateRefStyle(e,t[n],r)})):de(e)?e.map((function(e){return o.updateRefStyle(e,t,r)})):a.tweenRefMaps[e]?(n=z(t,a.tweenRefMaps[e],{},a.muxDataByTarget[e],a.muxByTarget[e]),Object.assign(a.tweenRefCSS[e],n),Object.assign(a.tweenRefOriginCss[e],n),H(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box),void this._updateTweenRef(e,!0)):console.warn("React-Voodoo : Can't update styles of an unknown Node id '",e,"'")},r.getTweenableRef=function(e){try{return this._.refs[e]&&w().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)}}},r.getRootNode=function(){try{return this.getTweenableRef(this._.rootRef)||this.isMountedFromHook&&this._.rootRef&&this._.rootRef.current||w().findDOMNode(this)}catch(e){return this._.rootRef&&this._.rootRef.current}},r.pushAnim=function(e,r,n){var o=this;void 0===n&&(n=!0);var a,i,s=this._,l={};if(de(e)?a=e:(a=e.anims,e.initial),a instanceof G||(a=V(a,l,this._.muxDataByTarget,this._.muxByTarget),a=new G(a,this._.tweenRefMaps),Object.keys(l).forEach((function(e){return o._.tweenRefMaps[e]&&Object.assign(o._.tweenRefMaps[e],c()({},l[e],o._.tweenRefMaps[e]))||(i=console.warn("react-voodoo : Can't find tween target ",e," in ",t.displayName)||!0)}))),!i)return new Promise((function(e){a.run(o._.tweenRefMaps,(function(){var t=o._.runningAnims.indexOf(a);-1!=t&&o._.runningAnims.splice(t,1),Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(t){N(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e],n)}))})),a.destroy(),e(a)})),o._.runningAnims.push(a),o._.live||(o._.live=!0,requestAnimationFrame(o._._rafLoop=o._._rafLoop||o._rafLoop.bind(o)))})).then((function(e){return r&&r(e)}))},r.applyTweenState=function(e,t,r){var n=this,o={},a={};z(t,o,a,this._.muxDataByTarget[e],this._.muxByTarget[e],!0),Object.keys(o).map((function(t){return n._.tweenRefMaps[e][t]=(!r&&n._.tweenRefMaps[e][t]||a[t])+o[t]}))},r.initAxis=function(e,t,r){var n=this,o=t.inertia,a=t.scrollableArea,i=void 0===a?0:a,s=t.scrollableBounds,l=t.scrollableWindow,u=t.defaultPosition,p=t.scrollFirst,f=(this._,this.axes[e]),d=s,h=!r&&f?f.scrollPos:u||d&&d.min||0,g=Math.max(f&&f.scrollableArea||0,i),m=Math.max(f&&f.scrollableWindow||0,l),x=f?f.targetPos:h,v=f?f.inertia:new ue(c()({disabled:!o},o||{},{value:h})),y={scrollFirst:p,tweenAxis:f&&f.tweenAxis||[],scrollPos:h,targetPos:x,inertia:v,scrollableWindow:m,scrollableBounds:d,scrollableArea:g,scrollTo:function(t,r,o,a){return n.scrollTo(t,r,e,o,a)}};this.axes[e]=y,!o&&(v._.disabled=!0),o&&v&&!v.active&&(v._.pos=h),o&&v&&v.updateConf(o),v&&d?null==v.setBounds||v.setBounds(d.min,d.max):v&&(null==v.setBounds||v.setBounds(0,g))},r._getAxis=function(e){var t=this;void 0===e&&(e="scrollY");var r=this._;return this.axes[e]=this.axes[e]||{tweenAxis:[],scrollPos:r.options.initialScrollPos&&r.options.initialScrollPos[e]||0,targetPos:0,scrollableWindow:0,scrollableArea:0,inertia:new ue(c()({value:r.options.initialScrollPos&&r.options.initialScrollPos[e]||0},r.options.axes&&r.options.axes[e]&&r.options.axes[e].inertia||{})),scrollTo:function(r,n,o,a){return t.scrollTo(r,n,e,o,a)}},this.axes[e]},r.getAxisState=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},r.getScrollPos=function(e){return void 0===e&&(e="scrollY"),this._,this.axes[e]?this.axes[e].targetPos||this.axes[e].scrollPos:0},r.scrollTo=function(e,t,r,n,o){var a=this;void 0===t&&(t=0),void 0===r&&(r="scrollY");var i=this._;return fe?new Promise((function(s,l){if(a.axes&&a.axes[r]){var u,c,p,f,d,h,g,m,x,y=a.axes[r].targetPos,w=function(e){var t,n;e=~~(1e4*e)/1e4,a.axes[r].targetPos=a.axes[r].scrollPos=e,~~e!==y&&(a.axisDidScroll(~~e,r),null==(t=i.rootRef)||null==(n=t.current)||null==n.componentDidScroll||n.componentDidScroll(~~e,r)),a._updateTweenRefs()};if(e=Math.max(0,e),e=Math.min(e,a.axes[r].scrollableArea||0),a.axes[r].targetPos=e,t)a._runScrollGoTo(r,e,t,v[n],o,w,s);else null==(u=a.axes)||null==(c=u[r])||null==(p=c.inertia)||p.setPos(e),null!=(f=a.axes)&&null!=(d=f[r])&&null!=(h=d.inertia)&&h._&&(e=null==(g=a.axes)||null==(m=g[r])||null==(x=m.inertia)?void 0:x._.pos),a.axes[r].tweenAxis.forEach((function(t){return t.goTo(e,i.tweenRefMaps,!1,o)})),w(e),s();i.live||(i.live=!0,requestAnimationFrame(i._rafLoop))}})).then((function(e){var t,n,o;null==(t=a.axes)||null==(n=t[r])||null==(o=n.inertia)||o._detectCurrentSnap()})):(console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"),Promise.resolve())},r.addScrollableAnim=function(e,t,r){var n,o=this;void 0===t&&(t="scrollY");var a,i=this._,s={},l=this._getAxis(t);return de(e)?a=e:(a=e.anims,e.length),a instanceof G||(a=V(a,s,this._.muxDataByTarget,this._.muxByTarget),(a=new G(a,i.tweenRefMaps)).initials=s,Object.keys(s).forEach((function(e){i.tweenRefOrigin[e]=i.tweenRefOrigin[e]||{},i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},Object.assign(o._.tweenRefMaps[e],c()({},s[e],o._.tweenRefMaps[e]))}))),l.tweenAxis.push(a),l.scrollPos=l.scrollPos||0,l.scrollableArea=l.scrollableArea||0,l.scrollableArea=Math.max(l.scrollableArea,a.duration),l.scrollableBounds||null==(n=l.inertia)||n.setBounds(0,l.scrollableArea),a.goTo(l.scrollPos,this._.tweenRefMaps,!1,!0),this._updateTweenRefs(),a},r.rmScrollableAnim=function(e,t){void 0===t&&(t="scrollY");var r,n,o=this._,a=this._getAxis(t),i=a.tweenAxis.indexOf(e);-1!==i&&(a.tweenAxis.splice(i,1),a.scrollableArea=Math.max.apply(Math,a.tweenAxis.map((function(e){return e.duration})).concat([0])),a.scrollableBounds||null==(n=a.inertia)||n.setBounds(0,a.scrollableArea||0),e.goTo(0,this._.tweenRefMaps,!1,!0),Object.keys(e.initials).forEach((function(t){Object.keys(e.initials[t]).forEach((function(e){N(0,e,o.tweenRefMaps[t],o.tweenRefCSS[t],o.muxDataByTarget[t],o.muxByTarget[t])}))})),delete e.initials,e.destroy(),r=!0,this._updateTweenRefs()),!r&&console.warn("react-voodoo: Axis not found : ",t)},r._runScrollGoTo=function(e,t,r,n,o,a,i){var s=this;void 0===n&&(n=function(e){return e});var l=this.axes[e].scrollPos,u=t-l;he.push({apply:function(t,r){var i,c,p,f,d,h,g,m,x,v=l+n(t/r)*u;s._.tweenEnabled&&(null==(i=s.axes)||null==(c=i[e])||null==(p=c.inertia)||p.setPos(v),null!=(f=s.axes)&&null!=(d=f[e])&&null!=(h=d.inertia)&&h._&&(v=null==(g=s.axes)||null==(m=g[e])||null==(x=m.inertia)?void 0:x._.pos),s.axes[e].tweenAxis.forEach((function(e){return e.goTo(v,s._.tweenRefMaps,!1,o)})),a&&a(v))},duration:r,cpos:0,cb:i}),ce||(ce=!0,pe=Date.now(),setTimeout(ge,16))},r.getScrollableNodes=function(e){var t=this,r=ee.findReactParents(e),n=this._;return(r=n.rootRef&&n.rootRef.current&&n.rootRef.current.hookScrollableTargets&&n.rootRef.current.hookScrollableTargets(r)||r).map((function(e){return h().string(e)?t._.refs[e]&&w().findDOMNode(t._.refs[e])||t.refs[e]||document.getElementById(e):e}))},r.componentShouldScroll=function(){var e,t=this._;return!(t.rootRef&&t.rootRef.current&&t.rootRef.current.componentShouldScroll)||(e=t.rootRef.current).componentShouldScroll.apply(e,arguments)},r.watchAxis=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)}},r.axisDidScroll=function(e,t){var r=this._scrollWatcherByAxis[t],n=null==r?void 0:r.length;if(r)for(;n;)r[--n](e)},r.applyInertia=function(e,t){var r,n,o=this,a=e.inertia.update(),i=this._;this.axes[t].tweenAxis.forEach((function(e){o.axes[t].targetPos=o.axes[t].scrollPos=a,e.goTo(a,o._.tweenRefMaps)})),null==(r=i.rootRef)||null==(n=r.current)||null==n.componentDidScroll||n.componentDidScroll(a,t),this.axisDidScroll(a,t),this._updateTweenRefs(),e.inertia.active||e.inertia.holding?e.inertiaFrame=setTimeout(this.applyInertia.bind(this,e,t),33):e.inertiaFrame=null},r.isInertiaActive=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},r.dispatchScroll=function(e,t){void 0===t&&(t="scrollY");var r=this.axes[t],n=r&&r.scrollPos;r&&n!==n+e&&(r.inertia.dispatch(e,100),!r.inertiaFrame&&this.applyInertia(r,t))},r.isAxisOut=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)},r._doDispatch=function(e,t,r,n){var o,a,i,s=e;for(a=this.getScrollableNodes(s),i=0;i<a.length;i++){if(a[i].__isTweener)a[i].isAxisOut("scrollX",t)||a[i].componentShouldScroll&&!a[i].componentShouldScroll("scrollX",t)||(a[i].dispatchScroll(t,"scrollX",n),t=0),a[i].isAxisOut("scrollY",r)||a[i].componentShouldScroll&&!a[i].componentShouldScroll("scrollY",r)||(a[i].dispatchScroll(r,"scrollY",n),r=0);else if(h().element(a[i])&&(o=getComputedStyle(a[i],null),/(auto|scroll)/.test(o.getPropertyValue("overflow")+o.getPropertyValue("overflow-x")+o.getPropertyValue("overflow-y"))&&(r<0&&0!==a[i].scrollTop||r>0&&a[i].scrollTop!==a[i].scrollHeight-a[i].clientHeight)))return;if(!t&&!r)break}if(this._updateNodeInertia(),!t&&!r)return!0},r._activateNodeInertia=function(e){var t=this._,r=t.activeInertia.findIndex((function(t){return t.target===e}));return-1===r&&(t.activeInertia.push({inertia:{x:new ue({max:e.scrollWidth-e.offsetLeft,value:e.scrollLeft}),y:new ue({max:e.scrollHeight-e.offsetHeight,value:e.scrollTop})},target:e}),r=t.activeInertia.length-1),t.activeInertia[r].inertia},r.setRootRef=function(e){this._.rootRef=e},r._updateBox=function(){var e=this.getRootNode();e&&(this._.box.inited=!0,this._.box.x=e.offsetWidth,this._.box.y=e.offsetHeight)},r._rafLoop=function(){this._updateTweenRefs(),this._.runningAnims.length?requestAnimationFrame(this._._rafLoop):this._.live=!1},r._updateTweenRefs=function(){if(this._.tweenEnabled)for(var e,t=0;t<this._.tweenRefTargets.length;t++)e=this._.tweenRefTargets[t],this._updateTweenRef(e)},r._updateTweenRef=function(e,t){var r,n=this._swap;if(this._.tweenRefCSS[e]&&H(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 a in n)this._.tweenRefCSS[e].hasOwnProperty(a)&&((t||n[a]!==this._.tweenRefCSS[e][a])&&(r.style[a]=this._.tweenRefCSS[e][a]=n[a]),delete n[a])}return this._.tweenRefCSS[e]},r.componentWillUnmount=function(){var t=this;this.getRootNode(),this._.tweenEnabled&&(this._.tweenEnabled=!1,window.removeEventListener("resize",this._.onResize),Object.keys(this.axes).forEach((function(e){t.axes[e].inertiaFrame&&clearTimeout(t.axes[e].inertiaFrame)}))),e.prototype.componentWillUnmount&&e.prototype.componentWillUnmount.apply(this,arguments)},r.componentDidMount=function(){var t=this,r=this.constructor;this._.rendered=!0,this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),r.scrollableAnim&&(h().array(r.scrollableAnim)?this.addScrollableAnim(r.scrollableAnim):Object.keys(r.scrollableAnim).forEach((function(e){return t.addScrollableAnim(r.scrollableAnim[e],e)}))),e.prototype.componentDidMount&&e.prototype.componentDidMount.apply(this,arguments)},r.componentDidUpdate=function(t,r){this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),e.prototype.componentDidUpdate&&e.prototype.componentDidUpdate.apply(this,arguments)},r.render=function(){var e=this,t=this.props,r=t.BaseComponent,n=t.oProps;return i().createElement(g.Consumer,null,(function(t){return e._parentTweener=t,i().createElement(g.Provider,{value:e},i().createElement(r,c()({},n,{ref:e._.rootRef,tweener:e})))}))},t}(i().Component),xe=["children"];const ve=function(e,t){void 0===t&&(t="div");var r=i().useContext(g),n=i().useRef(),o=i().useRef(),a=i().useMemo((function(){return!0===e||h().string(e)}),[]),s=i().useMemo((function(){if(!0===e)return r;if(h().string(e)){for(var t=r;null!=(o=t)&&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 a=new me({forwardedRef:n,tweenerOptions:e});return a.isMountedFromHook=!0,a._parentTweener=r,a}),[]),l=i().useMemo((function(){return i().forwardRef((function(e,r){var o=e.children,a=f()(e,xe);return i().createElement(g.Provider,{value:s},i().createElement(t,c()({ref:r?function(e){return r.current=n.current=e}:n},a),o))}))}),[]);return i().useEffect((function(){var e;if(!a&&null!=(e=o.current)&&e._)return s.componentDidMount(),o.current=s,function(){var e;null!=(e=o.current)&&e._&&(o.current.componentWillUnmount(),o.current=null)}}),[]),i().useEffect((function(){var e;!a&&null!=(e=o.current)&&e._&&(o.current._updateBox(),o.current._updateTweenRefs())}),[n.current]),i().useEffect((function(){var e;!a&&null!=(e=o.current)&&e._&&(o.current._parentTweener=r)}),[r]),i().useEffect((function(){var t;!a&&null!=(t=o.current)&&t._&&(o.current._.options=e,o.current._updateBox(),o.current._updateTweenRefs())}),[e]),i().useMemo((function(){return[s,l]}),[l,s])},ye=function(e){e.children;var t=e.id,r=e.axe,n=void 0===r?t:r,o=e.scrollFirst,a=e.bounds,s=e.scrollableWindow,u=e.inertia,c=e.size,p=e.defaultPosition,f=e.items,d=void 0===f?[]:f,h=i().useRef({}).current,g=ve(!0)[0];return h.previousAxis&&h.previousAxis===n?h.previousInertia&&h.previousInertia===u&&h.previousBounds===a&&h.previousScrollableWindow===s||(h.previousInertia=u,h.previousAxis=n,h.previousBounds=a,h.previousScrollableWindow=s,g.initAxis(n,{inertia:u,size:c,scrollableWindow:s,defaultPosition:p,scrollFirst:o,scrollableBounds:a})):(h.previousAxis=n,h.previousInertia=u,g.initAxis(n,{inertia:u,size:c,scrollableWindow:s,defaultPosition:p,scrollFirst:o,scrollableBounds:a},!0)),h.previousTweener&&h.previousTweener===g?h.previousTweens===d||h.previousTweens&&l()(d,h.previousTweens)||(h.lastTL&&h.previousTweener&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),h.lastTL=null,d.length&&(h.lastTL=g.addScrollableAnim(d,n,c)),h.previousTweens=d):(h.previousTweener&&h.lastTL&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),d.length&&(h.lastTL=g.addScrollableAnim(d,n,c)),h.previousTweener=g,h.previousTweens=d),i().useEffect((function(){return function(){h.lastTL&&h.previousTweener&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),delete h.previousTweener,delete h.previousScrollable}}),[]),i().createElement(i().Fragment,null)},we=require("shortid");var be=r.n(we);function _e(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)}function Re(e){return function(e){return"function"==typeof e&&!!e.prototype.isReactComponent}(e)||_e(e)}var Te=["children","id","style","initial","pos","noRef","reset","tweener","isRoot","axes","refProp","tweenLines","tweenAxis"],Se=["children","className"];function Pe(e,t){return e.map((function(e){return c()({},e,{target:t})}))}var De=function(e){var t=e.children,r=e.id,n=void 0===r?i().useMemo((function(){return be().generate()}),[]):r,o=e.style,a=e.initial,s=e.pos,u=e.noRef,p=(e.reset,e.tweener),d=(e.isRoot,e.axes),g=e.refProp,m=void 0===g?"nodeRef":g,x=e.tweenLines,v=void 0===x?d:x,y=e.tweenAxis,w=void 0===y?v:y,b=f()(e,Te),_=i().useRef({}).current,R=ve(!0)[0];if(!(R=p||R))return console.error("No Voodoo tweener found in the context, is there any parent with asTweener ?"),i().createElement(i().Fragment,null);var T,S=R.tweenRef(n,t.props&&t.props.style,o||a,s,u);i().useEffect((function(){return function(){_._tweenAxisObj&&Object.keys(_._tweenAxisObj).forEach((function(e){return _._currentTweener.rmScrollableAnim(_._tweenAxisObj[e],e)})),_._currentTweener&&(_._currentTweener.rmTweenRef(_.__tweenableId),_._currentTweener.setRootRef(void 0)),delete _._currentTweener,delete _._tweenAxisObj,delete _._previousScrollable}}),[]),_._currentTweener!==R||_._previousScrollable!==w?(T=_._tweenAxis!==w&&!(_._tweenAxis&&l()(w,_._tweenAxis)),_._currentTweener&&T&&_._tweenAxisObj&&Object.keys(_._tweenAxisObj).forEach((function(e){return _._currentTweener.rmScrollableAnim(_._tweenAxisObj[e],e)})),_._currentTweener&&_._currentTweener!==R&&_._currentTweener.rmTweenRef(n),T&&(_._tweenAxis=w,w&&h().array(w)?_._tweenAxisObj={scrollY:R.addScrollableAnim(Pe(w,n))}:_._tweenAxisObj=w&&Object.keys(w).reduce((function(e,t){return e[t]=R.addScrollableAnim(Pe(w[t],n),t),e}),{}),S=R.tweenRef(n,t.props&&t.props.style,o||a,s,u)),S.style=c()({},R._updateTweenRef(n,!0)),b.hasOwnProperty("isRoot")&&(_._currentTweener&&_._currentTweener.setRootRef(void 0),p.setRootRef(n)),_._currentTweener=R,_._previousScrollable=w):S&&(S.style=c()({},R._updateTweenRef(n,!0)));var P,D=i().Children.only(t);return D&&i().isValidElement(D)?(_._lastRef=S,_e(D.type)?i().createElement(D.type,c()({},b,D.props,S,{ref:void 0},((P={})[m]=S.ref,P))):i().createElement(D.type,c()({},b,D.props,S))):(console.error("Invalid voodoo Node child : ",n),i().createElement("div",null,"Invalid"))};const Me=De;De.div=function(e){var t=e.children,r=e.className,n=f()(e,Se);return i().createElement(De,n,i().createElement("div",{className:r},t))};var Oe=["children","Comp","nodeRef","items","xAxis","yAxis","yBoxRef","xBoxRef","yRef","yHook","xHook","tweener","mouseDrag","touchDrag","button"],Ee=function(e){var t=e.children,r=e.Comp,n=void 0===r?"div":r,o=e.nodeRef,a=(e.items,e.xAxis),s=e.yAxis,l=e.yBoxRef,u=e.xBoxRef,p=(e.yRef,e.yHook),d=e.xHook,g=e.tweener,m=e.mouseDrag,x=void 0!==m&&m,v=e.touchDrag,y=void 0===v||v,w=e.button,b=void 0===w?0:w,_=f()(e,Oe),R=i().useRef(),T=i().useRef({root:R,_:{}}).current,S=ve(!0)[0],P=i().useMemo((function(){return{getScrollableNodes:function(e){for(var t=[],r=T._parentTweener;r;)t.push(r),r=r._parentTweener;return t},_registerScrollListeners:function(){var e,t,r,n,o,a,i,s,l,u=null==(e=T.root)?void 0:e.current,c=T.props,p=c.xAxis,f=c.yAxis,d=c.yHook,h=c.xHook,g=c.mouseDrag,m=c.touchDrag,x=c.tweener,v=c.xBoxRef,y=c.yBoxRef,w=c.button,b=x._;u?(ee.addEvent(u,T._.dragList={dragstart:function(e,r,c){var d,h,g,m;if(!(e instanceof MouseEvent&&e.button!==w))for(o=P.getScrollableNodes(e.target),t=Date.now(),n=0,a=0,i=[],s=null==(d=(null==v?void 0:v.current)||u)?void 0:d.offsetWidth,l=null==(h=(null==y?void 0:y.current)||u)?void 0:h.offsetHeight,m=0;m<o.length;m++){var x,b;(g=o[m])._updateBox(),g.__isTweener&&(p&&(null==(x=g.axes)||x[p]),f&&(null==(b=g.axes)||b[f]),g._updateNodeInertia())}},click:function(e,r,o){e instanceof MouseEvent&&e.button!==w||t&&(t-Date.now()>b.options.maxClickTm||Math.abs(a)>b.options.maxClickOffset||Math.abs(n)>b.options.maxClickOffset)&&(e.preventDefault(),e.stopPropagation())},drag:function(e,u,c){var g,m,x,_,R,T,S,P,D,M;if(!(e instanceof MouseEvent&&e.button!==w||(n=-(c._lastPos.x-c._startPos.x),a=-(c._lastPos.y-c._startPos.y),t&&t>Date.now()-b.options.maxClickTm&&Math.abs(a)<b.options.maxClickOffset&&Math.abs(n)<b.options.maxClickOffset)))for(_=!n,P=!a,b.options.dragDirectionLock&&("Y"===r||!r&&Math.abs(.5*a)>Math.abs(n)?(r="Y",n=0):("X"===r||!r&&Math.abs(.5*n)>Math.abs(a))&&(r="X",a=0)),M=0;M<o.length;M++)if((g=o[M]).__isTweener){var O,E,A,B,C,k,I,L,W,j,F,N,H,z;if(m=p&&(null==(O=g.axes)?void 0:O[p]),T=f&&(null==(E=g.axes)?void 0:E[f]),!m&&!T)continue;i[M]||(i[M]={x:null==(I=m)?void 0:I.scrollPos,y:null==(L=T)?void 0:L.scrollPos},null==(W=m)||null==(j=W.inertia)||j.startMove(),null==(F=T)||null==(N=F.inertia)||N.startMove(),p&&m&&(null==(H=m)||!H.inertiaFrame)&&g.applyInertia(m,p),f&&T&&(null==(z=T)||!z.inertiaFrame)&&g.applyInertia(T,f)),m&&(R=null!=v&&v.current?s:g._.box.x,x=n&&n/R*(m.scrollableWindow||m.scrollableArea)||0,h&&(x=h(x))),T&&(D=null!=y&&y.current?l:g._.box.y,S=a&&a/D*(T.scrollableWindow||T.scrollableArea)||0,d&&(S=d(S))),m&&!_&&x&&null!=(A=m)&&null!=(B=A.inertia)&&B.isInbound(i[M].x+x)&&g.componentShouldScroll(p,x)&&(m.inertia.hold(i[M].x+x),_=!0),T&&!P&&S&&null!=(C=T)&&null!=(k=C.inertia)&&k.isInbound(i[M].y+S)&&g.componentShouldScroll(f,S)&&(T.inertia.hold(i[M].y+S),P=!0)}},dropped:function(e,s,l){var u,c;if(!(e instanceof MouseEvent&&e.button!==w)){for(r=void 0,c=0;c<o.length;c++){var d,h,g,m,x,v;(u=o[c]).__isTweener&&i[c]&&(null==(d=u.axes)||null==(h=d[p])||null==(g=h.inertia)||g.release(),null==(m=u.axes)||null==(x=m[f])||null==(v=x.inertia)||v.release())}!t||t>Date.now()-b.options.maxClickTm&&Math.abs(a)<b.options.maxClickOffset&&Math.abs(n)<b.options.maxClickOffset||(e.stopPropagation(),e.cancelable&&e.preventDefault()),o=i=null}}},null,b.options.enableMouseDrag||g,m),T._.doRegister=!!u):T._.doRegister=!0}}}),[]);return i().useEffect((function(){return P._registerScrollListeners(),function(){var e,t=null==(e=T.root)?void 0:e.current;T._.scrollEnabled&&(T._.scrollEnabled=!1,t&&T._.dragList&&ee.removeEvent(t,T._.dragList))}}),[]),i().useEffect((function(){h().function(o)&&o(R.current)})),T.props={xAxis:a,yAxis:s,yHook:p,xHook:d,mouseDrag:x,touchDrag:y,tweener:g||S,xBoxRef:u,yBoxRef:l,button:b},T._parentTweener=S,i().createElement(n,c()({ref:R},_),t)};const Ae=Ee;Ee.div=function(e){return i().createElement(Ee,e)};const Be=function(){return i().useContext(g)};var Ce={}.constructor;function ke(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(!t[0]||Re(t[0]))&&t.shift(),o=(!t[0]||t[0]instanceof Ce)&&t.shift()||{};if(!n)return function(e){return ke(e,o)};o=c()({wheelRatio:5,maxClickTm:200,maxClickOffset:20},o);var a=i().forwardRef((function(e,t){return i().createElement(me,{oProps:e,forwardedRef:t,BaseComponent:n,tweenerOptions:o})}));return a.displayName=String.fromCharCode(55358,56793)+(n.displayName||n.name),a}var Ie,Le={}.constructor;function We(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(!t[0]||Re(t[0]))&&t.shift(),a=(!t[0]||t[0]instanceof Le)&&t.shift()||{};if(!n||!(n.prototype instanceof i().Component||n===i().Component))return function(e){return We(e,a)};var s=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){var e=this;return i().createElement(g.Consumer,null,(function(t){return i().createElement(n,c()({},e.props,{tweener:t,ref:e.props.forwardedRef}))}))},t}(i().Component);s.displayName=n.displayName||n.name;var l=i().forwardRef((function(e,t){return i().createElement(s,c()({},e,{forwardedRef:t}))}));return l.displayName=s.displayName,l}var je=ke(Ie=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){return this.props.children},t}(i().Component))||Ie;const Fe={tweener:ke,child:We,useTweener:Be,useVoodoo:ve,hook:ve,tools:e,Draggable:Ae,Component:je,Node:Me,Context:g,Axis:ye,dom:ee}})(),module.exports=n})();
2
+ (()=>{var e={450:e=>{e.exports={walknSetExport:function(e,t,n){var r,o,a=t.split("/"),i=e;for(r=0;r<a.length-1;)i=i[a[r]]=i[a[r]]||{},r++;o=1===Object.keys(n).length&&n.default||n,i[a[r]]?(i[a[r]].__esModule||Object.assign(o,i[a[r]]),i[a[r]]=o):i[a[r]]=o}}},227:(e,t,n)=>{"use strict";n.d(t,{Yj:()=>a,Xg:()=>i,$_:()=>s,e$:()=>l,fi:()=>u,Rx:()=>c,bC:()=>p});var r={},o=n(450).walknSetExport;o(r,"any",n(582)),o(r,"int",n(74)),o(r,"bool",n(584)),o(r,"color",n(192)),o(r,"multi",n(822)),o(r,"ratio",n(425)),o(r,"number",n(277)),o(r,"shadow",n(940));var a=r.any,i=r.bool,s=r.color,l=r.int,u=r.multi,c=r.number,p=r.ratio},259:(e,t,n)=>{"use strict";n.d(t,{NQ:()=>r,Dl:()=>o,_9:()=>a,HM:()=>i,dn:()=>s,_j:()=>l,JO:()=>u});var r={margin:{properties:["marginTop","marginRight","marginBottom","marginLeft"]},marginBottom:{types:["length"]},marginLeft:{types:["length"]},marginRight:{types:["length"]},marginTop:{types:["length"]},padding:{properties:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},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:["number","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"],a=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("|")+")"),i=function(e){return void 0===e&&(e=0),Number(e.toFixed(3))};function s(e,t,n){void 0===n&&(n={});var o=r[e],a=o&&o.properties,i=t.split(" ");return o.multiple?a&&a.forEach((function(e,t){n[e]=i[t%i.length]})):a&&a.forEach((function(e,t){i[t]&&(n[e]=i[t])})),n}function l(e){var t=r[e],n=t&&t.properties;return n&&!!n.length}function u(e,t){return!!r[e]}},38:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,mux:()=>r.mux,release:()=>r.release});var r=n(192)},39:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,demuxOne:()=>r.demuxOne,mux:()=>r.mux,muxOne:()=>r.muxOne,release:()=>r.release});var r=n(940)},111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>c,demuxOne:()=>p,demux:()=>f,muxOne:()=>d,mux:()=>h});var r=n(213),o=n.n(r),a=n(73),i=n.n(a),s=n(259),l={blur:"px",brightness:"%",contrast:"%",dropShadow:!0,grayscale:"%",hueRotate:"deg",invert:"%",opacity:"%",saturate:"%",sepia:"%"},u={};function c(e,t,n,r,o,a){var i,s=e.split("_");if(4===s.length){if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();0!==r[i].length||a||delete r[i],0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function p(e,t,n,r,o,a){var i=n,u=s.Dl[e]||l[r];return"bw"===u&&(i*=a.x,u="px"),"wh"===u&&(i*=a.y,u="px"),"bz"===u&&(i*=a.z,u="px"),"deg"===u&&(i%=360),u?(0,s.HM)(i)+u:(0,s.HM)(i)}function f(e,t,n,r,o){for(var a,i,s,l,u,c,f="",d=0,h=0;d<r[e].length;d++)for(i in a=r[e][d])if(a.hasOwnProperty(i)){for(l=e+"_"+d+"_"+i,c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=p(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")"),h>0&&(f+=i+"("+(c||"0")+") ")}n.filter=f}function d(e,t,n,r,o,a,c,p){var d=!!i().string(n)&&n.match(s._9),h=d&&d[2]||l[t],g=s.Dl.indexOf(h),m=-1!==g&&e+"_"+g||e;return a[m]=u[t]||0,o[e][g]=o[e][g]||0,p&&p[g]?r[m]+=d?parseFloat(d[1]):parseFloat(n):(!c&&o[e][g]++,r[m]=d?parseFloat(d[1]):parseFloat(n),p&&(p[g]=!0)),f}var h=function(e,t,n,r,a,s,l){r[e]=r[e]||[],i().array(t)||(t=[t]);for(var u,c,p,h,g,m,x,v=0;v<t.length;v++){for(c in u=t[v],p=l?{}:o()({},r[e][v]||{}),u)if(u.hasOwnProperty(c))if(h=u[c],x={},g=e+"_"+v+"_"+c,p[c]=p[c]||r[e][v]&&r[e][v][c]||0,!s&&p[c]++,r[g]=r[g]||[],i().array(h))for(m=0;m<h.length;m++)d(g,c,h[m]||0,n,r,a,s,x);else d(g,c,h||0,n,r,a,s);r[e][v]=l?o()({},p,r[e][v]||{},p):p}return f}},178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>r.demux,demuxOne:()=>r.demuxOne,mux:()=>r.mux,muxOne:()=>r.muxOne,release:()=>r.release});var r=n(940)},374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>p,demuxOne:()=>f,demux:()=>d,muxOne:()=>h,mux:()=>g});var r=n(213),o=n.n(r),a=n(73),i=n.n(a),s=n(259),l={translateX:"px",translateY:"px",translateZ:"px",scale:"",scaleZ:"",scaleX:"",scaleY:"",rotate:"deg",skewX:"deg",skewY:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",perspective:"px"},u={translateX:"x",translateY:"y",translateZ:"z",rotateX:"x",rotateY:"y",rotateZ:"z",left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},c={scale:1,scaleX:1,scaleY:1,scaleZ:1};function p(e,t,n,r,o,a){var i,s=e.split("_");if(4===s.length){if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();0!==r[i].length||a||delete r[i],0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function f(e,t,n,r,o,a){var i=n,c=s.Dl[e]||l[r];return"box"===c&&(i*=a[u[r]]||a.x,c="px"),"bw"===c&&(i*=a.x,c="px"),"wh"===c&&(i*=a.y,c="px"),"bz"===c&&(i*=a.z,c="px"),"deg"===c&&(i%=360),c?(0,s.HM)(i)+c:(0,s.HM)(i)}function d(e,t,n,r,o){for(var a,i,s,l,u,c,p="",d=0,h=0;d<r[e].length;d++)for(i in a=r[e][d])if(a.hasOwnProperty(i)){for(l=e+"_"+d+"_"+i,c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=f(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")"),h>0&&(p+=i+"("+(c||"0")+") ")}n.transform=p}function h(e,t,n,r,o,a,u,p){var f=!!i().string(n)&&n.match(s._9),h=f&&f[2]||l[t],g=s.Dl.indexOf(h),m=-1!==g&&e+"_"+g||e;return a[m]=c[t]||0,o[e][g]=o[e][g]||0,p&&p[g]?r[m]+=f?parseFloat(f[1]):parseFloat(n):(!u&&o[e][g]++,r[m]=f?parseFloat(f[1]):parseFloat(n),p&&(p[g]=!0)),d}var g=function(e,t,n,r,a,s,l){r[e]=r[e]||[],i().array(t)||(t=[t]);for(var u,c,p,f,g,m,x,v=0;v<t.length;v++){for(c in u=t[v],p=l?{}:o()({},r[e][v]||{}),u)if(u.hasOwnProperty(c))if(f=u[c],x={},g=e+"_"+v+"_"+c,p[c]=p[c]||r[e][v]&&r[e][v][c]||0,!s&&p[c]++,r[g]=r[g]||[],i().array(f))for(m=0;m<f.length;m++)h(g,c,f[m]||0,n,r,a,s,x);else h(g,c,f||0,n,r,a,s);r[e][v]=l?o()({},p,r[e][v]||{},p):p}return d}},582:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>u,demuxOne:()=>c,demux:()=>p,muxer:()=>f,muxOne:()=>d,mux:()=>h});var r=n(73),o=n.n(r),a=n(259),i=(n(582),{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 u(e,t,n,r,o,a){var i=e.split("_");if(2===i.length){if(--r[i[0]][i[1]]||a||delete t[e],!a)for(;r[i[0]].length&&!r[i[0]][r[i[0]].length-1];)r[i[0]].pop();0!==r[i[0]].length||a||(delete r[i[0]],delete o[i[0]],n&&delete n[i[0]])}else console.log("wtf",i)}function c(e,t,n,r,o){var l=t,u=a.Dl[e]||i[n]||"px";return"box"===u&&(l*=o[s[n]]||o.x,u="px"),"bw"===u&&(l*=o.x,u="px"),"bh"===u&&(l*=o.y,u="px"),"bz"===u&&(l*=o.z,u="px"),u?(0,a.HM)(l)+u:(0,a.HM)(l)}function p(e,t,n,r,o,a){var i,s,l,u=0;if(i="",r[e].isString)return n[e]=r[e].value,r[e].value;for(s=0;s<r[e].length;s++)r[e][s]&&(t[l=e+"_"+s]<0?i+=(u?" - ":"-")+c(s,-t[l],a||e,0,o):i+=(u?" + ":"")+c(s,t[l],a||e,0,o),u++);return u>1&&(i="calc("+i+")"),n?n[e]=i:i}function f(e,t,n,r,a,i){r[e]=r[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,n,r,a,i,s);else d(e,t||0,n,r,a,i);return p}function d(e,t,n,r,s,u,c){var f=!!o().string(t)&&t.match(a._9),d=f&&f[2]||i[e]||"px",h=a.Dl.indexOf(d),g=-1!==h&&e+"_"+h||e;return s[g]=l[e]||0,r[e][h]=r[e][h]||0,!f&&o().string(t)?(r[e].isString=!0,r[e].value=t,p):(c&&c[h]?n[g]+=f?parseFloat(f[1]):parseFloat(t):(!u&&r[e][h]++,n[g]=f?parseFloat(f[1]):parseFloat(t),c&&(c[h]=!0)),p)}var h=f},584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>o,demux:()=>a,mux:()=>i});var r={opacity:1};function o(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function a(e,t,n,r,o){var a=!!t[e];return n?n[e]=a:a}var i=function(e,t,n,o,i,s){return i[e]=r[e]||0,n[e]=!1===t?0:1,o[e]=o[e]||0,!s&&o[e]++,a}},192:(e,t,n)=>{"use strict";n.r(t),n.d(t,{demux:()=>i,mux:()=>s,release:()=>a});const r=require("color-rgba");var o=n.n(r);function a(e,t,n,r,o,a){var i=e.split("_"),s=i.slice(0,i.length-1).join("_");--r[e]||a||(delete t[e],delete r[e]),--r[s]||a||(delete t[e],delete r[e])}function i(e,t,n,r){var o="rgba("+t[e+"_r"]+", "+t[e+"_g"]+", "+t[e+"_b"]+", "+t[e+"_a"]+")";return n?n[e]=o:o}function s(e,t,n,r,a,s){var l=o()(t);return r[e]=r[e]||0,r[e+"_r"]=r[e+"_r"]||0,r[e+"_g"]=r[e+"_g"]||0,r[e+"_b"]=r[e+"_b"]||0,r[e+"_a"]=r[e+"_a"]||0,s||(r[e]+=4,r[e+"_r"]++,r[e+"_g"]++,r[e+"_b"]++,r[e+"_a"]++),n[e+"_r"]=l[0],n[e+"_g"]=l[1],n[e+"_b"]=l[2],n[e+"_a"]=l[3],a[e]=0,a[e+"_r"]=0,a[e+"_g"]=0,a[e+"_b"]=0,a[e+"_a"]=1,i}},74:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function o(e,t,n,r,o){n[e]=~~t[e]}n.r(t),n.d(t,{release:()=>r,demux:()=>o,mux:()=>a});var a=function(e,t,n,r,a,i){return a[e]=0,n[e]=~~t,r[e]=r[e]||0,!i&&r[e]++,o}},822:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(73),o=n.n(r),a=n(277),i={top:"0%",bottom:"100%",center:"50%",left:"0%",right:"100%"};function s(e,t,n,r,o,i){for(var s=r["_"+e],l="",u={},c=0;c<s;c++)a.demux(e+"_"+c,t,u,r,o,i),l+=u[e+"_"+c]+" ";n[e]=l}function l(e,t,n,r,o,a){e.split("_")}const u=function(e){return{mux:function(t,n,r,l,u,c){var p,f=n.split(" ");l[t]=l[t]||0,c&&l[t]++,l["_"+t]=e;for(var d=0;d<e;d++)p=f[d%f.length],p=o().string(p)&&i[p]||p,a.mux(t+"_"+d,p,r,l,u,c);return s},demux:s,release:l}}},277:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>u,demuxOne:()=>c,demux:()=>p,muxer:()=>f,muxOne:()=>d,mux:()=>h});var r=n(73),o=n.n(r),a=n(259),i={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 u(e,t,n,r,o,a){var i=e.split("_");if(2===i.length){if(--r[i[0]][i[1]]||a||delete t[e],!a)for(;r[i[0]].length&&!r[i[0]][r[i[0]].length-1];)r[i[0]].pop();0!==r[i[0]].length||a||(delete r[i[0]],delete o[i[0]],n&&delete n[i[0]])}else console.log("wtf",i)}function c(e,t,n,r,o){var l=t,u=a.Dl[e]||i[n]||"px";return"box"===u&&(l*=o[s[n]]||o.x,u="px"),"bw"===u&&(l*=o.x,u="px"),"bh"===u&&(l*=o.y,u="px"),"bz"===u&&(l*=o.z,u="px"),u?(0,a.HM)(l)+u:(0,a.HM)(l)}function p(e,t,n,r,o,a){var i,s,l,u=0;for(i="",s=0;s<r[e].length;s++)r[e][s]&&(t[l=e+"_"+s]<0?i+=(u?" - ":"-")+c(s,-t[l],a||e,0,o):i+=(u?" + ":"")+c(s,t[l],a||e,0,o),u++);return u>1&&(i="calc("+i+")"),n?n[e]=i:i}function f(e,t,n,r,a,i){r[e]=r[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,n,r,a,i,s);else d(e,t||0,n,r,a,i);return p}function d(e,t,n,r,s,u,c){var f=!!o().string(t)&&t.match(a._9),d=f&&f[2]||i[e]||"px",h=a.Dl.indexOf(d),g=-1!==h&&e+"_"+h||e;return s[g]=l[e]||0,r[e][h]=r[e][h]||0,c&&c[h]?n[g]+=f?parseFloat(f[1]):parseFloat(t):(!u&&r[e][h]++,n[g]=f?parseFloat(f[1]):parseFloat(t),c&&(c[h]=!0)),p}var h=f},425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>a,demux:()=>i,mux:()=>s});var r=n(259),o={opacity:1};function a(e,t,n,r,o,a){--r[e]||a||(delete t[e],delete r[e],delete o[e],delete n[e])}function i(e,t,n,o,a){n[e]=Math.min(1,Math.max(0,(0,r.HM)(t[e])))}var s=function(e,t,n,r,a,s){return a[e]=o[e]||0,n[e]=t,r[e]=r[e]||0,!s&&r[e]++,i}},940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{release:()=>b,demuxOne:()=>_,demux:()=>R,muxOne:()=>T,mux:()=>S});var r,o,a,i,s,l,u,c,p=n(213),f=n.n(p),d=n(73),h=n.n(d),g=n(259),m=n(227),x=(r=/,(?![^\(]*\))/,o=/\s(?![^(]*\))/,a=/^[0-9]+[a-zA-Z%]+?$/,i=function(e){var t=e.split(o),n=t.includes("inset"),r=t.slice(-1)[0],a=l(r)?void 0:r,i=t.filter((function(e){return"inset"!==e})).filter((function(e){return e!==a})).map(u);return{inset:n,offsetX:i[0],offsetY:i[1],blurRadius:i[2],spreadRadius:i[3],color:a}},s=function(e){var t=e||{},n=t.inset,r=t.offsetX,o=void 0===r?0:r,a=t.offsetY,i=void 0===a?0:a,s=t.blurRadius;return[n?"inset":null,o,i,void 0===s?0:s,t.spreadRadius,t.color].filter((function(e){return null!=e})).map(c).map((function(e){return(""+e).trim()})).join(" ")},l=function(e){return"0"===e||a.test(e)},u=function(e){if(!/px$/.test(e)&&"0"!==e)return e;var t=parseFloat(e);return isNaN(t)?e:t},c=function(e){return"number"==typeof e&&0!==e?e+"px":e},{parse:function(e){return e.split(r).map((function(e){return e.trim()})).map(i)},stringify:function(e){return e.map(s).join(", ")}}),v={perspective:"px"},y={translateX:"x"},w={inset:m.Xg,color:m.$_};function b(e,t,n,r,o,a){var i,s=e.split("_");if(s.length>2){if(i=s[0]+"_"+s[1]+"_"+s[2],w[s[2]])return w[s[2]].release(e,t,n,r,o,a),r[i]||--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],void(0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]]));if(--r[s[0]][s[1]][s[2]]||a||delete r[s[0]][s[1]][s[2]],!a)for(;r[s[0]].length&&!r[s[0]][r[s[0]].length-1];)r[s[0]].pop();if(--r[i][s[3]]||a||(delete r[i][s[3]],delete t[e]),!a)for(;r[i].length&&!r[i][r[i].length-1];)r[i].pop();if(0!==r[i].length||a||delete r[i],!a)for(;r[s[0]].length&&!Object.keys(r[s[0]][r[s[0]].length-1]).length;)r[s[0]].pop();0!==r[s[0]].length||a||(delete r[s[0]],delete o[s[0]],delete n[s[0]])}else console.log("wtf",s)}function _(e,t,n,r,o,a){var i=n,s=g.Dl[e]||v[r];return"box"===s&&(i*=a[y[r]]||a.x,s="px"),"bw"===s&&(i*=a.x,s="px"),"wh"===s&&(i*=a.y,s="px"),"bz"===s&&(i*=a.z,s="px"),"deg"===s&&(i%=360),s?(0,g.HM)(i)+s:(0,g.HM)(i)}function R(e,t,n,r,o){for(var a,i,s,l,u,c,p=[],f={},d=0,h=0;d<r[e].length;d++){for(i in f={},a=r[e][d])if(a.hasOwnProperty(i)){if(l=e+"_"+d+"_"+i,w[i])c=w[i].demux(l,t,void 0,r,o);else{for(c="",h=0,s=0;s<r[l].length;s++)r[l][s]&&(u=_(s,0,t[l+"_"+s],i,0,o),h&&"-"===u[0]?u=" - "+u.substr(1):h&&(u=" + "+u),c+=u,h++);h>1&&(c="calc("+c+")")}f[i]=c||0}p.push(f)}n[e]=x.stringify(p)}function T(e,t,n,r,o,a,i,s){var l=!!h().string(n)&&n.match(g._9),u=l&&l[2]||v[t]||"px",c=g.Dl.indexOf(u),p=-1!==c&&e+"_"+c||e;return a[p]=0,o[e][c]=o[e][c]||0,s&&s[c]?r[p]+=l?parseFloat(l[1]):parseFloat(n):(!i&&o[e][c]++,r[p]=l?parseFloat(l[1]):parseFloat(n),s&&(s[c]=!0)),R}var S=function(e,t,n,r,o,a,i){r[e]=r[e]||[],h().array(t)||(t=[t]);for(var s,l,u,c,p,d,g,m=0;m<t.length;m++){for(l in s=t[m],h().string(s)&&(s=x.parse(s)[0]),u=i?{}:f()({},r[e][m]||{}),s)if(s.hasOwnProperty(l))if(c=s[l],p=e+"_"+m+"_"+l,u[l]=u[l]||r[e][m]&&r[e][m][l]||0,!a&&u[l]++,w[l])w[l].mux(p,c,n,r,o,a,i);else if(g={},r[p]=r[p]||[],h().array(c))for(d=0;d<c.length;d++)T(p,l,c[d]||0,n,r,o,a,g);else T(p,l,c||0,n,r,o,a);r[e][m]=i?f()({},u,r[e][m]||{},u):u}return R}},213:e=>{"use strict";e.exports=require("@babel/runtime/helpers/extends")},367:e=>{"use strict";e.exports=require("d3-ease")},73:e=>{"use strict";e.exports=require("is")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{Axis:()=>ye,Component:()=>je,Context:()=>g,Draggable:()=>Ae,Node:()=>Me,child:()=>We,default:()=>Fe,dom:()=>ee,hook:()=>ve,tools:()=>e,tweener:()=>ke,useTweener:()=>Be,useVoodoo:()=>ve});var e={};n.r(e),n.d(e,{addCss:()=>E,cssAdd:()=>_,cssMult:()=>R,extractCss:()=>A,offset:()=>T,re_cssValueWithUnit:()=>b,reverse:()=>D,scale:()=>S,shiftTransforms:()=>C,target:()=>B});const t=require("@babel/runtime/helpers/inheritsLoose");var o=n.n(t);const a=require("react");var i=n.n(a);const s=require("fast-deep-equal");var l=n.n(s),u=n(213),c=n.n(u);const p=require("@babel/runtime/helpers/objectWithoutPropertiesLoose");var f=n.n(p),d=n(73),h=n.n(d);const g=i().createContext(null),m=require("@babel/runtime/helpers/assertThisInitialized");var x=n.n(m),v=n(367);const y=require("react-dom");var w=n.n(y),b=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 _(e,t){h().array(e)||(e=[e]),h().array(t)||(t=[t]);var n,r=e.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),o=t.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),a={},i=[];for(n=0;n<r.length;)a[r[n][2]]=a[r[n][2]]||0,a[r[n][2]]+=parseFloat(r[n][1]),n++;for(n=0;n<o.length;)a[o[n][2]]=a[o[n][2]]||0,a[o[n][2]]+=parseFloat(o[n][1]),n++;Object.keys(a).forEach((function(e){return i.push(a[e]+e)}));for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];return l.length?_.apply(void 0,[i].concat(l)):i}function R(e,t){h().array(e)||(e=[e]);var n,r=e.map((function(e){return e&&e.match&&e.match(b)||[,e||0,"px"]})),o={},a=[];for(n=0;n<r.length;)o[r[n][2]]=o[r[n][2]]||1,o[r[n][2]]=parseFloat(r[n][1])*t,n++;return Object.keys(o).forEach((function(e){return a.push(o[e]+e)})),a}function T(e,t){return void 0===t&&(t=0),(e=h().array(e)?e:e&&[e]||e).map((function(e){return c()({},e,{from:e.from+t})}))}function S(e,t,n){void 0===t&&(t=0),e=h().array(e)?e:e&&[e]||e;var r=0;return e.forEach((function(e){r=Math.max(r,e.from+e.duration)})),e=e.map((function(e){return c()({},e,{from:e.from/r*t,duration:e.duration/r*t})})),n?T(e,n):e}function P(e){return h().number(e)?-e:h().object(e)?Object.keys(e).reduce((function(t,n){return t[n]=P(e[n]),t}),{}):h().array(e)?e.map((function(e){return P(e)})):e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function(e,t){return t%2?-parseFloat(e):e})).join("")}function D(e){e=h().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 c()({},e,{from:t-(e.from+e.duration)},e.apply?{apply:P(e.apply)}:void 0)}))}var M={transform:!0,filter:!0,textShadow:!0,boxShadow:!0};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n.shift();for(var a in o){var i;o.hasOwnProperty(a)&&(M[a]?(e[a]||(e[a]=[]),h().array(o[a])?E(e[a],o[a]):E(e[a],[o[a]])):h().array(o[a])?(e[a]||(e[a]=[]),h().array(e[a])?(i=e[a]).push.apply(i,o[a]):e[a]=[].concat(o[a],[e[a]])):e[a]?h().object(e[a])&&h().object(o[a])?E(e[a],o[a]):e[a]=O(e[a],o[a]):h().object(o[a])?e[a]=c()({},o[a]):e[a]=o[a])}return n.length&&E.apply(void 0,[e].concat(n))||e}function O(e,t){if(!e)return t;if(!t)return e;var n=(""+e).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),r=(""+t).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),o=n.map((function(e,t){return t%2?parseFloat(e)+parseFloat(r[t]||0):e})).filter((function(e){return""!==e}));return 1===o.length?parseInt(o[0]):o.join("")}function A(e,t){var n={};return(e=h().array(e)?e:e&&[e]||e).forEach((function(e){E(n,e.apply)})),t&&(n=P(n)),n}function B(e,t){return(e=h().array(e)?e:e&&[e]||e).map((function(e){return c()({},e,{target:t})}))}function C(e,t){return void 0===t&&(t=1),(e=h().array(e)?e:e&&[e]||e).map((function(e){var n=e.apply&&e.apply.transform;if(n){n=h().array(n)?n:[n];for(var r=0;r<t;r++)n.unshift({});e=c()({},e,{apply:c()({},e.apply,{transform:n})})}return e}))}var k=n(259),L={},I=n(450).walknSetExport;I(L,"filter",n(111)),I(L,"boxShadow",n(39)),I(L,"transform",n(374)),I(L,"textShadow",n(178)),I(L,"backgroundColor",n(38));const W=L;var j=n(227),F=c()({},W,{height:j.Rx,width:j.Rx,top:j.Rx,left:j.Rx,right:j.Rx,bottom:j.Rx,marginTop:j.Rx,marginLeft:j.Rx,marginRight:j.Rx,marginBottom:j.Rx,paddingTop:j.Rx,paddingLeft:j.Rx,paddingRight:j.Rx,paddingBottom:j.Rx,borderRadius:j.Rx,borderTopColor:j.$_,borderLeftColor:j.$_,borderRightColor:j.$_,borderBottomColor:j.$_,borderTopWidth:j.Rx,borderLeftWidth:j.Rx,borderRightWidth:j.Rx,borderBottomWidth:j.Rx,transformOrigin:(0,j.fi)(2),zIndex:j.e$,opacity:j.bC});function N(e,t,n,r,o,a,i){var s;null==(s=a[t.split("_")[0]])||s.release(t,n,r,o,a,i)}function z(e,t,n,r,o){Object.keys(n).forEach((function(a){n[a].demux(a,e,t,r,o)}))}function H(e,t,n,r,o,a,i){var s={},l={};return e&&Object.keys(e).forEach((function(t){F[t]?s[t]=e[t]:(0,k.JO)(t,e[t])?(0,k._j)(t)?(0,k.dn)(t,e[t],s):s[t]=e[t]:l[t]=e[t]})),s&&Object.keys(s).forEach((function(e){F[e]?(o[e]=F[e]).mux(e,s[e],t,r,n,a,i):(o[e]=function(e){var t=k.NQ[e],n=t&&t.types;if(!n)return j.Yj;for(var r=0;r<n.length;r++)switch(n[r]){case"length":case"number":case"length-percentage-calc":return j.Rx;case"integer":return j.e$;case"color":return j.$_}return j.Yj}(e)).mux(e,s[e],t,r,n,a,i)})),l}function V(e,t,n,r,o){o=o&&{};var a={},i=e.reduce((function(e,i){var s={};return r[i.target]=r[i.target]||{},t[i.target]=t[i.target]||{},n[i.target]=n[i.target]||{},i.type&&"Tween"!==i.type?e.push(c()({},i)):(!o&&E(a[i.target]=a[i.target]||{},i.apply),H(i.apply,s,t[i.target],n[i.target],r[i.target],!0),e.push(c()({},i,{apply:s}))),e}),[]);return!o&&Object.keys(a).forEach((function(e){return H(a[e],{},{},n[e],r[e])})),i}const Y=require("tween-axis");var X,q,$=[],G=function(e){function t(t,n){var r;if($.length){var o=$.pop();return o.scope=n,h().array(t)?(o.localLength=1,o.mount(t,n)):t.Axis&&o.mount(t.Axis,n),o||x()(r)}return e.apply(this,arguments)||this}return o()(t,e),t.prototype.destroy=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.__activeForks.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,$.push(this)},t}(n.n(Y)()),U=n(73),Z="undefined"!=typeof window,J=(Z&&(q=" -webkit- -moz- -o- -ms- ".split(" "),!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(X=["(",q.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia&&window.matchMedia(X).matches)),Z?{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:""}),K={onPageHided:[],onPageShown:[],dragging:[],dragEnabled:[],dragEnabledDesc:[],fingers:{},nbFingers:0,dragstartAnywhere:function(e){var t,n,r,o=K,a=o.dragEnabled.indexOf(this),i=[];if(-1!==a){o.nbFingers||(Q.addEvent(document,{touchmove:o.dragAnywhere,mousemove:o.dragAnywhere,touchend:o.dropAnywhere,mouseup:o.dropAnywhere}),Q.addEvent(this,{click:o.dropWithoutClick},null,null,null,!0)),e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)if(n=i[s],!(r=o.dragEnabledDesc[a]).nbFingers)for(o.nbFingers++,o.fingers[n.identifier]=o.fingers[n.identifier]||[],o.fingers[n.identifier].push(r),r.nbFingers++,r._startPos.x="MS"==J.prefix?n.x:n.pageX,r._startPos.y="MS"==J.prefix?n.y:n.pageY,r._startTs=e.timeStamp,r._lastPos.x="MS"==J.prefix?n.x:n.pageX,r._lastPos.y="MS"==J.prefix?n.y:n.pageY,t=0;t<r.dragstart.length;t++)r.dragstart[t][0].call(r.dragstart[t][1]||this,e,n,r)}},dragAnywhere:function(e){var t,n,r,o=this,a=K,i=[];K.dragging[0],e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)n=i[s],a.fingers[n.identifier],a.fingers[n.identifier]&&a.fingers[n.identifier].forEach((function(a){if(r)return a._lastPos.x=a._startPos.x="MS"==J.prefix?n.x:n.pageX,void(a._lastPos.y=a._startPos.y="MS"==J.prefix?n.y:n.pageY);for(a._lastPos.x="MS"==J.prefix?n.x:n.pageX,a._lastPos.y="MS"==J.prefix?n.y:n.pageY,t=0;t<a.drag.length;t++)r=!1===a.drag[t][0].call(a.drag[t][1]||o,e,n,a)}))},dropWithoutClick:function(e){K.preventNextClick&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),K.preventNextClick=!1),Q.removeEvent(this,{click:this.dropWithoutClick})},dropAnywhere:function(e){var t,n,r,o=this,a=K,i=[];e.changedTouches&&e.changedTouches.length?i=e.changedTouches:i.push(e);for(var s=0,l=i.length;s<l;s++)n=i[s],a.nbFingers--,a.fingers[n.identifier]&&a.fingers[n.identifier].forEach((function(a){for(a.nbFingers--,r=r||a.mouseDrag&&e.timeStamp-a._startTs>250,a._lastPos.x="MS"==J.prefix?n.x:n.pageX,a._lastPos.y="MS"==J.prefix?n.y:n.pageY,t=0;t<a.dropped.length;t++)a.dropped[t][0].call(a.dropped[t][1]||o,e,n,a)})),a.fingers[n.identifier]=null;r&&(a.preventNextClick=!0),a.nbFingers||Q.removeEvent(document,{touchmove:a.dragAnywhere,mousemove:a.dragAnywhere,touchend:a.dropAnywhere,mouseup:a.dropAnywhere})},getDraggable:function(e,t,n){var r,o=this.dragEnabled.indexOf(e);return-1===o?(this.dragEnabled.push(e),this.dragEnabledDesc.push(r={mouseDrag:t,touchDrag:n,nbFingers:0,locks:0,_startPos:{x:0,y:0},_lastPos:{x:0,y:0},dragstart:[],drag:[],dragEnd:[],dropped:[]}),Q.addEvent(e,{mousedown:t&&this.dragstartAnywhere,touchstart:n&&this.dragstartAnywhere},null,null,null,!0)):r=this.dragEnabledDesc[o],r},freeDraggable:function(e){var t=this.dragEnabled.indexOf(e);-1!==t&&(this.dragEnabled.splice(t,1),this.dragEnabledDesc.splice(t,1),Q.removeEvent(e,{mousedown:this.dragstartAnywhere,touchstart:this.dragstartAnywhere}))},addEvent:function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on"+t,n.related=function(t){return n.call(e,t)})},removeEvent:function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on"+t,n.related)},rmDragFn:function(e,t,n){for(var r=0,o=e.length;r<o;r++)if(e[r][0]===t)return e.splice(r,1);console.warn("Rm event : Listener not found !!")}},Q={addEvent:function(e,t,n,r,o,a){if(void 0===o&&(o=!0),U.object(t))for(var i in t)t.hasOwnProperty(i)&&t[i]&&this.addEvent(e,i,t[i],r,o,a);else"dragstart"===t?K.getDraggable(e,r,o).dragstart.push([n]):"drag"===t?K.getDraggable(e,r,o).drag.push([n]):"dropped"===t?K.getDraggable(e,r,o).dropped.push([n]):e.addEventListener?e.addEventListener(t,n,{passive:!1}):e.attachEvent&&e.attachEvent("on"+t,n.related=function(t){return n.call(e,t)})},removeEvent:function(e,t,n,r,o){var a;if(U.object(t))for(var i in t)t.hasOwnProperty(i)&&this.removeEvent(e,i,t[i],r);else/^(drag|drop)/.test(t)?(a=K.getDraggable(e),K.rmDragFn(a[t],n,r),a.dragstart.length||a.drag.length||a.dragEnd.length||a.dropped.length||K.freeDraggable(e)):e.removeEventListener?e.removeEventListener(t,n,o):e.attachEvent&&e.detachEvent("on"+t,n.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,n=[e];for(var r in e)if(r.startsWith("__reactInternalInstance$")||r.startsWith("__reactFiber$")){for(t=e[r];t.return;)t.stateNode&&!n.includes(t.stateNode)&&n.push(t.stateNode),t=t.return;return n}return e.parentNode&&this.findReactParents(e.parentNode)}};const ee=Q;var te=n(73),ne=n(367),re=function(e){return"number"==typeof e?e?e<0?-1:1:e==e?e:NaN:NaN},oe=Math.abs,ae=Math.floor,ie=(Math.round,Math.min),se=Math.max,le=function(e){return void 0===e&&(e=0),e.toFixed(3)},ue=function(){function e(e){var t=this._={};t.conf=c()({},this.constructor.config,e),this.active=!1,t.pos=e.value||0,t.refFPS=16,t.min=e.min||0,t.max=e.max||0,t.currentStop=0,t.lastInertiaPos=0,t.stops=t.conf.stops,t.disabled=t.conf.disabled,t.wayPoints=t.conf.wayPoints,t.inertiaFn=ne.easePolyOut,t.targetWayPointIndex=0,this._detectCurrentSnap()}var t=e.prototype;return t.updateConf=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},t.startMove=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},t.hold=function(e){var t,n=this._,r=void 0!==n.lastHoldPos?e-n.lastHoldPos:0,o=Date.now()/1e3,a=o-n.baseTS,i=e,s=r/a;if(n.lastHoldPos=e,n.lastBaseTs||(n.lastBasePos=e,n.lastBaseTs=n.baseTS),a<.003||((s<=0&&n.lastVelocity>0||s>=0&&n.lastVelocity<0||oe(s)<oe(.2*n.lastVelocity))&&o-n.lastBaseTs>.15?(n.lastBasePos=e,n.lastBaseTs=o,n.lastVelocity=0,n.lastIVelocity=0,n.baseTS=o,n.targetDist=0,n.lastInertiaPos=0):s<=0&&n.lastVelocity>0||s>=0&&n.lastVelocity<0||oe(s)<oe(.2*n.lastVelocity)||(n.lastIVelocity=s,n.lastVelocity=(i-n.lastBasePos)/(o-n.lastBaseTs),n.baseTS=o,n.targetDist=0,n.lastInertiaPos=0,n.targetWayPoint=void 0,n.targetWayPointIndex=void 0)),n.conf.bounds&&(i>n.max?i=n.max:i<n.min&&(i=n.min)),n.conf.shouldLoop)for(;t=n.conf.shouldLoop(i,r);)i+=t;n.pos=i},t.release=function(){var e=this._;re(e.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=ae(Math.log(.05/oe(e.lastVelocity))/Math.log(.9)),e.loopsVelSum=(Math.pow(.9,e.loopsTarget)-oe(e.lastVelocity))/(.9-1),e.targetDist=e.loopsVelSum*e.refFPS*t/1e3||0,e.targetDuration=oe(e.loopsTarget*e.refFPS*t)||0)}(e),e.lastHoldPos=void 0,e.lastBasePos=void 0,e.lastBaseTs=void 0,e.holding=!1,e.conf.bounds&&e.conf.snapToBounds&&(e.pos+e.targetDist>e.max?(e.targetDist=e.max-e.pos,e.targetDuration=oe(10*e.targetDist)):e.pos+e.targetDist<e.min&&(e.targetDist=e.min-e.pos,e.targetDuration=oe(10*e.targetDist))),e.targetDuration||(e.targetDuration=50),this.active=!0,e.inertia=!0,e.lastInertiaPos=0,e.inertiaStartTm=e.inertiaLastTm=Date.now(),this._doSnap(null,500),null==e.conf.willEnd||e.conf.willEnd(e.targetDist+e.pos,e.targetDist,e.targetDuration)},t.update=function(e){void 0===e&&(e=Date.now());var t,n,r=this._,o=r.inertiaFn((e-r.inertiaStartTm)/r.targetDuration)*r.targetDist;if(!r.inertia)return r.pos;var a=o-r.lastInertiaPos;if(r.lastInertiaPos=o,e-r.inertiaStartTm>=r.targetDuration&&(r.inertia=this.active=!1,r.lastInertiaPos=a=0,r.targetDist=0,r.targetWayPoint&&(a=r.targetWayPoint.at-r.pos,r.currentWayPoint=r.targetWayPoint,r.currentWayPointIndex=r.targetWayPointIndex,r.targetWayPoint=null,r.targetWayPointIndex=null),r.conf.onStop&&r.conf.onStop(r.pos,r.currentWayPoint),r.conf.onSnap&&r.conf.onSnap(r.currentWayPointIndex,r.currentWayPoint)),a=a||0,t=r.pos+a,r.conf.shouldLoop)for(;n=r.conf.shouldLoop(t,a);)t+=n,r.inertia;return r.pos=t,t},t.setPos=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 n,r=e;n=t.conf.shouldLoop(r,t.pos-e);)r+=n;e=r}t.pos=e,t.conf.bounds&&(t.pos=se(t.pos,t.min),t.pos=ie(t.pos,t.max))},t.setWayPoints=function(e){this._.wayPoints=e,this._detectCurrentSnap()},t.teleport=function(e){var t=this._;if(!t.inertia)return t.pos+=e;t.pos+=e},t.dispatch=function(e,t){void 0===t&&(t=500);var n=this._,r=Date.now();this.active=!0,n.inertia&&re(e)===re(n.targetDist)?(n.targetDist+=e,n.targetDuration+=t/2):(n.inertia=!0,n.lastInertiaPos=0,n.inertiaStartTm=n.inertiaLastTm=r,n.targetDist=e,n.targetDuration=t),n.conf.bounds&&(n.pos+n.targetDist>n.max?(n.targetDist=n.max-n.pos,n.targetDuration=oe(10*n.targetDist)):n.pos+n.targetDist<n.min&&(n.targetDist=n.min-n.pos,n.targetDuration=oe(10*n.targetDist))),this._doSnap(re(e),750)},t._detectCurrentSnap=function(){var e,t=this._,n=t.pos;if(t.wayPoints&&t.wayPoints.length)for(e=0;e<t.wayPoints.length;e++)if(le(t.wayPoints[e].at)===le(n))return t.currentWayPoint=t.wayPoints[e],t.currentWayPointIndex=e,e},t._doSnap=function(e,t){void 0===t&&(t=2e3);var n,r,o,a,i=this._,s=i.targetDist+(i.pos-(i.lastInertiaPos||0)),l=0;if(i.wayPoints&&i.wayPoints.length){if(i.conf.shouldLoop)for(;a=i.conf.shouldLoop(s,0);)s+=a,l+=a;for(o=0;o<i.wayPoints.length&&!(i.wayPoints[o].at>s);o++);if(o===i.wayPoints.length?o--:0===o?o=0:(r=(i.wayPoints[o].at-i.wayPoints[o-1].at)/2,r=i.wayPoints[o-1].at+r*((i.wayPoints[o].gravity||1)/(i.wayPoints[o-1].gravity||1)),e?e<0&&o--:s<r&&o--),i.conf.maxJump&&te.number(i.currentWayPointIndex)){var u=o-i.currentWayPointIndex;oe(u)>i.conf.maxJump&&(o=i.currentWayPointIndex+re(u)*i.conf.maxJump)}n=i.wayPoints[o].at,i.conf.willSnap&&i.conf.willSnap(o,i.wayPoints[o]),i.lastInertiaPos=i.lastInertiaPos||0,n=n-(i.pos-i.lastInertiaPos)-l,i.targetDuration=se(50,ie(t,oe(i.targetDuration/i.targetDist*n)))||0,i.targetDist=n,i.targetWayPoint=i.wayPoints[o],i.targetWayPointIndex=o}else n=~~(i.pos-i.lastInertiaPos),i.conf.infinite||(n>i.max?(n=i.max-n,i.targetDuration=ie(t,oe(i.targetDuration/i.targetDist*n)),i.targetDist=n):n<i.min&&(n=i.min-n,i.targetDuration=ie(t,oe(i.targetDuration/i.targetDist*n)),i.targetDist=n))},t.setBounds=function(e,t){var n=this._;n.min=e,n.max=t},t.isInbound=function(e){var t=this._,n=void 0!==t.lastHoldPos?e-t.lastHoldPos:0,r=(t.targetDist||0)+(t.pos-(t.lastInertiaPos||0))+n;return r>=t.min&&r<=t.max},e}();ue.config={bounds:!0,snapToBounds:!0};var ce,pe,fe=new Function("try {return this===window;}catch(e){ return false;}")(),de=h().array,he=[],ge=function e(){var t=0,n=Date.now(),r=n-pe;for(pe=n;t<he.length;t++)he[t].cpos=Math.min(r+he[t].cpos,he[t].duration),he[t].apply(he[t].cpos,he[t].duration),he[t].cpos==he[t].duration&&(he[t].cb&&setTimeout(he[t].cb),he.splice(t,1),t--);he.length?setTimeout(e,16):ce=!1},me=function(e){function t(t){var n;(n=e.apply(this,arguments)||this).axes={},n._scrollWatcherByAxis={},n._updateNodeInertia=function(){var e,t=n._,r=t.activeInertia.length;n._inertiaRaf&&cancelAnimationFrame(n._inertiaRaf);for(var o=0;r>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--,r--);n._inertiaRaf=0!==r?requestAnimationFrame(n._updateNodeInertia):null},n._swap={};var r=n._={refs:{},muxByTarget:{}};return r.box={x:100,y:100,z:800},n.__isTweener=!0,r._rafLoop=n._rafLoop.bind(x()(n)),r.rootRef=n.props.forwardedRef||i().createRef(),r.options=c()({maxClickTm:200,maxClickOffset:5},t.tweenerOptions||{}),r.tweenRefCSS={},r.tweenRefs={},r.tweenRefMaps={},r.iMapOrigin={},r.tweenRefInitialData={},r.tweenEnabled=!0,r.tweenRefOrigin={},r.tweenRefOriginCss={},r.muxDataByTarget=r.muxDataByTarget||{},r.tweenRefDemuxed=r.tweenRefDemuxed||{},r.tweenRefTargets=r.tweenRefTargets||[],r.runningAnims=r.runningAnims||[],r.scrollHook=[],r.activeInertia=[],fe&&window.addEventListener("resize",n._.onResize=function(e){var t,o;n._updateBox(),n._updateTweenRefs(),null==(t=r.rootRef)||null==(o=t.current)||null==o.windowDidResize||o.windowDidResize(e)}),n}o()(t,e);var n=t.prototype;return n.tweenRef=function(e,t,n,r,o,a){void 0===t&&(t={}),void 0===n&&(n={});var i=this._,s={},u={};return i.tweenRefs[e]||i.tweenRefTargets.push(e),i.tweenRefs[e]&&(a||i.iMapOrigin[e]!==n&&!l()(n,i.iMapOrigin[e])||i.tweenRefOriginCss[e]!==t&&!l()(t,i.tweenRefOriginCss[e]))?(i.iMapOrigin[e]=n,i.tweenRefOriginCss[e]=t,t=t||{},n=n||{},t=c()({},t,H(n,s,u,i.muxDataByTarget[e],i.muxByTarget[e],!1,!0)),Object.keys(i.tweenRefOrigin[e]).forEach((function(t){return i.tweenRefMaps[e][t]-=i.tweenRefOrigin[e][t]})),Object.keys(u).forEach((function(t){return i.tweenRefMaps[e][t]=h().number(i.tweenRefMaps[e][t])?i.tweenRefMaps[e][t]:u[t]})),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]+=s[t]})),Object.keys(i.tweenRefOrigin[e]).forEach((function(t){N(0,t,i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxDataByTarget[e],i.muxByTarget[e])})),i.tweenRefOrigin[e]=c()({},s),z(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box),this._updateTweenRef(e,!0)):i.tweenRefs[e]?z(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box):(i.iMapOrigin[e]=n,t=t||{},n=n||{},i.tweenRefs[e]=!0,i.muxByTarget[e]=i.muxByTarget[e]||{},i.muxDataByTarget[e]=i.muxDataByTarget[e]||{},i.tweenRefOriginCss[e]=t,i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},i.tweenRefOrigin[e]?(t=c()({},t,H(n,s,u,i.muxDataByTarget[e],i.muxByTarget[e],!1,!0)),Object.keys(u).forEach((function(t){return i.tweenRefMaps[e][t]=h().number(i.tweenRefMaps[e][t])?i.tweenRefMaps[e][t]-u[t]:0})),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]+=s[t]}))):(t=c()({},t,H(n,s,u,i.muxDataByTarget[e],i.muxByTarget[e])),s=Object.assign({},u,s||{}),Object.keys(s).forEach((function(t){return i.tweenRefMaps[e][t]=(i.tweenRefMaps[e][t]||0)+s[t]}))),i.tweenRefOrigin[e]=c()({},s),i.tweenRefCSS[e]=t,z(s=i.tweenRefMaps[e],t,i.muxByTarget[e],i.muxDataByTarget[e],i.box)),o?{style:c()({},i.tweenRefCSS[e])}:{style:c()({},i.tweenRefCSS[e]),ref:function(t){return i.refs[e]=t}}},n.rmTweenRef=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])},n.resetTweenable=function(){for(var e=this,t=this._,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(n){e.tweenRef(n,t.tweenRefOriginCss[n],t.iMapOrigin[n],null,null,!0)})),this._updateTweenRefs()},n.updateRefStyle=function(e,t,n){var r,o=this,a=this._;return de(e)&&de(t)?e.map((function(e,r){return o.updateRefStyle(e,t[r],n)})):de(e)?e.map((function(e){return o.updateRefStyle(e,t,n)})):a.tweenRefMaps[e]?(r=H(t,a.tweenRefMaps[e],{},a.muxDataByTarget[e],a.muxByTarget[e]),Object.assign(a.tweenRefCSS[e],r),Object.assign(a.tweenRefOriginCss[e],r),z(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box),void this._updateTweenRef(e,!0)):console.warn("React-Voodoo : Can't update styles of an unknown Node id '",e,"'")},n.getTweenableRef=function(e){try{return this._.refs[e]&&w().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)}}},n.getRootNode=function(){try{return this.getTweenableRef(this._.rootRef)||this.isMountedFromHook&&this._.rootRef&&this._.rootRef.current||w().findDOMNode(this)}catch(e){return this._.rootRef&&this._.rootRef.current}},n.pushAnim=function(e,n,r){var o=this;void 0===r&&(r=!0);var a,i,s=this._,l={};if(de(e)?a=e:(a=e.anims,e.initial),a instanceof G||(a=V(a,l,this._.muxDataByTarget,this._.muxByTarget),a=new G(a,this._.tweenRefMaps),Object.keys(l).forEach((function(e){return o._.tweenRefMaps[e]&&Object.assign(o._.tweenRefMaps[e],c()({},l[e],o._.tweenRefMaps[e]))||(i=console.warn("react-voodoo : Can't find tween target ",e," in ",t.displayName)||!0)}))),!i)return new Promise((function(e){a.run(o._.tweenRefMaps,(function(){var t=o._.runningAnims.indexOf(a);-1!=t&&o._.runningAnims.splice(t,1),Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(t){N(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e],r)}))})),a.destroy(),e(a)})),o._.runningAnims.push(a),o._.live||(o._.live=!0,requestAnimationFrame(o._._rafLoop=o._._rafLoop||o._rafLoop.bind(o)))})).then((function(e){return n&&n(e)}))},n.applyTweenState=function(e,t,n){var r=this,o={},a={};H(t,o,a,this._.muxDataByTarget[e],this._.muxByTarget[e],!0),Object.keys(o).map((function(t){return r._.tweenRefMaps[e][t]=(!n&&r._.tweenRefMaps[e][t]||a[t])+o[t]}))},n.initAxis=function(e,t,n){var r=this,o=t.inertia,a=t.scrollableArea,i=void 0===a?0:a,s=t.scrollableBounds,l=t.scrollableWindow,u=t.defaultPosition,p=t.scrollFirst,f=(this._,this.axes[e]),d=s,h=!n&&f?f.scrollPos:u||d&&d.min||0,g=Math.max(f&&f.scrollableArea||0,i),m=Math.max(f&&f.scrollableWindow||0,l),x=f?f.targetPos:h,v=f?f.inertia:new ue(c()({disabled:!o},o||{},{value:h})),y={scrollFirst:p,tweenAxis:f&&f.tweenAxis||[],scrollPos:h,targetPos:x,inertia:v,scrollableWindow:m,scrollableBounds:d,scrollableArea:g,scrollTo:function(t,n,o,a){return r.scrollTo(t,n,e,o,a)}};this.axes[e]=y,!o&&(v._.disabled=!0),o&&v&&!v.active&&(v._.pos=h),o&&v&&v.updateConf(o),v&&d?null==v.setBounds||v.setBounds(d.min,d.max):v&&(null==v.setBounds||v.setBounds(0,g))},n._getAxis=function(e){var t=this;void 0===e&&(e="scrollY");var n=this._;return this.axes[e]=this.axes[e]||{tweenAxis:[],scrollPos:n.options.initialScrollPos&&n.options.initialScrollPos[e]||0,targetPos:0,scrollableWindow:0,scrollableArea:0,inertia:new ue(c()({value:n.options.initialScrollPos&&n.options.initialScrollPos[e]||0},n.options.axes&&n.options.axes[e]&&n.options.axes[e].inertia||{})),scrollTo:function(n,r,o,a){return t.scrollTo(n,r,e,o,a)}},this.axes[e]},n.getAxisState=function(e){var t=this,n=(this._,{});return this.axes&&Object.keys(this.axes).forEach((function(e){return n[e]=t.axes[e].targetPos||t.axes[e].scrollPos})),n},n.getScrollPos=function(e){return void 0===e&&(e="scrollY"),this._,this.axes[e]?this.axes[e].targetPos||this.axes[e].scrollPos:0},n.scrollTo=function(e,t,n,r,o){var a=this;void 0===t&&(t=0),void 0===n&&(n="scrollY");var i=this._;return fe?new Promise((function(s,l){if(a.axes&&a.axes[n]){var u,c,p,f,d,h,g,m,x,y=a.axes[n].targetPos,w=function(e){var t,r;e=~~(1e4*e)/1e4,a.axes[n].targetPos=a.axes[n].scrollPos=e,~~e!==y&&(a.axisDidScroll(~~e,n),null==(t=i.rootRef)||null==(r=t.current)||null==r.componentDidScroll||r.componentDidScroll(~~e,n)),a._updateTweenRefs()};if(e=Math.max(0,e),e=Math.min(e,a.axes[n].scrollableArea||0),a.axes[n].targetPos=e,t)a._runScrollGoTo(n,e,t,v[r],o,w,s);else null==(u=a.axes)||null==(c=u[n])||null==(p=c.inertia)||p.setPos(e),null!=(f=a.axes)&&null!=(d=f[n])&&null!=(h=d.inertia)&&h._&&(e=null==(g=a.axes)||null==(m=g[n])||null==(x=m.inertia)?void 0:x._.pos),a.axes[n].tweenAxis.forEach((function(t){return t.goTo(e,i.tweenRefMaps,!1,o)})),w(e),s();i.live||(i.live=!0,requestAnimationFrame(i._rafLoop))}})).then((function(e){var t,r,o;null==(t=a.axes)||null==(r=t[n])||null==(o=r.inertia)||o._detectCurrentSnap()})):(console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"),Promise.resolve())},n.addScrollableAnim=function(e,t,n){var r,o=this;void 0===t&&(t="scrollY");var a,i=this._,s={},l=this._getAxis(t);return de(e)?a=e:(a=e.anims,e.length),a instanceof G||(a=V(a,s,this._.muxDataByTarget,this._.muxByTarget),(a=new G(a,i.tweenRefMaps)).initials=s,Object.keys(s).forEach((function(e){i.tweenRefOrigin[e]=i.tweenRefOrigin[e]||{},i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},Object.assign(o._.tweenRefMaps[e],c()({},s[e],o._.tweenRefMaps[e]))}))),l.tweenAxis.push(a),l.scrollPos=l.scrollPos||0,l.scrollableArea=l.scrollableArea||0,l.scrollableArea=Math.max(l.scrollableArea,a.duration),l.scrollableBounds||null==(r=l.inertia)||r.setBounds(0,l.scrollableArea),a.goTo(l.scrollPos,this._.tweenRefMaps,!1,!0),this._updateTweenRefs(),a},n.rmScrollableAnim=function(e,t){void 0===t&&(t="scrollY");var n,r,o=this._,a=this._getAxis(t),i=a.tweenAxis.indexOf(e);-1!==i&&(a.tweenAxis.splice(i,1),a.scrollableArea=Math.max.apply(Math,a.tweenAxis.map((function(e){return e.duration})).concat([0])),a.scrollableBounds||null==(r=a.inertia)||r.setBounds(0,a.scrollableArea||0),e.goTo(0,this._.tweenRefMaps,!1,!0),Object.keys(e.initials).forEach((function(t){Object.keys(e.initials[t]).forEach((function(e){N(0,e,o.tweenRefMaps[t],o.tweenRefCSS[t],o.muxDataByTarget[t],o.muxByTarget[t])}))})),delete e.initials,e.destroy(),n=!0,this._updateTweenRefs()),!n&&console.warn("react-voodoo: Axis not found : ",t)},n._runScrollGoTo=function(e,t,n,r,o,a,i){var s=this;void 0===r&&(r=function(e){return e});var l=this.axes[e].scrollPos,u=t-l;he.push({apply:function(t,n){var i,c,p,f,d,h,g,m,x,v=l+r(t/n)*u;s._.tweenEnabled&&(null==(i=s.axes)||null==(c=i[e])||null==(p=c.inertia)||p.setPos(v),null!=(f=s.axes)&&null!=(d=f[e])&&null!=(h=d.inertia)&&h._&&(v=null==(g=s.axes)||null==(m=g[e])||null==(x=m.inertia)?void 0:x._.pos),s.axes[e].tweenAxis.forEach((function(e){return e.goTo(v,s._.tweenRefMaps,!1,o)})),a&&a(v))},duration:n,cpos:0,cb:i}),ce||(ce=!0,pe=Date.now(),setTimeout(ge,16))},n.componentShouldScroll=function(){var e,t=this._;return!(t.rootRef&&t.rootRef.current&&t.rootRef.current.componentShouldScroll)||(e=t.rootRef.current).componentShouldScroll.apply(e,arguments)},n.watchAxis=function(e,t){var n=this._scrollWatcherByAxis;return n[e]=n[e]||[],n[e].push(t),function(){var r=n[e].indexOf(t);n[e].splice(r,1)}},n.axisDidScroll=function(e,t){var n=this._scrollWatcherByAxis[t],r=null==n?void 0:n.length;if(n)for(;r;)n[--r](e)},n.applyInertia=function(e,t){var n,r,o=this,a=e.inertia.update(),i=this._;this.axes[t].tweenAxis.forEach((function(e){o.axes[t].targetPos=o.axes[t].scrollPos=a,e.goTo(a,o._.tweenRefMaps)})),null==(n=i.rootRef)||null==(r=n.current)||null==r.componentDidScroll||r.componentDidScroll(a,t),this.axisDidScroll(a,t),this._updateTweenRefs(),e.inertia.active||e.inertia.holding?e.inertiaFrame=setTimeout(this.applyInertia.bind(this,e,t),33):e.inertiaFrame=null},n.isInertiaActive=function(){var e=this,t=(this._,!1);return this.axes&&Object.keys(this.axes).forEach((function(n){return t=t||e.axes[n]&&e.axes[n].inertia.active})),t},n.isAxisOut=function(e,t,n){this._;var r=this.axes&&this.axes[e],o=n?t:r&&r.scrollPos+t;return o=o&&Math.round(o),!r||(r.scrollableBounds?o<=r.scrollableBounds.min||o>=r.scrollableBounds.max:o<=0||o>=r.scrollableArea)},n._activateNodeInertia=function(e){var t=this._,n=t.activeInertia.findIndex((function(t){return t.target===e}));return-1===n&&(t.activeInertia.push({inertia:{x:new ue({max:e.scrollWidth-e.offsetLeft,value:e.scrollLeft}),y:new ue({max:e.scrollHeight-e.offsetHeight,value:e.scrollTop})},target:e}),n=t.activeInertia.length-1),t.activeInertia[n].inertia},n.setRootRef=function(e){this._.rootRef=e},n._updateBox=function(){var e=this.getRootNode();e&&(this._.box.inited=!0,this._.box.x=e.offsetWidth,this._.box.y=e.offsetHeight)},n._rafLoop=function(){this._updateTweenRefs(),this._.runningAnims.length?requestAnimationFrame(this._._rafLoop):this._.live=!1},n._updateTweenRefs=function(){if(this._.tweenEnabled)for(var e,t=0;t<this._.tweenRefTargets.length;t++)e=this._.tweenRefTargets[t],this._updateTweenRef(e)},n._updateTweenRef=function(e,t){var n,r=this._swap;if(this._.tweenRefCSS[e]&&z(this._.tweenRefMaps[e],r,this._.muxByTarget[e],this._.muxDataByTarget[e],this._.box),n=this.getTweenableRef(e)){for(var o in this._.tweenRefCSS[e])void 0===r[o]&&(n.style[o]=this._.tweenRefCSS[e][o]);for(var a in r)this._.tweenRefCSS[e].hasOwnProperty(a)&&((t||r[a]!==this._.tweenRefCSS[e][a])&&(n.style[a]=this._.tweenRefCSS[e][a]=r[a]),delete r[a])}return this._.tweenRefCSS[e]},n.componentWillUnmount=function(){var t=this;this.getRootNode(),this._.tweenEnabled&&(this._.tweenEnabled=!1,window.removeEventListener("resize",this._.onResize),Object.keys(this.axes).forEach((function(e){t.axes[e].inertiaFrame&&clearTimeout(t.axes[e].inertiaFrame)}))),e.prototype.componentWillUnmount&&e.prototype.componentWillUnmount.apply(this,arguments)},n.componentDidMount=function(){var t=this,n=this.constructor;this._.rendered=!0,this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),n.scrollableAnim&&(h().array(n.scrollableAnim)?this.addScrollableAnim(n.scrollableAnim):Object.keys(n.scrollableAnim).forEach((function(e){return t.addScrollableAnim(n.scrollableAnim[e],e)}))),e.prototype.componentDidMount&&e.prototype.componentDidMount.apply(this,arguments)},n.componentDidUpdate=function(t,n){this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),e.prototype.componentDidUpdate&&e.prototype.componentDidUpdate.apply(this,arguments)},n.render=function(){var e=this,t=this.props,n=t.BaseComponent,r=t.oProps;return i().createElement(g.Consumer,null,(function(t){return e._parentTweener=t,i().createElement(g.Provider,{value:e},i().createElement(n,c()({},r,{ref:e._.rootRef,tweener:e})))}))},t}(i().Component),xe=["children"];const ve=function(e,t){void 0===t&&(t="div");var n=i().useContext(g),r=i().useRef(),o=i().useRef(),a=i().useMemo((function(){return!0===e||h().string(e)}),[]),s=i().useMemo((function(){if(!0===e)return n;if(h().string(e)){for(var t=n;null!=(o=t)&&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 a=new me({forwardedRef:r,tweenerOptions:e});return a.isMountedFromHook=!0,a._parentTweener=n,a}),[]),l=i().useMemo((function(){return i().forwardRef((function(e,n){var o=e.children,a=f()(e,xe);return i().createElement(g.Provider,{value:s},i().createElement(t,c()({ref:n?function(e){return n.current=r.current=e}:r},a),o))}))}),[]);return i().useEffect((function(){var e;if(!a&&null!=(e=o.current)&&e._)return s.componentDidMount(),o.current=s,function(){var e;null!=(e=o.current)&&e._&&(o.current.componentWillUnmount(),o.current=null)}}),[]),i().useEffect((function(){var e;!a&&null!=(e=o.current)&&e._&&(o.current._updateBox(),o.current._updateTweenRefs())}),[r.current]),i().useEffect((function(){var e;!a&&null!=(e=o.current)&&e._&&(o.current._parentTweener=n)}),[n]),i().useEffect((function(){var t;!a&&null!=(t=o.current)&&t._&&(o.current._.options=e,o.current._updateBox(),o.current._updateTweenRefs())}),[e]),i().useMemo((function(){return[s,l]}),[l,s])},ye=function(e){e.children;var t=e.id,n=e.axe,r=void 0===n?t:n,o=e.scrollFirst,a=e.bounds,s=e.scrollableWindow,u=e.inertia,c=e.size,p=e.defaultPosition,f=e.items,d=void 0===f?[]:f,h=i().useRef({}).current,g=ve(!0)[0];return h.previousAxis&&h.previousAxis===r?h.previousInertia&&h.previousInertia===u&&h.previousBounds===a&&h.previousScrollableWindow===s||(h.previousInertia=u,h.previousAxis=r,h.previousBounds=a,h.previousScrollableWindow=s,g.initAxis(r,{inertia:u,size:c,scrollableWindow:s,defaultPosition:p,scrollFirst:o,scrollableBounds:a})):(h.previousAxis=r,h.previousInertia=u,g.initAxis(r,{inertia:u,size:c,scrollableWindow:s,defaultPosition:p,scrollFirst:o,scrollableBounds:a},!0)),h.previousTweener&&h.previousTweener===g?h.previousTweens===d||h.previousTweens&&l()(d,h.previousTweens)||(h.lastTL&&h.previousTweener&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),h.lastTL=null,d.length&&(h.lastTL=g.addScrollableAnim(d,r,c)),h.previousTweens=d):(h.previousTweener&&h.lastTL&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),d.length&&(h.lastTL=g.addScrollableAnim(d,r,c)),h.previousTweener=g,h.previousTweens=d),i().useEffect((function(){return function(){h.lastTL&&h.previousTweener&&h.previousTweener.rmScrollableAnim(h.lastTL,h.previousAxis),delete h.previousTweener,delete h.previousScrollable}}),[]),i().createElement(i().Fragment,null)},we=require("shortid");var be=n.n(we);function _e(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)}function Re(e){return function(e){return"function"==typeof e&&!!e.prototype.isReactComponent}(e)||_e(e)}var Te=["children","id","style","initial","pos","noRef","reset","tweener","isRoot","axes","refProp","tweenLines","tweenAxis"],Se=["children","className"];function Pe(e,t){return e.map((function(e){return c()({},e,{target:t})}))}var De=function(e){var t=e.children,n=e.id,r=void 0===n?i().useMemo((function(){return be().generate()}),[]):n,o=e.style,a=e.initial,s=e.pos,u=e.noRef,p=(e.reset,e.tweener),d=(e.isRoot,e.axes),g=e.refProp,m=void 0===g?"nodeRef":g,x=e.tweenLines,v=void 0===x?d:x,y=e.tweenAxis,w=void 0===y?v:y,b=f()(e,Te),_=i().useRef({}).current,R=ve(!0)[0];if(!(R=p||R))return console.error("No Voodoo tweener found in the context, is there any parent with asTweener ?"),i().createElement(i().Fragment,null);var T,S=R.tweenRef(r,t.props&&t.props.style,o||a,s,u);i().useEffect((function(){return function(){_._tweenAxisObj&&Object.keys(_._tweenAxisObj).forEach((function(e){return _._currentTweener.rmScrollableAnim(_._tweenAxisObj[e],e)})),_._currentTweener&&(_._currentTweener.rmTweenRef(_.__tweenableId),_._currentTweener.setRootRef(void 0)),delete _._currentTweener,delete _._tweenAxisObj,delete _._previousScrollable}}),[]),(T=_._tweenAxis!==w&&!(_._tweenAxis&&l()(w,_._tweenAxis))||w&&!_._tweenAxis)||_._currentTweener!==R||_._previousScrollable!==w?(_._currentTweener&&T&&_._tweenAxisObj&&Object.keys(_._tweenAxisObj).forEach((function(e){return _._currentTweener.rmScrollableAnim(_._tweenAxisObj[e],e)})),_._currentTweener&&_._currentTweener!==R&&_._currentTweener.rmTweenRef(r),T&&(_._tweenAxis=w,w&&h().array(w)?_._tweenAxisObj={scrollY:R.addScrollableAnim(Pe(w,r))}:_._tweenAxisObj=w&&Object.keys(w).reduce((function(e,t){return e[t]=R.addScrollableAnim(Pe(w[t],r),t),e}),{}),S=R.tweenRef(r,t.props&&t.props.style,o||a,s,u)),S.style=c()({},R._updateTweenRef(r,!0)),b.hasOwnProperty("isRoot")&&(_._currentTweener&&_._currentTweener.setRootRef(void 0),p.setRootRef(r)),_._currentTweener=R,_._previousScrollable=w):S&&(S.style=c()({},R._updateTweenRef(r,!0)));var P,D=i().Children.only(t);return D&&i().isValidElement(D)?(_._lastRef=S,_e(D.type)?i().createElement(D.type,c()({},b,D.props,S,{ref:void 0},((P={})[m]=S.ref,P))):i().createElement(D.type,c()({},b,D.props,S))):(console.error("Invalid voodoo Node child : ",r),i().createElement("div",null,"Invalid"))};const Me=De;De.div=function(e){var t=e.children,n=e.className,r=f()(e,Se);return i().createElement(De,r,i().createElement("div",{className:n},t))};var Ee=["children","Comp","nodeRef","items","xAxis","yAxis","yBoxRef","xBoxRef","yRef","yHook","xHook","tweener","mouseDrag","touchDrag","button"],Oe=function(e){var t=e.children,n=e.Comp,r=void 0===n?"div":n,o=e.nodeRef,a=(e.items,e.xAxis),s=e.yAxis,l=e.yBoxRef,u=e.xBoxRef,p=(e.yRef,e.yHook),d=e.xHook,g=e.tweener,m=e.mouseDrag,x=void 0!==m&&m,v=e.touchDrag,y=void 0===v||v,w=e.button,b=void 0===w?0:w,_=f()(e,Ee),R=i().useRef(),T=i().useRef({root:R,_:{}}).current,S=ve(!0)[0],P=i().useMemo((function(){return{getScrollableNodes:function(e){for(var t=[],n=T._parentTweener;n;)t.push(n),n=n._parentTweener;return t},_registerScrollListeners:function(){var e,t,n,r,o,a,i,s,l,u=null==(e=T.root)?void 0:e.current,c=T.props,p=c.xAxis,f=c.yAxis,d=c.yHook,h=c.xHook,g=c.mouseDrag,m=c.touchDrag,x=c.tweener,v=c.xBoxRef,y=c.yBoxRef,w=c.button,b=x._;u?(ee.addEvent(u,T._.dragList={dragstart:function(e,n,c){var d,h,g,m;if(!(e instanceof MouseEvent&&e.button!==w))for(o=P.getScrollableNodes(e.target),t=Date.now(),r=0,a=0,i=[],s=null==(d=(null==v?void 0:v.current)||u)?void 0:d.offsetWidth,l=null==(h=(null==y?void 0:y.current)||u)?void 0:h.offsetHeight,m=0;m<o.length;m++){var x,b;(g=o[m])._updateBox(),g.__isTweener&&(p&&(null==(x=g.axes)||x[p]),f&&(null==(b=g.axes)||b[f]),g._updateNodeInertia())}},click:function(e,n,o){e instanceof MouseEvent&&e.button!==w||t&&(t-Date.now()>b.options.maxClickTm||Math.abs(a)>b.options.maxClickOffset||Math.abs(r)>b.options.maxClickOffset)&&(e.preventDefault(),e.stopPropagation())},drag:function(e,u,c){var g,m,x,_,R,T,S,P,D,M;if(!(e instanceof MouseEvent&&e.button!==w||(r=-(c._lastPos.x-c._startPos.x),a=-(c._lastPos.y-c._startPos.y),t&&t>Date.now()-b.options.maxClickTm&&Math.abs(a)<b.options.maxClickOffset&&Math.abs(r)<b.options.maxClickOffset)))for(_=!r,P=!a,b.options.dragDirectionLock&&("Y"===n||!n&&Math.abs(.5*a)>Math.abs(r)?(n="Y",r=0):("X"===n||!n&&Math.abs(.5*r)>Math.abs(a))&&(n="X",a=0)),M=0;M<o.length;M++)if((g=o[M]).__isTweener){var E,O,A,B,C,k,L,I,W,j,F,N,z,H;if(m=p&&(null==(E=g.axes)?void 0:E[p]),T=f&&(null==(O=g.axes)?void 0:O[f]),!m&&!T)continue;i[M]||(i[M]={x:null==(L=m)?void 0:L.scrollPos,y:null==(I=T)?void 0:I.scrollPos},null==(W=m)||null==(j=W.inertia)||j.startMove(),null==(F=T)||null==(N=F.inertia)||N.startMove(),p&&m&&(null==(z=m)||!z.inertiaFrame)&&g.applyInertia(m,p),f&&T&&(null==(H=T)||!H.inertiaFrame)&&g.applyInertia(T,f)),m&&(R=null!=v&&v.current?s:g._.box.x,x=r&&r/R*(m.scrollableWindow||m.scrollableArea)||0,h&&(x=h(x))),T&&(D=null!=y&&y.current?l:g._.box.y,S=a&&a/D*(T.scrollableWindow||T.scrollableArea)||0,d&&(S=d(S))),m&&!_&&x&&null!=(A=m)&&null!=(B=A.inertia)&&B.isInbound(i[M].x+x)&&g.componentShouldScroll(p,x)&&(m.inertia.hold(i[M].x+x),_=!0),T&&!P&&S&&null!=(C=T)&&null!=(k=C.inertia)&&k.isInbound(i[M].y+S)&&g.componentShouldScroll(f,S)&&(T.inertia.hold(i[M].y+S),P=!0)}},dropped:function(e,s,l){var u,c;if(!(e instanceof MouseEvent&&e.button!==w)){for(n=void 0,c=0;c<o.length;c++){var d,h,g,m,x,v;(u=o[c]).__isTweener&&i[c]&&(null==(d=u.axes)||null==(h=d[p])||null==(g=h.inertia)||g.release(),null==(m=u.axes)||null==(x=m[f])||null==(v=x.inertia)||v.release())}!t||t>Date.now()-b.options.maxClickTm&&Math.abs(a)<b.options.maxClickOffset&&Math.abs(r)<b.options.maxClickOffset||(e.stopPropagation(),e.cancelable&&e.preventDefault()),o=i=null}}},null,b.options.enableMouseDrag||g,m),T._.doRegister=!!u):T._.doRegister=!0}}}),[]);return i().useEffect((function(){return P._registerScrollListeners(),function(){var e,t=null==(e=T.root)?void 0:e.current;T._.scrollEnabled&&(T._.scrollEnabled=!1,t&&T._.dragList&&ee.removeEvent(t,T._.dragList))}}),[]),i().useEffect((function(){h().function(o)&&o(R.current)})),T.props={xAxis:a,yAxis:s,yHook:p,xHook:d,mouseDrag:x,touchDrag:y,tweener:g||S,xBoxRef:u,yBoxRef:l,button:b},T._parentTweener=S,i().createElement(r,c()({ref:R},_),t)};const Ae=Oe;Oe.div=function(e){return i().createElement(Oe,e)};const Be=function(){return i().useContext(g)};var Ce={}.constructor;function ke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(!t[0]||Re(t[0]))&&t.shift(),o=(!t[0]||t[0]instanceof Ce)&&t.shift()||{};if(!r)return function(e){return ke(e,o)};o=c()({wheelRatio:5,maxClickTm:200,maxClickOffset:20},o);var a=i().forwardRef((function(e,t){return i().createElement(me,{oProps:e,forwardedRef:t,BaseComponent:r,tweenerOptions:o})}));return a.displayName=String.fromCharCode(55358,56793)+(r.displayName||r.name),a}var Le,Ie={}.constructor;function We(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(!t[0]||Re(t[0]))&&t.shift(),a=(!t[0]||t[0]instanceof Ie)&&t.shift()||{};if(!r||!(r.prototype instanceof i().Component||r===i().Component))return function(e){return We(e,a)};var s=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){var e=this;return i().createElement(g.Consumer,null,(function(t){return i().createElement(r,c()({},e.props,{tweener:t,ref:e.props.forwardedRef}))}))},t}(i().Component);s.displayName=r.displayName||r.name;var l=i().forwardRef((function(e,t){return i().createElement(s,c()({},e,{forwardedRef:t}))}));return l.displayName=s.displayName,l}var je=ke(Le=function(e){function t(){return e.apply(this,arguments)||this}return o()(t,e),t.prototype.render=function(){return this.props.children},t}(i().Component))||Le;const Fe={tweener:ke,child:We,useTweener:Be,useVoodoo:ve,hook:ve,tools:e,Draggable:Ae,Component:je,Node:Me,Context:g,Axis:ye,dom:ee}})(),module.exports=r})();
3
3
  //# sourceMappingURL=react-voodoo.js.map
@@ -1,27 +1,12 @@
1
1
  /*!
2
- * MIT License
2
+ * Copyright (c) 2022-2023 Braun Nathanael
3
3
  *
4
- * Copyright (c) 2020 Braun Nathanael
4
+ * This project is dual licensed under one of the following licenses:
5
+ * - Creative Commons Attribution-NoDerivatives 4.0 International License.
6
+ * - GNU AFFERO GENERAL PUBLIC LICENSE Version 3
5
7
  *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
8
+ * You should have received a copy of theses licenses along with this work.
9
+ * If not, see <http://creativecommons.org/licenses/by-nd/4.0/> or <http://www.gnu.org/licenses/agpl-3.0.txt>.
23
10
  */
24
11
 
25
- //!(pos >= _.min && pos <= _.max) && console.warn("out", _.pos, pos, delta);
26
12
 
27
- //!_.tweenRefCSS[id] &&