(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[827],{67101:function(t,e,n){"use strict";n.d(e,{i:function(){return f},h:function(){return d}});var r=n(90063),i=n(89384),o=n(84461),a=n(73808),u=n(28500),s=n(67294);function c(){return(c=Object.assign||function(t){for(var e=1;e{var{size:n,colorScheme:r,variant:a,className:u,spacing:f="0.5rem",isAttached:d,isDisabled:p}=t,v=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),m=(0,o.cx)("chakra-button__group",u),h=s.useMemo((()=>({size:n,colorScheme:r,variant:a,isDisabled:p})),[n,r,a,p]),y={display:"inline-flex"};return y=c({},y,d?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:f}}),s.createElement(l,{value:h},s.createElement(i.m$.div,c({ref:e,role:"group",__css:y,className:m},v)))}));a.Ts&&(d.displayName="ButtonGroup")},49364:function(t,e,n){"use strict";n.d(e,{z:function(){return P}});var r=n(72947),i=n(70917),o=n(90063),a=n(2326),u=n(55284),s=n(89384),c=n(84461),l=n(73808),f=n(65415),d=n(67294);function p(){return(p=Object.assign||function(t){for(var e=1;e{var n=(0,a.m)("Spinner",t),r=(0,u.Lr)(t),{label:i="Loading...",thickness:o="2px",speed:l="0.45s",emptyColor:m="transparent",className:h}=r,y=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(r,["label","thickness","speed","emptyColor","className"]),g=(0,c.cx)("chakra-spinner",h),x=p({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:m,borderLeftColor:m,animation:v+" "+l+" linear infinite"},n);return d.createElement(s.m$.div,p({ref:e,__css:x,className:g},y),i&&d.createElement(f.TX,null,i))}));l.Ts&&(m.displayName="Spinner");var h=n(38554),y=n.n(h),g=n(67101);function x(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}function b(){return(b=Object.assign||function(t){for(var e=1;e{var n,i=(0,g.i)(),o=(0,a.m)("Button",b({},i,t)),l=(0,u.Lr)(t),{isDisabled:f=(null==i?void 0:i.isDisabled),isLoading:p,isActive:v,isFullWidth:m,children:h,leftIcon:P,rightIcon:E,loadingText:S,iconSpacing:T="0.5rem",type:C,spinner:k,spinnerPlacement:O="start",className:M,as:R}=l,L=x(l,["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"]),V=y()({},null!=(n=null==o?void 0:o._focus)?n:{},{zIndex:1}),j=b({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:m?"100%":"auto"},o,!!i&&{_focus:V}),{ref:D,type:_}=function(t){var[e,n]=d.useState(!t),r=d.useCallback((t=>{t&&n("BUTTON"===t.tagName)}),[]),i=e?"button":void 0;return{ref:r,type:i}}(R);return d.createElement(s.m$.button,b({disabled:f||p,ref:(0,r.l)(e,D),as:R,type:null!=C?C:_,"data-active":(0,c.PB)(v),"data-loading":(0,c.PB)(p),__css:j,className:(0,c.cx)("chakra-button",M)},L),P&&!p&&d.createElement(A,{marginEnd:T},P),p&&"start"===O&&d.createElement(w,{className:"chakra-button__spinner--start",label:S,placement:"start"},k),p?S||d.createElement(s.m$.span,{opacity:0},h):h,p&&"end"===O&&d.createElement(w,{className:"chakra-button__spinner--end",label:S,placement:"end"},k),E&&!p&&d.createElement(A,{marginStart:T},E))}));l.Ts&&(P.displayName="Button");var A=t=>{var{children:e,className:n}=t,r=x(t,["children","className"]),i=d.isValidElement(e)?d.cloneElement(e,{"aria-hidden":!0,focusable:!1}):e,o=(0,c.cx)("chakra-button__icon",n);return d.createElement(s.m$.span,b({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:o}),i)};l.Ts&&(A.displayName="ButtonIcon");var w=t=>{var{label:e,placement:n,children:r=d.createElement(m,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:o}=t,a=x(t,["label","placement","spacing","children","className","__css"]),u=(0,c.cx)("chakra-button__spinner",i),l=b({display:"flex",alignItems:"center",position:e?"relative":"absolute",["start"===n?"marginEnd":"marginStart"]:e?"0.5rem":0,fontSize:"1em",lineHeight:"normal"},o);return d.createElement(s.m$.div,b({className:u},a,{__css:l}),r)};l.Ts&&(w.displayName="ButtonSpinner")},10762:function(t,e,n){"use strict";n.d(e,{W:function(){return o}});var r=n(67294),i=n(68327);function o(t,e){void 0===e&&(e=[]);var n=r.useRef(t);return(0,i.G)((()=>{n.current=t})),r.useCallback((function(){for(var t=arguments.length,e=new Array(t),r=0;rt!==e)}=t,s=(0,o.W)(a),c=(0,o.W)(u),[l,f]=i.useState(n),d=void 0!==e,p=d?e:l,v=i.useCallback((t=>{var e=(0,r.Pu)(t,p);c(p,e)&&(d||f(e),s(e))}),[d,s,p,c]);return[p,v]}},74860:function(t,e,n){"use strict";n.d(e,{q:function(){return s}});var r=n(80658),i=n(67294),o=n(51034),a=n(94577);function u(){return(u=Object.assign||function(t){for(var e=1;e{d||f(!1),null==e||e()}),[d,e]),h=i.useCallback((()=>{d||f(!0),null==n||n()}),[d,n]),y=i.useCallback((()=>{(p?m:h)()}),[p,h,m]);return{isOpen:!!p,onOpen:h,onClose:m,onToggle:y,isControlled:d,getButtonProps:function(t){return void 0===t&&(t={}),u({},t,{"aria-expanded":"true","aria-controls":v,onClick:(0,r.v0)(t.onClick,y)})},getDisclosureProps:function(t){return void 0===t&&(t={}),u({},t,{hidden:!p,id:v})}}}},68327:function(t,e,n){"use strict";n.d(e,{G:function(){return i}});var r=n(67294),i=n(84461).jU?r.useLayoutEffect:r.useEffect},48017:function(t,e,n){"use strict";n.d(e,{xu:function(){return c}});var r=n(89384),i=n(90063),o=n(73808),a=n(67294);function u(){return(u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}var c=(0,r.m$)("div");o.Ts&&(c.displayName="Box");var l=(0,i.G)(((t,e)=>{var{size:n,centerContent:r=!0}=t,i=s(t,["size","centerContent"]),o=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(c,u({ref:e,boxSize:n,__css:u({},o,{flexShrink:0,flexGrow:0})},i))}));o.Ts&&(l.displayName="Square");var f=(0,i.G)(((t,e)=>{var{size:n}=t,r=s(t,["size"]);return a.createElement(l,u({size:n,ref:e,borderRadius:"9999px"},r))}));o.Ts&&(f.displayName="Circle")},94096:function(t,e,n){"use strict";n.d(e,{k:function(){return s}});var r=n(90063),i=n(89384),o=n(73808),a=n(67294);function u(){return(u=Object.assign||function(t){for(var e=1;e{var{direction:n,align:r,justify:o,wrap:s,basis:c,grow:l,shrink:f}=t,d=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:s,flexBasis:c,flexGrow:l,flexShrink:f};return a.createElement(i.m$.div,u({ref:e,__css:p},d))}));o.Ts&&(s.displayName="Flex")},72947:function(t,e,n){"use strict";n.d(e,{l:function(){return o}});var r=n(73808);function i(t,e){if(null!=t)if((0,r.mf)(t))t(e);else try{t.current=e}catch(n){throw new Error("Cannot assign value '"+e+"' to ref '"+t+"'")}}function o(){for(var t=arguments.length,e=new Array(t),n=0;n{e.forEach((e=>i(e,t)))}}},90063:function(t,e,n){"use strict";n.d(e,{G:function(){return i}});var r=n(67294);function i(t){return r.forwardRef(t)}},89384:function(t,e,n){"use strict";n.d(e,{m$:function(){return d}});var r=n(9421),i=n(4651),o=n(80658),a=n(24524),u=new Set([...r.propNames,"textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),s=new Set(["htmlWidth","htmlHeight","htmlSize"]),c=t=>s.has(t)||!u.has(t),l=n(55284);function f(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}var d=function(t,e){var n=null!=e?e:{},{baseStyle:u}=n,s=f(n,["baseStyle"]);s.shouldForwardProp||(s.shouldForwardProp=c);var l=(t=>{var{baseStyle:e}=t;return t=>{var{css:n,__css:a,sx:u}=t,s=f(t,["theme","css","__css","sx"]),c=(0,i.lw)(s,((t,e)=>(0,r.isStyleProp)(e))),l=(0,o.Pu)(e,t),d=Object.assign({},a,l,(0,i.YU)(c),u),p=(0,r.iv)(d)(t.theme);return n?[p,n]:p}})({baseStyle:u});return(0,a.default)(t,s)(l)};l.t6.forEach((t=>{d[t]=d(t)}))},55284:function(t,e,n){"use strict";n.d(e,{t6:function(){return i},Lr:function(){return o}});var r=n(4651),i=["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"];function o(t){return(0,r.CE)(t,["styleConfig","size","variant","colorScheme"])}},2326:function(t,e,n){"use strict";n.d(e,{j:function(){return m},m:function(){return v}});var r=n(4651),i=n(38554),o=n.n(i),a=n(80658),u=n(67294),s=n(69590),c=n.n(s),l=n(24738),f=n(29676);function d(){return(d=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(e,["styleConfig"]),{theme:d,colorMode:v}=p(),m=(0,r.Wf)(d,"components."+t),h=l||m,y=o()({theme:d,colorMode:v},null!=(i=null==h?void 0:h.defaultProps)?i:{},(0,r.YU)((0,r.CE)(f,["children"]))),g=(0,u.useRef)({});return(0,u.useMemo)((()=>{if(h){var t,e,r,i,u,s,l=(0,a.Pu)(null!=(t=h.baseStyle)?t:{},y),f=(0,a.Pu)(null!=(e=null==(r=h.variants)?void 0:r[y.variant])?e:{},y),d=(0,a.Pu)(null!=(i=null==(u=h.sizes)?void 0:u[y.size])?i:{},y),p=o()({},l,d,f);null!=(s=n)&&s.isMultiPart&&h.parts&&h.parts.forEach((t=>{var e;p[t]=null!=(e=p[t])?e:{}})),c()(g.current,p)||(g.current=p)}return g.current}),[h,y,null==(s=n)?void 0:s.isMultiPart])}function m(t,e){return v(t,e,{isMultiPart:!0})}},65415:function(t,e,n){"use strict";n.d(e,{NL:function(){return o},TX:function(){return a}});var r=n(89384),i=n(73808),o={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},a=(0,r.m$)("span",{baseStyle:o});i.Ts&&(a.displayName="VisuallyHidden");var u=(0,r.m$)("input",{baseStyle:o});i.Ts&&(u.displayName="VisuallyHiddenInput")},24524:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h}});var r=n(67294),i=n(87462),o=n(67866),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=(0,o.Z)((function(t){return a.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),s=n(30495),c=n(70444),l=n(94199),f=u,d=function(t){return"theme"!==t},p=function(t){return"string"===typeof t&&t.charCodeAt(0)>96?f:d},v=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!==typeof r&&n&&(r=t.__emotion_forwardProp),r},m=function t(e,n){var o,a,u=e.__emotion_real===e,f=u&&e.__emotion_base||e;void 0!==n&&(o=n.label,a=n.target);var d=v(e,n,u),m=d||p(f),h=!m("as");return function(){var y=arguments,g=u&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==o&&g.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)g.push.apply(g,y);else{0,g.push(y[0][0]);for(var x=y.length,b=1;b-1||/[A-Z]/.test(t))}var R={};var L=["","X","Y","Z"],V=["transformPerspective","x","y","z"];function j(t,e){return V.indexOf(t)-V.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return L.forEach((function(e){return V.push(t+e)}))}));var D=new Set(V);function _(t){return D.has(t)}var B=new Set(["originX","originY","originZ"]);function I(t){return B.has(t)}function F(t,e){var n=e.layout,r=e.layoutId;return _(t)||I(t)||(n||void 0!==r)&&(!!R[t]||"opacity"===t)}var U=function(t){return null!==t&&"object"===typeof t&&t.getVelocity},N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function z(t){return t.startsWith("--")}var H=function(t,e){return e&&"number"===typeof t?e.transform(t):t};var Z=function(){return(Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?-1:1)*((r-o)*a)/u}):(e=function(t){return Math.exp(-t*i)*((t-s)*i+1)-.001},n=function(t){return Math.exp(-t*i)*(i*i*(s-t))});var d=function(t,e,n){for(var r=n,i=1;i<12;i++)r-=t(r)/e(r);return r}(e,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*l;return{stiffness:p,damping:2*f*Math.sqrt(l*p),duration:i}}function Pe(t,e){return t*Math.sqrt(1-e*e)}var Ae=["duration","bounce"],we=["stiffness","damping","mass"];function Ee(t,e){return e.some((function(e){return void 0!==t[e]}))}function Se(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,o=t.restSpeed,a=void 0===o?2:o,u=t.restDelta,s=ye(t,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},l=function(t){var e=he({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Ee(t,we)&&Ee(t,Ae)){var n=be(t);(e=he(he(he({},e),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(s),f=l.stiffness,d=l.damping,p=l.mass,v=l.velocity,m=l.duration,h=l.isResolvedFromDuration,y=Te,g=Te;function x(){var t=v?-v/1e3:0,e=i-n,r=d/(2*Math.sqrt(f*p)),o=Math.sqrt(f/p)/1e3;if(null!==u&&void 0!==u||(u=Math.abs(i-n)<=1?.01:.4),r<1){var a=Pe(o,r);y=function(n){var u=Math.exp(-r*o*n);return i-u*((t+r*o*e)/a*Math.sin(a*n)+e*Math.cos(a*n))},g=function(n){var i=Math.exp(-r*o*n);return r*o*i*(Math.sin(a*n)*(t+r*o*e)/a+e*Math.cos(a*n))-i*(Math.cos(a*n)*(t+r*o*e)-a*e*Math.sin(a*n))}}else if(1===r)y=function(n){return i-Math.exp(-o*n)*(e+(t+o*e)*n)};else{var s=o*Math.sqrt(r*r-1);y=function(n){var a=Math.exp(-r*o*n),u=Math.min(s*n,300);return i-a*((t+r*o*e)*Math.sinh(u)+s*e*Math.cosh(u))/s}}}return x(),{next:function(t){var e=y(t);if(h)c.done=t>=m;else{var n=1e3*g(t),r=Math.abs(n)<=a,o=Math.abs(i-e)<=u;c.done=r&&o}return c.value=c.done?i:e,c},flipTarget:function(){var t;v=-v,n=(t=[i,n])[0],i=t[1],x()}}}Se.needsInterpolation=function(t,e){return"string"===typeof t||"string"===typeof e};var Te=function(t){return 0},Ce=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},ke=function(t,e,n){return-n*t+n*e+t},Oe=function(t,e){return function(n){return Boolean($(n)&&G.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e))}},Me=function(t,e,n){return function(r){var i;if(!$(r))return r;var o=r.match(X),a=o[0],u=o[1],s=o[2],c=o[3];return(i={})[t]=parseFloat(a),i[e]=parseFloat(u),i[n]=parseFloat(s),i.alpha=void 0!==c?parseFloat(c):1,i}},Re=W(0,255),Le=Z(Z({},it),{transform:function(t){return Math.round(Re(t))}}),Ve={test:Oe("rgb","red"),parse:Me("red","green","blue"),transform:function(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,o=void 0===i?1:i;return"rgba("+Le.transform(e)+", "+Le.transform(n)+", "+Le.transform(r)+", "+Y(ot.transform(o))+")"}};var je={test:Oe("#"),parse:function(t){var e="",n="",r="",i="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),i=t.substr(4,1),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Ve.transform},De={test:Oe("hsl","hue"),parse:Me("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha,o=void 0===i?1:i;return"hsla("+Math.round(e)+", "+Q.transform(Y(n))+", "+Q.transform(Y(r))+", "+Y(ot.transform(o))+")"}},_e=function(t,e,n){var r=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-r)+r))},Be=[je,Ve,De],Ie=function(t){return Be.find((function(e){return e.test(t)}))},Fe=function(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."},Ue=function(t,e){var n=Ie(t),r=Ie(e);Fe(t),Fe(e),n.transform,r.transform;var i=n.parse(t),o=r.parse(e),a=he({},i),u=n===De?ke:_e;return function(t){for(var e in a)"alpha"!==e&&(a[e]=u(i[e],o[e],t));return a.alpha=ke(i.alpha,o.alpha,t),n.transform(a)}},Ne={test:function(t){return Ve.test(t)||je.test(t)||De.test(t)},parse:function(t){return Ve.test(t)?Ve.parse(t):De.test(t)?De.parse(t):je.parse(t)},transform:function(t){return $(t)?t:t.hasOwnProperty("red")?Ve.transform(t):De.transform(t)}},ze="${c}",He="${n}";function Ze(t){var e=[],n=0,r=t.match(q);r&&(n=r.length,t=t.replace(q,ze),e.push.apply(e,r.map(Ne.parse)));var i=t.match(X);return i&&(t=t.replace(X,He),e.push.apply(e,i.map(it.parse))),{values:e,numColors:n,tokenised:t}}function We(t){return Ze(t).values}function Ye(t){var e=Ze(t),n=e.values,r=e.numColors,i=e.tokenised,o=n.length;return function(t){for(var e=i,n=0;n0},parse:We,createTransformer:Ye,getAnimatableNone:function(t){var e=We(t);return Ye(t)(e.map(Xe))}},Ge=function(t){return"number"===typeof t};function $e(t,e){return Ge(t)?function(n){return ke(t,e,n)}:Ne.test(t)?Ue(t,e):tn(t,e)}var Ke=function(t,e){var n=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;it[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var c=nn(e,a,u),l=2===s?function(t,e){var n=t[0],r=t[1],i=e[0];return function(t){return i(Ce(n,r,t))}}(t,c):function(t,e){var n=t.length,r=n-1;return function(i){var o=0,a=!1;if(i<=t[0]?a=!0:i>=t[r]&&(o=r-1,a=!0),!a){for(var u=1;ui||u===r);u++);o=u-1}var s=Ce(t[o],t[o+1],i);return e[o](s)}}(t,c);return o?function(e){return l(ge(t[0],t[s-1],e))}:l}var on,an=function(t){return function(e){return 1-t(1-e)}},un=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},sn=function(t){return function(e){return e*e*((t+1)*e-t)}},cn=function(t){return t},ln=(on=2,function(t){return Math.pow(t,on)}),fn=an(ln),dn=un(ln),pn=function(t){return 1-Math.sin(Math.acos(t))},vn=an(pn),mn=un(vn),hn=sn(1.525),yn=an(hn),gn=un(hn),xn=function(t){var e=sn(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),bn=function(t){if(1===t||0===t)return t;var e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},Pn=an(bn);function An(t,e){return t.map((function(){return e||dn})).splice(0,t.length-1)}function wn(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,o=t.ease,a=t.offset,u=t.duration,s=void 0===u?300:u,c={done:!1,value:n},l=Array.isArray(i)?i:[n,i],f=function(t,e){return t.map((function(t){return t*e}))}(a&&a.length===l.length?a:function(t){var e=t.length;return t.map((function(t,n){return 0!==n?n/(e-1):0}))}(l),s);function d(){return rn(f,l,{ease:Array.isArray(o)?o:An(l,o)})}var p=d();return{next:function(t){return c.value=p(t),c.done=t>=s,c},flipTarget:function(){l.reverse(),p=d()}}}var En={keyframes:wn,spring:Se,decay:function(t){var e=t.velocity,n=void 0===e?0:e,r=t.from,i=void 0===r?0:r,o=t.power,a=void 0===o?.8:o,u=t.timeConstant,s=void 0===u?350:u,c=t.restDelta,l=void 0===c?.5:c,f=t.modifyTarget,d={done:!1,value:i},p=a*n,v=i+p,m=void 0===f?v:f(v);return m!==v&&(p=m-i),{next:function(t){var e=-p*Math.exp(-t/s);return d.done=!(e>l||e<-l),d.value=d.done?m:m+e,d},flipTarget:function(){}}}};var Sn=n(9839);function Tn(t,e,n){return void 0===n&&(n=0),t-e-n}var Cn=function(t){var e=function(e){var n=e.delta;return t(n)};return{start:function(){return Sn.ZP.update(e,!0)},stop:function(){return Sn.qY.update(e)}}};function kn(t){var e,n,r,i,o,a=t.from,u=t.autoplay,s=void 0===u||u,c=t.driver,l=void 0===c?Cn:c,f=t.elapsed,d=void 0===f?0:f,p=t.repeat,v=void 0===p?0:p,m=t.repeatType,h=void 0===m?"loop":m,y=t.repeatDelay,g=void 0===y?0:y,x=t.onPlay,b=t.onStop,P=t.onComplete,A=t.onRepeat,w=t.onUpdate,E=ye(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),S=E.to,T=0,C=E.duration,k=!1,O=!0,M=function(t){if(Array.isArray(t.to))return wn;if(En[t.type])return En[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?wn:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Se:wn}(E);(null===(n=(e=M).needsInterpolation)||void 0===n?void 0:n.call(e,a,S))&&(o=rn([0,100],[a,S],{clamp:!1}),a=0,S=100);var R=M(he(he({},E),{from:a,to:S}));function L(){T++,"reverse"===h?d=function(t,e,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?Tn(e+-t,e,n):e-(t-e)+n}(d,C,g,O=T%2===0):(d=Tn(d,C,g),"mirror"===h&&R.flipTarget()),k=!1,A&&A()}function V(t){if(O||(t=-t),d+=t,!k){var e=R.next(Math.max(0,d));i=e.value,o&&(i=o(i)),k=O?e.done:d<=0}null===w||void 0===w||w(i),k&&(0===T&&(null!==C&&void 0!==C||(C=d)),T=e+n:t<=-n}(d,C,g,O)&&L():(r.stop(),P&&P()))}return s&&(null===x||void 0===x||x(),(r=l(V)).start()),{stop:function(){null===b||void 0===b||b(),r.stop()}}}function On(t,e){return e?t*(1e3/e):0}var Mn=function(t){return 1e3*t},Rn=function(t,e){return 1-3*e+3*t},Ln=function(t,e){return 3*e-6*t},Vn=function(t){return 3*t},jn=function(t,e,n){return((Rn(e,n)*t+Ln(e,n))*t+Vn(e))*t},Dn=function(t,e,n){return 3*Rn(e,n)*t*t+2*Ln(e,n)*t+Vn(e)};var _n=.1;function Bn(t,e,n,r){if(t===e&&n===r)return cn;for(var i=new Float32Array(11),o=0;o<11;++o)i[o]=jn(o*_n,t,n);function a(e){for(var r=0,o=1;10!==o&&i[o]<=e;++o)r+=_n;--o;var a=r+(e-i[o])/(i[o+1]-i[o])*_n,u=Dn(a,t,n);return u>=.001?function(t,e,n,r){for(var i=0;i<8;++i){var o=Dn(e,n,r);if(0===o)return e;e-=(jn(e,n,r)-t)/o}return e}(e,a,t,n):0===u?a:function(t,e,n,r,i){var o,a,u=0;do{(o=jn(a=e+(n-e)/2,r,i)-t)>0?n=a:e=a}while(Math.abs(o)>1e-7&&++u<10);return a}(e,r,r+_n,t,n)}return function(t){return 0===t||1===t?t:jn(a(t),e,r)}}var In={linear:cn,easeIn:ln,easeInOut:dn,easeOut:fn,circIn:pn,circInOut:mn,circOut:vn,backIn:hn,backInOut:gn,backOut:yn,anticipate:xn,bounceIn:Pn,bounceInOut:function(t){return t<.5?.5*(1-bn(1-2*t)):.5*bn(2*t-1)+.5},bounceOut:bn},Fn=function(t){if(Array.isArray(t)){t.length;var e=(0,r.CR)(t,4);return Bn(e[0],e[1],e[2],e[3])}return"string"===typeof t?In[t]:t},Un=function(t,e){return"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!qe.test(e)||e.startsWith("url(")))},Nn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},zn=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Hn=function(){return{type:"keyframes",ease:"linear",duration:.3}},Zn=function(t){return{type:"keyframes",duration:.8,values:t}},Wn={x:Nn,y:Nn,z:Nn,rotate:Nn,rotateX:Nn,rotateY:Nn,rotateZ:Nn,scaleX:zn,scaleY:zn,scale:zn,opacity:Hn,backgroundColor:Hn,color:Hn,default:zn},Yn=new Set(["brightness","contrast","saturate","opacity"]);function Xn(t){var e=t.slice(0,-1).split("("),n=e[0],r=e[1];if("drop-shadow"===n)return t;var i=(r.match(X)||[])[0];if(!i)return t;var o=r.replace(i,""),a=Yn.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+o+")"}var qn=/([a-z-]*)\(.*?\)/g,Gn=Z(Z({},qe),{getAnimatableNone:function(t){var e=t.match(qn);return e?e.map(Xn).join(" "):t}}),$n=(0,r.pi)((0,r.pi)({},st),{color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:Gn,WebkitFilter:Gn}),Kn=function(t){return $n[t]};function Jn(t,e){var n,r=Kn(t);return r!==Gn&&(r=qe),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}function Qn(t){var e=t.ease,n=t.times,i=t.yoyo,o=t.flip,a=t.loop,u=(0,r._T)(t,["ease","times","yoyo","flip","loop"]),s=(0,r.pi)({},u);return n&&(s.offset=n),u.duration&&(s.duration=Mn(u.duration)),u.repeatDelay&&(s.repeatDelay=Mn(u.repeatDelay)),e&&(s.ease=function(t){return Array.isArray(t)&&"number"!==typeof t[0]}(e)?e.map(Fn):Fn(e)),"tween"===u.type&&(s.type="keyframes"),(i||a||o)&&(!0,i?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||i||o||u.repeat),"spring"!==u.type&&(s.type="keyframes"),s}function tr(t,e,n){var i;return Array.isArray(e.to)&&(null!==(i=t.duration)&&void 0!==i||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=(0,r.ev)([],(0,r.CR)(t.to)),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=(0,r._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=(0,r.pi)((0,r.pi)({},t),function(t,e){var n;return n=Dt(e)?Zn:Wn[t]||Wn.default,(0,r.pi)({to:e},n(e))}(n,e.to))),(0,r.pi)((0,r.pi)({},e),Qn(t))}function er(t,e,n,i,o){var a,u=ir(i,t),s=null!==(a=u.from)&&void 0!==a?a:e.get(),c=Un(t,n);"none"===s&&c&&"string"===typeof n?s=Jn(t,n):nr(s)&&"string"===typeof n?s=rr(n):!Array.isArray(n)&&nr(n)&&"string"===typeof s&&(n=rr(s));var l=Un(t,s);return l&&c&&!1!==u.type?function(){var i={from:s,to:n,velocity:e.getVelocity(),onComplete:o,onUpdate:function(t){return e.set(t)}};return"inertia"===u.type||"decay"===u.type?function(t){var e,n=t.from,r=void 0===n?0:n,i=t.velocity,o=void 0===i?0:i,a=t.min,u=t.max,s=t.power,c=void 0===s?.8:s,l=t.timeConstant,f=void 0===l?750:l,d=t.bounceStiffness,p=void 0===d?500:d,v=t.bounceDamping,m=void 0===v?10:v,h=t.restDelta,y=void 0===h?1:h,g=t.modifyTarget,x=t.driver,b=t.onUpdate,P=t.onComplete;function A(t){return void 0!==a&&tu}function w(t){return void 0===a?u:void 0===u||Math.abs(a-t)O||-1===M&&t-1&&t.splice(n,1)}var sr=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return ar(this.subscriptions,t),function(){return ur(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var i=0;im&&g,E=Array.isArray(y)?y:[y],S=E.reduce(a,{});!1===P&&(S={});var T=h.prevResolvedValues,C=void 0===T?{}:T,k=(0,r.pi)((0,r.pi)({},C),S),O=function(t){w=!0,p.delete(t),h.needsAnimating[t]=!0};for(var M in k){var R=S[M],L=C[M];v.hasOwnProperty(M)||(R!==L?Dt(R)&&Dt(L)?me(R,L)?h.protectedKeys[M]=!0:O(M):void 0!==R?O(M):p.add(M):void 0!==R&&p.has(M)?O(M):h.protectedKeys[M]=!0)}h.prevProp=y,h.prevResolvedValues=S,h.isActive&&(v=(0,r.pi)((0,r.pi)({},v),S)),o&&t.blockInitialAnimation&&(w=!1),w&&!A&&d.push.apply(d,(0,r.ev)([],(0,r.CR)(E.map((function(t){return{animation:t,options:(0,r.pi)({type:i},u)}})))))},y=0;y=3;if(e||n){var o=t.point,a=(0,Sn.$B)().timestamp;i.history.push((0,r.pi)((0,r.pi)({},o),{timestamp:a}));var u=i.handlers,s=u.onStart,c=u.onMove;e||(s&&s(i.lastMoveEvent,t),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){i.lastMoveEvent=t,i.lastMoveEventInfo=Dr(e,i.transformPagePoint),Wt(t)&&0===t.buttons?i.handlePointerUp(t,e):Sn.ZP.update(i.updatePoint,!0)},this.handlePointerUp=function(t,e){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=Br(Dr(e,i.transformPagePoint),i.history);i.startEvent&&r&&r(t,a),o&&o(t,a)},!(Yt(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=o;var a=Dr($t(t),this.transformPagePoint),u=a.point,s=(0,Sn.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},u),{timestamp:s})];var c=e.onSessionStart;c&&c(t,Br(a,this.history)),this.removeListeners=de(ee(window,"pointermove",this.handlePointerMove),ee(window,"pointerup",this.handlePointerUp),ee(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),Sn.qY.update(this.updatePoint)},t}();function Dr(t,e){return e?{point:e(t.point)}:t}function _r(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Br(t,e){var n=t.point;return{point:n,delta:_r(n,Fr(e)),offset:_r(n,Ir(e)),velocity:Ur(e,.1)}}function Ir(t){return t[0]}function Fr(t){return t[t.length-1]}function Ur(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=Fr(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Mn(e)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Nr=n(93327);function zr(t){return[t("x"),t("y")]}function Hr(t,e,n){var r=e.min,i=e.max;return void 0!==r&&ti&&(t=n?ke(i,t,n.max):Math.min(t,i)),t}function Zr(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Wr(t,e){var n,i=e.min-t.min,o=e.max-t.max;return e.max-e.minr?n=Ce(e.min,e.max-r,t.min):r>i&&(n=Ce(t.min,t.max-i,e.min)),ge(0,1,n)}function Jr(t,e,n,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=ke(e.min,e.max,t.origin),t.scale=$r(n)/$r(e),Gr(t.scale,1,1e-4)&&(t.scale=1),t.translate=ke(n.min,n.max,t.origin)-t.originPoint,Gr(t.translate)&&(t.translate=0)}function Qr(t,e,n,r){Jr(t.x,e.x,n.x,ti(r.originX)),Jr(t.y,e.y,n.y,ti(r.originY))}function ti(t){return"number"===typeof t?t:.5}function ei(t,e,n){t.min=n.min+e.min,t.max=t.min+$r(e)}var ni=n(58839);function ri(t,e){return{min:e.min-t.min,max:e.max-t.min}}function ii(t,e){return{x:ri(t.x,e.x),y:ri(t.y,e.y)}}function oi(t,e){var n=t.getLayoutId(),r=e.getLayoutId();return n!==r||void 0===r&&t!==e}function ai(t){var e=t.getProps(),n=e.drag,r=e._dragX;return n&&!r}function ui(t,e){t.min=e.min,t.max=e.max}function si(t,e,n){return n+e*(t-n)}function ci(t,e,n,r,i){return void 0!==i&&(t=si(t,i,r)),si(t,n,r)+e}function li(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),t.min=ci(t.min,e,n,r,i),t.max=ci(t.max,e,n,r,i)}function fi(t,e){var n=e.x,r=e.y;li(t.x,n.translate,n.scale,n.originPoint),li(t.y,r.translate,r.scale,r.originPoint)}function di(t,e,n,i){var o=(0,r.CR)(i,3),a=o[0],u=o[1],s=o[2];t.min=e.min,t.max=e.max;var c=void 0!==n[s]?n[s]:.5,l=ke(e.min,e.max,c);li(t,n[a],n[u],l,n.scale)}var pi=["x","scaleX","originX"],vi=["y","scaleY","originY"];function mi(t,e,n){di(t.x,e.x,n,pi),di(t.y,e.y,n,vi)}function hi(t,e,n,r,i){return t=si(t-=e,1/n,r),void 0!==i&&(t=si(t,1/i,r)),t}function yi(t,e,n){var i=(0,r.CR)(n,3),o=i[0],a=i[1],u=i[2];!function(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5);var o=ke(t.min,t.max,r)-e;t.min=hi(t.min,e,n,o,i),t.max=hi(t.max,e,n,o,i)}(t,e[o],e[a],e[u],e.scale)}function gi(t,e){yi(t.x,e,pi),yi(t.y,e,vi)}var xi,bi=n(27565),Pi=new WeakMap,Ai=function(){function t(t){var e=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=(0,Nr.VZ)(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=e,this.visualElement.enableLayoutProjection(),Pi.set(e,this)}return t.prototype.start=function(t,e){var n=this,i=void 0===e?{}:e,o=i.snapToCursor,a=void 0!==o&&o,u=i.cursorProgress,s=this.props.transformPagePoint;this.panSession=new jr(t,{onSessionStart:function(t){var e;n.stopMotion();var i=function(t){return $t(t,"client")}(t).point;null===(e=n.cancelLayout)||void 0===e||e.call(n),n.cancelLayout=(0,bi.U)((function(t,e){var o=(0,ni.kv)(n.visualElement),s=(0,ni.e3)(n.visualElement),c=(0,r.ev)((0,r.ev)([],(0,r.CR)(o)),(0,r.CR)(s)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),e((function(){c.forEach((function(t){return t.resetTransform()}))})),t((function(){(0,ni.de)(n.visualElement),s.forEach(ni.de)})),e((function(){c.forEach((function(t){return t.restoreTransform()})),a&&(l=n.snapToCursor(i))})),t((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var t=n.visualElement.projection;zr((function(e){if(!l){var r=t.target[e],o=r.min,a=r.max;n.cursorProgress[e]=u?u[e]:Ce(o,a,i[e])}var s=n.getAxisMotionValue(e);s&&(n.originPoint[e]=s.get())}))})),e((function(){Sn.iW.update(),Sn.iW.preRender(),Sn.iW.render(),Sn.iW.postRender()})),t((function(){return n.resolveDragConstraints()}))}))},onStart:function(t,e){var r,i,o,a=n.props,u=a.drag,s=a.dragPropagation;(!u||s||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ae(u),n.openGlobalLock))&&((0,bi.R)(),n.isDragging=!0,n.currentDirection=null,null===(i=(r=n.props).onDragStart)||void 0===i||i.call(r,t,e),null===(o=n.visualElement.animationState)||void 0===o||o.setActive(Nt.Drag,!0))},onMove:function(t,e){var r,i,o,a,u=n.props,s=u.dragPropagation,c=u.dragDirectionLock;if(s||n.openGlobalLock){var l=e.offset;if(c&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(l),void(null!==n.currentDirection&&(null===(i=(r=n.props).onDirectionLock)||void 0===i||i.call(r,n.currentDirection)));n.updateAxis("x",e.point,l),n.updateAxis("y",e.point,l),null===(a=(o=n.props).onDrag)||void 0===a||a.call(o,t,e),xi=t}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:s})},t.prototype.resolveDragConstraints=function(){var t=this,e=this.props,n=e.dragConstraints,r=e.dragElastic,i=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(g(n)?this.resolveRefConstraints(i,n):function(t,e){var n=e.top,r=e.left,i=e.bottom,o=e.right;return{x:Zr(t.x,r,o),y:Zr(t.y,n,i)}}(i,n)),this.elastic=function(t){return!1===t?t=0:!0===t&&(t=.35),{x:Yr(t,"left","right"),y:Yr(t,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&zr((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(t,e){var n=this.props,r=n.onMeasureDragConstraints,i=n.transformPagePoint,o=e.current;this.constraintsBox=qr(o,i);var a=function(t,e){return{x:Wr(t.x,e.x),y:Wr(t.y,e.y)}}(t,this.constraintsBox);if(r){var u=r((0,Nr._6)(a));this.hasMutatedConstraints=!!u,u&&(a=(0,Nr.RX)(u))}return a},t.prototype.cancelDrag=function(){var t,e;this.visualElement.unlockProjectionTarget(),null===(t=this.cancelLayout)||void 0===t||t.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(Nt.Drag,!1)},t.prototype.stop=function(t,e){var n,r,i;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var o=this.isDragging;if(this.cancelDrag(),o){var a=e.velocity;this.animateDragEnd(a),null===(i=(r=this.props).onDragEnd)||void 0===i||i.call(r,t,e)}},t.prototype.snapToCursor=function(t){var e=this;return zr((function(n){if(wi(n,e.props.drag,e.currentDirection)){var r=e.getAxisMotionValue(n);if(!r)return e.cursorProgress[n]=.5,!0;var i=e.visualElement.getLayoutState().layout,o=i[n].max-i[n].min,a=i[n].min+o/2,u=t[n]-a;e.originPoint[n]=t[n],r.set(u)}})).includes(!0)},t.prototype.updateAxis=function(t,e,n){if(wi(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,n):this.updateVisualElementAxis(t,e)},t.prototype.updateAxisMotionValue=function(t,e){var n=this.getAxisMotionValue(t);if(e&&n){var r=this.originPoint[t]+e[t],i=this.constraints?Hr(r,this.constraints[t],this.elastic[t]):r;n.set(i)}},t.prototype.updateVisualElementAxis=function(t,e){var n,r=this.visualElement.getLayoutState().layout[t],i=r.max-r.min,o=this.cursorProgress[t],a=function(t,e,n,r,i){var o=t-e*n;return r?Hr(o,r,i):o}(e[t],i,o,null===(n=this.constraints)||void 0===n?void 0:n[t],this.elastic[t]);this.visualElement.setProjectionTargetAxis(t,a,a+i)},t.prototype.setProps=function(t){var e=t.drag,n=void 0!==e&&e,i=t.dragDirectionLock,o=void 0!==i&&i,a=t.dragPropagation,u=void 0!==a&&a,s=t.dragConstraints,c=void 0!==s&&s,l=t.dragElastic,f=void 0===l?.35:l,d=t.dragMomentum,p=void 0===d||d,v=(0,r._T)(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,r.pi)({drag:n,dragDirectionLock:o,dragPropagation:u,dragConstraints:c,dragElastic:f,dragMomentum:p},v)},t.prototype.getAxisMotionValue=function(t){var e=this.props,n=e.layout,r=e.layoutId,i="_drag"+t.toUpperCase();return this.props[i]?this.props[i]:n||void 0!==r?void 0:this.visualElement.getValue(t,0)},t.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},t.prototype.isExternalDrag=function(){var t=this.props,e=t._dragX,n=t._dragY;return e||n},t.prototype.animateDragEnd=function(t){var e=this,n=this.props,i=n.drag,o=n.dragMomentum,a=n.dragElastic,u=n.dragTransition,s=function(t,e){void 0===e&&(e=!0);var n,r=t.getProjectionParent();return!!r&&(e?gi(n=ii(r.projection.target,t.projection.target),r.getLatestValues()):n=ii(r.getLayoutState().layout,t.getLayoutState().layout),zr((function(e){return t.setProjectionTargetAxis(e,n[e].min,n[e].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(s&&Object.keys(c).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var f=ii(l.projection.targetFinal,c);zr((function(t){var e=f[t],n=e.min,r=e.max;c[t]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var d=zr((function(n){var l;if(wi(n,i,e.currentDirection)){var f=null!==(l=null===c||void 0===c?void 0:c[n])&&void 0!==l?l:{},d=a?200:1e6,p=a?40:1e7,v=(0,r.pi)((0,r.pi)({type:"inertia",velocity:o?t[n]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},u),f);return e.getAxisMotionValue(n)?e.startAxisValueAnimation(n,v):e.visualElement.startLayoutAnimation(n,v,s)}}));return Promise.all(d).then((function(){var t,n;null===(n=(t=e.props).onDragTransitionEnd)||void 0===n||n.call(t)}))},t.prototype.stopMotion=function(){var t=this;zr((function(e){var n=t.getAxisMotionValue(e);n?n.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);if(n){var r=n.get();return n.set(r),n.set(r),or(t,n,0,e)}},t.prototype.scalePoint=function(){var t=this,e=this.props,n=e.drag;if(g(e.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};zr((function(e){r[e]=Kr(t.visualElement.projection.target[e],t.constraintsBox[e])})),this.updateConstraints((function(){zr((function(e){if(wi(e,n,null)){var i=function(t,e,n){var r=t.max-t.min,i=ke(e.min,e.max-r,n);return{min:i,max:i+r}}(t.visualElement.projection.target[e],t.constraintsBox[e],r[e]),o=i.min,a=i.max;t.visualElement.setProjectionTargetAxis(e,o,a)}}))})),setTimeout(bi.R,1)}},t.prototype.updateConstraints=function(t){var e=this;this.cancelLayout=(0,bi.U)((function(n,r){var i=(0,ni.kv)(e.visualElement);r((function(){return i.forEach((function(t){return t.resetTransform()}))})),n((function(){return(0,ni.de)(e.visualElement)})),r((function(){return i.forEach((function(t){return t.restoreTransform()}))})),n((function(){e.resolveDragConstraints()})),t&&r(t)}))},t.prototype.mount=function(t){var e=this,n=ee(t.getInstance(),"pointerdown",(function(t){var n=e.props,r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&e.start(t)})),r=Ht(window,"resize",(function(){e.scalePoint()})),i=t.onLayoutUpdate((function(){e.isDragging&&e.resolveDragConstraints()})),o=t.prevDragCursor;return o&&this.start(xi,{cursorProgress:o}),function(){null===n||void 0===n||n(),null===r||void 0===r||r(),null===i||void 0===i||i(),e.cancelDrag()}},t}();function wi(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var Ei={pan:pe((function(t){var e=t.onPan,n=t.onPanStart,r=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,u=e||n||r||o,s=(0,i.useRef)(null),c=(0,i.useContext)(l).transformPagePoint,f={onSessionStart:o,onStart:n,onMove:e,onEnd:function(t,e){s.current=null,r&&r(t,e)}};(0,i.useEffect)((function(){null!==s.current&&s.current.updateHandlers(f)})),ne(a,"pointerdown",u&&function(t){s.current=new jr(t,f,{transformPagePoint:c})}),(0,le.z)((function(){return s.current&&s.current.end()}))})),drag:pe((function(t){var e=t.dragControls,n=t.visualElement,o=(0,i.useContext)(l).transformPagePoint,a=(0,jt.h)((function(){return new Ai({visualElement:n})}));a.setProps((0,r.pi)((0,r.pi)({},t),{transformPagePoint:o})),(0,i.useEffect)((function(){return e&&e.subscribe(a)}),[a]),(0,i.useEffect)((function(){return a.mount(n)}),[])}))},Si=n(7646);function Ti(t){return"string"===typeof t&&t.startsWith("var(--")}var Ci=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ki(t,e,n){void 0===n&&(n=1);var i=(0,r.CR)(function(t){var e=Ci.exec(t);if(!e)return[,];var n=(0,r.CR)(e,3);return[n[1],n[2]]}(t),2),o=i[0],a=i[1];if(o){var u=window.getComputedStyle(e).getPropertyValue(o);return u?u.trim():Ti(a)?ki(a,e,n+1):a}}function Oi(t,e){return t/(e.max-e.min)*100}var Mi="_$css";var Ri={process:function(t,e,n){var r=n.target;if("string"===typeof t){if(!tt.test(t))return t;t=parseFloat(t)}return Oi(t,r.x)+"% "+Oi(t,r.y)+"%"}},Li={borderRadius:(0,r.pi)((0,r.pi)({},Ri),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ri,borderTopRightRadius:Ri,borderBottomLeftRadius:Ri,borderBottomRightRadius:Ri,boxShadow:{process:function(t,e){var n=e.delta,r=e.treeScale,i=t,o=t.includes("var("),a=[];o&&(t=t.replace(Ci,(function(t){return a.push(t),Mi})));var u=qe.parse(t);if(u.length>5)return i;var s=qe.createTransformer(t),c="number"!==typeof u[0]?1:0,l=n.x.scale*r.x,f=n.y.scale*r.y;u[0+c]/=l,u[1+c]/=f;var d=ke(l,f,.5);"number"===typeof u[2+c]&&(u[2+c]/=d),"number"===typeof u[3+c]&&(u[3+c]/=d);var p=s(u);if(o){var v=0;p=p.replace(Mi,(function(){var t=a[v];return v++,t}))}return p}}},Vi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.frameTarget=(0,Nr.VZ)(),e.currentAnimationTarget=(0,Nr.VZ)(),e.isAnimating={x:!1,y:!1},e.stopAxisAnimation={x:void 0,y:void 0},e.isAnimatingTree=!1,e.animate=function(t,n,i){void 0===i&&(i={});var o=i.originBox,a=i.targetBox,u=i.visibilityAction,s=i.shouldStackAnimate,c=i.onComplete,l=i.prevParent,f=(0,r._T)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=e.props,p=d.visualElement,v=d.layout;if(!1===s)return e.isAnimatingTree=!1,e.safeToRemove();if(!e.isAnimatingTree||!0===s){s&&(e.isAnimatingTree=!0),n=o||n,t=a||t;var m=!1,h=p.getProjectionParent();if(h){var y=h.prevViewportBox,g=h.getLayoutState().layout;l&&(a&&(g=l.getLayoutState().layout),o&&!oi(l,h)&&l.prevViewportBox&&(y=l.prevViewportBox)),y&&Fi(l,o,a)&&(m=!0,n=ii(y,n),t=ii(g,t))}var x=ji(n,t),b=zr((function(i){var o,a;if("position"===v){var s=t[i].max-t[i].min;n[i].max=n[i].min+s}if(!p.projection.isTargetLocked)return void 0===u?x?e.animateAxis(i,t[i],n[i],(0,r.pi)((0,r.pi)({},f),{isRelative:m})):(null===(a=(o=e.stopAxisAnimation)[i])||void 0===a||a.call(o),p.setProjectionTargetAxis(i,t[i].min,t[i].max,m)):void p.setVisibility(u===Si.c.Show)}));return p.syncRender(),Promise.all(b).then((function(){e.isAnimatingTree=!1,c&&c(),p.notifyLayoutAnimationComplete()}))}},e}return(0,r.ZT)(e,t),e.prototype.componentDidMount=function(){var t=this,e=this.props.visualElement;e.animateMotionValue=or,e.enableLayoutProjection(),this.unsubLayoutReady=e.onLayoutUpdate(this.animate),e.layoutSafeToRemove=function(){return t.safeToRemove()},function(t){for(var e in t)R[e]=t[e]}(Li)},e.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),zr((function(e){var n,r;return null===(r=(n=t.stopAxisAnimation)[e])||void 0===r?void 0:r.call(n)}))},e.prototype.animateAxis=function(t,e,n,r){var i,o,a=this,u=void 0===r?{}:r,s=u.transition,c=u.isRelative;if(!this.isAnimating[t]||!Bi(e,this.currentAnimationTarget[t])){null===(o=(i=this.stopAxisAnimation)[t])||void 0===o||o.call(i),this.isAnimating[t]=!0;var l=this.props.visualElement,f=this.frameTarget[t],d=l.getProjectionAnimationProgress()[t];d.clearListeners(),d.set(0),d.set(0);var p=function(){var r=d.get()/1e3;!function(t,e,n,r){t.min=ke(e.min,n.min,r),t.max=ke(e.max,n.max,r)}(f,n,e,r),l.setProjectionTargetAxis(t,f.min,f.max,c)};p();var v=d.onChange(p);this.stopAxisAnimation[t]=function(){a.isAnimating[t]=!1,d.stop(),v()},this.currentAnimationTarget[t]=e;var m=s||l.getDefaultTransition()||Ii;return or("x"===t?"layoutX":"layoutY",d,1e3,m&&ir(m,"layout")).then(this.stopAxisAnimation[t])}},e.prototype.safeToRemove=function(){var t,e;null===(e=(t=this.props).safeToRemove)||void 0===e||e.call(t)},e.prototype.render=function(){return null},e}(i.Component);function ji(t,e){return!_i(t)&&!_i(e)&&(!Bi(t.x,e.x)||!Bi(t.y,e.y))}var Di={min:0,max:0};function _i(t){return Bi(t.x,Di)&&Bi(t.y,Di)}function Bi(t,e){return t.min===e.min&&t.max===e.max}var Ii={duration:.45,ease:[.4,0,.1,1]};function Fi(t,e,n){return t||!t&&!(e||n)}var Ui=n(49870),Ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.syncLayout,n=t.framerSyncLayout,r=t.visualElement;(0,Ui.Md)(e)&&e.register(r),(0,Ui.Md)(n)&&n.register(r),r.onUnmount((function(){(0,Ui.Md)(e)&&e.remove(r),(0,Ui.Md)(n)&&n.remove(r)}))},e.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;return(0,Ui.Md)(e)?e.syncUpdate():((0,ni.x7)(n),e.add(n)),null},e.prototype.componentDidUpdate=function(){var t=this.props.syncLayout;(0,Ui.Md)(t)||t.flush()},e.prototype.render=function(){return null},e}(i.Component);var zi={measureLayout:function(t){var e=(0,i.useContext)(Ui.WH),n=(0,i.useContext)(Ui.bg);return i.createElement(Ni,(0,r.pi)({},t,{syncLayout:e,framerSyncLayout:n}))},layoutAnimation:function(t){var e=(0,r.CR)((0,p.oO)(),2)[1];return i.createElement(Vi,(0,r.pi)({},t,{safeToRemove:e}))}};function Hi(){return{isHydrated:!1,layout:(0,Nr.VZ)(),layoutCorrected:(0,Nr.VZ)(),treeScale:{x:1,y:1},delta:(0,Nr.pY)(),deltaFinal:(0,Nr.pY)(),deltaTransform:""}}var Zi=Hi();function Wi(t,e,n){var r=t.x,i=t.y,o="translate3d("+r.translate/e.x+"px, "+i.translate/e.y+"px, 0) ";if(n){var a=n.rotate,u=n.rotateX,s=n.rotateY;a&&(o+="rotate("+a+") "),u&&(o+="rotateX("+u+") "),s&&(o+="rotateY("+s+") ")}return o+="scale("+r.scale+", "+i.scale+")",n||o!==Xi?o:""}function Yi(t){var e=t.deltaFinal;return 100*e.x.origin+"% "+100*e.y.origin+"% 0"}var Xi=Wi(Zi.delta,Zi.treeScale,{x:1,y:1}),qi=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Gi(t,e,n,r){var i,o,a=t.delta,u=t.layout,s=t.layoutCorrected,c=t.treeScale,l=e.target;o=u,ui((i=s).x,o.x),ui(i.y,o.y),function(t,e,n){var r=n.length;if(r){var i,o;e.x=e.y=1;for(var a=0;a=0;e--){var n=K.path[e];if(n.projection.isEnabled){t=n;break}}A=t}return A},resolveRelativeTargetBox:function(){var t=K.getProjectionParent();if(L.relativeTarget&&t&&(function(t,e){ei(t.target.x,t.relativeTarget.x,e.target.x),ei(t.target.y,t.relativeTarget.y,e.target.y)}(L,t.projection),ai(t))){var e=L.target;mi(e,e,t.getLatestValues())}},shouldResetTransform:function(){return Boolean(h._layoutResetTransform)},pointTo:function(t){V=t.projection,j=t.getLatestValues(),null===S||void 0===S||S(),S=de(t.onSetAxisTarget(K.scheduleUpdateLayoutProjection),t.onLayoutAnimationComplete((function(){var t;K.isPresent?K.presence=Si.z.Present:null===(t=K.layoutSafeToRemove)||void 0===t||t.call(K)})))},isPresent:!0,presence:Si.z.Entering});return K}};function Qi(t){t.resolveRelativeTargetBox()}function to(t){t.updateLayoutProjection()}var eo,no=(0,r.ev)(["initial"],(0,r.CR)(wr)),ro=no.length,io=new Set(["width","height","top","left","right","bottom","x","y"]),oo=function(t){return io.has(t)},ao=function(t,e){t.set(e,!1),t.set(e)},uo=function(t){return t===it||t===tt};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(eo||(eo={}));var so=function(t,e){return parseFloat(t.split(", ")[e])},co=function(t,e){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return so(o[1],e);var a=i.match(/^matrix\((.+)\)$/);return a?so(a[1],t):0}},lo=new Set(["x","y","z"]),fo=V.filter((function(t){return!lo.has(t)}));var po={width:function(t){var e=t.x;return e.max-e.min},height:function(t){var e=t.y;return e.max-e.min},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,r=e.top;return parseFloat(r)+(n.max-n.min)},right:function(t,e){var n=t.x,r=e.left;return parseFloat(r)+(n.max-n.min)},x:co(4,13),y:co(5,14)},vo=function(t,e,n,i){void 0===n&&(n={}),void 0===i&&(i={}),e=(0,r.pi)({},e),i=(0,r.pi)({},i);var o=Object.keys(e).filter(oo),a=[],u=!1,s=[];if(o.forEach((function(r){var o=t.getValue(r);if(t.hasValue(r)){var c,l=n[r],f=e[r],d=pr(l);if(Dt(f))for(var p=f.length,v=null===f[0]?1:0;v0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},63366:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}n.d(e,{Z:function(){return r}})},70885:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(40181);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(s){u=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t,e)||(0,r.Z)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},40181:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(30907);function i(t,e){if(t){if("string"===typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}}}]);