react-voodoo 2.5.6 → 2.5.8
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.AGPL-3.0.MD +660 -660
- package/dist/react-voodoo.js +1996 -2
- package/package.json +1 -1
- package/readme.md +1 -3
package/dist/react-voodoo.js
CHANGED
@@ -1,3 +1,1997 @@
|
|
1
1
|
/*! For license information please see react-voodoo.js.LICENSE.txt */
|
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,kE:()=>l,fi:()=>u,Rx:()=>c,bC:()=>p});var r={},o=n(450).walknSetExport;o(r,"any",n(582)),o(r,"bool",n(584)),o(r,"color",n(192)),o(r,"multi",n(822)),o(r,"ratio",n(425)),o(r,"length",n(231)),o(r,"number",n(277)),o(r,"shadow",n(940));var a=r.any,i=r.bool,s=r.color,l=r.length,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"],multiple:!0},marginBottom:{types:["length"]},marginLeft:{types:["length"]},marginRight:{types:["length"]},marginTop:{types:["length"]},padding:{properties:["paddingTop","paddingRight","paddingBottom","paddingLeft"],multiple:!0},paddingBottom:{types:["length"]},paddingLeft:{types:["length"]},paddingRight:{types:["length"]},paddingTop:{types:["length"]},bottom:{types:["length-percentage-calc"]},left:{types:["length-percentage-calc"]},right:{types:["length-percentage-calc"]},top:{types:["length-percentage-calc"]},zIndex:{types:["integer"]},width:{types:["length-percentage-calc"]},maxWidth:{types:["length-percentage-calc"]},minWidth:{types:["length-percentage-calc"]},height:{types:["length-percentage-calc"]},maxHeight:{types:["length-percentage-calc"]},minHeight:{types:["length-percentage-calc"]},lineHeight:{types:["length"]},verticalAlign:{types:["length"]},visibility:{types:["visibility"]},borderSpacing:{types:["length"],multiple:!0},color:{types:["color"]},opacity:{types:["number"]},backgroundColor:{types:["color"]},backgroundPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},backgroundSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},border:{properties:["borderStyle","borderWidth","borderColor"]},borderBottom:{properties:["borderBottomStyle","borderBottomWidth","borderBottomColor"]},borderLeft:{properties:["borderLeftStyle","borderLeftWidth","borderLeftColor"]},borderRight:{properties:["borderRightStyle","borderRightWidth","borderRightColor"]},borderTop:{properties:["borderTopStyle","borderTopWidth","borderTopColor"]},borderColor:{properties:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderWidth:{properties:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"]},borderBottomColor:{types:["color"]},borderLeftColor:{types:["color"]},borderRightColor:{types:["color"]},borderTopColor:{types:["color"]},borderBottomWidth:{types:["length"]},borderLeftWidth:{types:["length"]},borderRightWidth:{types:["length"]},borderTopWidth:{types:["length"]},borderRadius:{properties:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},borderTopLeftRadius:{types:["length-percentage-calc"],multiple:!0},borderTopRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomLeftRadius:{types:["length-percentage-calc"],multiple:!0},boxShadow:{types:["shadow-list"]},caretColor:{types:["color"]},outline:{properties:["outlineColor","outlineWidth"]},outlineColor:{types:["color"]},outlineWidth:{types:["length"]},outlineOffset:{types:["length"]},flex:{properties:["flexGrow","flexShrink","flexBasis"]},flexGrow:{types:["number"]},flexShrink:{types:["number"]},flexBasis:{types:["length-percentage-calc"]},order:{types:["integer"]},font:{properties:["fontWeight","fontStretch","fontSize","lineHeight"]},fontWeight:{types:["font-weight"]},fontStretch:{types:["font-stretch"]},fontSize:{types:["length"]},fontSizeAdjust:{types:["number"]},gridTemplateColumns:{types:["length-percentage-calc"],multiple:!0},gridTemplateRows:{types:["length-percentage-calc"],multiple:!0},gridTemplate:{properties:["gridTemplateRows","gridTemplateColumns"]},grid:{properties:["gridTemplateRows","gridTemplateColumns"]},gridRowGap:{types:["length-percentage-calc"]},gridColumnGap:{types:["length-percentage-calc"]},gridGap:{properties:["gridRowGap","gridColumnGap"]},clip:{types:["rectangle"]},clipPath:{types:["basic-shape"]},mask:{properties:["maskPosition","maskSize"]},maskPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},maskSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},shapeOutside:{types:["basic-shape"]},shapeMargin:{types:["length-percentage-calc"]},shapeImageThreshold:{types:["number"]},scrollPadding:{properties:["scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft"]},scrollPaddingTop:{types:["length-percentage-calc"]},scrollPaddingRight:{types:["length-percentage-calc"]},scrollPaddingBottom:{types:["length-percentage-calc"]},scrollPaddingLeft:{types:["length-percentage-calc"]},scrollPaddingBlock:{properties:["scrollPaddingBlockStart","scrollPaddingBlockEnd"]},scrollPaddingBlockStart:{types:["length-percentage-calc"]},scrollPaddingBlockEnd:{types:["length-percentage-calc"]},scrollPaddingInline:{properties:["scrollPaddingInlineStart","scrollPaddingInlineEnd"]},scrollPaddingInlineStart:{types:["length-percentage-calc"]},scrollPaddingInlineEnd:{types:["length-percentage-calc"]},scrollSnapMargin:{properties:["scrollSnapMarginTop","scrollSnapMarginRight","scrollSnapMarginBottom","scrollSnapMarginLeft"]},scrollSnapMarginTop:{types:["length"]},scrollSnapMarginRight:{types:["length"]},scrollSnapMarginBottom:{types:["length"]},scrollSnapMarginLeft:{types:["length"]},scrollSnapMarginBlock:{properties:["scrollSnapMarginBlockStart","scrollSnapMarginBlockEnd"]},scrollSnapMarginBlockStart:{types:["length"]},scrollSnapMarginBlockEnd:{types:["length"]},scrollSnapMarginInline:{properties:["scrollSnapMarginInlineStart","scrollSnapMarginInlineEnd"]},scrollSnapMarginInlineStart:{types:["length"]},scrollSnapMarginInlineEnd:{types:["length"]},textDecoration:{properties:["textDecorationColor"]},textDecorationColor:{types:["color"]},textEmphasis:{properties:["textEmphasisColor"]},textEmphasisColor:{types:["color"]},textShadow:{types:["shadow-list"]},columns:{properties:["columnWidth","columnCount"]},columnWidth:{types:["length"]},columnCount:{types:["integer"]},columnGap:{types:["length-percentage-calc"]},columnRule:{properties:["columnRuleColor","columnRuleWidth"]},columnRuleColor:{types:["color"]},columnRuleWidth:{types:["length"]},letterSpacing:{types:["length"]},tabSize:{types:["length"]},textIndent:{types:["length-percentage-calc"]},wordSpacing:{types:["length-percentage-calc"]},transform:{types:["transform"]},transformOrigin:{types:["length-percentage-calc"],multiple:!0},perspective:{types:["length"]},perspectiveOrigin:{types:["length-percentage-calc"],multiple:!0}},o=["","deg","box","bz","bh","bw","deg","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"],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){if(r[e]=r[e]||[],!i().array(t)&&!i().object(t))return console.warn("React-Voodoo: Ignore unexpected value ",e,":",t," on ",n),d;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={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}},231:(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},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";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}},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:()=>we,Component:()=>Fe,Context:()=>g,Draggable:()=>Be,Node:()=>Me,child:()=>je,default:()=>Ne,dom:()=>te,hook:()=>ye,tools:()=>e,tweener:()=>Ie,useTweener:()=>ke,useVoodoo:()=>ye});var e={};n.r(e),n.d(e,{addCss:()=>M,cssAdd:()=>_,cssMult:()=>R,extractCss:()=>A,offset:()=>T,re_cssValueWithUnit:()=>b,reverse:()=>E,scale:()=>S,shiftTransforms:()=>k,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 E(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 D={transform:!0,filter:!0,textShadow:!0,boxShadow:!0};function M(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)&&(D[a]?(e[a]||(e[a]=[]),h().array(o[a])?M(e[a],o[a]):M(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])?M(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&&M.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){M(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 k(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 C=n(259),I={},L=n(450).walknSetExport;L(I,"filter",n(111)),L(I,"boxShadow",n(39)),L(I,"transform",n(374)),L(I,"textShadow",n(178)),L(I,"backgroundColor",n(38));const W=I;var j=n(227),F=c()({},W,{height:j.kE,width:j.kE,top:j.kE,left:j.kE,right:j.kE,bottom:j.kE,marginTop:j.kE,marginLeft:j.kE,marginRight:j.kE,marginBottom:j.kE,paddingTop:j.kE,paddingLeft:j.kE,paddingRight:j.kE,paddingBottom:j.kE,borderRadius:j.kE,borderTopColor:j.$_,borderLeftColor:j.$_,borderRightColor:j.$_,borderBottomColor:j.$_,borderTopWidth:j.kE,borderLeftWidth:j.kE,borderRightWidth:j.kE,borderBottomWidth:j.kE,transformOrigin:(0,j.fi)(2),zIndex:j.Rx,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,C.JO)(t,e[t])?(0,C._j)(t)?(0,C.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=C.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"length-percentage-calc":return j.kE;case"number":case"integer":return j.Rx;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&&M(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,$=n.n(Y),G=[],U=function(e){function t(t,n){var r;if(G.length){var o=G.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.__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,G.push(this)},t}($()),Z=n(73),J="undefined"!=typeof window,K=(J&&(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)),J?{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:""}),Q={onPageHided:[],onPageShown:[],dragging:[],dragEnabled:[],dragEnabledDesc:[],fingers:{},nbFingers:0,dragstartAnywhere:function(e){var t,n,r,o=Q,a=o.dragEnabled.indexOf(this),i=[];if(-1!==a){o.nbFingers||(ee.addEvent(document,{touchmove:o.dragAnywhere,mousemove:o.dragAnywhere,touchend:o.dropAnywhere,mouseup:o.dropAnywhere}),ee.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"==K.prefix?n.x:n.pageX,r._startPos.y="MS"==K.prefix?n.y:n.pageY,r._startTs=e.timeStamp,r._lastPos.x="MS"==K.prefix?n.x:n.pageX,r._lastPos.y="MS"==K.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=Q,i=[];Q.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"==K.prefix?n.x:n.pageX,void(a._lastPos.y=a._startPos.y="MS"==K.prefix?n.y:n.pageY);for(a._lastPos.x="MS"==K.prefix?n.x:n.pageX,a._lastPos.y="MS"==K.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){Q.preventNextClick&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),Q.preventNextClick=!1),ee.removeEvent(this,{click:this.dropWithoutClick})},dropAnywhere:function(e){var t,n,r,o=this,a=Q,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"==K.prefix?n.x:n.pageX,a._lastPos.y="MS"==K.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||ee.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:[]}),ee.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),ee.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 !!")}},ee={addEvent:function(e,t,n,r,o,a){if(void 0===o&&(o=!0),Z.object(t))for(var i in t)t.hasOwnProperty(i)&&t[i]&&this.addEvent(e,i,t[i],r,o,a);else"dragstart"===t?Q.getDraggable(e,r,o).dragstart.push([n]):"drag"===t?Q.getDraggable(e,r,o).drag.push([n]):"dropped"===t?Q.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(Z.object(t))for(var i in t)t.hasOwnProperty(i)&&this.removeEvent(e,i,t[i],r);else/^(drag|drop)/.test(t)?(a=Q.getDraggable(e),Q.rmDragFn(a[t],n,r),a.dragstart.length||a.drag.length||a.dragEnd.length||a.dropped.length||Q.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 te=ee;var ne=n(73),re=n(367),oe=function(e){return"number"==typeof e?e?e<0?-1:1:e==e?e:NaN:NaN},ae=Math.abs,ie=Math.floor,se=(Math.round,Math.min),le=Math.max,ue=function(e){return void 0===e&&(e=0),e.toFixed(3)},ce=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,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||ae(s)<ae(.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||ae(s)<ae(.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._;oe(e.lastVelocity),this.holding=!1,function(e){var t=oe(e.lastVelocity);e.disabled?(e.loopsTarget=0,e.loopsVelSum=0,e.targetDist=0,e.targetDuration=0):(e.loopsTarget=ie(Math.log(.05/ae(e.lastVelocity))/Math.log(.9)),e.loopsVelSum=(Math.pow(.9,e.loopsTarget)-ae(e.lastVelocity))/(.9-1),e.targetDist=e.loopsVelSum*e.refFPS*t/1e3||0,e.targetDuration=ae(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=ae(10*e.targetDist)):e.pos+e.targetDist<e.min&&(e.targetDist=e.min-e.pos,e.targetDuration=ae(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=le(t.pos,t.min),t.pos=se(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&&oe(e)===oe(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=ae(10*n.targetDist)):n.pos+n.targetDist<n.min&&(n.targetDist=n.min-n.pos,n.targetDuration=ae(10*n.targetDist))),this._doSnap(oe(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(ue(t.wayPoints[e].at)===ue(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&&ne.number(i.currentWayPointIndex)){var u=o-i.currentWayPointIndex;ae(u)>i.conf.maxJump&&(o=i.currentWayPointIndex+oe(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=le(50,se(t,ae(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=se(t,ae(i.targetDuration/i.targetDist*n)),i.targetDist=n):n<i.min&&(n=i.min-n,i.targetDuration=se(t,ae(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}();ce.config={bounds:!0,snapToBounds:!0};var pe,fe,de=new Function("try {return this===window;}catch(e){ return false;}")(),he=h().array,ge=[],me=function e(){var t=0,n=Date.now(),r=n-fe;for(fe=n;t<ge.length;t++)ge[t].cpos=Math.min(r+ge[t].cpos,ge[t].duration),ge[t].apply(ge[t].cpos,ge[t].duration),ge[t].cpos==ge[t].duration&&(ge[t].cb&&setTimeout(ge[t].cb),ge.splice(t,1),t--);ge.length?setTimeout(e,16):pe=!1},xe=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=[],de&&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,i){void 0===t&&(t={}),void 0===n&&(n={});var s=this._,u={},p={};return s.tweenRefs[e]||s.tweenRefTargets.push(e),!s.tweenRefs[e]||!i&&s.iMapOrigin[e]===n&&l()(n,s.iMapOrigin[e])&&s.tweenRefOriginCss[e]===t&&l()(t,s.tweenRefOriginCss[e])?s.tweenRefs[e]?z(s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxByTarget[e],s.muxDataByTarget[e],s.box):(s.iMapOrigin[e]=n,t=t||{},n=n||{},s.tweenRefs[e]=!0,s.muxByTarget[e]=s.muxByTarget[e]||{},s.muxDataByTarget[e]=s.muxDataByTarget[e]||{},s.tweenRefOriginCss[e]=t,s.tweenRefMaps[e]=s.tweenRefMaps[e]||{},s.tweenRefOrigin[e]?(t=c()({},t,H(n,u,p,s.muxDataByTarget[e],s.muxByTarget[e],!1,!0)),Object.keys(p).forEach((function(t){return s.tweenRefMaps[e][t]=h().number(s.tweenRefMaps[e][t])?s.tweenRefMaps[e][t]-p[t]:0})),Object.keys(u).forEach((function(t){return s.tweenRefMaps[e][t]+=u[t]}))):(t=c()({},t,H(n,u,p,s.muxDataByTarget[e],s.muxByTarget[e])),u=Object.assign({},p,u||{}),Object.keys(u).forEach((function(t){return s.tweenRefMaps[e][t]=(s.tweenRefMaps[e][t]||0)+u[t]}))),s.tweenRefOrigin[e]=c()({},u),s.tweenRefCSS[e]=t,z(u=s.tweenRefMaps[e],t,s.muxByTarget[e],s.muxDataByTarget[e],s.box)):(s.iMapOrigin[e]=n,s.tweenRefOriginCss[e]=t,t=t||{},n=n||{},t=c()({},t,H(n,u,p,s.muxDataByTarget[e],s.muxByTarget[e],!1,!0)),Object.keys(s.tweenRefOrigin[e]).forEach((function(t){return s.tweenRefMaps[e][t]-=s.tweenRefOrigin[e][t]})),Object.keys(p).forEach((function(t){return s.tweenRefMaps[e][t]=h().number(s.tweenRefMaps[e][t])?s.tweenRefMaps[e][t]:p[t]})),Object.keys(u).forEach((function(t){return s.tweenRefMaps[e][t]+=u[t]})),Object.keys(s.tweenRefOrigin[e]).forEach((function(t){N(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e])})),Object.keys(s.tweenRefCSS[e]).forEach((function(n){!s.tweenRefCSS[e][n]||s.muxByTarget[e][n]||t[n]||delete s.tweenRefCSS[e][n]})),Object.keys(t).forEach((function(n){s.tweenRefCSS[e][n]===t[n]||s.muxByTarget[e][n]||(s.tweenRefCSS[e][n]=t[n])})),s.tweenRefOrigin[e]=c()({},u),z(s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxByTarget[e],s.muxDataByTarget[e],s.box),this._updateTweenRef(e,!0)),a?{style:c()({},s.tweenRefCSS[e])}:{style:c()({},s.tweenRefCSS[e]),ref:h().function(o)?function(t){return s.refs[e]=o(t)}:o?function(t){return s.refs[e]=o.current=t}:function(t){return s.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,null,!0)})),this._updateTweenRefs()},n.updateRefStyle=function(e,t,n){var r,o=this,a=this._;return he(e)&&he(t)?e.map((function(e,r){return o.updateRefStyle(e,t[r],n)})):he(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(he(e)?a=e:(a=e.anims,e.initial),a instanceof U||(a=V(a,l,this._.muxDataByTarget,this._.muxByTarget),a=new U(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 ce(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 ce(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 de?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 he(e)?a=e:(a=e.anims,e.length),a instanceof U||(a=V(a,s,this._.muxDataByTarget,this._.muxByTarget),(a=new U(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;ge.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}),pe||(pe=!0,fe=Date.now(),setTimeout(me,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 ce({max:e.scrollWidth-e.offsetLeft,value:e.scrollLeft}),y:new ce({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),ve=["children"];const ye=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 xe({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,ve);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])},we=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=ye(!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)},be=require("shortid");var _e=n.n(be);function Re(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)}function Te(e){return function(e){return"function"==typeof e&&!!e.prototype.isReactComponent}(e)||Re(e)}var Se=["children","id","style","initial","pos","noRef","reset","tweener","isRoot","axes","refProp","tweenLines","tweenAxis"],Pe=["children","className"];function Ee(e,t){return e.map((function(e){return c()({},e,{target:t})}))}var De=i().forwardRef((function(e,t){var n=e.children,r=e.id,o=void 0===r?i().useMemo((function(){return _e().generate()}),[]):r,a=e.style,s=e.initial,u=e.pos,p=e.noRef,d=(e.reset,e.tweener),g=(e.isRoot,e.axes),m=e.refProp,x=void 0===m?"nodeRef":m,v=e.tweenLines,y=void 0===v?g:v,w=e.tweenAxis,b=void 0===w?y:w,_=f()(e,Se),R=i().useRef({}).current,T=ye(!0)[0];if(!(T=d||T))return console.error("No Voodoo tweener found in the context, is there any parent ViewBox ?"),i().createElement(i().Fragment,null);var S,P=T.tweenRef(o,n.props&&n.props.style,a||s,u,t,p);i().useEffect((function(){return function(){R._tweenAxisObj&&Object.keys(R._tweenAxisObj).forEach((function(e){return R._currentTweener.rmScrollableAnim(R._tweenAxisObj[e],e)})),R._currentTweener&&(R._currentTweener.rmTweenRef(R.__tweenableId),R._currentTweener.setRootRef(void 0)),delete R._currentTweener,delete R._tweenAxisObj,delete R._previousScrollable}}),[]),(S=R._tweenAxis!==b&&!(R._tweenAxis&&l()(b,R._tweenAxis))||b&&!R._tweenAxis)||R._currentTweener!==T||R._previousScrollable!==b?(R._currentTweener&&S&&R._tweenAxisObj&&Object.keys(R._tweenAxisObj).forEach((function(e){return R._currentTweener.rmScrollableAnim(R._tweenAxisObj[e],e)})),R._currentTweener&&R._currentTweener!==T&&R._currentTweener.rmTweenRef(o),S&&(R._tweenAxis=b,b&&h().array(b)?R._tweenAxisObj={scrollY:T.addScrollableAnim(Ee(b,o))}:R._tweenAxisObj=b&&Object.keys(b).reduce((function(e,t){return e[t]=T.addScrollableAnim(Ee(b[t],o),t),e}),{}),P=T.tweenRef(o,n.props&&n.props.style,a||s,u,t,p)),P.style=c()({},T._updateTweenRef(o,!0)),_.hasOwnProperty("isRoot")&&(R._currentTweener&&R._currentTweener.setRootRef(void 0),d.setRootRef(o)),R._currentTweener=T,R._previousScrollable=b):P&&(P.style=c()({},T._updateTweenRef(o,!0)));var E,D=i().Children.only(n);return D&&i().isValidElement(D)?(R._lastRef=P,Re(D.type)?i().createElement(D.type,c()({},_,D.props,P,{ref:void 0},((E={})[x]=P.ref,E))):i().createElement(D.type,c()({},_,D.props,P))):(console.error("Invalid voodoo Node child : ",o),i().createElement("div",null,"Invalid"))}));const Me=De;De.div=i().forwardRef((function(e,t){var n=e.children,r=e.className,o=f()(e,Pe);return i().createElement(De,c()({},o,{ref:t}),i().createElement("div",{className:r},n))}));var Oe=["children","Comp","nodeRef","items","xAxis","yAxis","yBoxRef","xBoxRef","yRef","yHook","xHook","tweener","mouseDrag","touchDrag","button"],Ae=i().forwardRef((function(e,t){var n=e.children,r=e.Comp,o=void 0===r?"div":r,a=e.nodeRef,s=(e.items,e.xAxis),l=e.yAxis,u=e.yBoxRef,p=e.xBoxRef,d=(e.yRef,e.yHook),g=e.xHook,m=e.tweener,x=e.mouseDrag,v=void 0!==x&&x,y=e.touchDrag,w=void 0===y||y,b=e.button,_=void 0===b?0:b,R=f()(e,Oe),T=i().useRef(),S=i().useRef({root:T,_:{}}).current,P=ye(!0)[0],E=i().useMemo((function(){return{getScrollableNodes:function(e){for(var t=[],n=S._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=S.root)?void 0:e.current,c=S.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?(te.addEvent(u,S._.dragList={dragstart:function(e,n,c){var d,h,g,m;if(!(e instanceof MouseEvent&&e.button!==w))for(o=E.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,E,D;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)),D=0;D<o.length;D++)if((g=o[D]).__isTweener){var M,O,A,B,k,C,I,L,W,j,F,N,z,H;if(m=p&&(null==(M=g.axes)?void 0:M[p]),T=f&&(null==(O=g.axes)?void 0:O[f]),!m&&!T)continue;i[D]||(i[D]={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==(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&&(E=null!=y&&y.current?l:g._.box.y,S=a&&a/E*(T.scrollableWindow||T.scrollableArea)||0,d&&(S=d(S))),m&&!_&&x&&null!=(A=m)&&null!=(B=A.inertia)&&B.isInbound(i[D].x+x)&&g.componentShouldScroll(p,x)&&(m.inertia.hold(i[D].x+x),_=!0),T&&!P&&S&&null!=(k=T)&&null!=(C=k.inertia)&&C.isInbound(i[D].y+S)&&g.componentShouldScroll(f,S)&&(T.inertia.hold(i[D].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),S._.doRegister=!!u):S._.doRegister=!0}}}),[]);return i().useEffect((function(){return E._registerScrollListeners(),function(){var e,t=null==(e=S.root)?void 0:e.current;S._.scrollEnabled&&(S._.scrollEnabled=!1,t&&S._.dragList&&te.removeEvent(t,S._.dragList))}}),[]),i().useEffect((function(){h().function(a)&&a(T.current),h().function(t)?t(T.current):t&&(t.current=T.current)})),S.props={xAxis:s,yAxis:l,yHook:d,xHook:g,mouseDrag:v,touchDrag:w,tweener:m||P,xBoxRef:p,yBoxRef:u,button:_},S._parentTweener=P,i().createElement(o,c()({ref:T},R),n)}));const Be=Ae;Ae.div=function(e){return i().createElement(Ae,e)};const ke=function(){return i().useContext(g)};var Ce={}.constructor;function Ie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(!t[0]||Te(t[0]))&&t.shift(),o=(!t[0]||t[0]instanceof Ce)&&t.shift()||{};if(!r)return function(e){return Ie(e,o)};o=c()({wheelRatio:5,maxClickTm:200,maxClickOffset:20},o);var a=i().forwardRef((function(e,t){return i().createElement(xe,{oProps:e,forwardedRef:t,BaseComponent:r,tweenerOptions:o})}));return a.displayName=String.fromCharCode(55358,56793)+(r.displayName||r.name),a}var Le,We={}.constructor;function je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(!t[0]||Te(t[0]))&&t.shift(),a=(!t[0]||t[0]instanceof We)&&t.shift()||{};if(!r||!(r.prototype instanceof i().Component||r===i().Component))return function(e){return je(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}$().EasingFunctions=v;var Fe=Ie(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 Ne={tweener:Ie,child:je,useTweener:ke,useVoodoo:ye,hook:ye,tools:e,Draggable:Be,Component:Fe,Node:Me,Context:g,Axis:we,dom:te}})(),module.exports=r})();
|
3
|
-
|
2
|
+
(() => {
|
3
|
+
var e = {
|
4
|
+
450 : e => {
|
5
|
+
e.exports = {
|
6
|
+
walknSetExport: function ( e, t, n ) {
|
7
|
+
var r, o, a = t.split("/"), i = e;
|
8
|
+
for ( r = 0; r < a.length - 1; ) i = i[a[r]] = i[a[r]] || {}, r++;
|
9
|
+
o = 1 === Object.keys(n).length && n.default || n, i[a[r]]
|
10
|
+
? (i[a[r]].__esModule || Object.assign(o, i[a[r]]), i[a[r]] = o)
|
11
|
+
: i[a[r]] = o
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}, 227: ( e, t, n ) => {
|
15
|
+
"use strict";
|
16
|
+
n.d(t, { Yj: () => a, Xg: () => i, $_: () => s, kE: () => l, fi: () => u, Rx: () => c, bC: () => p });
|
17
|
+
var r = {}, o = n(450).walknSetExport;
|
18
|
+
o(r, "any", n(582)), o(r, "bool", n(584)), o(r, "color", n(192)), o(r, "multi", n(822)), o(r, "ratio", n(425)), o(r, "length", n(231)), o(r, "number", n(277)), o(r, "shadow", n(940));
|
19
|
+
var a = r.any, i = r.bool, s = r.color, l = r.length, u = r.multi, c = r.number, p = r.ratio
|
20
|
+
}, 259: ( e, t, n ) => {
|
21
|
+
"use strict";
|
22
|
+
n.d(t, { NQ: () => r, Dl: () => o, _9: () => a, HM: () => i, dn: () => s, _j: () => l, JO: () => u });
|
23
|
+
var r = {
|
24
|
+
margin: {
|
25
|
+
properties: ["marginTop", "marginRight", "marginBottom", "marginLeft"],
|
26
|
+
multiple: !0
|
27
|
+
},
|
28
|
+
marginBottom: { types: ["length"] },
|
29
|
+
marginLeft: { types: ["length"] },
|
30
|
+
marginRight: { types: ["length"] },
|
31
|
+
marginTop: { types: ["length"] },
|
32
|
+
padding: {
|
33
|
+
properties: ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft"],
|
34
|
+
multiple: !0
|
35
|
+
},
|
36
|
+
paddingBottom: { types: ["length"] },
|
37
|
+
paddingLeft: { types: ["length"] },
|
38
|
+
paddingRight: { types: ["length"] },
|
39
|
+
paddingTop: { types: ["length"] },
|
40
|
+
bottom: { types: ["length-percentage-calc"] },
|
41
|
+
left: { types: ["length-percentage-calc"] },
|
42
|
+
right: { types: ["length-percentage-calc"] },
|
43
|
+
top: { types: ["length-percentage-calc"] },
|
44
|
+
zIndex: { types: ["integer"] },
|
45
|
+
width: { types: ["length-percentage-calc"] },
|
46
|
+
maxWidth: { types: ["length-percentage-calc"] },
|
47
|
+
minWidth: { types: ["length-percentage-calc"] },
|
48
|
+
height: { types: ["length-percentage-calc"] },
|
49
|
+
maxHeight: { types: ["length-percentage-calc"] },
|
50
|
+
minHeight: { types: ["length-percentage-calc"] },
|
51
|
+
lineHeight: { types: ["length"] },
|
52
|
+
verticalAlign: { types: ["length"] },
|
53
|
+
visibility: { types: ["visibility"] },
|
54
|
+
borderSpacing: { types: ["length"], multiple: !0 },
|
55
|
+
color: { types: ["color"] },
|
56
|
+
opacity: { types: ["number"] },
|
57
|
+
backgroundColor: { types: ["color"] },
|
58
|
+
backgroundPosition: { types: ["length-percentage-calc"], multiple: !0, repeatable: !0 },
|
59
|
+
backgroundSize: { types: ["length-percentage-calc"], multiple: !0, repeatable: !0 },
|
60
|
+
border: { properties: ["borderStyle", "borderWidth", "borderColor"] },
|
61
|
+
borderBottom: { properties: ["borderBottomStyle", "borderBottomWidth", "borderBottomColor"] },
|
62
|
+
borderLeft: { properties: ["borderLeftStyle", "borderLeftWidth", "borderLeftColor"] },
|
63
|
+
borderRight: { properties: ["borderRightStyle", "borderRightWidth", "borderRightColor"] },
|
64
|
+
borderTop: { properties: ["borderTopStyle", "borderTopWidth", "borderTopColor"] },
|
65
|
+
borderColor: { properties: ["borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor"] },
|
66
|
+
borderWidth: { properties: ["borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth"] },
|
67
|
+
borderBottomColor: { types: ["color"] },
|
68
|
+
borderLeftColor: { types: ["color"] },
|
69
|
+
borderRightColor: { types: ["color"] },
|
70
|
+
borderTopColor: { types: ["color"] },
|
71
|
+
borderBottomWidth: { types: ["length"] },
|
72
|
+
borderLeftWidth: { types: ["length"] },
|
73
|
+
borderRightWidth: { types: ["length"] },
|
74
|
+
borderTopWidth: { types: ["length"] },
|
75
|
+
borderRadius: { properties: ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"] },
|
76
|
+
borderTopLeftRadius: { types: ["length-percentage-calc"], multiple: !0 },
|
77
|
+
borderTopRightRadius: { types: ["length-percentage-calc"], multiple: !0 },
|
78
|
+
borderBottomRightRadius: { types: ["length-percentage-calc"], multiple: !0 },
|
79
|
+
borderBottomLeftRadius: { types: ["length-percentage-calc"], multiple: !0 },
|
80
|
+
boxShadow: { types: ["shadow-list"] },
|
81
|
+
caretColor: { types: ["color"] },
|
82
|
+
outline: { properties: ["outlineColor", "outlineWidth"] },
|
83
|
+
outlineColor: { types: ["color"] },
|
84
|
+
outlineWidth: { types: ["length"] },
|
85
|
+
outlineOffset: { types: ["length"] },
|
86
|
+
flex: { properties: ["flexGrow", "flexShrink", "flexBasis"] },
|
87
|
+
flexGrow: { types: ["number"] },
|
88
|
+
flexShrink: { types: ["number"] },
|
89
|
+
flexBasis: { types: ["length-percentage-calc"] },
|
90
|
+
order: { types: ["integer"] },
|
91
|
+
font: { properties: ["fontWeight", "fontStretch", "fontSize", "lineHeight"] },
|
92
|
+
fontWeight: { types: ["font-weight"] },
|
93
|
+
fontStretch: { types: ["font-stretch"] },
|
94
|
+
fontSize: { types: ["length"] },
|
95
|
+
fontSizeAdjust: { types: ["number"] },
|
96
|
+
gridTemplateColumns: { types: ["length-percentage-calc"], multiple: !0 },
|
97
|
+
gridTemplateRows: { types: ["length-percentage-calc"], multiple: !0 },
|
98
|
+
gridTemplate: { properties: ["gridTemplateRows", "gridTemplateColumns"] },
|
99
|
+
grid: { properties: ["gridTemplateRows", "gridTemplateColumns"] },
|
100
|
+
gridRowGap: { types: ["length-percentage-calc"] },
|
101
|
+
gridColumnGap: { types: ["length-percentage-calc"] },
|
102
|
+
gridGap: { properties: ["gridRowGap", "gridColumnGap"] },
|
103
|
+
clip: { types: ["rectangle"] },
|
104
|
+
clipPath: { types: ["basic-shape"] },
|
105
|
+
mask: { properties: ["maskPosition", "maskSize"] },
|
106
|
+
maskPosition: { types: ["length-percentage-calc"], multiple: !0, repeatable: !0 },
|
107
|
+
maskSize: { types: ["length-percentage-calc"], multiple: !0, repeatable: !0 },
|
108
|
+
shapeOutside: { types: ["basic-shape"] },
|
109
|
+
shapeMargin: { types: ["length-percentage-calc"] },
|
110
|
+
shapeImageThreshold: { types: ["number"] },
|
111
|
+
scrollPadding: { properties: ["scrollPaddingTop", "scrollPaddingRight", "scrollPaddingBottom", "scrollPaddingLeft"] },
|
112
|
+
scrollPaddingTop: { types: ["length-percentage-calc"] },
|
113
|
+
scrollPaddingRight: { types: ["length-percentage-calc"] },
|
114
|
+
scrollPaddingBottom: { types: ["length-percentage-calc"] },
|
115
|
+
scrollPaddingLeft: { types: ["length-percentage-calc"] },
|
116
|
+
scrollPaddingBlock: { properties: ["scrollPaddingBlockStart", "scrollPaddingBlockEnd"] },
|
117
|
+
scrollPaddingBlockStart: { types: ["length-percentage-calc"] },
|
118
|
+
scrollPaddingBlockEnd: { types: ["length-percentage-calc"] },
|
119
|
+
scrollPaddingInline: { properties: ["scrollPaddingInlineStart", "scrollPaddingInlineEnd"] },
|
120
|
+
scrollPaddingInlineStart: { types: ["length-percentage-calc"] },
|
121
|
+
scrollPaddingInlineEnd: { types: ["length-percentage-calc"] },
|
122
|
+
scrollSnapMargin: { properties: ["scrollSnapMarginTop", "scrollSnapMarginRight", "scrollSnapMarginBottom", "scrollSnapMarginLeft"] },
|
123
|
+
scrollSnapMarginTop: { types: ["length"] },
|
124
|
+
scrollSnapMarginRight: { types: ["length"] },
|
125
|
+
scrollSnapMarginBottom: { types: ["length"] },
|
126
|
+
scrollSnapMarginLeft: { types: ["length"] },
|
127
|
+
scrollSnapMarginBlock: { properties: ["scrollSnapMarginBlockStart", "scrollSnapMarginBlockEnd"] },
|
128
|
+
scrollSnapMarginBlockStart: { types: ["length"] },
|
129
|
+
scrollSnapMarginBlockEnd: { types: ["length"] },
|
130
|
+
scrollSnapMarginInline: { properties: ["scrollSnapMarginInlineStart", "scrollSnapMarginInlineEnd"] },
|
131
|
+
scrollSnapMarginInlineStart: { types: ["length"] },
|
132
|
+
scrollSnapMarginInlineEnd: { types: ["length"] },
|
133
|
+
textDecoration: { properties: ["textDecorationColor"] },
|
134
|
+
textDecorationColor: { types: ["color"] },
|
135
|
+
textEmphasis: { properties: ["textEmphasisColor"] },
|
136
|
+
textEmphasisColor: { types: ["color"] },
|
137
|
+
textShadow: { types: ["shadow-list"] },
|
138
|
+
columns: { properties: ["columnWidth", "columnCount"] },
|
139
|
+
columnWidth: { types: ["length"] },
|
140
|
+
columnCount: { types: ["integer"] },
|
141
|
+
columnGap: { types: ["length-percentage-calc"] },
|
142
|
+
columnRule: { properties: ["columnRuleColor", "columnRuleWidth"] },
|
143
|
+
columnRuleColor: { types: ["color"] },
|
144
|
+
columnRuleWidth: { types: ["length"] },
|
145
|
+
letterSpacing: { types: ["length"] },
|
146
|
+
tabSize: { types: ["length"] },
|
147
|
+
textIndent: { types: ["length-percentage-calc"] },
|
148
|
+
wordSpacing: { types: ["length-percentage-calc"] },
|
149
|
+
transform: { types: ["transform"] },
|
150
|
+
transformOrigin: { types: ["length-percentage-calc"], multiple: !0 },
|
151
|
+
perspective: { types: ["length"] },
|
152
|
+
perspectiveOrigin: { types: ["length-percentage-calc"], multiple: !0 }
|
153
|
+
},
|
154
|
+
o = ["", "deg", "box", "bz", "bh", "bw", "deg", "em", "ex", "%", "px", "cm", "mm", "in", "pt", "pc", "ch", "rem", "vh", "vw", "vmin", "vmax"],
|
155
|
+
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("|") + ")"),
|
156
|
+
i = function ( e ) {
|
157
|
+
return void 0 === e && (e = 0), Number(e.toFixed(3))
|
158
|
+
};
|
159
|
+
|
160
|
+
function s( e, t, n ) {
|
161
|
+
void 0 === n && (n = {});
|
162
|
+
var o = r[e], a = o && o.properties, i = t.split(" ");
|
163
|
+
return o.multiple ? a && a.forEach((function ( e, t ) {
|
164
|
+
n[e] = i[t % i.length]
|
165
|
+
})) : a && a.forEach((function ( e, t ) {
|
166
|
+
i[t] && (n[e] = i[t])
|
167
|
+
})), n
|
168
|
+
}
|
169
|
+
|
170
|
+
function l( e ) {
|
171
|
+
var t = r[e], n = t && t.properties;
|
172
|
+
return n && !!n.length
|
173
|
+
}
|
174
|
+
|
175
|
+
function u( e, t ) {
|
176
|
+
return !!r[e]
|
177
|
+
}
|
178
|
+
}, 38 : ( e, t, n ) => {
|
179
|
+
"use strict";
|
180
|
+
n.r(t), n.d(t, { demux: () => r.demux, mux: () => r.mux, release: () => r.release });
|
181
|
+
var r = n(192)
|
182
|
+
}, 39 : ( e, t, n ) => {
|
183
|
+
"use strict";
|
184
|
+
n.r(t), n.d(t, {
|
185
|
+
demux : () => r.demux,
|
186
|
+
demuxOne: () => r.demuxOne,
|
187
|
+
mux : () => r.mux,
|
188
|
+
muxOne : () => r.muxOne,
|
189
|
+
release : () => r.release
|
190
|
+
});
|
191
|
+
var r = n(940)
|
192
|
+
}, 111: ( e, t, n ) => {
|
193
|
+
"use strict";
|
194
|
+
n.r(t), n.d(t, { release: () => c, demuxOne: () => p, demux: () => f, muxOne: () => d, mux: () => h });
|
195
|
+
var r = n(213),
|
196
|
+
o = n.n(r),
|
197
|
+
a = n(73),
|
198
|
+
i = n.n(a),
|
199
|
+
s = n(259),
|
200
|
+
l = {
|
201
|
+
blur: "px",
|
202
|
+
brightness: "%",
|
203
|
+
contrast: "%",
|
204
|
+
dropShadow: !0,
|
205
|
+
grayscale: "%",
|
206
|
+
hueRotate: "deg",
|
207
|
+
invert: "%",
|
208
|
+
opacity: "%",
|
209
|
+
saturate: "%",
|
210
|
+
sepia: "%"
|
211
|
+
},
|
212
|
+
u = {};
|
213
|
+
|
214
|
+
function c( e, t, n, r, o, a ) {
|
215
|
+
var i, s = e.split("_");
|
216
|
+
if ( 4 === s.length ) {
|
217
|
+
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();
|
218
|
+
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();
|
219
|
+
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]])
|
220
|
+
}
|
221
|
+
else console.log("wtf", s)
|
222
|
+
}
|
223
|
+
|
224
|
+
function p( e, t, n, r, o, a ) {
|
225
|
+
var i = n, u = s.Dl[e] || l[r];
|
226
|
+
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
|
227
|
+
? (0, s.HM)(i) + u
|
228
|
+
: (0, s.HM)(i)
|
229
|
+
}
|
230
|
+
|
231
|
+
function f( e, t, n, r, o ) {
|
232
|
+
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) ) {
|
233
|
+
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]
|
234
|
+
? u = " - " + u.substr(1)
|
235
|
+
: h && (u = " + " + u), c += u, h++);
|
236
|
+
h > 1 && (c = "calc(" + c + ")"), h > 0 && (f += i + "(" + (c || "0") + ") ")
|
237
|
+
}
|
238
|
+
n.filter = f
|
239
|
+
}
|
240
|
+
|
241
|
+
function d( e, t, n, r, o, a, c, p ) {
|
242
|
+
var d = !!i().string(n) && n.match(s._9),
|
243
|
+
h = d && d[2] || l[t],
|
244
|
+
g = s.Dl.indexOf(h),
|
245
|
+
m = -1 !== g && e + "_" + g || e;
|
246
|
+
return a[m] = u[t] || 0, o[e][g] = o[e][g] || 0, p && p[g]
|
247
|
+
? r[m] += d
|
248
|
+
? parseFloat(d[1])
|
249
|
+
: parseFloat(n)
|
250
|
+
: (!c && o[e][g]++, r[m] = d
|
251
|
+
? parseFloat(d[1])
|
252
|
+
: parseFloat(n), p && (p[g] = !0)), f
|
253
|
+
}
|
254
|
+
|
255
|
+
var h = function ( e, t, n, r, a, s, l ) {
|
256
|
+
r[e] = r[e] || [], i().array(t) || (t = [t]);
|
257
|
+
for ( var u, c, p, h, g, m, x, v = 0; v < t.length; v++ ) {
|
258
|
+
for ( c in u = t[v], p = l
|
259
|
+
? {}
|
260
|
+
: 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);
|
261
|
+
r[e][v] = l ? o()({}, p, r[e][v] || {}, p) : p
|
262
|
+
}
|
263
|
+
return f
|
264
|
+
}
|
265
|
+
}, 178: ( e, t, n ) => {
|
266
|
+
"use strict";
|
267
|
+
n.r(t), n.d(t, {
|
268
|
+
demux : () => r.demux,
|
269
|
+
demuxOne: () => r.demuxOne,
|
270
|
+
mux : () => r.mux,
|
271
|
+
muxOne : () => r.muxOne,
|
272
|
+
release : () => r.release
|
273
|
+
});
|
274
|
+
var r = n(940)
|
275
|
+
}, 374: ( e, t, n ) => {
|
276
|
+
"use strict";
|
277
|
+
n.r(t), n.d(t, { release: () => p, demuxOne: () => f, demux: () => d, muxOne: () => h, mux: () => g });
|
278
|
+
var r = n(213),
|
279
|
+
o = n.n(r),
|
280
|
+
a = n(73),
|
281
|
+
i = n.n(a),
|
282
|
+
s = n(259),
|
283
|
+
l = {
|
284
|
+
translateX: "px",
|
285
|
+
translateY: "px",
|
286
|
+
translateZ: "px",
|
287
|
+
scale: "",
|
288
|
+
scaleZ: "",
|
289
|
+
scaleX: "",
|
290
|
+
scaleY: "",
|
291
|
+
rotate: "deg",
|
292
|
+
skewX: "deg",
|
293
|
+
skewY: "deg",
|
294
|
+
rotateX: "deg",
|
295
|
+
rotateY: "deg",
|
296
|
+
rotateZ: "deg",
|
297
|
+
perspective: "px"
|
298
|
+
},
|
299
|
+
u = {
|
300
|
+
translateX: "x",
|
301
|
+
translateY: "y",
|
302
|
+
translateZ: "z",
|
303
|
+
rotateX: "x",
|
304
|
+
rotateY: "y",
|
305
|
+
rotateZ: "z",
|
306
|
+
left: "x",
|
307
|
+
right: "x",
|
308
|
+
top: "y",
|
309
|
+
bottom: "y",
|
310
|
+
width: "x",
|
311
|
+
height: "y"
|
312
|
+
},
|
313
|
+
c = { scale: 1, scaleX: 1, scaleY: 1, scaleZ: 1 };
|
314
|
+
|
315
|
+
function p( e, t, n, r, o, a ) {
|
316
|
+
var i, s = e.split("_");
|
317
|
+
if ( 4 === s.length ) {
|
318
|
+
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();
|
319
|
+
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();
|
320
|
+
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]])
|
321
|
+
}
|
322
|
+
else console.log("wtf", s)
|
323
|
+
}
|
324
|
+
|
325
|
+
function f( e, t, n, r, o, a ) {
|
326
|
+
var i = n, c = s.Dl[e] || l[r];
|
327
|
+
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
|
328
|
+
? (0, s.HM)(i) + c
|
329
|
+
: (0, s.HM)(i)
|
330
|
+
}
|
331
|
+
|
332
|
+
function d( e, t, n, r, o ) {
|
333
|
+
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) ) {
|
334
|
+
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]
|
335
|
+
? u = " - " + u.substr(1)
|
336
|
+
: h && (u = " + " + u), c += u, h++);
|
337
|
+
h > 1 && (c = "calc(" + c + ")"), h > 0 && (p += i + "(" + (c || "0") + ") ")
|
338
|
+
}
|
339
|
+
n.transform = p
|
340
|
+
}
|
341
|
+
|
342
|
+
function h( e, t, n, r, o, a, u, p ) {
|
343
|
+
var f = !!i().string(n) && n.match(s._9),
|
344
|
+
h = f && f[2] || l[t],
|
345
|
+
g = s.Dl.indexOf(h),
|
346
|
+
m = -1 !== g && e + "_" + g || e;
|
347
|
+
return a[m] = c[t] || 0, o[e][g] = o[e][g] || 0, p && p[g]
|
348
|
+
? r[m] += f
|
349
|
+
? parseFloat(f[1])
|
350
|
+
: parseFloat(n)
|
351
|
+
: (!u && o[e][g]++, r[m] = f
|
352
|
+
? parseFloat(f[1])
|
353
|
+
: parseFloat(n), p && (p[g] = !0)), d
|
354
|
+
}
|
355
|
+
|
356
|
+
var g = function ( e, t, n, r, a, s, l ) {
|
357
|
+
if ( r[e] = r[e] || [], !i().array(t) && !i().object(t) ) return console.warn("React-Voodoo: Ignore unexpected value ", e, ":", t, " on ", n), d;
|
358
|
+
i().array(t) || (t = [t]);
|
359
|
+
for ( var u, c, p, f, g, m, x, v = 0; v < t.length; v++ ) {
|
360
|
+
for ( c in u = t[v], p = l
|
361
|
+
? {}
|
362
|
+
: 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);
|
363
|
+
r[e][v] = l ? o()({}, p, r[e][v] || {}, p) : p
|
364
|
+
}
|
365
|
+
return d
|
366
|
+
}
|
367
|
+
}, 582: ( e, t, n ) => {
|
368
|
+
"use strict";
|
369
|
+
n.r(t), n.d(t, {
|
370
|
+
release : () => u,
|
371
|
+
demuxOne: () => c,
|
372
|
+
demux : () => p,
|
373
|
+
muxer : () => f,
|
374
|
+
muxOne : () => d,
|
375
|
+
mux : () => h
|
376
|
+
});
|
377
|
+
var r = n(73),
|
378
|
+
o = n.n(r),
|
379
|
+
a = n(259),
|
380
|
+
i = { left: "px", right: "px", top: "px", bottom: "px", width: "px", height: "px", perspective: "px" },
|
381
|
+
s = { left: "x", right: "x", top: "y", bottom: "y", width: "x", height: "y" },
|
382
|
+
l = { opacity: 0 };
|
383
|
+
|
384
|
+
function u( e, t, n, r, o, a ) {
|
385
|
+
var i = e.split("_");
|
386
|
+
if ( 2 === i.length ) {
|
387
|
+
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();
|
388
|
+
0 !== r[i[0]].length || a || (delete r[i[0]], delete o[i[0]], n && delete n[i[0]])
|
389
|
+
}
|
390
|
+
else console.log("wtf", i)
|
391
|
+
}
|
392
|
+
|
393
|
+
function c( e, t, n, r, o ) {
|
394
|
+
var l = t, u = a.Dl[e] || i[n] || "px";
|
395
|
+
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
|
396
|
+
? (0, a.HM)(l) + u
|
397
|
+
: (0, a.HM)(l)
|
398
|
+
}
|
399
|
+
|
400
|
+
function p( e, t, n, r, o, a ) {
|
401
|
+
var i, s, l, u = 0;
|
402
|
+
if ( i = "", r[e].isString ) return n[e] = r[e].value, r[e].value;
|
403
|
+
for ( s = 0; s < r[e].length; s++ ) r[e][s] && (t[l = e + "_" + s] < 0
|
404
|
+
? i += (u
|
405
|
+
? " - "
|
406
|
+
: "-") + c(s, -t[l], a || e, 0, o)
|
407
|
+
: i += (u
|
408
|
+
? " + "
|
409
|
+
: "") + c(s, t[l], a || e, 0, o), u++);
|
410
|
+
return u > 1 && (i = "calc(" + i + ")"), n ? n[e] = i : i
|
411
|
+
}
|
412
|
+
|
413
|
+
function f( e, t, n, r, a, i ) {
|
414
|
+
r[e] = r[e] || [];
|
415
|
+
var s = [];
|
416
|
+
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);
|
417
|
+
return p
|
418
|
+
}
|
419
|
+
|
420
|
+
function d( e, t, n, r, s, u, c ) {
|
421
|
+
var f = !!o().string(t) && t.match(a._9),
|
422
|
+
d = f && f[2] || i[e] || "px",
|
423
|
+
h = a.Dl.indexOf(d),
|
424
|
+
g = -1 !== h && e + "_" + h || e;
|
425
|
+
return s[g] = l[e] || 0, r[e][h] = r[e][h] || 0, !f && o().string(t)
|
426
|
+
? (r[e].isString = !0, r[e].value = t, p)
|
427
|
+
: (c && c[h]
|
428
|
+
? n[g] += f
|
429
|
+
? parseFloat(f[1])
|
430
|
+
: parseFloat(t)
|
431
|
+
: (!u && r[e][h]++, n[g] = f
|
432
|
+
? parseFloat(f[1])
|
433
|
+
: parseFloat(t), c && (c[h] = !0)), p)
|
434
|
+
}
|
435
|
+
|
436
|
+
var h = f
|
437
|
+
}, 584: ( e, t, n ) => {
|
438
|
+
"use strict";
|
439
|
+
n.r(t), n.d(t, { release: () => o, demux: () => a, mux: () => i });
|
440
|
+
var r = { opacity: 1 };
|
441
|
+
|
442
|
+
function o( e, t, n, r, o, a ) {
|
443
|
+
--r[e] || a || (delete t[e], delete r[e], delete o[e], delete n[e])
|
444
|
+
}
|
445
|
+
|
446
|
+
function a( e, t, n, r, o ) {
|
447
|
+
var a = !!t[e];
|
448
|
+
return n ? n[e] = a : a
|
449
|
+
}
|
450
|
+
|
451
|
+
var i = function ( e, t, n, o, i, s ) {
|
452
|
+
return i[e] = r[e] || 0, n[e] = !1 === t ? 0 : 1, o[e] = o[e] || 0, !s && o[e]++, a
|
453
|
+
}
|
454
|
+
}, 192: ( e, t, n ) => {
|
455
|
+
"use strict";
|
456
|
+
n.r(t), n.d(t, { demux: () => i, mux: () => s, release: () => a });
|
457
|
+
const r = require("color-rgba");
|
458
|
+
var o = n.n(r);
|
459
|
+
|
460
|
+
function a( e, t, n, r, o, a ) {
|
461
|
+
var i = e.split("_"), s = i.slice(0, i.length - 1).join("_");
|
462
|
+
--r[e] || a || (delete t[e], delete r[e]), --r[s] || a || (delete t[e], delete r[e])
|
463
|
+
}
|
464
|
+
|
465
|
+
function i( e, t, n, r ) {
|
466
|
+
var o = "rgba(" + t[e + "_r"] + ", " + t[e + "_g"] + ", " + t[e + "_b"] + ", " + t[e + "_a"] + ")";
|
467
|
+
return n ? n[e] = o : o
|
468
|
+
}
|
469
|
+
|
470
|
+
function s( e, t, n, r, a, s ) {
|
471
|
+
var l = o()(t);
|
472
|
+
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
|
473
|
+
}
|
474
|
+
}, 231: ( e, t, n ) => {
|
475
|
+
"use strict";
|
476
|
+
n.r(t), n.d(t, {
|
477
|
+
release : () => u,
|
478
|
+
demuxOne: () => c,
|
479
|
+
demux : () => p,
|
480
|
+
muxer : () => f,
|
481
|
+
muxOne : () => d,
|
482
|
+
mux : () => h
|
483
|
+
});
|
484
|
+
var r = n(73),
|
485
|
+
o = n.n(r),
|
486
|
+
a = n(259),
|
487
|
+
i = { left: "px", right: "px", top: "px", bottom: "px", width: "px", height: "px", perspective: "px" },
|
488
|
+
s = { left: "x", right: "x", top: "y", bottom: "y", width: "x", height: "y" },
|
489
|
+
l = { opacity: 0 };
|
490
|
+
|
491
|
+
function u( e, t, n, r, o, a ) {
|
492
|
+
var i = e.split("_");
|
493
|
+
if ( 2 === i.length ) {
|
494
|
+
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();
|
495
|
+
0 !== r[i[0]].length || a || (delete r[i[0]], delete o[i[0]], n && delete n[i[0]])
|
496
|
+
}
|
497
|
+
else console.log("wtf", i)
|
498
|
+
}
|
499
|
+
|
500
|
+
function c( e, t, n, r, o ) {
|
501
|
+
var l = t, u = a.Dl[e] || i[n] || "px";
|
502
|
+
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
|
503
|
+
? (0, a.HM)(l) + u
|
504
|
+
: (0, a.HM)(l)
|
505
|
+
}
|
506
|
+
|
507
|
+
function p( e, t, n, r, o, a ) {
|
508
|
+
var i, s, l, u = 0;
|
509
|
+
for ( i = "", s = 0; s < r[e].length; s++ ) r[e][s] && (t[l = e + "_" + s] < 0
|
510
|
+
? i += (u
|
511
|
+
? " - "
|
512
|
+
: "-") + c(s, -t[l], a || e, 0, o)
|
513
|
+
: i += (u
|
514
|
+
? " + "
|
515
|
+
: "") + c(s, t[l], a || e, 0, o), u++);
|
516
|
+
return u > 1 && (i = "calc(" + i + ")"), n ? n[e] = i : i
|
517
|
+
}
|
518
|
+
|
519
|
+
function f( e, t, n, r, a, i ) {
|
520
|
+
r[e] = r[e] || [];
|
521
|
+
var s = [];
|
522
|
+
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);
|
523
|
+
return p
|
524
|
+
}
|
525
|
+
|
526
|
+
function d( e, t, n, r, s, u, c ) {
|
527
|
+
var f = !!o().string(t) && t.match(a._9),
|
528
|
+
d = f && f[2] || i[e] || "px",
|
529
|
+
h = a.Dl.indexOf(d),
|
530
|
+
g = -1 !== h && e + "_" + h || e;
|
531
|
+
return s[g] = l[e] || 0, r[e][h] = r[e][h] || 0, c && c[h]
|
532
|
+
? n[g] += f
|
533
|
+
? parseFloat(f[1])
|
534
|
+
: parseFloat(t)
|
535
|
+
: (!u && r[e][h]++, n[g] = f
|
536
|
+
? parseFloat(f[1])
|
537
|
+
: parseFloat(t), c && (c[h] = !0)), p
|
538
|
+
}
|
539
|
+
|
540
|
+
var h = f
|
541
|
+
}, 822: ( e, t, n ) => {
|
542
|
+
"use strict";
|
543
|
+
n.r(t), n.d(t, { default: () => u });
|
544
|
+
var r = n(73),
|
545
|
+
o = n.n(r),
|
546
|
+
a = n(277),
|
547
|
+
i = { top: "0%", bottom: "100%", center: "50%", left: "0%", right: "100%" };
|
548
|
+
|
549
|
+
function s( e, t, n, r, o, i ) {
|
550
|
+
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] + " ";
|
551
|
+
n[e] = l
|
552
|
+
}
|
553
|
+
|
554
|
+
function l( e, t, n, r, o, a ) {
|
555
|
+
e.split("_")
|
556
|
+
}
|
557
|
+
|
558
|
+
const u = function ( e ) {
|
559
|
+
return {
|
560
|
+
mux : function ( t, n, r, l, u, c ) {
|
561
|
+
var p, f = n.split(" ");
|
562
|
+
l[t] = l[t] || 0, c && l[t]++, l["_" + t] = e;
|
563
|
+
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);
|
564
|
+
return s
|
565
|
+
}, demux: s, release: l
|
566
|
+
}
|
567
|
+
}
|
568
|
+
}, 277: ( e, t, n ) => {
|
569
|
+
"use strict";
|
570
|
+
|
571
|
+
function r( e, t, n, r, o, a ) {
|
572
|
+
--r[e] || a || (delete t[e], delete r[e], delete o[e], delete n[e])
|
573
|
+
}
|
574
|
+
|
575
|
+
function o( e, t, n, r, o ) {
|
576
|
+
n[e] = ~~t[e]
|
577
|
+
}
|
578
|
+
|
579
|
+
n.r(t), n.d(t, { release: () => r, demux: () => o, mux: () => a });
|
580
|
+
var a = function ( e, t, n, r, a, i ) {
|
581
|
+
return a[e] = 0, n[e] = ~~t, r[e] = r[e] || 0, !i && r[e]++, o
|
582
|
+
}
|
583
|
+
}, 425: ( e, t, n ) => {
|
584
|
+
"use strict";
|
585
|
+
n.r(t), n.d(t, { release: () => a, demux: () => i, mux: () => s });
|
586
|
+
var r = n(259), o = { opacity: 1 };
|
587
|
+
|
588
|
+
function a( e, t, n, r, o, a ) {
|
589
|
+
--r[e] || a || (delete t[e], delete r[e], delete o[e], delete n[e])
|
590
|
+
}
|
591
|
+
|
592
|
+
function i( e, t, n, o, a ) {
|
593
|
+
n[e] = Math.min(1, Math.max(0, (0, r.HM)(t[e])))
|
594
|
+
}
|
595
|
+
|
596
|
+
var s = function ( e, t, n, r, a, s ) {
|
597
|
+
return a[e] = o[e] || 0, n[e] = t, r[e] = r[e] || 0, !s && r[e]++, i
|
598
|
+
}
|
599
|
+
}, 940: ( e, t, n ) => {
|
600
|
+
"use strict";
|
601
|
+
n.r(t), n.d(t, { release: () => b, demuxOne: () => _, demux: () => R, muxOne: () => T, mux: () => S });
|
602
|
+
var r,
|
603
|
+
o,
|
604
|
+
a,
|
605
|
+
i,
|
606
|
+
s,
|
607
|
+
l,
|
608
|
+
u,
|
609
|
+
c,
|
610
|
+
p = n(213),
|
611
|
+
f = n.n(p),
|
612
|
+
d = n(73),
|
613
|
+
h = n.n(d),
|
614
|
+
g = n(259),
|
615
|
+
m = n(227),
|
616
|
+
x = (r = /,(?![^\(]*\))/, o = /\s(?![^(]*\))/, a = /^[0-9]+[a-zA-Z%]+?$/, i = function ( e ) {
|
617
|
+
var t = e.split(o),
|
618
|
+
n = t.includes("inset"),
|
619
|
+
r = t.slice(-1)[0],
|
620
|
+
a = l(r) ? void 0 : r,
|
621
|
+
i = t.filter((function ( e ) {
|
622
|
+
return "inset" !== e
|
623
|
+
})).filter((function ( e ) {
|
624
|
+
return e !== a
|
625
|
+
})).map(u);
|
626
|
+
return { inset: n, offsetX: i[0], offsetY: i[1], blurRadius: i[2], spreadRadius: i[3], color: a }
|
627
|
+
}, s = function ( e ) {
|
628
|
+
var t = e || {},
|
629
|
+
n = t.inset,
|
630
|
+
r = t.offsetX,
|
631
|
+
o = void 0 === r ? 0 : r,
|
632
|
+
a = t.offsetY,
|
633
|
+
i = void 0 === a ? 0 : a,
|
634
|
+
s = t.blurRadius;
|
635
|
+
return [n ? "inset" : null, o, i, void 0 === s
|
636
|
+
? 0
|
637
|
+
: s, t.spreadRadius, t.color].filter((function ( e ) {
|
638
|
+
return null != e
|
639
|
+
})).map(c).map((function ( e ) {
|
640
|
+
return ("" + e).trim()
|
641
|
+
})).join(" ")
|
642
|
+
}, l = function ( e ) {
|
643
|
+
return "0" === e || a.test(e)
|
644
|
+
}, u = function ( e ) {
|
645
|
+
if ( !/px$/.test(e) && "0" !== e ) return e;
|
646
|
+
var t = parseFloat(e);
|
647
|
+
return isNaN(t) ? e : t
|
648
|
+
}, c = function ( e ) {
|
649
|
+
return "number" == typeof e && 0 !== e ? e + "px" : e
|
650
|
+
}, {
|
651
|
+
parse: function ( e ) {
|
652
|
+
return e.split(r).map((function ( e ) {
|
653
|
+
return e.trim()
|
654
|
+
})).map(i)
|
655
|
+
}, stringify: function ( e ) {
|
656
|
+
return e.map(s).join(", ")
|
657
|
+
}
|
658
|
+
}),
|
659
|
+
v = { perspective: "px" },
|
660
|
+
y = { translateX: "x" },
|
661
|
+
w = { inset: m.Xg, color: m.$_ };
|
662
|
+
|
663
|
+
function b( e, t, n, r, o, a ) {
|
664
|
+
var i, s = e.split("_");
|
665
|
+
if ( s.length > 2 ) {
|
666
|
+
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]]));
|
667
|
+
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();
|
668
|
+
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();
|
669
|
+
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();
|
670
|
+
0 !== r[s[0]].length || a || (delete r[s[0]], delete o[s[0]], delete n[s[0]])
|
671
|
+
}
|
672
|
+
else console.log("wtf", s)
|
673
|
+
}
|
674
|
+
|
675
|
+
function _( e, t, n, r, o, a ) {
|
676
|
+
var i = n, s = g.Dl[e] || v[r];
|
677
|
+
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
|
678
|
+
? (0, g.HM)(i) + s
|
679
|
+
: (0, g.HM)(i)
|
680
|
+
}
|
681
|
+
|
682
|
+
function R( e, t, n, r, o ) {
|
683
|
+
for ( var a, i, s, l, u, c, p = [], f = {}, d = 0, h = 0; d < r[e].length; d++ ) {
|
684
|
+
for ( i in f = {}, a = r[e][d] ) if ( a.hasOwnProperty(i) ) {
|
685
|
+
if ( l = e + "_" + d + "_" + i, w[i] ) c = w[i].demux(l, t, void 0, r, o); else {
|
686
|
+
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]
|
687
|
+
? u = " - " + u.substr(1)
|
688
|
+
: h && (u = " + " + u), c += u, h++);
|
689
|
+
h > 1 && (c = "calc(" + c + ")")
|
690
|
+
}
|
691
|
+
f[i] = c || 0
|
692
|
+
}
|
693
|
+
p.push(f)
|
694
|
+
}
|
695
|
+
n[e] = x.stringify(p)
|
696
|
+
}
|
697
|
+
|
698
|
+
function T( e, t, n, r, o, a, i, s ) {
|
699
|
+
var l = !!h().string(n) && n.match(g._9),
|
700
|
+
u = l && l[2] || v[t] || "px",
|
701
|
+
c = g.Dl.indexOf(u),
|
702
|
+
p = -1 !== c && e + "_" + c || e;
|
703
|
+
return a[p] = 0, o[e][c] = o[e][c] || 0, s && s[c]
|
704
|
+
? r[p] += l ? parseFloat(l[1]) : parseFloat(n)
|
705
|
+
: (!i && o[e][c]++, r[p] = l
|
706
|
+
? parseFloat(l[1])
|
707
|
+
: parseFloat(n), s && (s[c] = !0)), R
|
708
|
+
}
|
709
|
+
|
710
|
+
var S = function ( e, t, n, r, o, a, i ) {
|
711
|
+
r[e] = r[e] || [], h().array(t) || (t = [t]);
|
712
|
+
for ( var s, l, u, c, p, d, g, m = 0; m < t.length; m++ ) {
|
713
|
+
for ( l in s = t[m], h().string(s) && (s = x.parse(s)[0]), u = i
|
714
|
+
? {}
|
715
|
+
: 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);
|
716
|
+
r[e][m] = i ? f()({}, u, r[e][m] || {}, u) : u
|
717
|
+
}
|
718
|
+
return R
|
719
|
+
}
|
720
|
+
}, 213: e => {
|
721
|
+
"use strict";
|
722
|
+
e.exports = require("@babel/runtime/helpers/extends")
|
723
|
+
}, 367: e => {
|
724
|
+
"use strict";
|
725
|
+
e.exports = require("d3-ease")
|
726
|
+
}, 73 : e => {
|
727
|
+
"use strict";
|
728
|
+
e.exports = require("is")
|
729
|
+
}
|
730
|
+
}, t = {};
|
731
|
+
|
732
|
+
function n( r ) {
|
733
|
+
var o = t[r];
|
734
|
+
if ( void 0 !== o ) return o.exports;
|
735
|
+
var a = t[r] = { exports: {} };
|
736
|
+
return e[r](a, a.exports, n), a.exports
|
737
|
+
}
|
738
|
+
|
739
|
+
n.n = e => {
|
740
|
+
var t = e && e.__esModule ? () => e.default : () => e;
|
741
|
+
return n.d(t, { a: t }), t
|
742
|
+
}, n.d = ( e, t ) => {
|
743
|
+
for ( var r in t ) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, { enumerable: !0, get: t[r] })
|
744
|
+
}, n.o = ( e, t ) => Object.prototype.hasOwnProperty.call(e, t), n.r = e => {
|
745
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 })
|
746
|
+
};
|
747
|
+
var r = {};
|
748
|
+
(() => {
|
749
|
+
"use strict";
|
750
|
+
n.r(r), n.d(r, {
|
751
|
+
Axis : () => we,
|
752
|
+
Component : () => Fe,
|
753
|
+
Context : () => g,
|
754
|
+
Draggable : () => Be,
|
755
|
+
Node : () => Me,
|
756
|
+
child : () => je,
|
757
|
+
default : () => Ne,
|
758
|
+
dom : () => te,
|
759
|
+
hook : () => ye,
|
760
|
+
tools : () => e,
|
761
|
+
tweener : () => Ie,
|
762
|
+
useTweener: () => ke,
|
763
|
+
useVoodoo : () => ye
|
764
|
+
});
|
765
|
+
var e = {};
|
766
|
+
n.r(e), n.d(e, {
|
767
|
+
addCss : () => M,
|
768
|
+
cssAdd : () => _,
|
769
|
+
cssMult : () => R,
|
770
|
+
extractCss : () => A,
|
771
|
+
offset : () => T,
|
772
|
+
re_cssValueWithUnit: () => b,
|
773
|
+
reverse : () => E,
|
774
|
+
scale : () => S,
|
775
|
+
shiftTransforms : () => k,
|
776
|
+
target : () => B
|
777
|
+
});
|
778
|
+
const t = require("@babel/runtime/helpers/inheritsLoose");
|
779
|
+
var o = n.n(t);
|
780
|
+
const a = require("react");
|
781
|
+
var i = n.n(a);
|
782
|
+
const s = require("fast-deep-equal");
|
783
|
+
var l = n.n(s), u = n(213), c = n.n(u);
|
784
|
+
const p = require("@babel/runtime/helpers/objectWithoutPropertiesLoose");
|
785
|
+
var f = n.n(p), d = n(73), h = n.n(d);
|
786
|
+
const g = i().createContext(null), m = require("@babel/runtime/helpers/assertThisInitialized");
|
787
|
+
var x = n.n(m), v = n(367);
|
788
|
+
const y = require("react-dom");
|
789
|
+
var w = n.n(y),
|
790
|
+
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("|") + ")");
|
791
|
+
|
792
|
+
function _( e, t ) {
|
793
|
+
h().array(e) || (e = [e]), h().array(t) || (t = [t]);
|
794
|
+
var n, r = e.map((function ( e ) {
|
795
|
+
return e && e.match && e.match(b) || [, e || 0, "px"]
|
796
|
+
})), o = t.map((function ( e ) {
|
797
|
+
return e && e.match && e.match(b) || [, e || 0, "px"]
|
798
|
+
})), a = {}, i = [];
|
799
|
+
for ( n = 0; n < r.length; ) a[r[n][2]] = a[r[n][2]] || 0, a[r[n][2]] += parseFloat(r[n][1]), n++;
|
800
|
+
for ( n = 0; n < o.length; ) a[o[n][2]] = a[o[n][2]] || 0, a[o[n][2]] += parseFloat(o[n][1]), n++;
|
801
|
+
Object.keys(a).forEach((function ( e ) {
|
802
|
+
return i.push(a[e] + e)
|
803
|
+
}));
|
804
|
+
for ( var s = arguments.length, l = new Array(s > 2
|
805
|
+
? s - 2
|
806
|
+
: 0), u = 2; u < s; u++ ) l[u - 2] = arguments[u];
|
807
|
+
return l.length ? _.apply(void 0, [i].concat(l)) : i
|
808
|
+
}
|
809
|
+
|
810
|
+
function R( e, t ) {
|
811
|
+
h().array(e) || (e = [e]);
|
812
|
+
var n, r = e.map((function ( e ) {
|
813
|
+
return e && e.match && e.match(b) || [, e || 0, "px"]
|
814
|
+
})), o = {}, a = [];
|
815
|
+
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++;
|
816
|
+
return Object.keys(o).forEach((function ( e ) {
|
817
|
+
return a.push(o[e] + e)
|
818
|
+
})), a
|
819
|
+
}
|
820
|
+
|
821
|
+
function T( e, t ) {
|
822
|
+
return void 0 === t && (t = 0), (e = h().array(e) ? e : e && [e] || e).map((function ( e ) {
|
823
|
+
return c()({}, e, { from: e.from + t })
|
824
|
+
}))
|
825
|
+
}
|
826
|
+
|
827
|
+
function S( e, t, n ) {
|
828
|
+
void 0 === t && (t = 0), e = h().array(e) ? e : e && [e] || e;
|
829
|
+
var r = 0;
|
830
|
+
return e.forEach((function ( e ) {
|
831
|
+
r = Math.max(r, e.from + e.duration)
|
832
|
+
})), e = e.map((function ( e ) {
|
833
|
+
return c()({}, e, { from: e.from / r * t, duration: e.duration / r * t })
|
834
|
+
})), n ? T(e, n) : e
|
835
|
+
}
|
836
|
+
|
837
|
+
function P( e ) {
|
838
|
+
return h().number(e) ? -e : h().object(e) ? Object.keys(e).reduce((function ( t, n ) {
|
839
|
+
return t[n] = P(e[n]), t
|
840
|
+
}), {}) : h().array(e) ? e.map((function ( e ) {
|
841
|
+
return P(e)
|
842
|
+
})) : e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function ( e, t ) {
|
843
|
+
return t % 2 ? -parseFloat(e) : e
|
844
|
+
})).join("")
|
845
|
+
}
|
846
|
+
|
847
|
+
function E( e ) {
|
848
|
+
e = h().array(e) ? e : e && [e] || e;
|
849
|
+
var t = 0;
|
850
|
+
return e.forEach((function ( e ) {
|
851
|
+
t = Math.max(t, e.from + e.duration)
|
852
|
+
})), e.map((function ( e ) {
|
853
|
+
return c()({}, e, { from: t - (e.from + e.duration) }, e.apply ? { apply: P(e.apply) } : void 0)
|
854
|
+
}))
|
855
|
+
}
|
856
|
+
|
857
|
+
var D = { transform: !0, filter: !0, textShadow: !0, boxShadow: !0 };
|
858
|
+
|
859
|
+
function M( e ) {
|
860
|
+
for ( var t = arguments.length, n = new Array(t > 1
|
861
|
+
? t - 1
|
862
|
+
: 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r];
|
863
|
+
var o = n.shift();
|
864
|
+
for ( var a in o ) {
|
865
|
+
var i;
|
866
|
+
o.hasOwnProperty(a) && (D[a]
|
867
|
+
? (e[a] || (e[a] = []), h().array(o[a]) ? M(e[a], o[a]) : M(e[a], [o[a]]))
|
868
|
+
: h().array(o[a])
|
869
|
+
? (e[a] || (e[a] = []), h().array(e[a])
|
870
|
+
? (i = e[a]).push.apply(i, o[a])
|
871
|
+
: e[a] = [].concat(o[a], [e[a]]))
|
872
|
+
: e[a] ? h().object(e[a]) && h().object(o[a])
|
873
|
+
? M(e[a], o[a])
|
874
|
+
: e[a] = O(e[a], o[a]) : h().object(o[a])
|
875
|
+
? e[a] = c()({}, o[a])
|
876
|
+
: e[a] = o[a])
|
877
|
+
}
|
878
|
+
return n.length && M.apply(void 0, [e].concat(n)) || e
|
879
|
+
}
|
880
|
+
|
881
|
+
function O( e, t ) {
|
882
|
+
if ( !e ) return t;
|
883
|
+
if ( !t ) return e;
|
884
|
+
var n = ("" + e).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),
|
885
|
+
r = ("" + t).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),
|
886
|
+
o = n.map((function ( e, t ) {
|
887
|
+
return t % 2 ? parseFloat(e) + parseFloat(r[t] || 0) : e
|
888
|
+
})).filter((function ( e ) {
|
889
|
+
return "" !== e
|
890
|
+
}));
|
891
|
+
return 1 === o.length ? parseInt(o[0]) : o.join("")
|
892
|
+
}
|
893
|
+
|
894
|
+
function A( e, t ) {
|
895
|
+
var n = {};
|
896
|
+
return (e = h().array(e) ? e : e && [e] || e).forEach((function ( e ) {
|
897
|
+
M(n, e.apply)
|
898
|
+
})), t && (n = P(n)), n
|
899
|
+
}
|
900
|
+
|
901
|
+
function B( e, t ) {
|
902
|
+
return (e = h().array(e) ? e : e && [e] || e).map((function ( e ) {
|
903
|
+
return c()({}, e, { target: t })
|
904
|
+
}))
|
905
|
+
}
|
906
|
+
|
907
|
+
function k( e, t ) {
|
908
|
+
return void 0 === t && (t = 1), (e = h().array(e) ? e : e && [e] || e).map((function ( e ) {
|
909
|
+
var n = e.apply && e.apply.transform;
|
910
|
+
if ( n ) {
|
911
|
+
n = h().array(n) ? n : [n];
|
912
|
+
for ( var r = 0; r < t; r++ ) n.unshift({});
|
913
|
+
e = c()({}, e, { apply: c()({}, e.apply, { transform: n }) })
|
914
|
+
}
|
915
|
+
return e
|
916
|
+
}))
|
917
|
+
}
|
918
|
+
|
919
|
+
var C = n(259), I = {}, L = n(450).walknSetExport;
|
920
|
+
L(I, "filter", n(111)), L(I, "boxShadow", n(39)), L(I, "transform", n(374)), L(I, "textShadow", n(178)), L(I, "backgroundColor", n(38));
|
921
|
+
const W = I;
|
922
|
+
var j = n(227),
|
923
|
+
F = c()({}, W, {
|
924
|
+
height: j.kE,
|
925
|
+
width: j.kE,
|
926
|
+
top: j.kE,
|
927
|
+
left: j.kE,
|
928
|
+
right: j.kE,
|
929
|
+
bottom: j.kE,
|
930
|
+
marginTop: j.kE,
|
931
|
+
marginLeft: j.kE,
|
932
|
+
marginRight: j.kE,
|
933
|
+
marginBottom: j.kE,
|
934
|
+
paddingTop: j.kE,
|
935
|
+
paddingLeft: j.kE,
|
936
|
+
paddingRight: j.kE,
|
937
|
+
paddingBottom: j.kE,
|
938
|
+
borderRadius: j.kE,
|
939
|
+
borderTopColor: j.$_,
|
940
|
+
borderLeftColor: j.$_,
|
941
|
+
borderRightColor: j.$_,
|
942
|
+
borderBottomColor: j.$_,
|
943
|
+
borderTopWidth: j.kE,
|
944
|
+
borderLeftWidth: j.kE,
|
945
|
+
borderRightWidth: j.kE,
|
946
|
+
borderBottomWidth: j.kE,
|
947
|
+
transformOrigin: (0, j.fi)(2),
|
948
|
+
zIndex: j.Rx,
|
949
|
+
opacity: j.bC
|
950
|
+
});
|
951
|
+
|
952
|
+
function N( e, t, n, r, o, a, i ) {
|
953
|
+
var s;
|
954
|
+
null == (s = a[t.split("_")[0]]) || s.release(t, n, r, o, a, i)
|
955
|
+
}
|
956
|
+
|
957
|
+
function z( e, t, n, r, o ) {
|
958
|
+
Object.keys(n).forEach((function ( a ) {
|
959
|
+
n[a].demux(a, e, t, r, o)
|
960
|
+
}))
|
961
|
+
}
|
962
|
+
|
963
|
+
function H( e, t, n, r, o, a, i ) {
|
964
|
+
var s = {}, l = {};
|
965
|
+
return e && Object.keys(e).forEach((function ( t ) {
|
966
|
+
F[t] ? s[t] = e[t] : (0, C.JO)(t, e[t])
|
967
|
+
? (0, C._j)(t) ? (0, C.dn)(t, e[t], s) : s[t] = e[t]
|
968
|
+
: l[t] = e[t]
|
969
|
+
})), s && Object.keys(s).forEach((function ( e ) {
|
970
|
+
F[e] ? (o[e] = F[e]).mux(e, s[e], t, r, n, a, i) : (o[e] = function ( e ) {
|
971
|
+
var t = C.NQ[e], n = t && t.types;
|
972
|
+
if ( !n ) return j.Yj;
|
973
|
+
for ( var r = 0; r < n.length; r++ ) switch ( n[r] ) {
|
974
|
+
case"length":
|
975
|
+
case"length-percentage-calc":
|
976
|
+
return j.kE;
|
977
|
+
case"number":
|
978
|
+
case"integer":
|
979
|
+
return j.Rx;
|
980
|
+
case"color":
|
981
|
+
return j.$_
|
982
|
+
}
|
983
|
+
return j.Yj
|
984
|
+
}(e)).mux(e, s[e], t, r, n, a, i)
|
985
|
+
})), l
|
986
|
+
}
|
987
|
+
|
988
|
+
function V( e, t, n, r, o ) {
|
989
|
+
o = o && {};
|
990
|
+
var a = {}, i = e.reduce((function ( e, i ) {
|
991
|
+
var s = {};
|
992
|
+
return r[i.target] = r[i.target] || {}, t[i.target] = t[i.target] || {}, n[i.target] = n[i.target] || {}, i.type && "Tween" !== i.type
|
993
|
+
? e.push(c()({}, i))
|
994
|
+
: (!o && M(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
|
995
|
+
}), []);
|
996
|
+
return !o && Object.keys(a).forEach((function ( e ) {
|
997
|
+
return H(a[e], {}, {}, n[e], r[e])
|
998
|
+
})), i
|
999
|
+
}
|
1000
|
+
|
1001
|
+
const Y = require("tween-axis");
|
1002
|
+
var X,
|
1003
|
+
q,
|
1004
|
+
$ = n.n(Y),
|
1005
|
+
G = [],
|
1006
|
+
U = function ( e ) {
|
1007
|
+
function t( t, n ) {
|
1008
|
+
var r;
|
1009
|
+
if ( G.length ) {
|
1010
|
+
var o = G.pop();
|
1011
|
+
return o.scope = n, h().array(t)
|
1012
|
+
? (o.localLength = 1, o.mount(t, n))
|
1013
|
+
: t.Axis && o.mount(t.Axis, n), o || x()(r)
|
1014
|
+
}
|
1015
|
+
return e.apply(this, arguments) || this
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
return o()(t, e), t.prototype.destroy = function () {
|
1019
|
+
this.scope = void 0, this.__marks.length = 0, this.__marksLength.length = 0, this.__marksKeys.length = 0, this.__processors.length = 0, this.__config.length = 0, this.__activeProcess.length = 0, this.__activeProcess.length = 0, this.__outgoing.length = 0, this.__incoming.length = 0, this.__cPos = 0, this.duration = 0, this.__cIndex = 0, this.__cMaxKey = 1, G.push(this)
|
1020
|
+
}, t
|
1021
|
+
}($()),
|
1022
|
+
Z = n(73),
|
1023
|
+
J = "undefined" != typeof window,
|
1024
|
+
K = (J && (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)), J
|
1025
|
+
? {
|
1026
|
+
prefix: /webkit/i.test(navigator.appVersion)
|
1027
|
+
? "webkit"
|
1028
|
+
: /firefox/i.test(navigator.userAgent)
|
1029
|
+
? "Moz"
|
1030
|
+
: /trident/i.test(navigator.userAgent)
|
1031
|
+
? "ms"
|
1032
|
+
: "opera" in window
|
1033
|
+
? "O"
|
1034
|
+
: "",
|
1035
|
+
dashedPrefix: /webkit/i.test(navigator.appVersion)
|
1036
|
+
? "-webkit-"
|
1037
|
+
: /firefox/i.test(navigator.userAgent)
|
1038
|
+
? "-moz-"
|
1039
|
+
: /trident/i.test(navigator.userAgent)
|
1040
|
+
? "-ms-"
|
1041
|
+
: "opera" in window
|
1042
|
+
? "-o-"
|
1043
|
+
: ""
|
1044
|
+
}
|
1045
|
+
: {
|
1046
|
+
prefix: "",
|
1047
|
+
dashedPrefix: ""
|
1048
|
+
}),
|
1049
|
+
Q = {
|
1050
|
+
onPageHided: [],
|
1051
|
+
onPageShown: [],
|
1052
|
+
dragging: [],
|
1053
|
+
dragEnabled: [],
|
1054
|
+
dragEnabledDesc: [],
|
1055
|
+
fingers: {},
|
1056
|
+
nbFingers: 0,
|
1057
|
+
dragstartAnywhere: function ( e ) {
|
1058
|
+
var t, n, r, o = Q, a = o.dragEnabled.indexOf(this), i = [];
|
1059
|
+
if ( -1 !== a ) {
|
1060
|
+
o.nbFingers || (ee.addEvent(document, {
|
1061
|
+
touchmove: o.dragAnywhere,
|
1062
|
+
mousemove: o.dragAnywhere,
|
1063
|
+
touchend: o.dropAnywhere,
|
1064
|
+
mouseup: o.dropAnywhere
|
1065
|
+
}), ee.addEvent(this, { click: o.dropWithoutClick }, null, null, null, !0)), e.changedTouches && e.changedTouches.length
|
1066
|
+
? i = e.changedTouches
|
1067
|
+
: i.push(e);
|
1068
|
+
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" == K.prefix
|
1069
|
+
? n.x
|
1070
|
+
: n.pageX, r._startPos.y = "MS" == K.prefix
|
1071
|
+
? n.y
|
1072
|
+
: n.pageY, r._startTs = e.timeStamp, r._lastPos.x = "MS" == K.prefix
|
1073
|
+
? n.x
|
1074
|
+
: n.pageX, r._lastPos.y = "MS" == K.prefix
|
1075
|
+
? n.y
|
1076
|
+
: n.pageY, t = 0; t < r.dragstart.length; t++ ) r.dragstart[t][0].call(r.dragstart[t][1] || this, e, n, r)
|
1077
|
+
}
|
1078
|
+
},
|
1079
|
+
dragAnywhere: function ( e ) {
|
1080
|
+
var t, n, r, o = this, a = Q, i = [];
|
1081
|
+
Q.dragging[0], e.changedTouches && e.changedTouches.length ? i = e.changedTouches : i.push(e);
|
1082
|
+
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 ) {
|
1083
|
+
if ( r ) return a._lastPos.x = a._startPos.x = "MS" == K.prefix
|
1084
|
+
? n.x
|
1085
|
+
: n.pageX, void (a._lastPos.y = a._startPos.y = "MS" == K.prefix
|
1086
|
+
? n.y
|
1087
|
+
: n.pageY);
|
1088
|
+
for ( a._lastPos.x = "MS" == K.prefix ? n.x : n.pageX, a._lastPos.y = "MS" == K.prefix
|
1089
|
+
? n.y
|
1090
|
+
: n.pageY, t = 0; t < a.drag.length; t++ ) r = !1 === a.drag[t][0].call(a.drag[t][1] || o, e, n, a)
|
1091
|
+
}))
|
1092
|
+
},
|
1093
|
+
dropWithoutClick: function ( e ) {
|
1094
|
+
Q.preventNextClick && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), Q.preventNextClick = !1), ee.removeEvent(this, { click: this.dropWithoutClick })
|
1095
|
+
},
|
1096
|
+
dropAnywhere: function ( e ) {
|
1097
|
+
var t, n, r, o = this, a = Q, i = [];
|
1098
|
+
e.changedTouches && e.changedTouches.length ? i = e.changedTouches : i.push(e);
|
1099
|
+
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 ) {
|
1100
|
+
for ( a.nbFingers--, r = r || a.mouseDrag && e.timeStamp - a._startTs > 250, a._lastPos.x = "MS" == K.prefix
|
1101
|
+
? n.x
|
1102
|
+
: n.pageX, a._lastPos.y = "MS" == K.prefix
|
1103
|
+
? n.y
|
1104
|
+
: n.pageY, t = 0; t < a.dropped.length; t++ ) a.dropped[t][0].call(a.dropped[t][1] || o, e, n, a)
|
1105
|
+
})), a.fingers[n.identifier] = null;
|
1106
|
+
r && (a.preventNextClick = !0), a.nbFingers || ee.removeEvent(document, {
|
1107
|
+
touchmove: a.dragAnywhere,
|
1108
|
+
mousemove: a.dragAnywhere,
|
1109
|
+
touchend: a.dropAnywhere,
|
1110
|
+
mouseup: a.dropAnywhere
|
1111
|
+
})
|
1112
|
+
},
|
1113
|
+
getDraggable: function ( e, t, n ) {
|
1114
|
+
var r, o = this.dragEnabled.indexOf(e);
|
1115
|
+
return -1 === o ? (this.dragEnabled.push(e), this.dragEnabledDesc.push(r = {
|
1116
|
+
mouseDrag: t,
|
1117
|
+
touchDrag: n,
|
1118
|
+
nbFingers: 0,
|
1119
|
+
locks: 0,
|
1120
|
+
_startPos: {
|
1121
|
+
x: 0,
|
1122
|
+
y: 0
|
1123
|
+
},
|
1124
|
+
_lastPos: {
|
1125
|
+
x: 0,
|
1126
|
+
y: 0
|
1127
|
+
},
|
1128
|
+
dragstart: [],
|
1129
|
+
drag: [],
|
1130
|
+
dragEnd: [],
|
1131
|
+
dropped: []
|
1132
|
+
}), ee.addEvent(e, {
|
1133
|
+
mousedown: t && this.dragstartAnywhere,
|
1134
|
+
touchstart: n && this.dragstartAnywhere
|
1135
|
+
}, null, null, null, !0)) : r = this.dragEnabledDesc[o], r
|
1136
|
+
},
|
1137
|
+
freeDraggable: function ( e ) {
|
1138
|
+
var t = this.dragEnabled.indexOf(e);
|
1139
|
+
-1 !== t && (this.dragEnabled.splice(t, 1), this.dragEnabledDesc.splice(t, 1), ee.removeEvent(e, {
|
1140
|
+
mousedown: this.dragstartAnywhere,
|
1141
|
+
touchstart: this.dragstartAnywhere
|
1142
|
+
}))
|
1143
|
+
},
|
1144
|
+
addEvent: function ( e, t, n, r ) {
|
1145
|
+
e.addEventListener
|
1146
|
+
? e.addEventListener(t, n, r)
|
1147
|
+
: e.attachEvent && e.attachEvent("on" + t, n.related = function ( t ) {
|
1148
|
+
return n.call(e, t)
|
1149
|
+
})
|
1150
|
+
},
|
1151
|
+
removeEvent: function ( e, t, n, r ) {
|
1152
|
+
e.removeEventListener
|
1153
|
+
? e.removeEventListener(t, n, r)
|
1154
|
+
: e.attachEvent && e.detachEvent("on" + t, n.related)
|
1155
|
+
},
|
1156
|
+
rmDragFn: function ( e, t, n ) {
|
1157
|
+
for ( var r = 0, o = e.length; r < o; r++ ) if ( e[r][0] === t ) return e.splice(r, 1);
|
1158
|
+
console.warn("Rm event : Listener not found !!")
|
1159
|
+
}
|
1160
|
+
},
|
1161
|
+
ee = {
|
1162
|
+
addEvent: function ( e, t, n, r, o, a ) {
|
1163
|
+
if ( void 0 === o && (o = !0), Z.object(t) ) for ( var i in t ) t.hasOwnProperty(i) && t[i] && this.addEvent(e, i, t[i], r, o, a); else "dragstart" === t
|
1164
|
+
? Q.getDraggable(e, r, o).dragstart.push([n])
|
1165
|
+
: "drag" === t
|
1166
|
+
? Q.getDraggable(e, r, o).drag.push([n])
|
1167
|
+
: "dropped" === t
|
1168
|
+
? Q.getDraggable(e, r, o).dropped.push([n])
|
1169
|
+
: e.addEventListener
|
1170
|
+
? e.addEventListener(t, n, { passive: !1 })
|
1171
|
+
: e.attachEvent && e.attachEvent("on" + t, n.related = function ( t ) {
|
1172
|
+
return n.call(e, t)
|
1173
|
+
})
|
1174
|
+
}, removeEvent: function ( e, t, n, r, o ) {
|
1175
|
+
var a;
|
1176
|
+
if ( Z.object(t) ) for ( var i in t ) t.hasOwnProperty(i) && this.removeEvent(e, i, t[i], r); else /^(drag|drop)/.test(t)
|
1177
|
+
? (a = Q.getDraggable(e), Q.rmDragFn(a[t], n, r), a.dragstart.length || a.drag.length || a.dragEnd.length || a.dropped.length || Q.freeDraggable(e))
|
1178
|
+
: e.removeEventListener
|
1179
|
+
? e.removeEventListener(t, n, o)
|
1180
|
+
: e.attachEvent && e.detachEvent("on" + t, n.related)
|
1181
|
+
}, offset: function ( e ) {
|
1182
|
+
for ( var t = {
|
1183
|
+
top: 0,
|
1184
|
+
left: 0,
|
1185
|
+
width: e.offsetWidth,
|
1186
|
+
height: e.offsetHeight
|
1187
|
+
}; e; ) t.top = t.top + parseInt(e.offsetTop), t.left = t.left + parseInt(e.offsetLeft), e = e.offsetParent;
|
1188
|
+
return t
|
1189
|
+
}, findReactParents: function ( e ) {
|
1190
|
+
var t, n = [e];
|
1191
|
+
for ( var r in e ) if ( r.startsWith("__reactInternalInstance$") || r.startsWith("__reactFiber$") ) {
|
1192
|
+
for ( t = e[r]; t.return; ) t.stateNode && !n.includes(t.stateNode) && n.push(t.stateNode), t = t.return;
|
1193
|
+
return n
|
1194
|
+
}
|
1195
|
+
return e.parentNode && this.findReactParents(e.parentNode)
|
1196
|
+
}
|
1197
|
+
};
|
1198
|
+
const te = ee;
|
1199
|
+
var ne = n(73), re = n(367), oe = function ( e ) {
|
1200
|
+
return "number" == typeof e ? e ? e < 0 ? -1 : 1 : e == e ? e : NaN : NaN
|
1201
|
+
}, ae = Math.abs, ie = Math.floor, se = (Math.round, Math.min), le = Math.max, ue = function ( e ) {
|
1202
|
+
return void 0 === e && (e = 0), e.toFixed(3)
|
1203
|
+
}, ce = function () {
|
1204
|
+
function e( e ) {
|
1205
|
+
var t = this._ = {};
|
1206
|
+
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()
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
var t = e.prototype;
|
1210
|
+
return t.updateConf = function ( e ) {
|
1211
|
+
var t = this._;
|
1212
|
+
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
|
1213
|
+
}, t.startMove = function () {
|
1214
|
+
var e = this._;
|
1215
|
+
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
|
1216
|
+
}, t.hold = function ( e ) {
|
1217
|
+
var t,
|
1218
|
+
n = this._,
|
1219
|
+
r = void 0 !== n.lastHoldPos ? e - n.lastHoldPos : 0,
|
1220
|
+
o = Date.now() / 1e3,
|
1221
|
+
a = o - n.baseTS,
|
1222
|
+
i = e,
|
1223
|
+
s = r / a;
|
1224
|
+
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 || ae(s) < ae(.2 * n.lastVelocity)) && o - n.lastBaseTs > .15
|
1225
|
+
? (n.lastBasePos = e, n.lastBaseTs = o, n.lastVelocity = 0, n.lastIVelocity = 0, n.baseTS = o, n.targetDist = 0, n.lastInertiaPos = 0)
|
1226
|
+
: s <= 0 && n.lastVelocity > 0 || s >= 0 && n.lastVelocity < 0 || ae(s) < ae(.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
|
1227
|
+
? i = n.max
|
1228
|
+
: i < n.min && (i = n.min)), n.conf.shouldLoop ) for ( ; t = n.conf.shouldLoop(i, r); ) i += t;
|
1229
|
+
n.pos = i
|
1230
|
+
}, t.release = function () {
|
1231
|
+
var e = this._;
|
1232
|
+
oe(e.lastVelocity), this.holding = !1, function ( e ) {
|
1233
|
+
var t = oe(e.lastVelocity);
|
1234
|
+
e.disabled
|
1235
|
+
? (e.loopsTarget = 0, e.loopsVelSum = 0, e.targetDist = 0, e.targetDuration = 0)
|
1236
|
+
: (e.loopsTarget = ie(Math.log(.05 / ae(e.lastVelocity)) / Math.log(.9)), e.loopsVelSum = (Math.pow(.9, e.loopsTarget) - ae(e.lastVelocity)) / (.9 - 1), e.targetDist = e.loopsVelSum * e.refFPS * t / 1e3 || 0, e.targetDuration = ae(e.loopsTarget * e.refFPS * t) || 0)
|
1237
|
+
}(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
|
1238
|
+
? (e.targetDist = e.max - e.pos, e.targetDuration = ae(10 * e.targetDist))
|
1239
|
+
: e.pos + e.targetDist < e.min && (e.targetDist = e.min - e.pos, e.targetDuration = ae(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)
|
1240
|
+
}, t.update = function ( e ) {
|
1241
|
+
void 0 === e && (e = Date.now());
|
1242
|
+
var t, n, r = this._, o = r.inertiaFn((e - r.inertiaStartTm) / r.targetDuration) * r.targetDist;
|
1243
|
+
if ( !r.inertia ) return r.pos;
|
1244
|
+
var a = o - r.lastInertiaPos;
|
1245
|
+
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;
|
1246
|
+
return r.pos = t, t
|
1247
|
+
}, t.setPos = function ( e ) {
|
1248
|
+
var t = this._;
|
1249
|
+
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 ) {
|
1250
|
+
for ( var n, r = e; n = t.conf.shouldLoop(r, t.pos - e); ) r += n;
|
1251
|
+
e = r
|
1252
|
+
}
|
1253
|
+
t.pos = e, t.conf.bounds && (t.pos = le(t.pos, t.min), t.pos = se(t.pos, t.max))
|
1254
|
+
}, t.setWayPoints = function ( e ) {
|
1255
|
+
this._.wayPoints = e, this._detectCurrentSnap()
|
1256
|
+
}, t.teleport = function ( e ) {
|
1257
|
+
var t = this._;
|
1258
|
+
if ( !t.inertia ) return t.pos += e;
|
1259
|
+
t.pos += e
|
1260
|
+
}, t.dispatch = function ( e, t ) {
|
1261
|
+
void 0 === t && (t = 500);
|
1262
|
+
var n = this._, r = Date.now();
|
1263
|
+
this.active = !0, n.inertia && oe(e) === oe(n.targetDist)
|
1264
|
+
? (n.targetDist += e, n.targetDuration += t / 2)
|
1265
|
+
: (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
|
1266
|
+
? (n.targetDist = n.max - n.pos, n.targetDuration = ae(10 * n.targetDist))
|
1267
|
+
: n.pos + n.targetDist < n.min && (n.targetDist = n.min - n.pos, n.targetDuration = ae(10 * n.targetDist))), this._doSnap(oe(e), 750)
|
1268
|
+
}, t._detectCurrentSnap = function () {
|
1269
|
+
var e, t = this._, n = t.pos;
|
1270
|
+
if ( t.wayPoints && t.wayPoints.length ) for ( e = 0; e < t.wayPoints.length; e++ ) if ( ue(t.wayPoints[e].at) === ue(n) ) return t.currentWayPoint = t.wayPoints[e], t.currentWayPointIndex = e, e
|
1271
|
+
}, t._doSnap = function ( e, t ) {
|
1272
|
+
void 0 === t && (t = 2e3);
|
1273
|
+
var n, r, o, a, i = this._, s = i.targetDist + (i.pos - (i.lastInertiaPos || 0)), l = 0;
|
1274
|
+
if ( i.wayPoints && i.wayPoints.length ) {
|
1275
|
+
if ( i.conf.shouldLoop ) for ( ; a = i.conf.shouldLoop(s, 0); ) s += a, l += a;
|
1276
|
+
for ( o = 0; o < i.wayPoints.length && !(i.wayPoints[o].at > s); o++ ) ;
|
1277
|
+
if ( o === i.wayPoints.length ? o-- : 0 === o
|
1278
|
+
? o = 0
|
1279
|
+
: (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
|
1280
|
+
? e < 0 && o--
|
1281
|
+
: s < r && o--), i.conf.maxJump && ne.number(i.currentWayPointIndex) ) {
|
1282
|
+
var u = o - i.currentWayPointIndex;
|
1283
|
+
ae(u) > i.conf.maxJump && (o = i.currentWayPointIndex + oe(u) * i.conf.maxJump)
|
1284
|
+
}
|
1285
|
+
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 = le(50, se(t, ae(i.targetDuration / i.targetDist * n))) || 0, i.targetDist = n, i.targetWayPoint = i.wayPoints[o], i.targetWayPointIndex = o
|
1286
|
+
}
|
1287
|
+
else n = ~~(i.pos - i.lastInertiaPos), i.conf.infinite || (n > i.max
|
1288
|
+
? (n = i.max - n, i.targetDuration = se(t, ae(i.targetDuration / i.targetDist * n)), i.targetDist = n)
|
1289
|
+
: n < i.min && (n = i.min - n, i.targetDuration = se(t, ae(i.targetDuration / i.targetDist * n)), i.targetDist = n))
|
1290
|
+
}, t.setBounds = function ( e, t ) {
|
1291
|
+
var n = this._;
|
1292
|
+
n.min = e, n.max = t
|
1293
|
+
}, t.isInbound = function ( e ) {
|
1294
|
+
var t = this._,
|
1295
|
+
n = void 0 !== t.lastHoldPos ? e - t.lastHoldPos : 0,
|
1296
|
+
r = (t.targetDist || 0) + (t.pos - (t.lastInertiaPos || 0)) + n;
|
1297
|
+
return r >= t.min && r <= t.max
|
1298
|
+
}, e
|
1299
|
+
}();
|
1300
|
+
ce.config = { bounds: !0, snapToBounds: !0 };
|
1301
|
+
var pe,
|
1302
|
+
fe,
|
1303
|
+
de = new Function("try {return this===window;}catch(e){ return false;}")(),
|
1304
|
+
he = h().array,
|
1305
|
+
ge = [],
|
1306
|
+
me = function e() {
|
1307
|
+
var t = 0, n = Date.now(), r = n - fe;
|
1308
|
+
for ( fe = n; t < ge.length; t++ ) ge[t].cpos = Math.min(r + ge[t].cpos, ge[t].duration), ge[t].apply(ge[t].cpos, ge[t].duration), ge[t].cpos == ge[t].duration && (ge[t].cb && setTimeout(ge[t].cb), ge.splice(t, 1), t--);
|
1309
|
+
ge.length ? setTimeout(e, 16) : pe = !1
|
1310
|
+
},
|
1311
|
+
xe = function ( e ) {
|
1312
|
+
function t( t ) {
|
1313
|
+
var n;
|
1314
|
+
(n = e.apply(this, arguments) || this).axes = {}, n._scrollWatcherByAxis = {}, n._updateNodeInertia = function () {
|
1315
|
+
var e, t = n._, r = t.activeInertia.length;
|
1316
|
+
n._inertiaRaf && cancelAnimationFrame(n._inertiaRaf);
|
1317
|
+
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--);
|
1318
|
+
n._inertiaRaf = 0 !== r ? requestAnimationFrame(n._updateNodeInertia) : null
|
1319
|
+
}, n._swap = {};
|
1320
|
+
var r = n._ = { refs: {}, muxByTarget: {} };
|
1321
|
+
return r.box = {
|
1322
|
+
x: 100,
|
1323
|
+
y: 100,
|
1324
|
+
z: 800
|
1325
|
+
}, n.__isTweener = !0, r._rafLoop = n._rafLoop.bind(x()(n)), r.rootRef = n.props.forwardedRef || i().createRef(), r.options = c()({
|
1326
|
+
maxClickTm: 200,
|
1327
|
+
maxClickOffset: 5
|
1328
|
+
}, 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 = [], de && window.addEventListener("resize", n._.onResize = function ( e ) {
|
1329
|
+
var t, o;
|
1330
|
+
n._updateBox(), n._updateTweenRefs(), null == (t = r.rootRef) || null == (o = t.current) || null == o.windowDidResize || o.windowDidResize(e)
|
1331
|
+
}), n
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
o()(t, e);
|
1335
|
+
var n = t.prototype;
|
1336
|
+
return n.tweenRef = function ( e, t, n, r, o, a, i ) {
|
1337
|
+
void 0 === t && (t = {}), void 0 === n && (n = {});
|
1338
|
+
var s = this._, u = {}, p = {};
|
1339
|
+
return s.tweenRefs[e] || s.tweenRefTargets.push(e), !s.tweenRefs[e] || !i && s.iMapOrigin[e] === n && l()(n, s.iMapOrigin[e]) && s.tweenRefOriginCss[e] === t && l()(t, s.tweenRefOriginCss[e])
|
1340
|
+
? s.tweenRefs[e]
|
1341
|
+
? z(s.tweenRefMaps[e], s.tweenRefCSS[e], s.muxByTarget[e], s.muxDataByTarget[e], s.box)
|
1342
|
+
: (s.iMapOrigin[e] = n, t = t || {}, n = n || {}, s.tweenRefs[e] = !0, s.muxByTarget[e] = s.muxByTarget[e] || {}, s.muxDataByTarget[e] = s.muxDataByTarget[e] || {}, s.tweenRefOriginCss[e] = t, s.tweenRefMaps[e] = s.tweenRefMaps[e] || {}, s.tweenRefOrigin[e]
|
1343
|
+
? (t = c()({}, t, H(n, u, p, s.muxDataByTarget[e], s.muxByTarget[e], !1, !0)), Object.keys(p).forEach((function ( t ) {
|
1344
|
+
return s.tweenRefMaps[e][t] = h().number(s.tweenRefMaps[e][t])
|
1345
|
+
? s.tweenRefMaps[e][t] - p[t]
|
1346
|
+
: 0
|
1347
|
+
})), Object.keys(u).forEach((function ( t ) {
|
1348
|
+
return s.tweenRefMaps[e][t] += u[t]
|
1349
|
+
})))
|
1350
|
+
: (t = c()({}, t, H(n, u, p, s.muxDataByTarget[e], s.muxByTarget[e])), u = Object.assign({}, p, u || {}), Object.keys(u).forEach((function ( t ) {
|
1351
|
+
return s.tweenRefMaps[e][t] = (s.tweenRefMaps[e][t] || 0) + u[t]
|
1352
|
+
}))), s.tweenRefOrigin[e] = c()({}, u), s.tweenRefCSS[e] = t, z(u = s.tweenRefMaps[e], t, s.muxByTarget[e], s.muxDataByTarget[e], s.box))
|
1353
|
+
: (s.iMapOrigin[e] = n, s.tweenRefOriginCss[e] = t, t = t || {}, n = n || {}, t = c()({}, t, H(n, u, p, s.muxDataByTarget[e], s.muxByTarget[e], !1, !0)), Object.keys(s.tweenRefOrigin[e]).forEach((function ( t ) {
|
1354
|
+
return s.tweenRefMaps[e][t] -= s.tweenRefOrigin[e][t]
|
1355
|
+
})), Object.keys(p).forEach((function ( t ) {
|
1356
|
+
return s.tweenRefMaps[e][t] = h().number(s.tweenRefMaps[e][t]) ? s.tweenRefMaps[e][t] : p[t]
|
1357
|
+
})), Object.keys(u).forEach((function ( t ) {
|
1358
|
+
return s.tweenRefMaps[e][t] += u[t]
|
1359
|
+
})), Object.keys(s.tweenRefOrigin[e]).forEach((function ( t ) {
|
1360
|
+
N(0, t, s.tweenRefMaps[e], s.tweenRefCSS[e], s.muxDataByTarget[e], s.muxByTarget[e])
|
1361
|
+
})), Object.keys(s.tweenRefCSS[e]).forEach((function ( n ) {
|
1362
|
+
!s.tweenRefCSS[e][n] || s.muxByTarget[e][n] || t[n] || delete s.tweenRefCSS[e][n]
|
1363
|
+
})), Object.keys(t).forEach((function ( n ) {
|
1364
|
+
s.tweenRefCSS[e][n] === t[n] || s.muxByTarget[e][n] || (s.tweenRefCSS[e][n] = t[n])
|
1365
|
+
})), s.tweenRefOrigin[e] = c()({}, u), z(s.tweenRefMaps[e], s.tweenRefCSS[e], s.muxByTarget[e], s.muxDataByTarget[e], s.box), this._updateTweenRef(e, !0)), a
|
1366
|
+
? { style: c()({}, s.tweenRefCSS[e]) }
|
1367
|
+
: {
|
1368
|
+
style: c()({}, s.tweenRefCSS[e]),
|
1369
|
+
ref: h().function(o)
|
1370
|
+
? function ( t ) {
|
1371
|
+
return s.refs[e] = o(t)
|
1372
|
+
}
|
1373
|
+
: o
|
1374
|
+
? function ( t ) {
|
1375
|
+
return s.refs[e] = o.current = t
|
1376
|
+
}
|
1377
|
+
: function ( t ) {
|
1378
|
+
return s.refs[e] = t
|
1379
|
+
}
|
1380
|
+
}
|
1381
|
+
}, n.rmTweenRef = function ( e ) {
|
1382
|
+
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])
|
1383
|
+
}, n.resetTweenable = function () {
|
1384
|
+
for ( var e = this, t = this._, n = arguments.length, r = new Array(n), o = 0; o < n; o++ ) r[o] = arguments[o];
|
1385
|
+
r.forEach((function ( n ) {
|
1386
|
+
e.tweenRef(n, t.tweenRefOriginCss[n], t.iMapOrigin[n], null, null, null, !0)
|
1387
|
+
})), this._updateTweenRefs()
|
1388
|
+
}, n.updateRefStyle = function ( e, t, n ) {
|
1389
|
+
var r, o = this, a = this._;
|
1390
|
+
return he(e) && he(t) ? e.map((function ( e, r ) {
|
1391
|
+
return o.updateRefStyle(e, t[r], n)
|
1392
|
+
})) : he(e) ? e.map((function ( e ) {
|
1393
|
+
return o.updateRefStyle(e, t, n)
|
1394
|
+
})) : a.tweenRefMaps[e]
|
1395
|
+
? (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))
|
1396
|
+
: console.warn("React-Voodoo : Can't update styles of an unknown Node id '", e, "'")
|
1397
|
+
}, n.getTweenableRef = function ( e ) {
|
1398
|
+
try {
|
1399
|
+
return this._.refs[e] && w().findDOMNode(this._.refs[e])
|
1400
|
+
} catch ( t ) {
|
1401
|
+
try {
|
1402
|
+
return this._.refs[e]._.rootRef.current
|
1403
|
+
} catch ( t ) {
|
1404
|
+
return void console.warn("react-voodoo: Can't find voodooNode ", e, t)
|
1405
|
+
}
|
1406
|
+
}
|
1407
|
+
}, n.getRootNode = function () {
|
1408
|
+
try {
|
1409
|
+
return this.getTweenableRef(this._.rootRef) || this.isMountedFromHook && this._.rootRef && this._.rootRef.current || w().findDOMNode(this)
|
1410
|
+
} catch ( e ) {
|
1411
|
+
return this._.rootRef && this._.rootRef.current
|
1412
|
+
}
|
1413
|
+
}, n.pushAnim = function ( e, n, r ) {
|
1414
|
+
var o = this;
|
1415
|
+
void 0 === r && (r = !0);
|
1416
|
+
var a, i, s = this._, l = {};
|
1417
|
+
if ( he(e)
|
1418
|
+
? a = e
|
1419
|
+
: (a = e.anims, e.initial), a instanceof U || (a = V(a, l, this._.muxDataByTarget, this._.muxByTarget), a = new U(a, this._.tweenRefMaps), Object.keys(l).forEach((function ( e ) {
|
1420
|
+
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)
|
1421
|
+
}))), !i ) return new Promise((function ( e ) {
|
1422
|
+
a.run(o._.tweenRefMaps, (function () {
|
1423
|
+
var t = o._.runningAnims.indexOf(a);
|
1424
|
+
-1 != t && o._.runningAnims.splice(t, 1), Object.keys(l).forEach((function ( e ) {
|
1425
|
+
Object.keys(l[e]).forEach((function ( t ) {
|
1426
|
+
N(0, t, s.tweenRefMaps[e], s.tweenRefCSS[e], s.muxDataByTarget[e], s.muxByTarget[e], r)
|
1427
|
+
}))
|
1428
|
+
})), a.destroy(), e(a)
|
1429
|
+
})), o._.runningAnims.push(a), o._.live || (o._.live = !0, requestAnimationFrame(o._._rafLoop = o._._rafLoop || o._rafLoop.bind(o)))
|
1430
|
+
})).then((function ( e ) {
|
1431
|
+
return n && n(e)
|
1432
|
+
}))
|
1433
|
+
}, n.applyTweenState = function ( e, t, n ) {
|
1434
|
+
var r = this, o = {}, a = {};
|
1435
|
+
H(t, o, a, this._.muxDataByTarget[e], this._.muxByTarget[e], !0), Object.keys(o).map((function ( t ) {
|
1436
|
+
return r._.tweenRefMaps[e][t] = (!n && r._.tweenRefMaps[e][t] || a[t]) + o[t]
|
1437
|
+
}))
|
1438
|
+
}, n.initAxis = function ( e, t, n ) {
|
1439
|
+
var r = this,
|
1440
|
+
o = t.inertia,
|
1441
|
+
a = t.scrollableArea,
|
1442
|
+
i = void 0 === a ? 0 : a,
|
1443
|
+
s = t.scrollableBounds,
|
1444
|
+
l = t.scrollableWindow,
|
1445
|
+
u = t.defaultPosition,
|
1446
|
+
p = t.scrollFirst,
|
1447
|
+
f = (this._, this.axes[e]),
|
1448
|
+
d = s,
|
1449
|
+
h = !n && f ? f.scrollPos : u || d && d.min || 0,
|
1450
|
+
g = Math.max(f && f.scrollableArea || 0, i),
|
1451
|
+
m = Math.max(f && f.scrollableWindow || 0, l),
|
1452
|
+
x = f ? f.targetPos : h,
|
1453
|
+
v = f ? f.inertia : new ce(c()({ disabled: !o }, o || {}, { value: h })),
|
1454
|
+
y = {
|
1455
|
+
scrollFirst: p,
|
1456
|
+
tweenAxis: f && f.tweenAxis || [],
|
1457
|
+
scrollPos: h,
|
1458
|
+
targetPos: x,
|
1459
|
+
inertia: v,
|
1460
|
+
scrollableWindow: m,
|
1461
|
+
scrollableBounds: d,
|
1462
|
+
scrollableArea: g,
|
1463
|
+
scrollTo: function ( t, n, o, a ) {
|
1464
|
+
return r.scrollTo(t, n, e, o, a)
|
1465
|
+
}
|
1466
|
+
};
|
1467
|
+
this.axes[e] = y, !o && (v._.disabled = !0), o && v && !v.active && (v._.pos = h), o && v && v.updateConf(o), v && d
|
1468
|
+
? null == v.setBounds || v.setBounds(d.min, d.max)
|
1469
|
+
: v && (null == v.setBounds || v.setBounds(0, g))
|
1470
|
+
}, n._getAxis = function ( e ) {
|
1471
|
+
var t = this;
|
1472
|
+
void 0 === e && (e = "scrollY");
|
1473
|
+
var n = this._;
|
1474
|
+
return this.axes[e] = this.axes[e] || {
|
1475
|
+
tweenAxis: [],
|
1476
|
+
scrollPos: n.options.initialScrollPos && n.options.initialScrollPos[e] || 0,
|
1477
|
+
targetPos: 0,
|
1478
|
+
scrollableWindow: 0,
|
1479
|
+
scrollableArea: 0,
|
1480
|
+
inertia: new ce(c()({ value: n.options.initialScrollPos && n.options.initialScrollPos[e] || 0 }, n.options.axes && n.options.axes[e] && n.options.axes[e].inertia || {})),
|
1481
|
+
scrollTo: function ( n, r, o, a ) {
|
1482
|
+
return t.scrollTo(n, r, e, o, a)
|
1483
|
+
}
|
1484
|
+
}, this.axes[e]
|
1485
|
+
}, n.getAxisState = function ( e ) {
|
1486
|
+
var t = this, n = (this._, {});
|
1487
|
+
return this.axes && Object.keys(this.axes).forEach((function ( e ) {
|
1488
|
+
return n[e] = t.axes[e].targetPos || t.axes[e].scrollPos
|
1489
|
+
})), n
|
1490
|
+
}, n.getScrollPos = function ( e ) {
|
1491
|
+
return void 0 === e && (e = "scrollY"), this._, this.axes[e]
|
1492
|
+
? this.axes[e].targetPos || this.axes[e].scrollPos
|
1493
|
+
: 0
|
1494
|
+
}, n.scrollTo = function ( e, t, n, r, o ) {
|
1495
|
+
var a = this;
|
1496
|
+
void 0 === t && (t = 0), void 0 === n && (n = "scrollY");
|
1497
|
+
var i = this._;
|
1498
|
+
return de
|
1499
|
+
? new Promise((function ( s, l ) {
|
1500
|
+
if ( a.axes && a.axes[n] ) {
|
1501
|
+
var u, c, p, f, d, h, g, m, x, y = a.axes[n].targetPos, w = function ( e ) {
|
1502
|
+
var t, r;
|
1503
|
+
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()
|
1504
|
+
};
|
1505
|
+
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)
|
1506
|
+
? void 0
|
1507
|
+
: x._.pos), a.axes[n].tweenAxis.forEach((function ( t ) {
|
1508
|
+
return t.goTo(e, i.tweenRefMaps, !1, o)
|
1509
|
+
})), w(e), s();
|
1510
|
+
i.live || (i.live = !0, requestAnimationFrame(i._rafLoop))
|
1511
|
+
}
|
1512
|
+
})).then((function ( e ) {
|
1513
|
+
var t, r, o;
|
1514
|
+
null == (t = a.axes) || null == (r = t[n]) || null == (o = r.inertia) || o._detectCurrentSnap()
|
1515
|
+
}))
|
1516
|
+
: (console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"), Promise.resolve())
|
1517
|
+
}, n.addScrollableAnim = function ( e, t, n ) {
|
1518
|
+
var r, o = this;
|
1519
|
+
void 0 === t && (t = "scrollY");
|
1520
|
+
var a, i = this._, s = {}, l = this._getAxis(t);
|
1521
|
+
return he(e)
|
1522
|
+
? a = e
|
1523
|
+
: (a = e.anims, e.length), a instanceof U || (a = V(a, s, this._.muxDataByTarget, this._.muxByTarget), (a = new U(a, i.tweenRefMaps)).initials = s, Object.keys(s).forEach((function ( e ) {
|
1524
|
+
i.tweenRefOrigin[e] = i.tweenRefOrigin[e] || {}, i.tweenRefMaps[e] = i.tweenRefMaps[e] || {}, Object.assign(o._.tweenRefMaps[e], c()({}, s[e], o._.tweenRefMaps[e]))
|
1525
|
+
}))), 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
|
1526
|
+
}, n.rmScrollableAnim = function ( e, t ) {
|
1527
|
+
void 0 === t && (t = "scrollY");
|
1528
|
+
var n, r, o = this._, a = this._getAxis(t), i = a.tweenAxis.indexOf(e);
|
1529
|
+
-1 !== i && (a.tweenAxis.splice(i, 1), a.scrollableArea = Math.max.apply(Math, a.tweenAxis.map((function ( e ) {
|
1530
|
+
return e.duration
|
1531
|
+
})).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 ) {
|
1532
|
+
Object.keys(e.initials[t]).forEach((function ( e ) {
|
1533
|
+
N(0, e, o.tweenRefMaps[t], o.tweenRefCSS[t], o.muxDataByTarget[t], o.muxByTarget[t])
|
1534
|
+
}))
|
1535
|
+
})), delete e.initials, e.destroy(), n = !0, this._updateTweenRefs()), !n && console.warn("react-voodoo: Axis not found : ", t)
|
1536
|
+
}, n._runScrollGoTo = function ( e, t, n, r, o, a, i ) {
|
1537
|
+
var s = this;
|
1538
|
+
void 0 === r && (r = function ( e ) {
|
1539
|
+
return e
|
1540
|
+
});
|
1541
|
+
var l = this.axes[e].scrollPos, u = t - l;
|
1542
|
+
ge.push({
|
1543
|
+
apply: function ( t, n ) {
|
1544
|
+
var i, c, p, f, d, h, g, m, x, v = l + r(t / n) * u;
|
1545
|
+
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)
|
1546
|
+
? void 0
|
1547
|
+
: x._.pos), s.axes[e].tweenAxis.forEach((function ( e ) {
|
1548
|
+
return e.goTo(v, s._.tweenRefMaps, !1, o)
|
1549
|
+
})), a && a(v))
|
1550
|
+
}, duration: n, cpos: 0, cb: i
|
1551
|
+
}), pe || (pe = !0, fe = Date.now(), setTimeout(me, 16))
|
1552
|
+
}, n.componentShouldScroll = function () {
|
1553
|
+
var e, t = this._;
|
1554
|
+
return !(t.rootRef && t.rootRef.current && t.rootRef.current.componentShouldScroll) || (e = t.rootRef.current).componentShouldScroll.apply(e, arguments)
|
1555
|
+
}, n.watchAxis = function ( e, t ) {
|
1556
|
+
var n = this._scrollWatcherByAxis;
|
1557
|
+
return n[e] = n[e] || [], n[e].push(t), function () {
|
1558
|
+
var r = n[e].indexOf(t);
|
1559
|
+
n[e].splice(r, 1)
|
1560
|
+
}
|
1561
|
+
}, n.axisDidScroll = function ( e, t ) {
|
1562
|
+
var n = this._scrollWatcherByAxis[t], r = null == n ? void 0 : n.length;
|
1563
|
+
if ( n ) for ( ; r; ) n[--r](e)
|
1564
|
+
}, n.applyInertia = function ( e, t ) {
|
1565
|
+
var n, r, o = this, a = e.inertia.update(), i = this._;
|
1566
|
+
this.axes[t].tweenAxis.forEach((function ( e ) {
|
1567
|
+
o.axes[t].targetPos = o.axes[t].scrollPos = a, e.goTo(a, o._.tweenRefMaps)
|
1568
|
+
})), 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
|
1569
|
+
? e.inertiaFrame = setTimeout(this.applyInertia.bind(this, e, t), 33)
|
1570
|
+
: e.inertiaFrame = null
|
1571
|
+
}, n.isInertiaActive = function () {
|
1572
|
+
var e = this, t = (this._, !1);
|
1573
|
+
return this.axes && Object.keys(this.axes).forEach((function ( n ) {
|
1574
|
+
return t = t || e.axes[n] && e.axes[n].inertia.active
|
1575
|
+
})), t
|
1576
|
+
}, n.isAxisOut = function ( e, t, n ) {
|
1577
|
+
this._;
|
1578
|
+
var r = this.axes && this.axes[e], o = n ? t : r && r.scrollPos + t;
|
1579
|
+
return o = o && Math.round(o), !r || (r.scrollableBounds
|
1580
|
+
? o <= r.scrollableBounds.min || o >= r.scrollableBounds.max
|
1581
|
+
: o <= 0 || o >= r.scrollableArea)
|
1582
|
+
}, n._activateNodeInertia = function ( e ) {
|
1583
|
+
var t = this._, n = t.activeInertia.findIndex((function ( t ) {
|
1584
|
+
return t.target === e
|
1585
|
+
}));
|
1586
|
+
return -1 === n && (t.activeInertia.push({
|
1587
|
+
inertia: {
|
1588
|
+
x: new ce({
|
1589
|
+
max: e.scrollWidth - e.offsetLeft,
|
1590
|
+
value: e.scrollLeft
|
1591
|
+
}),
|
1592
|
+
y: new ce({
|
1593
|
+
max: e.scrollHeight - e.offsetHeight,
|
1594
|
+
value: e.scrollTop
|
1595
|
+
})
|
1596
|
+
}, target: e
|
1597
|
+
}), n = t.activeInertia.length - 1), t.activeInertia[n].inertia
|
1598
|
+
}, n.setRootRef = function ( e ) {
|
1599
|
+
this._.rootRef = e
|
1600
|
+
}, n._updateBox = function () {
|
1601
|
+
var e = this.getRootNode();
|
1602
|
+
e && (this._.box.inited = !0, this._.box.x = e.offsetWidth, this._.box.y = e.offsetHeight)
|
1603
|
+
}, n._rafLoop = function () {
|
1604
|
+
this._updateTweenRefs(), this._.runningAnims.length
|
1605
|
+
? requestAnimationFrame(this._._rafLoop)
|
1606
|
+
: this._.live = !1
|
1607
|
+
}, n._updateTweenRefs = function () {
|
1608
|
+
if ( this._.tweenEnabled ) for ( var e, t = 0; t < this._.tweenRefTargets.length; t++ ) e = this._.tweenRefTargets[t], this._updateTweenRef(e)
|
1609
|
+
}, n._updateTweenRef = function ( e, t ) {
|
1610
|
+
var n, r = this._swap;
|
1611
|
+
if ( this._.tweenRefCSS[e] && z(this._.tweenRefMaps[e], r, this._.muxByTarget[e], this._.muxDataByTarget[e], this._.box), n = this.getTweenableRef(e) ) {
|
1612
|
+
for ( var o in this._.tweenRefCSS[e] ) void 0 === r[o] && (n.style[o] = this._.tweenRefCSS[e][o]);
|
1613
|
+
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])
|
1614
|
+
}
|
1615
|
+
return this._.tweenRefCSS[e]
|
1616
|
+
}, n.componentWillUnmount = function () {
|
1617
|
+
var t = this;
|
1618
|
+
this.getRootNode(), this._.tweenEnabled && (this._.tweenEnabled = !1, window.removeEventListener("resize", this._.onResize), Object.keys(this.axes).forEach((function ( e ) {
|
1619
|
+
t.axes[e].inertiaFrame && clearTimeout(t.axes[e].inertiaFrame)
|
1620
|
+
}))), e.prototype.componentWillUnmount && e.prototype.componentWillUnmount.apply(this, arguments)
|
1621
|
+
}, n.componentDidMount = function () {
|
1622
|
+
var t = this, n = this.constructor;
|
1623
|
+
this._.rendered = !0, this._.tweenEnabled && (this._updateBox(), this._updateTweenRefs()), n.scrollableAnim && (h().array(n.scrollableAnim)
|
1624
|
+
? this.addScrollableAnim(n.scrollableAnim)
|
1625
|
+
: Object.keys(n.scrollableAnim).forEach((function ( e ) {
|
1626
|
+
return t.addScrollableAnim(n.scrollableAnim[e], e)
|
1627
|
+
}))), e.prototype.componentDidMount && e.prototype.componentDidMount.apply(this, arguments)
|
1628
|
+
}, n.componentDidUpdate = function ( t, n ) {
|
1629
|
+
this._.tweenEnabled && (this._updateBox(), this._updateTweenRefs()), e.prototype.componentDidUpdate && e.prototype.componentDidUpdate.apply(this, arguments)
|
1630
|
+
}, n.render = function () {
|
1631
|
+
var e = this, t = this.props, n = t.BaseComponent, r = t.oProps;
|
1632
|
+
return i().createElement(g.Consumer, null, (function ( t ) {
|
1633
|
+
return e._parentTweener = t, i().createElement(g.Provider, { value: e }, i().createElement(n, c()({}, r, {
|
1634
|
+
ref: e._.rootRef,
|
1635
|
+
tweener: e
|
1636
|
+
})))
|
1637
|
+
}))
|
1638
|
+
}, t
|
1639
|
+
}(i().Component),
|
1640
|
+
ve = ["children"];
|
1641
|
+
const ye = function ( e, t ) {
|
1642
|
+
void 0 === t && (t = "div");
|
1643
|
+
var n = i().useContext(g), r = i().useRef(), o = i().useRef(), a = i().useMemo((function () {
|
1644
|
+
return !0 === e || h().string(e)
|
1645
|
+
}), []), s = i().useMemo((function () {
|
1646
|
+
if ( !0 === e ) return n;
|
1647
|
+
if ( h().string(e) ) {
|
1648
|
+
for ( var t = n; null != (o = t) && o._ && t._.options.name !== e; ) {
|
1649
|
+
var o;
|
1650
|
+
if ( !t._parentTweener ) {
|
1651
|
+
console.warn('react-voodoo: No parent tweener found with option.key === "' + e + '"');
|
1652
|
+
break
|
1653
|
+
}
|
1654
|
+
t = t._parentTweener
|
1655
|
+
}
|
1656
|
+
return t
|
1657
|
+
}
|
1658
|
+
var a = new xe({ forwardedRef: r, tweenerOptions: e });
|
1659
|
+
return a.isMountedFromHook = !0, a._parentTweener = n, a
|
1660
|
+
}), []), l = i().useMemo((function () {
|
1661
|
+
return i().forwardRef((function ( e, n ) {
|
1662
|
+
var o = e.children, a = f()(e, ve);
|
1663
|
+
return i().createElement(g.Provider, { value: s }, i().createElement(t, c()({
|
1664
|
+
ref: n
|
1665
|
+
? function ( e ) {
|
1666
|
+
return n.current = r.current = e
|
1667
|
+
}
|
1668
|
+
: r
|
1669
|
+
}, a), o))
|
1670
|
+
}))
|
1671
|
+
}), []);
|
1672
|
+
return i().useEffect((function () {
|
1673
|
+
var e;
|
1674
|
+
if ( !a && null != (e = o.current) && e._ ) return s.componentDidMount(), o.current = s, function () {
|
1675
|
+
var e;
|
1676
|
+
null != (e = o.current) && e._ && (o.current.componentWillUnmount(), o.current = null)
|
1677
|
+
}
|
1678
|
+
}), []), i().useEffect((function () {
|
1679
|
+
var e;
|
1680
|
+
!a && null != (e = o.current) && e._ && (o.current._updateBox(), o.current._updateTweenRefs())
|
1681
|
+
}), [r.current]), i().useEffect((function () {
|
1682
|
+
var e;
|
1683
|
+
!a && null != (e = o.current) && e._ && (o.current._parentTweener = n)
|
1684
|
+
}), [n]), i().useEffect((function () {
|
1685
|
+
var t;
|
1686
|
+
!a && null != (t = o.current) && t._ && (o.current._.options = e, o.current._updateBox(), o.current._updateTweenRefs())
|
1687
|
+
}), [e]), i().useMemo((function () {
|
1688
|
+
return [s, l]
|
1689
|
+
}), [l, s])
|
1690
|
+
}, we = function ( e ) {
|
1691
|
+
e.children;
|
1692
|
+
var t = e.id,
|
1693
|
+
n = e.axe,
|
1694
|
+
r = void 0 === n ? t : n,
|
1695
|
+
o = e.scrollFirst,
|
1696
|
+
a = e.bounds,
|
1697
|
+
s = e.scrollableWindow,
|
1698
|
+
u = e.inertia,
|
1699
|
+
c = e.size,
|
1700
|
+
p = e.defaultPosition,
|
1701
|
+
f = e.items,
|
1702
|
+
d = void 0 === f ? [] : f,
|
1703
|
+
h = i().useRef({}).current,
|
1704
|
+
g = ye(!0)[0];
|
1705
|
+
return h.previousAxis && h.previousAxis === r
|
1706
|
+
? 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, {
|
1707
|
+
inertia : u,
|
1708
|
+
size : c,
|
1709
|
+
scrollableWindow: s,
|
1710
|
+
defaultPosition : p,
|
1711
|
+
scrollFirst : o,
|
1712
|
+
scrollableBounds: a
|
1713
|
+
}))
|
1714
|
+
: (h.previousAxis = r, h.previousInertia = u, g.initAxis(r, {
|
1715
|
+
inertia: u,
|
1716
|
+
size: c,
|
1717
|
+
scrollableWindow: s,
|
1718
|
+
defaultPosition: p,
|
1719
|
+
scrollFirst: o,
|
1720
|
+
scrollableBounds: a
|
1721
|
+
}, !0)), h.previousTweener && h.previousTweener === g
|
1722
|
+
? 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)
|
1723
|
+
: (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 () {
|
1724
|
+
return function () {
|
1725
|
+
h.lastTL && h.previousTweener && h.previousTweener.rmScrollableAnim(h.lastTL, h.previousAxis), delete h.previousTweener, delete h.previousScrollable
|
1726
|
+
}
|
1727
|
+
}), []), i().createElement(i().Fragment, null)
|
1728
|
+
}, be = require("shortid");
|
1729
|
+
var _e = n.n(be);
|
1730
|
+
|
1731
|
+
function Re( e ) {
|
1732
|
+
return "function" == typeof e && !(e.prototype && e.prototype.isReactComponent)
|
1733
|
+
}
|
1734
|
+
|
1735
|
+
function Te( e ) {
|
1736
|
+
return function ( e ) {
|
1737
|
+
return "function" == typeof e && !!e.prototype.isReactComponent
|
1738
|
+
}(e) || Re(e)
|
1739
|
+
}
|
1740
|
+
|
1741
|
+
var Se = ["children", "id", "style", "initial", "pos", "noRef", "reset", "tweener", "isRoot", "axes", "refProp", "tweenLines", "tweenAxis"],
|
1742
|
+
Pe = ["children", "className"];
|
1743
|
+
|
1744
|
+
function Ee( e, t ) {
|
1745
|
+
return e.map((function ( e ) {
|
1746
|
+
return c()({}, e, { target: t })
|
1747
|
+
}))
|
1748
|
+
}
|
1749
|
+
|
1750
|
+
var De = i().forwardRef((function ( e, t ) {
|
1751
|
+
var n = e.children,
|
1752
|
+
r = e.id,
|
1753
|
+
o = void 0 === r ? i().useMemo((function () {
|
1754
|
+
return _e().generate()
|
1755
|
+
}), []) : r,
|
1756
|
+
a = e.style,
|
1757
|
+
s = e.initial,
|
1758
|
+
u = e.pos,
|
1759
|
+
p = e.noRef,
|
1760
|
+
d = (e.reset, e.tweener),
|
1761
|
+
g = (e.isRoot, e.axes),
|
1762
|
+
m = e.refProp,
|
1763
|
+
x = void 0 === m ? "nodeRef" : m,
|
1764
|
+
v = e.tweenLines,
|
1765
|
+
y = void 0 === v ? g : v,
|
1766
|
+
w = e.tweenAxis,
|
1767
|
+
b = void 0 === w ? y : w,
|
1768
|
+
_ = f()(e, Se),
|
1769
|
+
R = i().useRef({}).current,
|
1770
|
+
T = ye(!0)[0];
|
1771
|
+
if ( !(T = d || T) ) return console.error("No Voodoo tweener found in the context, is there any parent ViewBox ?"), i().createElement(i().Fragment, null);
|
1772
|
+
var S, P = T.tweenRef(o, n.props && n.props.style, a || s, u, t, p);
|
1773
|
+
i().useEffect((function () {
|
1774
|
+
return function () {
|
1775
|
+
R._tweenAxisObj && Object.keys(R._tweenAxisObj).forEach((function ( e ) {
|
1776
|
+
return R._currentTweener.rmScrollableAnim(R._tweenAxisObj[e], e)
|
1777
|
+
})), R._currentTweener && (R._currentTweener.rmTweenRef(R.__tweenableId), R._currentTweener.setRootRef(void 0)), delete R._currentTweener, delete R._tweenAxisObj, delete R._previousScrollable
|
1778
|
+
}
|
1779
|
+
}), []), (S = R._tweenAxis !== b && !(R._tweenAxis && l()(b, R._tweenAxis)) || b && !R._tweenAxis) || R._currentTweener !== T || R._previousScrollable !== b
|
1780
|
+
? (R._currentTweener && S && R._tweenAxisObj && Object.keys(R._tweenAxisObj).forEach((function ( e ) {
|
1781
|
+
return R._currentTweener.rmScrollableAnim(R._tweenAxisObj[e], e)
|
1782
|
+
})), R._currentTweener && R._currentTweener !== T && R._currentTweener.rmTweenRef(o), S && (R._tweenAxis = b, b && h().array(b)
|
1783
|
+
? R._tweenAxisObj = { scrollY: T.addScrollableAnim(Ee(b, o)) }
|
1784
|
+
: R._tweenAxisObj = b && Object.keys(b).reduce((function ( e, t ) {
|
1785
|
+
return e[t] = T.addScrollableAnim(Ee(b[t], o), t), e
|
1786
|
+
}), {}), P = T.tweenRef(o, n.props && n.props.style, a || s, u, t, p)), P.style = c()({}, T._updateTweenRef(o, !0)), _.hasOwnProperty("isRoot") && (R._currentTweener && R._currentTweener.setRootRef(void 0), d.setRootRef(o)), R._currentTweener = T, R._previousScrollable = b)
|
1787
|
+
: P && (P.style = c()({}, T._updateTweenRef(o, !0)));
|
1788
|
+
var E, D = i().Children.only(n);
|
1789
|
+
return D && i().isValidElement(D)
|
1790
|
+
? (R._lastRef = P, Re(D.type)
|
1791
|
+
? i().createElement(D.type, c()({}, _, D.props, P, { ref: void 0 }, ((E = {})[x] = P.ref, E)))
|
1792
|
+
: i().createElement(D.type, c()({}, _, D.props, P)))
|
1793
|
+
: (console.error("Invalid voodoo Node child : ", o), i().createElement("div", null, "Invalid"))
|
1794
|
+
}));
|
1795
|
+
const Me = De;
|
1796
|
+
De.div = i().forwardRef((function ( e, t ) {
|
1797
|
+
var n = e.children, r = e.className, o = f()(e, Pe);
|
1798
|
+
return i().createElement(De, c()({}, o, { ref: t }), i().createElement("div", { className: r }, n))
|
1799
|
+
}));
|
1800
|
+
var Oe = ["children", "Comp", "nodeRef", "items", "xAxis", "yAxis", "yBoxRef", "xBoxRef", "yRef", "yHook", "xHook", "tweener", "mouseDrag", "touchDrag", "button"],
|
1801
|
+
Ae = i().forwardRef((function ( e, t ) {
|
1802
|
+
var n = e.children,
|
1803
|
+
r = e.Comp,
|
1804
|
+
o = void 0 === r ? "div" : r,
|
1805
|
+
a = e.nodeRef,
|
1806
|
+
s = (e.items, e.xAxis),
|
1807
|
+
l = e.yAxis,
|
1808
|
+
u = e.yBoxRef,
|
1809
|
+
p = e.xBoxRef,
|
1810
|
+
d = (e.yRef, e.yHook),
|
1811
|
+
g = e.xHook,
|
1812
|
+
m = e.tweener,
|
1813
|
+
x = e.mouseDrag,
|
1814
|
+
v = void 0 !== x && x,
|
1815
|
+
y = e.touchDrag,
|
1816
|
+
w = void 0 === y || y,
|
1817
|
+
b = e.button,
|
1818
|
+
_ = void 0 === b ? 0 : b,
|
1819
|
+
R = f()(e, Oe),
|
1820
|
+
T = i().useRef(),
|
1821
|
+
S = i().useRef({ root: T, _: {} }).current,
|
1822
|
+
P = ye(!0)[0],
|
1823
|
+
E = i().useMemo((function () {
|
1824
|
+
return {
|
1825
|
+
getScrollableNodes: function ( e ) {
|
1826
|
+
for ( var t = [], n = S._parentTweener; n; ) t.push(n), n = n._parentTweener;
|
1827
|
+
return t
|
1828
|
+
}, _registerScrollListeners: function () {
|
1829
|
+
var e,
|
1830
|
+
t,
|
1831
|
+
n,
|
1832
|
+
r,
|
1833
|
+
o,
|
1834
|
+
a,
|
1835
|
+
i,
|
1836
|
+
s,
|
1837
|
+
l,
|
1838
|
+
u = null == (e = S.root) ? void 0 : e.current,
|
1839
|
+
c = S.props,
|
1840
|
+
p = c.xAxis,
|
1841
|
+
f = c.yAxis,
|
1842
|
+
d = c.yHook,
|
1843
|
+
h = c.xHook,
|
1844
|
+
g = c.mouseDrag,
|
1845
|
+
m = c.touchDrag,
|
1846
|
+
x = c.tweener,
|
1847
|
+
v = c.xBoxRef,
|
1848
|
+
y = c.yBoxRef,
|
1849
|
+
w = c.button,
|
1850
|
+
b = x._;
|
1851
|
+
u ? (te.addEvent(u, S._.dragList = {
|
1852
|
+
dragstart: function ( e, n, c ) {
|
1853
|
+
var d, h, g, m;
|
1854
|
+
if ( !(e instanceof MouseEvent && e.button !== w) ) for ( o = E.getScrollableNodes(e.target), t = Date.now(), r = 0, a = 0, i = [], s = null == (d = (null == v
|
1855
|
+
? void 0
|
1856
|
+
: v.current) || u)
|
1857
|
+
? void 0
|
1858
|
+
: d.offsetWidth, l = null == (h = (null == y
|
1859
|
+
? void 0
|
1860
|
+
: y.current) || u)
|
1861
|
+
? void 0
|
1862
|
+
: h.offsetHeight, m = 0; m < o.length; m++ ) {
|
1863
|
+
var x, b;
|
1864
|
+
(g = o[m])._updateBox(), g.__isTweener && (p && (null == (x = g.axes) || x[p]), f && (null == (b = g.axes) || b[f]), g._updateNodeInertia())
|
1865
|
+
}
|
1866
|
+
}, click: function ( e, n, o ) {
|
1867
|
+
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())
|
1868
|
+
}, drag: function ( e, u, c ) {
|
1869
|
+
var g, m, x, _, R, T, S, P, E, D;
|
1870
|
+
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)
|
1871
|
+
? (n = "Y", r = 0)
|
1872
|
+
: ("X" === n || !n && Math.abs(.5 * r) > Math.abs(a)) && (n = "X", a = 0)), D = 0; D < o.length; D++ ) if ( (g = o[D]).__isTweener ) {
|
1873
|
+
var M, O, A, B, k, C, I, L, W, j, F, N, z, H;
|
1874
|
+
if ( m = p && (null == (M = g.axes)
|
1875
|
+
? void 0
|
1876
|
+
: M[p]), T = f && (null == (O = g.axes)
|
1877
|
+
? void 0
|
1878
|
+
: O[f]), !m && !T ) continue;
|
1879
|
+
i[D] || (i[D] = {
|
1880
|
+
x: null == (I = m) ? void 0 : I.scrollPos,
|
1881
|
+
y: null == (L = T) ? void 0 : L.scrollPos
|
1882
|
+
}, 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
|
1883
|
+
? s
|
1884
|
+
: g._.box.x, x = r && r / R * (m.scrollableWindow || m.scrollableArea) || 0, h && (x = h(x))), T && (E = null != y && y.current
|
1885
|
+
? l
|
1886
|
+
: g._.box.y, S = a && a / E * (T.scrollableWindow || T.scrollableArea) || 0, d && (S = d(S))), m && !_ && x && null != (A = m) && null != (B = A.inertia) && B.isInbound(i[D].x + x) && g.componentShouldScroll(p, x) && (m.inertia.hold(i[D].x + x), _ = !0), T && !P && S && null != (k = T) && null != (C = k.inertia) && C.isInbound(i[D].y + S) && g.componentShouldScroll(f, S) && (T.inertia.hold(i[D].y + S), P = !0)
|
1887
|
+
}
|
1888
|
+
}, dropped: function ( e, s, l ) {
|
1889
|
+
var u, c;
|
1890
|
+
if ( !(e instanceof MouseEvent && e.button !== w) ) {
|
1891
|
+
for ( n = void 0, c = 0; c < o.length; c++ ) {
|
1892
|
+
var d, h, g, m, x, v;
|
1893
|
+
(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())
|
1894
|
+
}
|
1895
|
+
!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
|
1896
|
+
}
|
1897
|
+
}
|
1898
|
+
}, null, b.options.enableMouseDrag || g, m), S._.doRegister = !!u) : S._.doRegister = !0
|
1899
|
+
}
|
1900
|
+
}
|
1901
|
+
}), []);
|
1902
|
+
return i().useEffect((function () {
|
1903
|
+
return E._registerScrollListeners(), function () {
|
1904
|
+
var e, t = null == (e = S.root) ? void 0 : e.current;
|
1905
|
+
S._.scrollEnabled && (S._.scrollEnabled = !1, t && S._.dragList && te.removeEvent(t, S._.dragList))
|
1906
|
+
}
|
1907
|
+
}), []), i().useEffect((function () {
|
1908
|
+
h().function(a) && a(T.current), h().function(t) ? t(T.current) : t && (t.current = T.current)
|
1909
|
+
})), S.props = {
|
1910
|
+
xAxis: s,
|
1911
|
+
yAxis: l,
|
1912
|
+
yHook: d,
|
1913
|
+
xHook: g,
|
1914
|
+
mouseDrag: v,
|
1915
|
+
touchDrag: w,
|
1916
|
+
tweener: m || P,
|
1917
|
+
xBoxRef: p,
|
1918
|
+
yBoxRef: u,
|
1919
|
+
button: _
|
1920
|
+
}, S._parentTweener = P, i().createElement(o, c()({ ref: T }, R), n)
|
1921
|
+
}));
|
1922
|
+
const Be = Ae;
|
1923
|
+
Ae.div = function ( e ) {
|
1924
|
+
return i().createElement(Ae, e)
|
1925
|
+
};
|
1926
|
+
const ke = function () {
|
1927
|
+
return i().useContext(g)
|
1928
|
+
};
|
1929
|
+
var Ce = {}.constructor;
|
1930
|
+
|
1931
|
+
function Ie() {
|
1932
|
+
for ( var e = arguments.length, t = new Array(e), n = 0; n < e; n++ ) t[n] = arguments[n];
|
1933
|
+
var r = (!t[0] || Te(t[0])) && t.shift(), o = (!t[0] || t[0] instanceof Ce) && t.shift() || {};
|
1934
|
+
if ( !r ) return function ( e ) {
|
1935
|
+
return Ie(e, o)
|
1936
|
+
};
|
1937
|
+
o = c()({ wheelRatio: 5, maxClickTm: 200, maxClickOffset: 20 }, o);
|
1938
|
+
var a = i().forwardRef((function ( e, t ) {
|
1939
|
+
return i().createElement(xe, { oProps: e, forwardedRef: t, BaseComponent: r, tweenerOptions: o })
|
1940
|
+
}));
|
1941
|
+
return a.displayName = String.fromCharCode(55358, 56793) + (r.displayName || r.name), a
|
1942
|
+
}
|
1943
|
+
|
1944
|
+
var Le, We = {}.constructor;
|
1945
|
+
|
1946
|
+
function je() {
|
1947
|
+
for ( var e = arguments.length, t = new Array(e), n = 0; n < e; n++ ) t[n] = arguments[n];
|
1948
|
+
var r = (!t[0] || Te(t[0])) && t.shift(), a = (!t[0] || t[0] instanceof We) && t.shift() || {};
|
1949
|
+
if ( !r || !(r.prototype instanceof i().Component || r === i().Component) ) return function ( e ) {
|
1950
|
+
return je(e, a)
|
1951
|
+
};
|
1952
|
+
var s = function ( e ) {
|
1953
|
+
function t() {
|
1954
|
+
return e.apply(this, arguments) || this
|
1955
|
+
}
|
1956
|
+
|
1957
|
+
return o()(t, e), t.prototype.render = function () {
|
1958
|
+
var e = this;
|
1959
|
+
return i().createElement(g.Consumer, null, (function ( t ) {
|
1960
|
+
return i().createElement(r, c()({}, e.props, { tweener: t, ref: e.props.forwardedRef }))
|
1961
|
+
}))
|
1962
|
+
}, t
|
1963
|
+
}(i().Component);
|
1964
|
+
s.displayName = r.displayName || r.name;
|
1965
|
+
var l = i().forwardRef((function ( e, t ) {
|
1966
|
+
return i().createElement(s, c()({}, e, { forwardedRef: t }))
|
1967
|
+
}));
|
1968
|
+
return l.displayName = s.displayName, l
|
1969
|
+
}
|
1970
|
+
|
1971
|
+
$().EasingFunctions = v;
|
1972
|
+
var Fe = Ie(Le = function ( e ) {
|
1973
|
+
function t() {
|
1974
|
+
return e.apply(this, arguments) || this
|
1975
|
+
}
|
1976
|
+
|
1977
|
+
return o()(t, e), t.prototype.render = function () {
|
1978
|
+
return this.props.children
|
1979
|
+
}, t
|
1980
|
+
}(i().Component)) || Le;
|
1981
|
+
const Ne = {
|
1982
|
+
tweener : Ie,
|
1983
|
+
child : je,
|
1984
|
+
useTweener: ke,
|
1985
|
+
useVoodoo : ye,
|
1986
|
+
hook : ye,
|
1987
|
+
tools : e,
|
1988
|
+
Draggable : Be,
|
1989
|
+
Component : Fe,
|
1990
|
+
Node : Me,
|
1991
|
+
Context : g,
|
1992
|
+
Axis : we,
|
1993
|
+
dom : te
|
1994
|
+
}
|
1995
|
+
})(), module.exports = r
|
1996
|
+
})();
|
1997
|
+
//# sourceMappingURL=react-voodoo.js.map
|