1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,151303,292927,928798,396784,401157,319465,944243,785337,753758,174806,997910,565115,578083,707555,375415,812064,t=>{"use strict";var e,n,i=t.i(644951);function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}t.s(["_",()=>r],292927),t.s(["_",()=>a],928798);var o=t.i(536038);function s(t,e){if(e&&("object"===(0,o._)(e)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,n){return e=r(e),s(t,a()?Reflect.construct(e,n||[],r(t).constructor):e.apply(t,n))}t.s(["_",()=>u],396784);var l=t.i(94e4);function c(t,e){if(!(0,l._)(t,e))throw TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}t.s(["_",()=>c],401157),t.s(["_",()=>d],319465),t.s(["_",()=>v],944243),t.s(["_",()=>f],785337);var p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],m=new Set(p),y=function(t){return 180*t/Math.PI},g=function(t){return x(y(Math.atan2(t[1],t[0])))},k={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:function(t){return(Math.abs(t[0])+Math.abs(t[3]))/2},rotate:g,rotateZ:g,skewX:function(t){return y(Math.atan(t[1]))},skewY:function(t){return y(Math.atan(t[2]))},skew:function(t){return(Math.abs(t[1])+Math.abs(t[2]))/2}},x=function(t){return(t%=360)<0&&(t+=360),t},T=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},w=function(t){return Math.sqrt(t[4]*t[4]+t[5]*t[5])},P={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:T,scaleY:w,scale:function(t){return(T(t)+w(t))/2},rotateX:function(t){return x(y(Math.atan2(t[6],t[5])))},rotateY:function(t){return x(y(Math.atan2(-t[2],t[0])))},rotateZ:g,rotate:g,skewX:function(t){return y(Math.atan(t[4]))},skewY:function(t){return y(Math.atan(t[1]))},skew:function(t){return(Math.abs(t[1])+Math.abs(t[4]))/2}};function b(t){return+!!t.includes("scale")}function S(t,e){if(!t||"none"===t)return b(e);var n,i,r=t.match(RegExp("^matrix3d\\(([-\\d.e\\s,]+)\\)$","u"));if(r)n=P,i=r;else{var a=t.match(RegExp("^matrix\\(([-\\d.e\\s,]+)\\)$","u"));n=k,i=a}if(!i)return b(e);var o=n[e],s=i[1].split(",").map(E);return"function"==typeof o?o(s):s[o]}var A=function(t,e){var n=getComputedStyle(t).transform;return S(void 0===n?"none":n,e)};function E(t){return parseFloat(t.trim())}var C=function(t){return function(e){return"string"==typeof e&&e.startsWith(t)}},M=C("--"),V=C("var(--"),D=function(t){return!!V(t)&&R.test(t.split("/*")[0].trim())},R=RegExp("var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$","iu");function _(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}var L=function(t,e,n){return t+(e-t)*n};function j(t){return void 0===t||1===t}function F(t){var e=t.scale,n=t.scaleX,i=t.scaleY;return!j(e)||!j(n)||!j(i)}function O(t){return F(t)||B(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function B(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function I(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=I(t.min,e,n,i,r),t.max=I(t.max,e,n,i,r)}function N(t,e){var n=e.x,i=e.y;
1U(t.x,n.translate,n.scale,n.originPoint),U(t.y,i.translate,i.scale,i.originPoint)}function W(t,e){t.min=t.min+e,t.max=t.max+e}function Y(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,a=L(t.min,t.max,r);U(t,e,n,a,i)}function K(t,e){Y(t.x,e.x,e.scaleX,e.scale,e.originX),Y(t.y,e.y,e.scaleY,e.scale,e.originY)}function X(t,e){return _(function(t,e){if(!e)return t;var n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}function z(t,e,n){return(z="u">typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}(t,e);if(i){var a=Object.getOwnPropertyDescriptor(i,e);return a.get?a.get.call(n||t):a.value}})(t,e,n||t)}t.s(["_",()=>z],753758);var H=t.i(177619),G=t.i(648486),q=new Set(["width","height","top","left","right","bottom"].concat((0,G._)(p))),Z=t.i(164309),$=t.i(784544),J=function(t,e,n){return n>e?e:n<t?t:n},Q={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},tt=(0,$._)((0,Z._)({},Q),{transform:function(t){return J(0,1,t)}}),te=(0,$._)((0,Z._)({},Q),{default:1}),tn=function(t){return{test:function(e){return"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return"".concat(e).concat(t)}}},ti=tn("deg"),tr=tn("%"),ta=tn("px"),to=tn("vh"),ts=tn("vw"),tu=(0,$._)((0,Z._)({},tr),{parse:function(t){return tr.parse(t)/100},transform:function(t){return tr.transform(100*t)}}),tl=function(t){return function(e){return e.test(t)}},tc=[Q,ta,tr,ti,ts,to,{test:function(t){return"auto"===t},parse:function(t){return t}}],th=function(t){return tc.find(tl(t))};t.i(987420);var td=function(){},tv=function(){},tf=function(t){return RegExp("^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$","u").test(t)},tp=RegExp("^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)","u"),tm=function(t){return t===Q||t===ta},ty=new Set(["x","y","z"]),tg=p.filter(function(t){return!ty.has(t)}),tk={width:function(t,e){var n=t.x,i=e.paddingLeft,r=e.paddingRight;return n.max-n.min-parseFloat(void 0===i?"0":i)-parseFloat(void 0===r?"0":r)},height:function(t,e){var n=t.y,i=e.paddingTop,r=e.paddingBottom;return n.max-n.min-parseFloat(void 0===i?"0":i)-parseFloat(void 0===r?"0":r)},top:function(t,e){return parseFloat(e.top)},left:function(t,e){return parseFloat(e.left)},bottom:function(t,e){var n=t.y;return parseFloat(e.top)+(n.max-n.min)},right:function(t,e){var n=t.x;return parseFloat(e.left)+(n.max-n.min)},x:function(t,e){return S(e.transform,"x")},y:function(t,e){return S(e.transform,"y")}};tk.translateX=tk.x,tk.translateY=tk.y;var tx=function(t){return t},tT={},tw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tP(t,e){var n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},a=function(){return n=!0},o=tw.reduce(function(t,n){return t[n]=function(t,e){var n=new Set,i=new Set,r=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},u=0;function l(e){o.has(e)&&(c.schedule(e),t()),u++,e(s)}var c={schedule:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=a&&r?n:i;return e&&o.add(t),s.has(t)||s.add(t),t},cancel:function(t){i.delete(t),o.delete(t)},process:function(t){var o;if(s=t,r){a=!0;return}r=!0,n=(o=[i,n])[0],i=o[1],n.forEach(l),e,u=0,n.clear(),r=!1,a&&(a=!1,c.process(t))}};return c}(a,e?n:void 0),t},{}),s=o.setup,u=o.read,l=o.resolveKeyframes,c=o.preUpdate,h=o.update,d=o.preRender,v=o.render,f=o.postRender,p=function(){var a=tT.useManualTiming?r.timestamp:performance.now();n=!1,tT.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(a-r.timestamp,40),1)),r.timestamp=a,r.isProcessing=!0,s.process(r),u.process(r),l.process(r),c.process(r),h.process(r),d.process(r),v.process(r),f.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(p))},m=function(){n=!0,i=!0,r.isProcessing||t(p)};return{schedule:tw.reduce(function(t,e){var i=o[e];return t[e]=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||m(),i.schedule(t,e,r)},t},{}),cancel:function(t){for(var e=0;e<tw.length;
1e++)o[tw[e]].cancel(t)},state:r,steps:o}}var tb=tP("u">typeof requestAnimationFrame?requestAnimationFrame:tx,!0),tS=tb.schedule,tA=tb.cancel,tE=tb.state,tC=tb.steps,tM=new Set,tV=!1,tD=!1,tR=!1;function t_(){if(tD){var t=Array.from(tM).filter(function(t){return t.needsMeasurement}),e=new Set(t.map(function(t){return t.element})),n=new Map;e.forEach(function(t){var e,i=(e=[],tg.forEach(function(n){var i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),e);i.length&&(n.set(t,i),t.render())}),t.forEach(function(t){return t.measureInitialState()}),e.forEach(function(t){t.render();var e=n.get(t);e&&e.forEach(function(e){var n,i=(0,H._)(e,2),r=i[0],a=i[1];null==(n=t.getValue(r))||n.set(a)})}),t.forEach(function(t){return t.measureEndState()}),t.forEach(function(t){void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tD=!1,tV=!1,tM.forEach(function(t){return t.complete(tR)}),tM.clear()}function tL(){tM.forEach(function(t){t.readKeyframes(),t.needsMeasurement&&(tD=!0)})}var tj=function(){function t(e,n,i,r,a){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];c(this,t),this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=(0,G._)(e),this.onComplete=n,this.name=i,this.motionValue=r,this.element=a,this.isAsync=o}return d(t,[{key:"scheduleResolve",value:function(){this.state="scheduled",this.isAsync?(tM.add(this),tV||(tV=!0,tS.read(tL),tS.resolveKeyframes(t_))):(this.readKeyframes(),this.complete())}},{key:"readKeyframes",value:function(){var t=this.unresolvedKeyframes,e=this.name,n=this.element,i=this.motionValue;if(null===t[0]){var r=null==i?void 0:i.get(),a=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){var o=n.readValue(e,a);null!=o&&(t[0]=o)}void 0===t[0]&&(t[0]=a),i&&void 0===r&&i.set(t[0])}for(var s,u=1;u<t.length;u++)null!=t[u]||(t[u]=t[u-1])}},{key:"setFinalKeyframe",value:function(){}},{key:"measureInitialState",value:function(){}},{key:"renderEndStyles",value:function(){}},{key:"measureEndState",value:function(){}},{key:"complete",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tM.delete(this)}},{key:"cancel",value:function(){"scheduled"===this.state&&(tM.delete(this),this.state="pending")}},{key:"resume",value:function(){"pending"===this.state&&this.scheduleResolve()}}]),t}(),tF=function(t){return RegExp("^0[^.\\s]+$","u").test(t)},tO=function(t){return Math.round(1e5*t)/1e5},tB=t.i(868275),tI=RegExp("-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)","gu"),tU=RegExp("^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$","iu"),tN=function(t,e){return function(n){return!!("string"==typeof n&&tU.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e))}},tW=function(t,e,n){return function(i){if("string"!=typeof i)return i;var r,a=(0,H._)(i.match(tI),4),o=a[0],s=a[1],u=a[2],l=a[3];return r={},(0,tB._)(r,t,parseFloat(o)),(0,tB._)(r,e,parseFloat(s)),(0,tB._)(r,n,parseFloat(u)),(0,tB._)(r,"alpha",void 0!==l?parseFloat(l):1),r}},tY=(0,$._)((0,Z._)({},Q),{transform:function(t){return Math.round(J(0,255,t))}}),tK={test:tN("rgb","red"),parse:tW("red","green","blue"),transform:function(t){var e=t.red,n=t.green,i=t.blue,r=t.alpha;return"rgba("+tY.transform(e)+", "+tY.transform(n)+", "+tY.transform(i)+", "+tO(tt.transform(void 0===r?1:r))+")"}},tX={test:tN("#"),parse:function(t){var e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:tK.transform},tz={test:tN("hsl","hue"),parse:tW("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,i=t.lightness,r=t.alpha;return"hsla("+Math.round(e)+", "+tr.transform(tO(n))+", "+tr.transform(tO(i))+", "+tO(tt.transform(void 0===r?1:r))+")"}},tH={test:function(t){return tK.test(t)||tX.test(t)||tz.test(t)},parse:function(t){return tK.test(t)?tK.parse(t):tz.test(t)?tz.parse(t):tX.parse(t)},transform:function(t){return"string"==typeof t?t:t.hasOwnProperty("red")?tK.transform(t):tz.transform(t)},getAnimatableNone:function(t){var e=tH.parse(t);return e.alpha=0,tH.transform(e)}},tG=RegExp("(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))","giu"),tq="number",tZ="color",t$=
1RegExp("var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)","giu");function tJ(t){var e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[],a=0,o=e.replace(t$,function(t){return tH.test(t)?(i.color.push(a),r.push(tZ),n.push(tH.parse(t))):t.startsWith("var(")?(i.var.push(a),r.push("var"),n.push(t)):(i.number.push(a),r.push(tq),n.push(parseFloat(t))),++a,"${}"}).split("${}");return{values:n,split:o,indexes:i,types:r}}function tQ(t){return tJ(t).values}function t0(t){var e=tJ(t),n=e.split,i=e.types,r=n.length;return function(t){for(var e="",a=0;a<r;a++)if(e+=n[a],void 0!==t[a]){var o=i[a];o===tq?e+=tO(t[a]):o===tZ?e+=tH.transform(t[a]):e+=t[a]}return e}}var t1=function(t){return"number"==typeof t?0:tH.test(t)?tH.getAnimatableNone(t):t},t2={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tI))?void 0:e.length)||0)+((null==(n=t.match(tG))?void 0:n.length)||0)>0},parse:tQ,createTransformer:t0,getAnimatableNone:function(t){var e=tQ(t);return t0(t)(e.map(t1))}},t5=new Set(["brightness","contrast","saturate","opacity"]);function t3(t){var e=(0,H._)(t.slice(0,-1).split("("),2),n=e[0],i=e[1];if("drop-shadow"===n)return t;var r=(0,H._)(i.match(tI)||[],1)[0];if(!r)return t;var a=i.replace(r,""),o=+!!t5.has(n);return r!==i&&(o*=100),n+"("+o+a+")"}var t4=RegExp("\\b([a-z-]*)\\(.*?\\)","gu"),t9=(0,$._)((0,Z._)({},t2),{getAnimatableNone:function(t){var e=t.match(t4);return e?e.map(t3).join(" "):t}}),t6=(0,$._)((0,Z._)({},Q),{transform:Math.round}),t7=(0,$._)((0,Z._)({borderWidth:ta,borderTopWidth:ta,borderRightWidth:ta,borderBottomWidth:ta,borderLeftWidth:ta,borderRadius:ta,radius:ta,borderTopLeftRadius:ta,borderTopRightRadius:ta,borderBottomRightRadius:ta,borderBottomLeftRadius:ta,width:ta,maxWidth:ta,height:ta,maxHeight:ta,top:ta,right:ta,bottom:ta,left:ta,padding:ta,paddingTop:ta,paddingRight:ta,paddingBottom:ta,paddingLeft:ta,margin:ta,marginTop:ta,marginRight:ta,marginBottom:ta,marginLeft:ta,backgroundPositionX:ta,backgroundPositionY:ta},{rotate:ti,rotateX:ti,rotateY:ti,rotateZ:ti,scale:te,scaleX:te,scaleY:te,scaleZ:te,skew:ti,skewX:ti,skewY:ti,distance:ta,translateX:ta,translateY:ta,translateZ:ta,x:ta,y:ta,z:ta,perspective:ta,transformPerspective:ta,opacity:tt,originX:tu,originY:tu,originZ:ta}),{zIndex:t6,fillOpacity:tt,strokeOpacity:tt,numOctaves:t6}),t8=(0,$._)((0,Z._)({},t7),{color:tH,backgroundColor:tH,outlineColor:tH,fill:tH,stroke:tH,borderColor:tH,borderTopColor:tH,borderRightColor:tH,borderBottomColor:tH,borderLeftColor:tH,filter:t9,WebkitFilter:t9}),et=function(t){return t8[t]};function ee(t,e){var n=et(t);return n!==t9&&(n=t2),n.getAnimatableNone?n.getAnimatableNone(e):void 0}var en=new Set(["auto","none","0"]),ei=function(t){function e(t,n,i,r,a){return c(this,e),u(this,e,[t,n,i,r,a,!0])}return f(e,t),d(e,[{key:"readKeyframes",value:function(){var t=this.unresolvedKeyframes,n=this.element,i=this.name;if(n&&n.current){z(r(e.prototype),"readKeyframes",this).call(this);for(var a=0;a<t.length;a++){var o=t[a];if("string"==typeof o&&D(o=o.trim())){var s=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;tv(i<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'),"max-css-var-depth");var r=(0,H._)(function(t){var e=tp.exec(t);if(!e)return[,];var n=(0,H._)(e,4),i=n[1],r=n[2],a=n[3];return["--".concat(null!=i?i:r),a]}(e),2),a=r[0],o=r[1];if(a){var s=window.getComputedStyle(n).getPropertyValue(a);if(s){var u=s.trim();return tf(u)?parseFloat(u):u}return D(o)?t(o,n,i+1):o}}(o,n.current);void 0!==s&&(t[a]=s),a===t.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),q.has(i)&&2===t.length){var u=(0,H._)(t,2),l=u[0],c=u[1],h=th(l),d=th(c);if(h!==d)if(tm(h)&&tm(d))for(var v=0;v<t.length;v++){var f=t[v];"string"==typeof f&&(t[v]=parseFloat(f))}else tk[i]&&(this.needsMeasurement=!0)}}}},{key:"resolveNoneKeyframes",value:function(){for(var t,e=this.unresolvedKeyframes,n=this.name,i=[],r=0;r<e.length;r++)(null===e[r]||("number"==typeof(t=e[r])?0===t:null===t||"none"===t||"0"===t||tF(t)))&&i.push(r);i.length&&function(t,e,n){for(var i=0,r=void 0;i<t.length&&!r;){var a=t[i];"string"==typeof a&&!en.has(a)&&tJ(a).values.length&&(r=t[i]),i++}if(r&&n){var o=!0,s=!1,u=void 0;try{for(var l,c=e[Symbol.iterator]();!(o=(l=c.next()).done);o=!0)t[l.value]=ee(n,r)}catch(t){s=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(s)throw u}}}}(e,i,n)}},{key:"measureInitialState",value:function(){var t=this.element,e=this.unresolvedKeyframes,n=this.name;if(t&&t.current){"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tk[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;var i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}}},{key:"measureEndState",value:function(){var t,e=this.element,n=this.name,i=this.unresolvedKeyframes;if(e&&e.current){var r=e.getValue(n);r&&r.jump(this.measuredOrigin,!1);var a=i.length-1,o=i[a];i[a]=tk[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(function(t){var n=(0,H._)(t,2),i=n[0],r=n[1];e.getValue(i).set(r)}),this.resolveNoneKeyframes()}}}]),e}(tj),er=function(t){return!!(t&&t.getVelocity)},ea=t.i(766417);function eo(){n=void 0}var es={now:function(){return void 0===n&&es.set(tE.isProcessing||tT.useManualTiming?tE.timestamp:performance.now()),n},set:function(t){n=t,queueMicrotask(eo)}},eu=t.i(278308);function el(t,e){-1===t.indexOf(e)&&t.push(e)}function ec(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var eh=function(){function t(){c(this,t),this.subscriptions=[]}return d(t,[{key:"add",value:function(t){var e=this;return el(this.subscriptions,t),function(){return ec(e.subscriptions,t)}}},{key:"notify",value:function(t,e,n){var i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(var r=0;r<i;r++){var a=this.subscriptions[r];a&&a(t,e,n)}}},{key:"getSize",value:function(){return this.subscriptions.length}},{key:"clear",value:function(){this.subscriptions.length=0}}]),t}(),ed=void 0,ev=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t),this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){var e=es.now();if(n.updatedAt!==e&&n.setPrevFrameValue(),n.prev=n.current,n.setCurrent(t),n.current!==n.prev&&(null==(o=n.events.change)||o.notify(n.current),n.dependents)){var i=!0,r=!1,a=void 0;try{for(var o,s,u=n.dependents[Symbol.iterator]();!(i=(s=u.next()).done);i=!0)s.value.dirty()}catch(t){r=!0,a=t}finally{try{i||null==u.return||u.return()}finally{if(r)throw a}}}},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}return d(t,[{key:"setCurrent",value:function(t){this.current=t,this.updatedAt=es.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}},{key:"setPrevFrameValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}},{key:"onChange",value:function(t){return this.on("change",t)}},{key:"on",value:function(t,e){var n=this;this.events[t]||(this.events[t]=new eh);var i=this.events[t].add(e);return"change"===t?function(){i(),tS.read(function(){n.events.change.getSize()||n.stop()})}:i}},{key:"clearListeners",value:function(){for(var t in this.events)this.events[t].clear()}},{key:"attach",value:function(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}},{key:"set",value:function(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}},{key:"setWithVelocity",value:function(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}},{key:"jump",value:function(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}},{key:"dirty",value:function(){var t;null==(t=this.events.change)||t.notify(this.current)}},{key:"addDependent",value:function(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}},{key:"removeDependent",value:function(t){this.dependents&&this.dependents.delete(t)}},{key:"get",value:function(){return ed&&ed.push(this),this.current}},{key:"getPrevious",value:function(){return this.prev}},{key:"getVelocity",value:function(){var t,e=es.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;var n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*t:0}},{key:"start",value:function(t){var e=this;return this.stop(),new Promise(function(n){e.hasAnimated=!0,e.animation=t(n),e.events.animationStart&&e.events.animationStart.notify()}).then(function(){e.events.animationComplete&&e.events.animationComplete.notify(),e.clearAnimation()})}},{key:"stop",value:function(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}},{key:"isAnimating",value:function(){return!!this.animation}},{key:"clearAnimation",value:function(){delete this.animation}},{key:"destroy",value:function(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}]),t}();function ef(t,e){return new ev(t,e)}var ep=(0,G._)(tc).concat([tH,t2]),em=tP(queueMicrotask,!1),ey=em.schedule;em.cancel;var eg=function(t){ex[t]={isEnabled:function(e){return ek[t].some(function(t){return!!e[t]})}}},ek={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ex={};for(var eT in ek)eg(eT);var ew=function(){return{translate:0,scale:1,origin:0,originPoint:0}},eP=function(){return{x:ew(),y:ew()}},eb=function(){return{min:0,max:0}},eS=function(){return{x:eb(),y:eb()}},eA="u">typeof window,eE={current:null},eC={current:!1};function eM(){if(eC.current=!0,eA)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return eE.current=t.matches};t.addEventListener("change",e),e()}else eE.current=!1}t.s(["hasReducedMotionListener",()=>eC,"prefersReducedMotion",()=>eE],174806),t.s(["initPrefersReducedMotion",()=>eM],997910);var eV=new WeakMap;function eD(t){return null!==t&&(void 0===t?"undefined":(0,o._)(t))==="object"&&"function"==typeof t.start}function eR(t){return"string"==typeof t||Array.isArray(t)}var e_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eL=["initial"].concat((0,G._)(e_));function ej(t){return eD(t.animate)||eL.some(function(e){return eR(t[e])})}function eF(t){return!!(ej(t)||t.variants)}function eO(t){var e=[{},{}];
1return null==t||t.values.forEach(function(t,n){e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function eB(t,e,n,i){if("function"==typeof e){var r=(0,H._)(eO(i),2),a=r[0],o=r[1];e=e(void 0!==n?n:t.custom,a,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){var s=(0,H._)(eO(i),2),u=s[0],l=s[1];e=e(void 0!==n?n:t.custom,u,l)}return e}var eI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eU=function(t){function e(){var t;return c(this,e),t=u(this,e,arguments),t.KeyframeResolver=ei,t}return f(e,t),d(e,[{key:"sortInstanceNodePosition",value:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1}},{key:"getBaseTargetFromProps",value:function(t,e){return t.style?t.style[e]:void 0}},{key:"removeValueFromRenderState",value:function(t,e){var n=e.vars,i=e.style;delete n[t],delete i[t]}},{key:"handleChildMotionValue",value:function(){var t=this;this.childSubscription&&(this.childSubscription(),delete this.childSubscription);var e=this.props.children;er(e)&&(this.childSubscription=e.on("change",function(e){t.current&&(t.current.textContent="".concat(e))}))}}]),e}(function(){function t(e){var n=this,i=e.parent,r=e.props,a=e.presenceContext,o=e.reducedMotionConfig,s=e.blockInitialAnimation,u=e.visualState,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return n.notify("Update",n.latestValues)},this.render=function(){n.current&&(n.triggerBuild(),n.renderInstance(n.current,n.renderState,n.props.style,n.projection))},this.renderScheduledAt=0,this.scheduleRender=function(){var t=es.now();n.renderScheduledAt<t&&(n.renderScheduledAt=t,tS.render(n.render,!1,!0))};var h=u.latestValues,d=u.renderState;this.latestValues=h,this.baseTarget=(0,Z._)({},h),this.initialValues=r.initial?(0,Z._)({},h):{},this.renderState=d,this.parent=i,this.props=r,this.presenceContext=a,this.depth=i?i.depth+1:0,this.reducedMotionConfig=o,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=ej(r),this.isVariantNode=eF(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);var v=this.scrapeMotionValuesFromProps(r,{},this),f=(v.willChange,(0,ea._)(v,["willChange"]));for(var p in f){var m=f[p];void 0!==h[p]&&er(m)&&m.set(h[p])}}return d(t,[{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return{}}},{key:"mount",value:function(t){var e,n=this;this.current=t,eV.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(function(t,e){return n.bindToMotionValue(e,t)}),eC.current||eM(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||eE.current),null==(e=this.parent)||e.addChild(this),this.update(this.props,this.presenceContext)}},{key:"unmount",value:function(){var t;for(var e in this.projection&&this.projection.unmount(),tA(this.notifyUpdate),tA(this.render),this.valueSubscriptions.forEach(function(t){return t()}),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(t=this.parent)||t.removeChild(this),this.events)this.events[e].clear();for(var n in this.features){var i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}},{key:"addChild",value:function(t){this.children.add(t),null!=this.enteringChildren||(this.enteringChildren=new Set),this.enteringChildren.add(t)}},{key:"removeChild",value:function(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}},{key:"bindToMotionValue",value:function(t,e){var n,i=this;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();var r=m.has(t);r&&this.onBindTransform&&this.onBindTransform();var a=e.on("change",function(e){i.latestValues[t]=e,i.props.onUpdate&&tS.preRender(i.notifyUpdate),r&&i.projection&&(i.projection.isTransformDirty=!0),i.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,function(){a(),n&&n(),e.owner&&e.stop()})}}
1,{key:"sortNodePosition",value:function(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}},{key:"updateFeatures",value:function(){var t="animation";for(t in ex){var e=ex[t];if(e){var n=e.isEnabled,i=e.Feature;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){var r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}}},{key:"triggerBuild",value:function(){this.build(this.renderState,this.latestValues,this.props)}},{key:"measureViewportBox",value:function(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eS()}},{key:"getStaticValue",value:function(t){return this.latestValues[t]}},{key:"setStaticValue",value:function(t,e){this.latestValues[t]=e}},{key:"update",value:function(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(var n=0;n<eI.length;n++){var i=eI[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);var r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,n){for(var i in e){var r=e[i],a=n[i];if(er(r))t.addValue(i,r);else if(er(a))t.addValue(i,ef(r,{owner:t}));else if(a!==r)if(t.hasValue(i)){var o=t.getValue(i);!0===o.liveStyle?o.jump(r):o.hasAnimated||o.set(r)}else{var s=t.getStaticValue(i);t.addValue(i,ef(void 0!==s?s:r,{owner:t}))}}for(var u in n)void 0===e[u]&&t.removeValue(u);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}},{key:"getProps",value:function(){return this.props}},{key:"getVariant",value:function(t){return this.props.variants?this.props.variants[t]:void 0}},{key:"getDefaultTransition",value:function(){return this.props.transition}},{key:"getTransformPagePoint",value:function(){return this.props.transformPagePoint}},{key:"getClosestVariantNode",value:function(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}},{key:"addVariantChild",value:function(t){var e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),function(){return e.variantChildren.delete(t)}}},{key:"addValue",value:function(t,e){var n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}},{key:"removeValue",value:function(t){this.values.delete(t);var e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}},{key:"hasValue",value:function(t){return this.values.has(t)}},{key:"getValue",value:function(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=ef(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}},{key:"readValue",value:function(t,e){var n,i,r=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(tf(r)||tF(r))?r=parseFloat(r):(n=r,!ep.find(tl(n))&&t2.test(e)&&(r=ee(t,e))),this.setBaseTarget(t,er(r)?r.get():r)),er(r)?r.get():r}},{key:"setBaseTarget",value:function(t,e){this.baseTarget[t]=e}},{key:"getBaseTarget",value:function(t){var e=this.props.initial;if("string"==typeof e||(void 0===e?"undefined":(0,o._)(e))==="object"){var n,i,r=eB(this.props,e,null==(i=this.presenceContext)?void 0:i.custom);r&&(n=r[t])}if(e&&void 0!==n)return n;var a=this.getBaseTargetFromProps(this.props,t);return void 0===a||er(a)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:a}},{key:"on",value:function(t,e){return this.events[t]||(this.events[t]=new eh),this.events[t].add(e)}},{key:"notify",value:function(t){for(var e,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.events[t]&&(e=this.events[t]).notify.apply(e,(0,G._)(i))}},{key:"scheduleRenderMicrotask",value:function(){ey.render(this.render)}}]),t}()),eN=function(t,e){return e&&"number"==typeof t?e.transform(t):t},eW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eY=p.length;function eK(t,e,n){var i=t.style,r=t.vars,a=t.transformOrigin,o=!1,s=!1;for(var u in e){var l=e[u];if(m.has(u)){o=!0;continue}if(M(u)){r[u]=l;continue}var c=eN(l,t7[u]);u.startsWith("origin")?(s=!0,a[u]=c):i[u]=c}if(!e.transform&&(o||n?i.transform=function(t,e,n){for(var i="",r=!0,a=0;a<eY;a++){var o=p[a],s=t[o];if(void 0!==s){var u=!0;if(!(u="number"==typeof s?s===+!!o.startsWith("scale"):0===parseFloat(s))||n){var l=eN(s,t7[o]);if(!u){r=!1;var c=eW[o]||o;i+="".concat(c,"(").concat(l,") ")}n&&(e[o]=l)}}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),s){var h=a.originX,d=a.originY,v=a.originZ;i.transformOrigin="".concat(void 0===h?"50%":h," ").concat(void 0===d?"50%":d," ").concat(void 0===v?0:v)}}function eX(t,e,n,i){var r,a=e.style,o=e.vars,s=t.style;for(r in a)s[r]=a[r];for(r in null==i||i.applyProjectionStyles(s,n),o)s.setProperty(r,o[r])}var ez={};function eH(t,e){var n=e.layout,i=e.layoutId;return m.has(t)||t.startsWith("origin")||(n||void 0!==i)&&(!!ez[t]||"opacity"===t)}function eG(t,e,n){var i,r=t.style,a={};for(var o in r)(er(r[o])||e.style&&er(e.style[o])||eH(o,t)||(null==n||null==(i=n.getValue(o))?void 0:i.liveStyle)!==void 0)&&(a[o]=r[o]);return a}var eq=function(t){function e(){var t;return c(this,e),t=u(this,e,arguments),t.type="html",t.renderInstance=eX,t}return f(e,t),d(e,[{key:"readValueFromInstance",value:function(t,e){if(m.has(e)){var n;return(null==(n=this.projection)?void 0:n.isProjecting)?b(e):A(t,e)}var i=window.getComputedStyle(t),r=(M(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}},{key:"measureInstanceViewportBox",value:function(t,e){return X(t,e.transformPagePoint)}},{key:"build",value:function(t,e,n){eK(t,e,n.transformTemplate)}},{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return eG(t,e,n)}}]),e}
1(eU),eZ=function(t){return t.replace(RegExp("([a-z])([A-Z])","gu"),"$1-$2").toLowerCase()},e$={offset:"stroke-dashoffset",array:"stroke-dasharray"},eJ={offset:"strokeDashoffset",array:"strokeDasharray"};function eQ(t,e,n,i,r){var a,o,s=(0,eu._)([e,n,i,r]),u=s[0],l=s.slice(1),c=u.attrX,h=u.attrY,d=u.attrScale,v=u.pathLength,f=u.pathSpacing,p=u.pathOffset,m=(0,ea._)(u,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]),y=(0,eu._)(l),g=y[0],k=y.slice(1),x=(0,eu._)(k),T=x[0],w=x.slice(1),P=(0,H._)(w,1)[0];if(eK(t,m,T),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};var b=t.attrs,S=t.style;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=null!=(a=b.transformOrigin)?a:"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=null!=(o=null==P?void 0:P.transformBox)?o:"fill-box",delete b.transformBox),void 0!==c&&(b.x=c),void 0!==h&&(b.y=h),void 0!==d&&(b.scale=d),void 0!==v&&function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;var a=r?e$:eJ;t[a.offset]=ta.transform(-i);var o=ta.transform(e),s=ta.transform(n);t[a.array]="".concat(o," ").concat(s)}(b,v,void 0===f?1:f,void 0===p?0:p,!1)}var e0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),e1=function(t){return"string"==typeof t&&"svg"===t.toLowerCase()};function e2(t,e,n){var i=eG(t,e,n);for(var r in t)(er(t[r])||er(e[r]))&&(i[-1!==p.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}var e5=function(t){function e(){var t;return c(this,e),t=u(this,e,arguments),t.type="svg",t.isSVGTag=!1,t.measureInstanceViewportBox=eS,t}return f(e,t),d(e,[{key:"getBaseTargetFromProps",value:function(t,e){return t[e]}},{key:"readValueFromInstance",value:function(t,e){if(m.has(e)){var n=et(e);return n&&n.default||0}return e=e0.has(e)?e:eZ(e),t.getAttribute(e)}},{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return e2(t,e,n)}}
1,{key:"build",value:function(t,e,n){eQ(t,e,this.isSVGTag,n.transformTemplate,n.style)}},{key:"renderInstance",value:function(t,e,n,i){for(var r in eX(t,e,void 0,i),e.attrs)t.setAttribute(e0.has(r)?r:eZ(r),e.attrs[r])}},{key:"mount",value:function(t){this.isSVGTag=e1(t.tagName),z(r(e.prototype),"mount",this).call(this,t)}}]),e}(eU),e3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e4(t){if("string"!=typeof t||t.includes("-"));else if(e3.indexOf(t)>-1||RegExp("[A-Z]","u").test(t))return!0;return!1}var e9=t.i(374565),e6=(0,i.createContext)({});t.s(["LayoutGroupContext",()=>e6],565115);var e7=(0,i.createContext)({strict:!1}),e8=t.i(206598),nt=(0,i.createContext)({});function ne(t){return Array.isArray(t)?t.join(" "):t}var nn=function(){return{style:{},transform:{},transformOrigin:{},vars:{}}};function ni(t,e,n){for(var i in e)er(e[i])||eH(i,n)||(t[i]=e[i])}var nr=function(){return(0,$._)((0,Z._)({},nn()),{attrs:{}})},na=t.i(665441),no=(0,i.createContext)(null);t.s(["PresenceContext",()=>no],578083);var ns=t.i(177617);function nu(t){return er(t)?t.get():t}var nl=function(t){return function(e,n){var r=(0,i.useContext)(nt),a=(0,i.useContext)(no),o=function(){var n,i;return n=t.scrapeMotionValuesFromProps,i=t.createRenderState,{latestValues:function(t,e,n,i){var r={},a=i(t,{});for(var o in a)r[o]=nu(a[o]);var s=t.initial,u=t.animate,l=ej(t),c=eF(t);e&&c&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===u&&(u=e.animate));var h=!!n&&!1===n.initial,d=(h=h||!1===s)?u:s;if(d&&"boolean"!=typeof d&&!eD(d))for(var v=Array.isArray(d)?d:[d],f=0;f<v.length;f++){var p=eB(t,v[f]);if(p){var m=p.transitionEnd,y=(p.transition,(0,ea._)(p,["transitionEnd","transition"]));for(var g in y){var k=y[g];if(Array.isArray(k)){var x=h?k.length-1:0;k=k[x]}null!==k&&(r[g]=k)}for(var T in m)r[T]=m[T]}}return r}(e,r,a,n),renderState:i()}};return n?o():(0,ns.useConstant)(o)}},nc=nl({scrapeMotionValuesFromProps:eG,createRenderState:nn}),nh=nl({scrapeMotionValuesFromProps:e2,createRenderState:nr}),nd=Symbol.for("motionComponentSymbol");function nv(t){return t&&(void 0===t?"undefined":(0,o._)(t))==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}var nf="data-"+eZ("framerAppearId"),np=(0,i.createContext)({}),nm=eA?i.useLayoutEffect:i.useEffect;function ny(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.forwardMotionProps,o=void 0!==a&&a,s=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0;s&&function(t){for(var e in t)ex[e]=(0,Z._)({},ex[e],t[e])}(s);var l=e4(t)?nh:nc;function c(e,n){var r,a,s,c,h=(0,$._)((0,Z._)({},(0,i.useContext)(e8.MotionConfigContext),e),{layoutId:(r=e.layoutId,(a=(0,i.useContext)(e6).id)&&void 0!==r?a+"-"+r:r)}),d=h.isStatic,v=(E=(A=function(t,e){if(ej(t)){var n=t.initial,i=t.animate;return{initial:!1===n||eR(n)?n:void 0,animate:eR(i)?i:void 0}}return!1!==t.inherit?e:{}}(e,(0,i.useContext)(nt))).initial,C=A.animate,(0,i.useMemo)(function(){return{initial:E,animate:C}},[ne(E),ne(C)])),f=l(e,d);if(!d&&eA){(0,i.useContext)(e7).strict;var p,m,y,g,k,x,T,w,P,b,S,A,E,C,M,V,D,R,_,L,j,F,O,B,I,U,N,W,Y,K,X=function(t){var e=ex.drag,n=ex.layout;if(!e&&!n)return{};var i=(0,Z._)({},e,n);return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(h);c=X.MeasureLayout,M=u,V=X.ProjectionNode,j=(0,i.useContext)(nt).visualElement,F=(0,i.useContext)(e7),O=(0,i.useContext)(no),B=(0,i.useContext)(e8.MotionConfigContext).reducedMotion,I=(0,i.useRef)(null),M=M||F.renderer,!I.current&&M&&(I.current=M(t,{visualState:f,parent:j,props:h,presenceContext:O,blockInitialAnimation:!!O&&!1===O.initial,reducedMotionConfig:B})),U=I.current,N=(0,i.useContext)(np),U&&!U.projection&&V&&("html"===U.type||"svg"===U.type)&&(p=I.current,m=h,y=V,g=N,k=m.layoutId,x=m.layout,T=m.drag,w=m.dragConstraints,P=m.layoutScroll,b=m.layoutRoot,S=m.layoutCrossfade,p.projection=new y(p.latestValues,m["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(p.parent)),p.projection.setOptions({layoutId:k,layout:x,alwaysMeasureLayout:!!T||w&&nv(w),visualElement:p,animationType:"string"==typeof x?x:"both",initialPromotionConfig:g,crossfade:S,layoutScroll:P,layoutRoot:b})),W=(0,i.useRef)(!1),(0,i.useInsertionEffect)(function(){U&&W.current&&U.update(h,O)}),Y=h[nf],K=(0,i.useRef)(!!Y&&!(null==(D=(R=window).MotionHandoffIsComplete)?void 0:D.call(R,Y))&&(null==(_=(L=window).MotionHasOptimisedAnimation)?void 0:_.call(L,Y))),nm(function(){U&&(W.current=!0,window.MotionIsMounted=!0,U.updateFeatures(),U.scheduleRenderMicrotask(),K.current&&U.animationState&&U.animationState.animateChanges())}),(0,i.useEffect)(function(){U&&(!K.current&&U.animationState&&U.animationState.animateChanges(),K.current&&(queueMicrotask(function(){var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,Y)}),K.current=!1),U.enteringChildren=void 0)}),v.visualElement=U}return(0,e9.jsxs)(nt.Provider,{value:v,children:[c&&v.visualElement?(0,e9.jsx)(c,(0,Z._)({visualElement:v.visualElement},h)):null,function(t,e,n,r,a){var o=r.latestValues,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=(e4(t)?function(t,e,n,r){var a=(0,i.useMemo)(function(){var n=nr();return eQ(n,e,e1(r),t.transformTemplate,t.style),(0,$._)((0,Z._)({},n.attrs),{style:(0,Z._)({},n.style)})},[e]);if(t.style){var o={};ni(o,t.style,t),a.style=(0,Z._)({},o,a.style)}return a}:function(t,e){var n,r,a={},o=(ni(n={},t.style||{},t),Object.assign(n,(r=t.transformTemplate,(0,i.useMemo)(function(){var t=nn();return eK(t,e,r),Object.assign({},t.vars,t.style)}
1,[e]))),n);return t.drag&&!1!==t.dragListener&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(a.tabIndex=0),a.style=o,a})(e,o,a,t),l=(0,na.filterProps)(e,"string"==typeof t,s),c=t!==i.Fragment?(0,$._)((0,Z._)({},l,u),{ref:n}):{},h=e.children,d=(0,i.useMemo)(function(){return er(h)?h.get():h},[h]);return(0,i.createElement)(t,(0,$._)((0,Z._)({},c),{children:d}))}(t,e,(s=v.visualElement,(0,i.useCallback)(function(t){t&&f.onMount&&f.onMount(t),s&&(t?s.mount(t):s.unmount()),n&&("function"==typeof n?n(t):nv(n)&&(n.current=t))},[s])),f,d,o)]})}c.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(e=null!=(n=t.displayName)?n:t.name)?e:"",")"));var h=(0,i.forwardRef)(c);return h[nd]=t,h}function ng(t,e,n){var i=t.getProps();return eB(i,e,void 0!==n?n:i.custom,t)}function nk(t,e){var n,i;return null!=(n=null!=(i=null==t?void 0:t[e])?i:null==t?void 0:t.default)?n:t}t.s(["useIsomorphicLayoutEffect",()=>nm],707555);var nx=function(t){return Array.isArray(t)};function nT(t,e){var n=t.getValue("willChange");if(er(n)&&n.add)return n.add(e);if(!n&&tT.WillChange){var i=new tT.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function nw(t){t.duration=0,t.type="keyframes"}var nP=function(t,e){return function(n){return e(t(n))}},nb=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(nP)},nS=function(t){return 1e3*t},nA=function(t){return t/1e3},nE={layout:0,mainThread:0,waapi:0};function nC(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nM(t,e){return function(n){return n>0?e:t}}var nV=function(t,e,n){var i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},nD=[tX,tK,tz];function nR(t){var e=nD.find(function(e){return e.test(t)});if(td(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."),"color-not-animatable"),!e)return!1;var n=e.parse(t);return e===tz&&(n=function(t){var e=t.hue,n=t.saturation,i=t.lightness,r=t.alpha;e/=360,i/=100;var a=0,o=0,s=0;if(n/=100){var u=i<.5?i*(1+n):i+n-i*n,l=2*i-u;a=nC(l,u,e+1/3),o=nC(l,u,e),s=nC(l,u,e-1/3)}else a=o=s=i;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}var n_=function(t,e){var n=nR(t),i=nR(e);if(!n||!i)return nM(t,e);var r=(0,Z._)({},n);return function(t){return r.red=nV(n.red,i.red,t),r.green=nV(n.green,i.green,t),r.blue=nV(n.blue,i.blue,t),r.alpha=L(n.alpha,i.alpha,t),tK.transform(r)}},nL=new Set(["none","hidden"]);function nj(t,e){return function(n){return L(t,e,n)}}function nF(t){return"number"==typeof t?nj:"string"==typeof t?D(t)?nM:tH.test(t)?n_:nI:Array.isArray(t)?nO:(void 0===t?"undefined":(0,o._)(t))==="object"?tH.test(t)?n_:nB:nM}function nO(t,e){var n=(0,G._)(t),i=n.length,r=t.map(function(t,n){return nF(t)(t,e[n])});return function(t){for(var e=0;e<i;e++)n[e]=r[e](t);return n}}function nB(t,e){var n=(0,Z._)({},t,e),i={};for(var r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=nF(t[r])(t[r],e[r]));return function(t){for(var e in i)n[e]=i[e](t);return n}}var nI=function(t,e){var n=t2.createTransformer(e),i=tJ(t),r=tJ(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?nL.has(t)&&!r.values.length||nL.has(e)&&!i.values.length?nL.has(t)?function(n){return n<=0?t:e}:function(n){return n>=1?e:t}:nb(nO(function(t,e){for(var n=[],i={color:0,var:0,number:0},r=0;r<e.values.length;r++){var a,o=e.types[r],s=t.indexes[o][i[o]],u=null!=(a=t.values[s])?a:0;n[r]=u,i[o]++}return n}(i,r),r.values),n):(td(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),"complex-values-different"),nM(t,e))};function nU(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?L(t,e,n):nF(t)(t,e)}var nN=function(t){var e=function(e){return t(e.timestamp)};return{start:function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return tS.update(e,t)},stop:function(){return tA(e)},now:function(){return tE.isProcessing?tE.timestamp:es.now()}}},nW=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i="",r=Math.max(Math.round(e/n),2),a=0;a<r;a++)i+=Math.round(1e4*t(a/(r-1)))/1e4+", ";return"linear(".concat(i.substring(0,i.length-2),")")};function nY(t){for(var e=0,n=t.next(e);!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}function nK(t,e,n){var i,r,a=Math.max(e-5,0);
1return i=n-t(a),(r=e-a)?1e3/r*i:0}var nX=.01,nz=2,nH=.005,nG=.5;function nq(t,e){return t*Math.sqrt(1-e*e)}var nZ=["duration","bounce"],n$=["stiffness","damping","mass"];function nJ(t,e){return e.some(function(e){return void 0!==t[e]})}function nQ(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3,i=(void 0===e?"undefined":(0,o._)(e))!=="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e,r=i.restSpeed,a=i.restDelta,s=i.keyframes[0],u=i.keyframes[i.keyframes.length-1],l={done:!1,value:s},c=function(t){var e=(0,Z._)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!nJ(t,n$)&&nJ(t,nZ))if(t.visualDuration){var n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*J(.05,1,1-(t.bounce||0))*Math.sqrt(i);e=(0,$._)((0,Z._)({},e),{mass:1,stiffness:i,damping:r})}else{var a=function(t){var e,n,i=t.duration,r=void 0===i?800:i,a=t.bounce,o=t.velocity,s=void 0===o?0:o,u=t.mass,l=void 0===u?1:u;td(r<=nS(10),"Spring duration must be 10 seconds or less","spring-duration-limit");var c=1-(void 0===a?.3:a);c=J(.05,1,c),r=J(.01,10,nA(r)),c<1?(e=function(t){var e=t*c,n=e*r;return .001-(e-s)/nq(t,c)*Math.exp(-n)},n=function(t){var n=t*c*r,i=Math.pow(c,2)*Math.pow(t,2)*r,a=Math.exp(-n),o=nq(Math.pow(t,2),c);return(n*s+s-i)*a*(-e(t)+.001>0?-1:1)/o}):(e=function(t){return -.001+Math.exp(-t*r)*((t-s)*r+1)},n=function(t){return r*r*(s-t)*Math.exp(-t*r)});var h=function(t,e,n){for(var i=n,r=1;r<12;r++)i-=t(i)/e(i);return i}(e,n,5/r);if(r=nS(r),isNaN(h))return{stiffness:100,damping:10,duration:r};var d=Math.pow(h,2)*l;return{stiffness:d,damping:2*c*Math.sqrt(l*d),duration:r}}(t);(e=(0,$._)((0,Z._)({},e,a),{mass:1})).isResolvedFromDuration=!0}return e}((0,$._)((0,Z._)({},i),{velocity:-nA(i.velocity||0)})),h=c.stiffness,d=c.damping,v=c.mass,f=c.duration,p=c.velocity,m=c.isResolvedFromDuration,y=p||0,g=d/(2*Math.sqrt(h*v)),k=u-s,x=nA(Math.sqrt(h/v)),T=5>Math.abs(k);if(r||(r=T?nX:nz),a||(a=T?nH:nG),g<1){var w=nq(x,g);t=function(t){return u-Math.exp(-g*x*t)*((y+g*x*k)/w*Math.sin(w*t)+k*Math.cos(w*t))}}else if(1===g)t=function(t){return u-Math.exp(-x*t)*(k+(y+x*k)*t)};else{var P=x*Math.sqrt(g*g-1);t=function(t){var e=Math.exp(-g*x*t),n=Math.min(P*t,300);return u-e*((y+g*x*k)*Math.sinh(n)+P*k*Math.cosh(n))/P}}var b={calculatedDuration:m&&f||null,next:function(e){var n=t(e);if(m)l.done=e>=f;else{var i=0===e?y:0;g<1&&(i=0===e?nS(y):nK(t,e,n));var o=Math.abs(u-n)<=a;l.done=Math.abs(i)<=r&&o}return l.value=l.done?u:n,l},toString:function(){var t=Math.min(nY(b),2e4),e=nW(function(e){return b.next(t*e).value},t,30);return t+"ms "+e},toTransition:function(){}};return b}function n0(t){var e,n,i=t.keyframes,r=t.velocity,a=t.power,o=t.timeConstant,s=void 0===o?325:o,u=t.bounceDamping,l=void 0===u?10:u,c=t.bounceStiffness,h=void 0===c?500:c,d=t.modifyTarget,v=t.min,f=t.max,p=t.restDelta,m=void 0===p?.5:p,y=t.restSpeed,g=i[0],k={done:!1,value:g},x=(void 0===a?.8:a)*(void 0===r?0:r),T=g+x,w=void 0===d?T:d(T);w!==T&&(x=w-g);var P=function(t){return-x*Math.exp(-t/s)},b=function(t){return w+P(t)},S=function(t){var e=P(t),n=b(t);k.done=Math.abs(e)<=m,k.value=k.done?w:n},A=function(t){var i,r;i=k.value,(void 0!==v&&i<v||void 0!==f&&i>f)&&(e=t,n=nQ({keyframes:[k.value,(r=k.value,void 0===v?f:void 0===f||Math.abs(v-r)<Math.abs(f-r)?v:f)],velocity:nK(b,t,k.value),damping:l,stiffness:h,restDelta:m,restSpeed:y}))};return A(0),{calculatedDuration:null,next:function(t){var i=!1;return(n||void 0!==e||(i=!0,S(t),A(t)),void 0!==e&&t>=e)?n.next(t-e):(i||S(t),k)}}}nQ.applyToOptions=function(t){var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,i=n((0,$._)((0,Z._)({},t),{keyframes:[0,e]})),r=Math.min(nY(i),2e4);return{type:"keyframes",ease:function(t){return i.next(r*t).value/e},duration:nA(r)}}(t,100,nQ);return t.ease=e.ease,t.duration=nS(e.duration),t.type="keyframes",t};var n1=function(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t};function n2(t,e,n,i){if(t===e&&n===i)return tx;var r=function(e){var i,r,a=0,o=1,s=0;do(i=n1(r=a+(o-a)/2,t,n)-e)>0?o=r:a=r;
1while(Math.abs(i)>1e-7&&++s<12)return r};return function(t){return 0===t||1===t?t:n1(r(t),e,i)}}var n5=n2(.42,0,1,1),n3=n2(0,0,.58,1),n4=n2(.42,0,.58,1),n9=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},n6=function(t){return function(e){return 1-t(1-e)}},n7=n2(.33,1.53,.69,.99),n8=n6(n7),it=n9(n8),ie=function(t){return(t*=2)<1?.5*n8(t):.5*(2-Math.pow(2,-10*(t-1)))},ii=function(t){return 1-Math.sin(Math.acos(t))},ir=n6(ii),ia=n9(ii),io=function(t){return Array.isArray(t)&&"number"==typeof t[0]},is={linear:tx,easeIn:n5,easeInOut:n4,easeOut:n3,circIn:ii,circInOut:ia,circOut:ir,backIn:n8,backInOut:it,backOut:n7,anticipate:ie},iu=function(t){if(io(t)){tv(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");var e=(0,H._)(t,4);return n2(e[0],e[1],e[2],e[3])}return"string"==typeof t?(tv(void 0!==is[t],"Invalid easing type '".concat(t,"'"),"invalid-easing-type"),is[t]):t},il=function(t,e,n){var i=e-t;return 0===i?1:(n-t)/i};function ic(t){var e,n,i=t.duration,r=void 0===i?300:i,a=t.keyframes,o=t.times,s=t.ease,u=void 0===s?"easeInOut":s,l=Array.isArray(u)&&"number"!=typeof u[0]?u.map(iu):iu(u),c={done:!1,value:a[0]},h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.clamp,r=n.ease,a=n.mixer,o=t.length;if(tv(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return function(){return e[0]};if(2===o&&e[0]===e[1])return function(){return e[1]};var s=t[0]===t[1];t[0]>t[o-1]&&(t=(0,G._)(t).reverse(),e=(0,G._)(e).reverse());var u=function(t,e,n){for(var i=[],r=n||tT.mix||nU,a=t.length-1,o=0;o<a;o++){var s=r(t[o],t[o+1]);e&&(s=nb(Array.isArray(e)?e[o]||tx:e,s)),i.push(s)}return i}(e,r,a),l=u.length,c=function(n){if(s&&n<t[0])return e[0];var i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);var r=il(t[i],t[i+1],n);return u[i](r)};return void 0===i||i?function(e){return c(J(t[0],t[o-1],e))}:c}((n=o&&o.length===a.length?o:(!function(t,e){for(var n=t[t.length-1],i=1;i<=e;i++){var r=il(0,e,i);t.push(L(n,1,r))}}(e=[0],a.length-1),e),n.map(function(t){return t*r})),a,{ease:Array.isArray(l)?l:a.map(function(){return l||n4}).splice(0,a.length-1)});return{calculatedDuration:r,next:function(t){return c.value=h(t),c.done=t>=r,c}}}var ih=function(t){return null!==t};function id(t,e,n){var i=e.repeat,r=e.repeatType,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=t.filter(ih),s=a<0||i&&"loop"!==(void 0===r?"loop":r)&&i%2==1?0:o.length-1;return s&&void 0!==n?n:o[s]}var iv={decay:n0,inertia:n0,tween:ic,keyframes:ic,spring:nQ};function ip(t){"string"==typeof t.type&&(t.type=iv[t.type])}var im=function(){function t(){c(this,t),this.updateFinished()}return d(t,[{key:"finished",get:function(){return this._finished}},{key:"updateFinished",value:function(){var t=this;this._finished=new Promise(function(e){t.resolve=e})}},{key:"notifyFinished",value:function(){this.resolve()}},{key:"then",value:function(t,e){return this.finished.then(t,e)}}]),t}(),iy=function(t){return t/100},ig=function(t){function e(t){var n;return c(this,e),(n=u(this,e)).state="idle",n.startTime=null,n.isStopped=!1,n.currentTime=0,n.holdTime=null,n.playbackSpeed=1,n.stop=function(){var t,e,i=n.options.motionValue;i&&i.updatedAt!==es.now()&&n.tick(es.now()),n.isStopped=!0,"idle"!==n.state&&(n.teardown(),null==(t=(e=n.options).onStop)||t.call(e))},nE.mainThread++,n.options=t,n.initAnimation(),n.play(),!1===t.autoplay&&n.pause(),n}return f(e,t),d(e,[{key:"initAnimation",value:function(){var t=this.options;ip(t);var e=t.type,n=t.repeat,i=t.repeatDelay,r=void 0===i?0:i,a=t.repeatType,o=t.velocity,s=t.keyframes,u=(void 0===e?ic:e)||ic;u!==ic&&"number"!=typeof s[0]&&(this.mixKeyframes=nb(iy,nU(s[0],s[1])),s=[0,100]);var l=u((0,$._)((0,Z._)({},t),{keyframes:s}));"mirror"===a&&(this.mirroredGenerator=u((0,$._)((0,Z._)({},t),{keyframes:(0,G._)(s).reverse(),velocity:-(void 0===o?0:o)}))),null===l.calculatedDuration&&(l.calculatedDuration=nY(l));var c=l.calculatedDuration;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*((void 0===n?0:n)+1)-r,this.generator=l}},{key:"updateTime",value:function(t){var e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}},{key:"tick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.generator,i=this.totalDuration,r=this.mixKeyframes,a=this.mirroredGenerator,o=this.resolvedDuration,s=this.calculatedDuration;if(null===this.startTime)return n.next(0);var u=this.options,l=u.delay,c=u.keyframes,h=u.repeat,d=u.repeatType,v=u.repeatDelay,f=u.type,p=u.onUpdate,m=u.finalKeyframe;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);var y=this.currentTime-(void 0===l?0:l)*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);var k=this.currentTime,x=n;if(h){var T=Math.min(this.currentTime,i)/o,w=Math.floor(T),P=T%1;!P&&T>=1&&(P=1),1===P&&w--,(w=Math.min(w,h+1))%2&&("reverse"===d?(P=1-P,v&&(P-=v/o)):"mirror"===d&&(x=a)),k=J(0,1,P)*o}var b=g?{done:!1,value:c[0]}:x.next(k);r&&(b.value=r(b.value));var S=b.done;g||null===s||(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);var A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return A&&f!==n0&&(b.value=id(c,this.options,m,this.speed)),p&&p(b.value),A&&this.finish(),b}},{key:"then",value:function(t,e){return this.finished.then(t,e)}},{key:"duration",get:function(){return nA(this.calculatedDuration)}},{key:"iterationDuration",get:function(){var t=(this.options||{}).delay;return this.duration+nA(void 0===t?0:t)}},{key:"time",get:function(){return nA(this.currentTime)},set:function(t){var e;t=nS(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),null==(e=this.driver)||e.start(!1)}},{key:"speed",get:function(){return this.playbackSpeed},set:function(t){this.updateTime(es.now());var e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=nA(this.currentTime))}},{key:"play",value:function(){var t,e,n=this;if(!this.isStopped){var i=this.options,r=i.driver,a=i.startTime;this.driver||(this.driver=(void 0===r?nN:r)(function(t){return n.tick(t)})),null==(t=(e=this.options).onPlay)||t.call(e);var o=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=o):null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime||(this.startTime=null!=a?a:o),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}}},{key:"pause",value:function(){this.state="paused",this.updateTime(es.now()),this.holdTime=this.currentTime}},{key:"complete",value:function(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}},{key:"finish",value:function(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}},{key:"cancel",value:function(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}},{key:"teardown",value:function(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,nE.mainThread--}},{key:"stopDriver",value:function(){this.driver&&(this.driver.stop(),this.driver=void 0)}},{key:"sample",value:function(t){return this.startTime=0,this.tick(t,!0)}},{key:"attachTimeline",value:function(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}}]),e}(im);function ik(t){var e;return function(){return void 0===e&&(e=t()),e}}var ix=ik(function(){return void 0!==window.ScrollTimeline}),iT={},iw=(e=ik(function(){try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),function(){var t;return null!=(t=iT.linearEasing)?t:e()}),iP=function(t){var e=(0,H._)(t,4),n=e[0],i=e[1],r=e[2],a=e[3];return"cubic-bezier(".concat(n,", ").concat(i,", ").concat(r,", ").concat(a,")")},ib={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iP([0,.65,.55,1]),circOut:iP([.55,0,1,.45]),backIn:iP([.31,.01,.66,-.59]),backOut:iP([.33,1.53,.69,.99])};function iS(t){return"function"==typeof t&&"applyToOptions"in t}var iA=function(t){function e(t){if(c(this,e),(r=u(this,e)).finishedTime=null,r.isStopped=!1,!t)return s(r);var n,i,r,a=t.element,o=t.name,l=t.keyframes,h=t.pseudoElement,d=t.allowFlatten,v=t.finalKeyframe,f=t.onComplete;r.isPseudoElement=!!h,r.allowFlatten=void 0!==d&&d,r.options=t,tv("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");var p=(n=t.type,i=(0,ea._)(t,["type"]),iS(n)&&iw()?n.applyToOptions(i):(null!=i.duration||(i.duration=300),null!=i.ease||(i.ease="easeOut"),i));return r.animation=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i.delay,a=i.duration,o=void 0===a?300:a,s=i.repeat,u=i.repeatType,l=i.ease,c=i.times,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,d=(0,tB._)({},e,n);c&&(d.offset=c);var v=function t(e,n){if(e)return"function"==typeof e?iw()?nW(e,n):"ease-out":io(e)?iP(e):Array.isArray(e)?e.map(function(e){return t(e,n)||ib.easeOut}):ib[e]}(void 0===l?"easeOut":l,o);Array.isArray(v)&&(d.easing=v);var f={delay:void 0===r?0:r,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:(void 0===s?0:s)+1,direction:"reverse"===(void 0===u?"loop":u)?"alternate":"normal"};h&&(f.pseudoElement=h);var p=t.animate(d,f);return p}(a,o,l,p,h),!1===p.autoplay&&r.animation.pause(),r.animation.onfinish=function(){if(r.finishedTime=r.time,!h){var t=id(l,r.options,v,r.speed);r.updateMotionValue?r.updateMotionValue(t):o.startsWith("--")?a.style.setProperty(o,t):a.style[o]=t,r.animation.cancel()}null==f||f(),r.notifyFinished()},r}return f(e,t),d(e,[{key:"play",value:function(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}},{key:"pause",value:function(){this.animation.pause()}},{key:"complete",value:function(){var t,e;null==(t=(e=this.animation).finish)||t.call(e)}},{key:"cancel",value:function(){try{this.animation.cancel()}catch(t){}}},{key:"stop",value:function(){if(!this.isStopped){this.isStopped=!0;var t=this.state;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}}},{key:"commitStyles",value:function(){if(!this.isPseudoElement){var t,e;null==(t=(e=this.animation).commitStyles)||t.call(e)}}},{key:"duration",get:function(){var t,e;return nA(Number((null==(e=this.animation.effect)||null==(t=e.getComputedTiming)?void 0:t.call(e).duration)||0))}},{key:"iterationDuration",get:function(){var t=(this.options||{}).delay;return this.duration+nA(void 0===t?0:t)}},{key:"time",get:function(){return nA(Number(this.animation.currentTime)||0)},set:function(t){this.finishedTime=null,this.animation.currentTime=nS(t)}},{key:"speed",get:function(){return this.animation.playbackRate},set:function(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}},{key:"state",get:function(){return null!==this.finishedTime?"finished":this.animation.playState}},{key:"startTime",get:function(){return Number(this.animation.startTime)},set:function(t){this.animation.startTime=t}},{key:"attachTimeline",value:function(t){var e,n=t.timeline,i=t.observe;return(this.allowFlatten&&(null==(e=this.animation.effect)||e.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&ix())?(this.animation.timeline=n,tx):i(this)}}]),e}(im),iE={anticipate:ie,backInOut:it,circInOut:ia},iC=function(t){function e(t){var n;return c(this,e),"string"==typeof t.ease&&t.ease in iE&&(t.ease=iE[t.ease]),ip(t),n=u(this,e,[t]),t.startTime&&(n.startTime=t.startTime),n.options=t,n}return f(e,t),d(e,[{key:"updateMotionValue",value:function(t){var e,n=this.options,i=n.motionValue,r=(n.onUpdate,n.onComplete,n.element,(0,ea._)(n,["motionValue","onUpdate","onComplete","element"]));if(i){if(void 0!==t)return void i.set(t);var a=new ig((0,$._)((0,Z._)({},r),{autoplay:!1})),o=nS(null!=(e=this.finishedTime)?e:this.time);i.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}}]),e}(iA),iM=function(t,e){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t2.test(t)||"0"===t)&&!t.startsWith("url("))},iV=new Set(["opacity","clipPath","filter","transform"]),iD=ik(function(){return Object.hasOwnProperty.call(Element.prototype,"animate")}),iR=function(t){function e(t){c(this,e);
1var n,i,r=t.autoplay,a=t.delay,o=t.type,s=t.repeat,l=t.repeatDelay,h=t.repeatType,d=t.keyframes,v=t.name,f=t.motionValue,p=t.element,m=(0,ea._)(t,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);(n=u(this,e)).stop=function(){var t,e;n._animation&&(n._animation.stop(),null==(e=n.stopTimeline)||e.call(n)),null==(t=n.keyframeResolver)||t.cancel()},n.createdAt=es.now();var y=(0,Z._)({autoplay:void 0===r||r,delay:void 0===a?0:a,type:void 0===o?"keyframes":o,repeat:void 0===s?0:s,repeatDelay:void 0===l?0:l,repeatType:void 0===h?"loop":h,name:v,motionValue:f,element:p},m);return n.keyframeResolver=new((null==p?void 0:p.KeyframeResolver)||tj)(d,function(t,e,i){return n.onKeyframesResolved(t,e,y,!i)},v,f,p),null==(i=n.keyframeResolver)||i.scheduleResolve(),n}return f(e,t),d(e,[{key:"onKeyframesResolved",value:function(t,e,n,i){var r=this;this.keyframeResolver=void 0;var a=n.name,o=n.type,s=n.velocity,u=n.delay,c=n.isHandoff,h=n.onUpdate;this.resolvedAt=es.now(),!function(t,e,n,i){var r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;var a=t[t.length-1],o=iM(r,e),s=iM(a,e);return td(o===s,"You are trying to animate ".concat(e,' from "').concat(r,'" to "').concat(a,'". "').concat(o?a:r,'" is not an animatable value.'),"value-not-animatable"),!!o&&!!s&&(function(t){var e=t[0];if(1===t.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||iS(n))&&i)}(t,a,o,s)&&((tT.instantAnimations||!u)&&(null==h||h(id(t,n,e))),t[0]=t[t.length-1],nw(n),n.repeat=0);var d=i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,v=(0,$._)((0,Z._)({startTime:d,finalKeyframe:e},n),{keyframes:t}),f=!c&&function(t){var e,n=t.motionValue,i=t.name,r=t.repeatDelay,a=t.repeatType,o=t.damping,s=t.type,u=null==n||null==(e=n.owner)?void 0:e.current;if(!(0,l._)(u,HTMLElement))return!1;var c=n.owner.getProps(),h=c.onUpdate,d=c.transformTemplate;return iD()&&i&&iV.has(i)&&("transform"!==i||!d)&&!h&&!r&&"mirror"!==a&&0!==o&&"inertia"!==s}(v)?new iC((0,$._)((0,Z._)({},v),{element:v.motionValue.owner.current})):new ig(v);f.finished.then(function(){return r.notifyFinished()}).catch(tx),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}},{key:"finished",get:function(){return this._animation?this.animation.finished:this._finished}},{key:"then",value:function(t,e){return this.finished.finally(t).then(function(){})}},{key:"animation",get:function(){if(!this._animation){var t;null==(t=this.keyframeResolver)||t.resume(),tR=!0,tL(),t_(),tR=!1}return this._animation}},{key:"duration",get:function(){return this.animation.duration}},{key:"iterationDuration",get:function(){return this.animation.iterationDuration}},{key:"time",get:function(){return this.animation.time},set:function(t){this.animation.time=t}},{key:"speed",get:function(){return this.animation.speed},set:function(t){this.animation.speed=t}},{key:"state",get:function(){return this.animation.state}},{key:"startTime",get:function(){return this.animation.startTime}},{key:"attachTimeline",value:function(t){var e=this;return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,function(){return e.stop()}}},{key:"play",value:function(){this.animation.play()}},{key:"pause",value:function(){this.animation.pause()}},{key:"complete",value:function(){this.animation.complete()}},{key:"cancel",value:function(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}}]),e}(im),i_=function(t){return null!==t},iL={type:"spring",stiffness:500,damping:25,restSpeed:10},ij={type:"keyframes",duration:.8},iF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iO=function(t,e){var n=e.keyframes;return n.length>2?ij:m.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:iL:iF},iB=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return function(o){var s=nk(i,t)||{},u=s.delay||i.delay||0,l=i.elapsed,c=void 0===l?0:l;c-=nS(u);var h=(0,$._)((0,Z._)({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()}
1,s),{delay:-c,onUpdate:function(t){e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:function(){o(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:a?void 0:r});s.when,s.delay,s.delayChildren,s.staggerChildren,s.staggerDirection,s.repeat,s.repeatType,s.repeatDelay,s.from,s.elapsed,Object.keys((0,ea._)(s,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"])).length||Object.assign(h,iO(t,h)),h.duration&&(h.duration=nS(h.duration)),h.repeatDelay&&(h.repeatDelay=nS(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);var d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nw(h),0===h.delay&&(d=!0)),(tT.instantAnimations||tT.skipAnimations)&&(d=!0,nw(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,d&&!a&&void 0!==e.get()){var v,f,p,m,y,g=(v=h.keyframes,f=s.repeat,p=s.repeatType,m=v.filter(i_),y=f&&"loop"!==(void 0===p?"loop":p)&&f%2==1?0:m.length-1,m[y]);if(void 0!==g)return void tS.update(function(){h.onUpdate(g),h.onComplete()})}return s.isSync?new ig(h):new iR(h)}};function iI(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.delay,r=void 0===i?0:i,a=n.transitionOverride,o=n.type,s=e.transition,u=void 0===s?t.getDefaultTransition():s,l=e.transitionEnd,c=(0,ea._)(e,["transition","transitionEnd"]);a&&(u=a);var h=[],d=o&&t.animationState&&t.animationState.getState()[o];for(var v in c){var f,p=t.getValue(v,null!=(f=t.latestValues[v])?f:null),m=c[v];if(!(void 0===m||d&&function(t,e){var n=t.protectedKeys,i=t.needsAnimating,r=n.hasOwnProperty(e)&&!0!==i[e];return i[e]=!1,r}(d,v))){var y=(0,Z._)({delay:r},nk(u||{},v)),g=p.get();if(void 0===g||p.isAnimating||Array.isArray(m)||m!==g||y.velocity){var k=!1;if(window.MotionHandoffAnimation){var x=t.props[nf];if(x){var T=window.MotionHandoffAnimation(x,v,tS);null!==T&&(y.startTime=T,k=!0)}}nT(t,v),p.start(iB(v,p,m,t.shouldReduceMotion&&q.has(v)?{type:!1}:y,t,k));var w=p.animation;w&&h.push(w)}}}return l&&Promise.all(h).then(function(){tS.update(function(){l&&function(t,e){var n=ng(t,e)||{},i=n.transitionEnd,r=(n.transition,(0,ea._)(n,["transitionEnd","transition"]));for(var a in r=(0,Z._)({},r,void 0===i?{}:i)){var o,s=nx(o=r[a])?o[o.length-1]||0:o;t.hasValue(a)?t.getValue(a).set(s):t.addValue(a,ef(s))}}(t,l)})}),h}function iU(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=Array.from(t).sort(function(t,e){return t.sortNodePosition(e)}).indexOf(e),o=t.size,s=(o-1)*i;return"function"==typeof n?n(a,o):1===r?a*i:s-a*i}function iN(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ng(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),a=(r||{}).transition,o=void 0===a?t.getDefaultTransition()||{}:a;i.transitionOverride&&(o=i.transitionOverride);var s=r?function(){return Promise.all(iI(t,r,i))}:function(){return Promise.resolve()},u=t.variantChildren&&t.variantChildren.size?function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=o.delayChildren;return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6?arguments[6]:void 0,s=[],u=!0,l=!1,c=void 0;try{for(var h,d=t.variantChildren[Symbol.iterator]();!(u=(h=d.next()).done);u=!0)!function(){var u=h.value;u.notify("AnimationStart",e),s.push(iN(u,e,(0,$._)((0,Z._)({},o),{delay:n+("function"==typeof i?0:i)+iU(t.variantChildren,u,i,r,a)})).then(function(){return u.notify("AnimationComplete",e)}))}()}catch(t){l=!0,c=t}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}return Promise.all(s)}(t,e,n,void 0===r?0:r,o.staggerChildren,o.staggerDirection,i)}:function(){return Promise.resolve()},l=o.when;if(!l)return Promise.all([s(),u(i.delay)]);var c=(0,H._)("beforeChildren"===l?[s,u]:[u,s],2),h=c[0],d=c[1];return h().then(function(){return d()})}function iW(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var iY=eL.length,iK=(0,G._)(e_).reverse(),iX=e_.length;function iz(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iH(){return{animate:iz(!0),whileInView:iz(),whileHover:iz(),whileTap:iz(),whileDrag:iz(
1),whileFocus:iz(),exit:iz()}}var iG=function(){function t(e){c(this,t),this.isMounted=!1,this.node=e}return d(t,[{key:"update",value:function(){}}]),t}(),iq=function(t){function e(t){var n;return c(this,e),n=u(this,e,[t]),t.animationState||(t.animationState=function(t){var e=function(e){return Promise.all(e.map(function(e){return function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(function(e){return iN(t,e,i)}));else if("string"==typeof e)n=iN(t,e,i);else{var r="function"==typeof e?ng(t,e,i.custom):e;n=Promise.all(iI(t,r,i))}return n.then(function(){t.notify("AnimationComplete",e)})}(t,e.animation,e.options)}))},n=iH(),i=!0;function r(r){for(var a=t.props,o=function t(e){if(e){if(!e.isControllingVariants){var n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}for(var i={},r=0;r<iY;r++){var a=eL[r],o=e.props[a];(eR(o)||!1===o)&&(i[a]=o)}return i}}(t.parent)||{},s=[],u=new Set,l={},c=1/0,h=0;h<iX;h++)!function(e){var h,d,v=iK[e],f=n[v],p=void 0!==a[v]?a[v]:o[v],m=eR(p),y=v===r?f.isActive:null;!1===y&&(c=e);var g=p===o[v]&&p!==a[v]&&m;if(g&&i&&t.manuallyAnimateOnMount&&(g=!1),f.protectedKeys=(0,Z._)({},l),!(!f.isActive&&null===y||!p&&!f.prevProp||eD(p))&&"boolean"!=typeof p){var k=(h=f.prevProp,"string"==typeof(d=p)?d!==h:!!Array.isArray(d)&&!iW(d,h)),x=k||v===r&&f.isActive&&!g&&m||e>c&&m,T=!1,w=Array.isArray(p)?p:[p],P=w.reduce(function(e,n){var i,r=ng(t,n,"exit"===v?null==(i=t.presenceContext)?void 0:i.custom:void 0);if(r){r.transition;var a=r.transitionEnd,o=(0,ea._)(r,["transition","transitionEnd"]);e=(0,Z._)({},e,o,a)}return e},{});!1===y&&(P={});var b=f.prevResolvedValues,S=void 0===b?{}:b,A=(0,Z._)({},S,P),E=function(e){x=!0,u.has(e)&&(T=!0,u.delete(e)),f.needsAnimating[e]=!0;var n=t.getValue(e);n&&(n.liveStyle=!1)};for(var C in A){var M=P[C],V=S[C];!l.hasOwnProperty(C)&&((nx(M)&&nx(V)?iW(M,V):M===V)?void 0!==M&&u.has(C)?E(C):f.protectedKeys[C]=!0:null!=M?E(C):u.add(C))}f.prevProp=p,f.prevResolvedValues=P,f.isActive&&(l=(0,Z._)({},l,P)),i&&t.blockInitialAnimation&&(x=!1);var D=g&&k,R=!D||T;x&&R&&s.push.apply(s,(0,G._)(w.map(function(e){var n={type:v};if("string"==typeof e&&i&&!D&&t.manuallyAnimateOnMount&&t.parent){var r=t.parent,a=ng(r,e);if(r.enteringChildren&&a){var o=(a.transition||{}).delayChildren;n.delay=iU(r.enteringChildren,t,o)}}return{animation:e,options:n}})))}}(h);if(u.size){var d={};if("boolean"!=typeof a.initial){var v=ng(t,Array.isArray(a.initial)?a.initial[0]:a.initial);v&&v.transition&&(d.transition=v.transition)}u.forEach(function(e){var n=t.getBaseTarget(e),i=t.getValue(e);i&&(i.liveStyle=!0),d[e]=null!=n?n:null}),s.push({animation:d})}var f=!!s.length;return i&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),i=!1,f?e(s):Promise.resolve()}return{animateChanges:r,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();null==(a=t.variantChildren)||a.forEach(function(t){var n;return null==(n=t.animationState)?void 0:n.setActive(e,i)}),n[e].isActive=i;var a,o=r(e);for(var s in n)n[s].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:function(){return n},reset:function(){n=iH()}}}(t)),n}return f(e,t),d(e,[{key:"updateAnimationControlsSubscription",value:function(){var t=this.node.getProps().animate;eD(t)&&(this.unmountControls=t.subscribe(this.node))}},{key:"mount",value:function(){this.updateAnimationControlsSubscription()}},{key:"update",value:function(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}},{key:"unmount",value:function(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}]),e}(iG),iZ=0,i$=function(t){function e(){var t;return c(this,e),t=u(this,e,arguments),t.id=iZ++,t}return f(e,t),d(e,[{key:"update",value:function(){var t=this;if(this.node.presenceContext){var e=this.node.presenceContext,n=e.isPresent,i=e.onExitComplete,r=(this.node.prevPresenceContext||{}).isPresent;if(this.node.animationState&&n!==r){var a=this.node.animationState.setActive("exit",!n);i&&!n&&a.then(function(){i(t.id)})}}}},{key:"mount",value:function(){var t=this.node.presenceContext||{},e=t.register,n=t.onExitComplete;
1n&&n(this.id),e&&(this.unmount=e(this.id))}},{key:"unmount",value:function(){}}]),e}(iG),iJ={x:!1,y:!1};function iQ(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,i),function(){return t.removeEventListener(e,n)}}var i0=function(t){return"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary};function i1(t){return{point:{x:t.pageX,y:t.pageY}}}function i2(t,e,n,i){return iQ(t,e,function(t){return i0(t)&&n(t,i1(t))},i)}function i5(t){return t.max-t.min}function i3(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=i,t.originPoint=L(e.min,e.max,t.origin),t.scale=i5(n)/i5(e),t.translate=L(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function i4(t,e,n,i){i3(t.x,e.x,n.x,i?i.originX:void 0),i3(t.y,e.y,n.y,i?i.originY:void 0)}function i9(t,e,n){t.min=n.min+e.min,t.max=t.min+i5(e)}function i6(t,e,n){t.min=e.min-n.min,t.max=t.min+i5(e)}function i7(t,e,n){i6(t.x,e.x,n.x),i6(t.y,e.y,n.y)}function i8(t){return[t("x"),t("y")]}var rt=function(t){var e=t.current;return e?e.ownerDocument.defaultView:null},re=function(t,e){return Math.abs(t-e)},rn=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.transformPagePoint,o=r.contextWindow,s=void 0===o?window:o,u=r.dragSnapToOrigin,l=r.distanceThreshold;if(c(this,t),this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var t,e,n=ra(i.lastMoveEventInfo,i.history),r=null!==i.startEvent,a=(t=n.offset,e={x:0,y:0},Math.sqrt(Math.pow(re(t.x,e.x),2)+Math.pow(re(t.y,e.y),2))>=i.distanceThreshold);if(r||a){var o=n.point,s=tE.timestamp;i.history.push((0,$._)((0,Z._)({},o),{timestamp:s}));var u=i.handlers,l=u.onStart,c=u.onMove;r||(l&&l(i.lastMoveEvent,n),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,n)}}},this.handlePointerMove=function(t,e){i.lastMoveEvent=t,i.lastMoveEventInfo=ri(e,i.transformPagePoint),tS.update(i.updatePoint,!0)},this.handlePointerUp=function(t,e){i.end();var n=i.handlers,r=n.onEnd,a=n.onSessionEnd,o=n.resumeAnimation;if(i.dragSnapToOrigin&&o&&o(),i.lastMoveEvent&&i.lastMoveEventInfo){var s=ra("pointercancel"===t.type?i.lastMoveEventInfo:ri(e,i.transformPagePoint),i.history);i.startEvent&&r&&r(t,s),a&&a(t,s)}},i0(e)){this.dragSnapToOrigin=void 0!==u&&u,this.handlers=n,this.transformPagePoint=a,this.distanceThreshold=void 0===l?3:l,this.contextWindow=s||window;var h=ri(i1(e),this.transformPagePoint),d=h.point,v=tE.timestamp;this.history=[(0,$._)((0,Z._)({},d),{timestamp:v})];var f=n.onSessionStart;f&&f(e,ra(h,this.history)),this.removeListeners=nb(i2(this.contextWindow,"pointermove",this.handlePointerMove),i2(this.contextWindow,"pointerup",this.handlePointerUp),i2(this.contextWindow,"pointercancel",this.handlePointerUp))}}return d(t,[{key:"updateHandlers",value:function(t){this.handlers=t}},{key:"end",value:function(){this.removeListeners&&this.removeListeners(),tA(this.updatePoint)}}]),t}();function ri(t,e){return e?{point:e(t.point)}:t}function rr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ra(t,e){var n=t.point;return{point:n,delta:rr(n,ro(e)),offset:rr(n,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,i=null,r=ro(t);n>=0&&(i=t[n],!(r.timestamp-i.timestamp>nS(.1)));)n--;if(!i)return{x:0,y:0};var a=nA(r.timestamp-i.timestamp);if(0===a)return{x:0,y:0};var o={x:(r.x-i.x)/a,y:(r.y-i.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function ro(t){return t[t.length-1]}function rs(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 ru(t,e){var n,i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&(i=(n=[r,i])[0],r=n[1]),{min:i,max:r}}function rl(t,e,n){return{min:rc(t,e),max:rc(t,n)}}function rc(t,e){return"number"==typeof t?t:t[e]||0}var rh=new WeakMap,rd=function(){function t(e){c(this,t),this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=eS(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}return d(t,[{key:"start",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.snapToCursor,r=void 0!==i&&i,a=n.distanceThreshold,o=this.visualElement.presenceContext;if(!o||!1!==o.isPresent){var s=this.getProps().dragSnapToOrigin;this.panSession=new rn(t,{onSessionStart:function(t){e.getProps().dragSnapToOrigin?e.pauseAnimation():e.stopAnimation(),r&&e.snapToCursor(i1(t).point)},onStart:function(t,n){var i=e.getProps(),r=i.drag,a=i.dragPropagation,o=i.onDragStart;if(!r||a||(e.openDragLock&&e.openDragLock(),e.openDragLock=function(t){if("x"===t||"y"===t)if(iJ[t])return null;else return iJ[t]=!0,function(){iJ[t]=!1};return iJ.x||iJ.y?null:(iJ.x=iJ.y=!0,function(){iJ.x=iJ.y=!1})}(r),e.openDragLock)){e.latestPointerEvent=t,e.latestPanInfo=n,e.isDragging=!0,e.currentDirection=null,e.resolve
1Constraints(),e.visualElement.projection&&(e.visualElement.projection.isAnimationBlocked=!0,e.visualElement.projection.target=void 0),i8(function(t){var n=e.getAxisMotionValue(t).get()||0;if(tr.test(n)){var i=e.visualElement.projection;if(i&&i.layout){var r=i.layout.layoutBox[t];r&&(n=i5(r)*(parseFloat(n)/100))}}e.originPoint[t]=n}),o&&tS.postRender(function(){return o(t,n)}),nT(e.visualElement,"transform");var s=e.visualElement.animationState;s&&s.setActive("whileDrag",!0)}},onMove:function(t,n){e.latestPointerEvent=t,e.latestPanInfo=n;var i=e.getProps(),r=i.dragPropagation,a=i.dragDirectionLock,o=i.onDirectionLock,s=i.onDrag;if(r||e.openDragLock){var u=n.offset;if(a&&null===e.currentDirection){e.currentDirection=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(u),null!==e.currentDirection&&o&&o(e.currentDirection);return}e.updateAxis("x",n.point,u),e.updateAxis("y",n.point,u),e.visualElement.render(),s&&s(t,n)}},onSessionEnd:function(t,n){e.latestPointerEvent=t,e.latestPanInfo=n,e.stop(t,n),e.latestPointerEvent=null,e.latestPanInfo=null},resumeAnimation:function(){return i8(function(t){var n;return"paused"===e.getAnimationState(t)&&(null==(n=e.getAxisMotionValue(t).animation)?void 0:n.play())})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:a,contextWindow:rt(this.visualElement)})}}},{key:"stop",value:function(t,e){var n=t||this.latestPointerEvent,i=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),r&&i&&n){var a=i.velocity;this.startAnimation(a);var o=this.getProps().onDragEnd;o&&tS.postRender(function(){return o(n,i)})}}},{key:"cancel",value:function(){this.isDragging=!1;var t=this.visualElement,e=t.projection,n=t.animationState;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}},{key:"updateAxis",value:function(t,e,n){var i=this.getProps().drag;if(n&&rv(t,i,this.currentDirection)){var r,a,o,s,u,l=this.getAxisMotionValue(t),c=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=c,a=this.constraints[t],o=this.elastic[t],s=a.min,u=a.max,void 0!==s&&r<s?r=o?L(s,r,o.min):Math.max(r,s):void 0!==u&&r>u&&(r=o?L(u,r,o.max):Math.min(r,u)),c=r),l.set(c)}}},{key:"resolveConstraints",value:function(){var t,e,n,i,r,a,o=this,s=this.getProps(),u=s.dragConstraints,l=s.dragElastic,c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(a=this.visualElement.projection)?void 0:a.layout,h=this.constraints;u&&nv(u)?this.constraints||(this.constraints=this.resolveRefConstraints()):u&&c?this.constraints=(t=c.layoutBox,e=u.top,n=u.left,i=u.bottom,r=u.right,{x:rs(t.x,n,r),y:rs(t.y,e,i)}):this.constraints=!1,this.elastic=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:rl(t,"left","right"),y:rl(t,"top","bottom")}}(l),h!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&i8(function(t){var e,n,i;!1!==o.constraints&&o.getAxisMotionValue(t)&&(o.constraints[t]=(e=c.layoutBox[t],n=o.constraints[t],i={},void 0!==n.min&&(i.min=n.min-e.min),void 0!==n.max&&(i.max=n.max-e.min),i))})}},{key:"resolveRefConstraints",value:function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!nv(e))return!1;var i=e.current;tv(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");var r=this.visualElement.projection;if(!r||!r.layout)return!1;var a=(s=r.root,u=X(i,this.visualElement.getTransformPagePoint()),(l=s.scroll)&&(W(u.x,l.offset.x),W(u.y,l.offset.y)),u),o=(c=r.layout.layoutBox,{x:ru(c.x,a.x),y:ru(c.y,a.y)});if(n){var s,u,l,c,h,d,v,f=n((d=(h=o).x,{top:(v=h.y).min,right:d.max,bottom:v.max,left:d.min}));this.hasMutatedConstraints=!!f,f&&(o=_(f))}return o}},{key:"startAnimation",value:function(t){var e=this,n=this.getProps(),i=n.drag,r=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{};return Promise.all(i8(function(n){if(rv(n,i,e.currentDirection)){var u=l&&l[n]||{};s&&(u={min:0,max:0});var c=(0,Z._)({type:"inertia",velocity:r?t[n]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},o,u);return e.startAxisValueAnimation(n,c)}})).then(u)}},{key:"startAxisValueAnimation",value:function(t,e){var n=this.getAxisMotionValue(t);return nT(this.visualElement,t),n.start(iB(t,n,0,e,this.visualElement,!1))}},{key:"stopAnimation",value:function(){var t=this;i8(function(e){return t.getAxisMotionValue(e).stop()})}},{key:"pauseAnimation",value:function(){var t=this;i8(function(e){var n;return null==(n=t.getAxisMotionValue(e).animation)?void 0:n.pause()})}},{key:"getAnimationState",value:function(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}},{key:"getAxisMotionValue",value:function(t){var e="_drag".concat(t.toUpperCase()),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}},{key:"snapToCursor",value:function(t){var e=this;i8(function(n){if(rv(n,e.getProps().drag,e.currentDirection)){var i=e.visualElement.projection,r=e.getAxisMotionValue(n);if(i&&i.layout){var a=i.layout.layoutBox[n],o=a.min,s=a.max;r.set(t[n]-L(o,s,.5))}}})}},{key:"scalePositionWithinConstraints",value:function(){var t=this;if(this.visualElement.current){var e=this.getProps(),n=e.drag,i=e.dragConstraints,r=this.visualElement.projection;if(nv(i)&&r&&this.constraints){this.stopAnimation();var a={x:0,y:0};i8(function(e){var n=t.getAxisMotionValue(e);if(n&&!1!==t.constraints){var i,r,o,s,u,l=n.get();a[e]=(i={min:l,max:l},r=t.constraints[e],o=.5,s=i5(i),(u=i5(r))>s?o=il(r.min,r.max-s,i.min):s>u&&(o=il(i.min,i.max-u,r.min)),J(0,1,o))}});var o=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),i8(function(e){if(rv(e,n,null)){var i=t.getAxisMotionValue(e),r=t.constraints[e],o=r.min,s=r.max;i.set(L(o,s,a[e]))}})}}}},{key:"addListeners",value:function(){var t=this;if(this.visualElement.current){rh.set(this.visualElement,this);var e=i2(this.visualElement.current,"pointerdown",function(e){var n=t.getProps(),i=n.drag,r=n.dragListener;i&&(void 0===r||r)&&t.start(e)}),n=function(){var e=t.getProps().dragConstraints;nv(e)&&e.current&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,r=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tS.read(n);var a=iQ(window,"resize",function(){return t.scalePositionWithinConstraints()}),o=i.addEventListener("didUpdate",function(e){var n=e.delta,i=e.hasLayoutChanged;t.isDragging&&i&&(i8(function(e){var i=t.getAxisMotionValue(e);
1i&&(t.originPoint[e]+=n[e].translate,i.set(i.get()+n[e].translate))}),t.visualElement.render())});return function(){a(),e(),r(),o&&o()}}}},{key:"getProps",value:function(){var t=this.visualElement.getProps(),e=t.drag,n=t.dragDirectionLock,i=t.dragPropagation,r=t.dragConstraints,a=t.dragElastic,o=t.dragMomentum;return(0,$._)((0,Z._)({},t),{drag:void 0!==e&&e,dragDirectionLock:void 0!==n&&n,dragPropagation:void 0!==i&&i,dragConstraints:void 0!==r&&r,dragElastic:void 0===a?.35:a,dragMomentum:void 0===o||o})}}]),t}();function rv(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var rf=function(t){function e(t){var n;return c(this,e),(n=u(this,e,[t])).removeGroupControls=tx,n.removeListeners=tx,n.controls=new rd(t),n}return f(e,t),d(e,[{key:"mount",value:function(){var t=this.node.getProps().dragControls;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tx}},{key:"unmount",value:function(){this.removeGroupControls(),this.removeListeners()}}]),e}(iG),rp=function(t){return function(e,n){t&&tS.postRender(function(){return t(e,n)})}},rm=function(t){function e(){var t;return c(this,e),t=u(this,e,arguments),t.removePointerDownListener=tx,t}return f(e,t),d(e,[{key:"onPointerDown",value:function(t){this.session=new rn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rt(this.node)})}},{key:"createPanHandlers",value:function(){var t=this,e=this.node.getProps(),n=e.onPanSessionStart,i=e.onPanStart,r=e.onPan,a=e.onPanEnd;return{onSessionStart:rp(n),onStart:rp(i),onMove:r,onEnd:function(e,n){delete t.session,a&&tS.postRender(function(){return a(e,n)})}}}},{key:"mount",value:function(){var t=this;this.removePointerDownListener=i2(this.node.current,"pointerdown",function(e){return t.onPointerDown(e)})}},{key:"update",value:function(){this.session&&this.session.updateHandlers(this.createPanHandlers())}},{key:"unmount",value:function(){this.removePointerDownListener(),this.session&&this.session.end()}}]),e}(iG);function ry(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,i.useContext)(no);if(null===e)return[!0,null];var n=e.isPresent,r=e.onExitComplete,a=e.register,o=(0,i.useId)();(0,i.useEffect)(function(){if(t)return a(o)},[t]);var s=(0,i.useCallback)(function(){return t&&r&&r(o)},[o,r,t]);return!n&&r?[!1,s]:[!0]}t.s(["usePresence",()=>ry],375415);var rg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rk(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var rx={correct:function(t,e){if(!e.target)return t;if("string"==typeof t)if(!ta.test(t))return t;else t=parseFloat(t);var n=rk(t,e.target.x),i=rk(t,e.target.y);return"".concat(n,"% ").concat(i,"%")}},rT=!1,rw=function(t){function e(){return c(this,e),u(this,e,arguments)}return f(e,t),d(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.visualElement,i=e.layoutGroup,r=e.switchLayoutGroup,a=e.layoutId,o=n.projection;for(var s in rb)ez[s]=rb[s],M(s)&&(ez[s].isCSSVariable=!0);o&&(i.group&&i.group.add(o),r&&r.register&&a&&r.register(o),rT&&o.root.didUpdate(),o.addEventListener("animationComplete",function(){t.safeToRemove()}),o.setOptions((0,$._)((0,Z._)({},o.options),{onExitComplete:function(){return t.safeToRemove()}}))),rg.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(t){var e=this,n=this.props,i=n.layoutDependency,r=n.visualElement,a=n.drag,o=n.isPresent,s=r.projection;return s&&(s.isPresent=o,rT=!0,a||t.layoutDependency!==i||void 0===i||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||tS.postRender(function(){var t=s.getStack();t&&t.members.length||e.safeToRemove()}))),null}},{key:"componentDidUpdate",value:function(){var t=this,e=this.props.visualElement.projection;e&&(e.root.didUpdate(),ey.postRender(function(){!e.currentAnimation&&e.isLead()&&t.safeToRemove()}))}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,i=t.switchLayoutGroup,r=e.projection;rT=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}},{key:"safeToRemove",value:function(){var t=this.props.safeToRemove;t&&t()}},{key:"render",value:function(){return null}}]),e}(i.Component);function rP(t){var e=(0,H._)(ry(),2),n=e[0],r=e[1],a=(0,i.useContext)(e6);return(0,e9.jsx)(rw,(0,$._)((0,Z._)({},t),{layoutGroup:a,switchLayoutGroup:(0,i.useContext)(np),isPresent:n,safeToRemove:r}))}var rb={borderRadius:(0,$._)((0,Z._)({},rx),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:rx,borderTopRightRadius:rx,borderBottomLeftRadius:rx,borderBottomRightRadius:rx,boxShadow:{correct:function(t,e){var n=e.treeScale,i=e.projectionDelta,r=t2.parse(t);if(r.length>5)return t;var a=t2.createTransformer(t),o=+("number"!=typeof r[0]),s=i.x.scale*n.x,u=i.y.scale*n.y;r[0+o]/=s,r[1+o]/=u;var l=L(s,u,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),a(r)}}};function rS(t){return(void 0===t?"undefined":(0,o._)(t))==="object"&&null!==t}function rA(t){return rS(t)&&"ownerSVGElement"in t}var rE=function(t,e){return t.depth-e.depth},rC=function(){function t(){c(this,t),this.children=[],this.isDirty=!1}return d(t,[{key:"add",value:function(t){el(this.children,t),this.isDirty=!0}},{key:"remove",value:function(t){ec(this.children,t),this.isDirty=!0}}
1,{key:"forEach",value:function(t){this.isDirty&&this.children.sort(rE),this.isDirty=!1,this.children.forEach(t)}}]),t}(),rM=["TopLeft","TopRight","BottomLeft","BottomRight"],rV=rM.length,rD=function(t){return"string"==typeof t?parseFloat(t):t},rR=function(t){return"number"==typeof t||ta.test(t)};function r_(t,e){return void 0!==t[e]?t[e]:t.borderRadius}var rL=rF(0,.5,ir),rj=rF(.5,.95,tx);function rF(t,e,n){return function(i){return i<t?0:i>e?1:n(il(t,e,i))}}function rO(t,e){t.min=e.min,t.max=e.max}function rB(t,e){rO(t.x,e.x),rO(t.y,e.y)}function rI(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rU(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function rN(t,e,n,i,r){var a=(0,H._)(n,3),o=a[0],s=a[1],u=a[2];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(tr.test(e)&&(e=parseFloat(e),e=L(o.min,o.max,e/100)-o.min),"number"==typeof e){var s=L(a.min,a.max,i);t===a&&(s-=e),t.min=rU(t.min,e,n,s,r),t.max=rU(t.max,e,n,s,r)}}(t,e[o],e[s],e[u],e.scale,i,r)}var rW=["x","scaleX","originX"],rY=["y","scaleY","originY"];function rK(t,e,n,i){rN(t.x,e,rW,n?n.x:void 0,i?i.x:void 0),rN(t.y,e,rY,n?n.y:void 0,i?i.y:void 0)}function rX(t){return 0===t.translate&&1===t.scale}function rz(t){return rX(t.x)&&rX(t.y)}function rH(t,e){return t.min===e.min&&t.max===e.max}function rG(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rq(t,e){return rG(t.x,e.x)&&rG(t.y,e.y)}function rZ(t){return i5(t.x)/i5(t.y)}function r$(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var rJ=function(){function t(){c(this,t),this.members=[]}return d(t,[{key:"add",value:function(t){el(this.members,t),t.scheduleRender()}},{key:"remove",value:function(t){if(ec(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}}},{key:"relegate",value:function(t){var e,n=this.members.findIndex(function(e){return t===e});if(0===n)return!1;for(var i=n;i>=0;i--){var r=this.members[i];if(!1!==r.isPresent){e=r;break}}return!!e&&(this.promote(e),!0)}},{key:"promote",value:function(t,e){var n=this.lead;t!==n&&(this.prevLead=n,this.lead=t,t.show(),n&&(n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&n.hide()))}},{key:"exitAnimationComplete",value:function(){this.members.forEach(function(t){var e=t.options,n=t.resumingFrom;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}},{key:"scheduleRender",value:function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})}},{key:"removeLeadSnapshot",value:function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}]),t}(),rQ=["","X","Y","Z"],r0=0;function r1(t,e,n,i){var r=e.latestValues;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function r2(t){var e=t.attachResizeListener,n=t.defaultParent,i=t.measureScroll,r=t.checkIsScrollRoot,a=t.resetTransform;function o(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==n?void 0:n();c(this,o),this.id=r0++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=function(){return t.update(
1)},this.projectionUpdateScheduled=!1,this.checkUpdateFailed=function(){t.isUpdating&&(t.isUpdating=!1,t.clearAllSnapshots())},this.updateProjection=function(){t.projectionUpdateScheduled=!1,t.nodes.forEach(r4),t.nodes.forEach(an),t.nodes.forEach(ai),t.nodes.forEach(r9)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?(0,G._)(i.path).concat([i]):[],this.parent=i,this.depth=i?i.depth+1:0;for(var r=0;r<this.path.length;r++)this.path[r].shouldResetTransform=!0;this.root===this&&(this.nodes=new rC)}return d(o,[{key:"addEventListener",value:function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eh),this.eventHandlers.get(t).add(e)}},{key:"notifyListeners",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=this.eventHandlers.get(t);r&&r.notify.apply(r,(0,G._)(n))}},{key:"hasListeners",value:function(t){return this.eventHandlers.has(t)}},{key:"mount",value:function(t){var n=this;if(!this.instance){this.isSVG=rA(t)&&!(rA(t)&&"svg"===t.tagName),this.instance=t;var i=this.options,r=i.layoutId,a=i.layout,o=i.visualElement;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||r)&&(this.isLayoutDirty=!0),e){var s,u=0,l=function(){return n.root.updateBlockedByResize=!1};tS.read(function(){u=window.innerWidth}),e(t,function(){var t,e,i=window.innerWidth;i!==u&&(u=i,n.root.updateBlockedByResize=!0,s&&s(),t=es.now(),e=function(n){var i=n.timestamp-t;i>=250&&(tA(e),l(i-250))},tS.setup(e,!0),s=function(){return tA(e)},rg.hasAnimatedSinceResize&&(rg.hasAnimatedSinceResize=!1,n.nodes.forEach(ae)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||a)&&this.addEventListener("didUpdate",function(t){var e=t.delta,i=t.hasLayoutChanged,r=t.hasRelativeLayoutChanged,a=t.layout;if(n.isTreeAnimationBlocked()){n.target=void 0,n.relativeTarget=void 0;return}var s=n.options.transition||o.getDefaultTransition()||al,u=o.getProps(),l=u.onLayoutAnimationStart,c=u.onLayoutAnimationComplete,h=!n.targetLayout||!rq(n.targetLayout,a),d=!i&&r;if(n.options.layoutRoot||n.resumeFrom||d||i&&(h||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0);var v=(0,$._)((0,Z._)({},nk(s,"layout")),{onPlay:l,onComplete:c});(o.shouldReduceMotion||n.options.layoutRoot)&&(v.delay=0,v.type=!1),n.startAnimation(v),n.setAnimationOrigin(e,d)}else i||ae(n),n.isLead()&&n.options.onExitComplete&&n.options.onExitComplete();n.targetLayout=a})}}},{key:"unmount",value:function(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);var t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tA(this.updateProjection)}},{key:"blockUpdate",value:function(){this.updateManuallyBlocked=!0}},{key:"unblockUpdate",value:function(){this.updateManuallyBlocked=!1}},{key:"isUpdateBlocked",value:function(){return this.updateManuallyBlocked||this.updateBlockedByResize}},{key:"isTreeAnimationBlocked",value:function(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}},{key:"startUpdate",value:function(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ar),this.animationId++)}},{key:"getTransformTemplate",value:function(){var t=this.options.visualElement;return t&&t.getProps().transformTemplate}},{key:"willUpdate",value:function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root!==e){var n=e.options.visualElement;if(n){var i=n.props[nf];if(window.MotionHasOptimisedAnimation(i,"transform")){var r=e.options,a=r.layout,o=r.layoutId;window.MotionCancelOptimisedAnimation(i,"transform",tS,!(a||o))}var s=e.parent;s&&!s.hasCheckedOptimisedAppear&&t(s)}}}
1(this),this.root.isUpdating||this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var e=0;e<this.path.length;e++){var n=this.path[e];n.shouldResetTransform=!0,n.updateScroll("snapshot"),n.options.layoutRoot&&n.willUpdate(!1)}var i=this.options,r=i.layoutId,a=i.layout;if(void 0!==r||a){var o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}}},{key:"update",value:function(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r8);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(at),this.nodes.forEach(r5),this.nodes.forEach(r3)):this.nodes.forEach(r8),this.clearAllSnapshots();var t=es.now();tE.delta=J(0,1e3/60,t-tE.timestamp),tE.timestamp=t,tE.isProcessing=!0,tC.update.process(tE),tC.preRender.process(tE),tC.render.process(tE),tE.isProcessing=!1}},{key:"didUpdate",value:function(){this.updateScheduled||(this.updateScheduled=!0,ey.read(this.scheduleUpdate))}},{key:"clearAllSnapshots",value:function(){this.nodes.forEach(r6),this.sharedNodes.forEach(aa)}},{key:"scheduleUpdateProjection",value:function(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tS.preRender(this.updateProjection,!1,!0))}},{key:"scheduleCheckAfterUnmount",value:function(){var t=this;tS.postRender(function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()})}},{key:"updateSnapshot",value:function(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||i5(this.snapshot.measuredBox.x)||i5(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}},{key:"updateLayout",value:function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=eS(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);var n=this.options.visualElement;n&&n.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}}},{key:"updateScroll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){var n=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:n,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:n}}}},{key:"resetTransform",value:function(){if(a){var t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rz(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,r=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||O(this.latestValues)||r)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}}},{key:"measure",value:function(){var t,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),ad((t=i).x),ad(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}},{key:"measurePageBox",value:function(){var t,e=this.options.visualElement;if(!e)return eS();var n=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(af))){var i=this.root.scroll;i&&(W(n.x,i.offset.x),W(n.y,i.offset.y))}return n}},{key:"removeElementScroll",value:function(t){var e,n=eS();if(rB(n,t),null==(e=this.scroll)?void 0:e.wasRoot)return n;for(var i=0;i<this.path.length;i++){var r=this.path[i],a=r.scroll,o=r.options;r!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&rB(n,t),W(n.x,a.offset.x),W(n.y,a.offset.y))}return n}},{key:"applyTransform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=eS();rB(n,t);for(var i=0;i<this.path.length;i++){var r=this.path[i];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&K(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),O(r.latestValues)&&K(n,r.latestValues)}return O(this.latestValues)&&K(n,this.latestValues),n}},{key:"removeTransform",value:function(t){var e=eS();rB(e,t);for(var n=0;n<this.path.length;n++){var i=this.path[n];if(i.instance&&O(i.latestValues)){F(i.latestValues)&&i.updateSnapshot();var r=eS();rB(r,i.measurePageBox()),rK(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}}return O(this.latestValues)&&rK(e,this.latestValues),e}},{key:"setTargetDelta",value:function(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}},{key:"setOptions",value:function(t){this.options=(0,$._)((0,Z._)({},this.options,t),{crossfade:void 0===t.crossfade||t.crossfade})}},{key:"clearMeasurements",value:function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}},{key:"forceRelativeParentToResolveTarget",value:function(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tE.timestamp&&this.relativeParent.resolveTargetDelta(!0)}},{key:"resolveTargetDelta",value:function(){var t,e,n,i,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);var o=!!this.resumingFrom||this!==a;if(r||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(i=this.parent)?void 0:i.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize){var s=this.options,u=s.layout,l=s.layoutId;if(this.layout&&(u||l)){this.resolvedRelativeTargetAt=tE.timestamp;var c=this.getClosestProjectingParent();c&&this.linkedParentVersion!==c.layoutVersion&&!c.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(c&&c.layout?this.createRelativeTarget(c,this.layout.layoutBox,c.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=eS(),this.targetWithTransforms=eS()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),t=this.target,e=this.relativeTarget,n=this.relativeParent.target,i9(t.x,e.x,n.x),i9(t.y,e.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rB(this.target,this.layout.layoutBox),N(this.target,this.targetDelta)):rB(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,c&&!!c.resumingFrom==!!this.resumingFrom&&!c.options.layoutScroll&&c.target&&1!==this.animationProgress?this.createRelativeTarget(c,this.target,c.target):this.relativeParent=this.relativeTarget=void 0))}}}},{key:"getClosestProjectingParent",value:function(){if(!(!this.parent||F(this.parent.latestValues)||B(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}},{key:"isProjecting",value:function(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}},{key:"createRelativeTarget",value:function(t,e,n){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eS(),this.relativeTargetOrigin=eS(),i7(this.relativeTargetOrigin,e,n),rB(this.relativeTarget,this.relativeTargetOrigin)}},{key:"removeRelativeTarget",value:function(){this.relativeParent=this.relativeTarget=void 0}},{key:"calcProjection",value:function(){var t,e=this.getLead(),n=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tE.timestamp&&(i=!1),!i){var r=this.options,a=r.layout,o=r.layoutId;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(a||o)){rB(this.layoutCorrected,this.layout.layoutBox);var s=this.treeScale.x,u=this.treeScale.y;!function(t,e,n){var i,r,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n.length;if(o){e.x=e.y=1;for(var s=0;s<o;s++){r=(i=n[s]).projectionDelta;var u=i.options.visualElement;(!u||!u.props.style||"contents"!==u.props.style.display)&&(a&&i.options.layoutScroll&&i.scroll&&i!==i.root&&K(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,N(t,r)),a&&O(i.latestValues)&&K(t,i.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=eS());var l=e.target;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rI(this.prevProjectionDelta.x,this.projectionDelta.x),rI(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),i4(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===u&&r$(this.projectionDelta.x,this.prevProjectionDelta.x)&&r$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}}}},{key:"hide",value:function(){this.isVisible=!1}},{key:"show",value:function(){this.isVisible=!0}},{key:"scheduleRender",value:function(){var t,e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){var n=this.getStack();n&&n.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}},{key:"createProjectionDeltas",value:function(){this.prevProjectionDelta=eP(),this.projectionDelta=eP(),this.projectionDeltaWithTransform=eP()}},{key:"setAnimationOrigin",value:function(t){var e,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.snapshot,a=r?r.latestValues:{},o=(0,Z._)({},this.latestValues),s=eP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;var u=eS(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),h=!c||c.members.length<=1,d=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(au));this.animationProgress=0,this.mixTargetDelta=function(i){var r,c,v,f,p,m,y=i/1e3;if(ao(s.x,t.x,y),ao(s.y,t.y,y),n.setTargetDelta(s),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&n.relativeParent&&n.relativeParent.layout){i7(u,n.layout.layoutBox,n.relativeParent.layout.layoutBox),r=n.relativeTarget,c=n.relativeTargetOrigin,v=u,f=y,as(r.x,c.x,v.x,f),as(r.y,c.y,v.y,f),e&&(p=n.relativeTarget,m=e,rH(p.x,m.x)&&rH(p.y,m.y))&&(n.isProjectionDirty=!1),e||(e=eS()),rB(e,n.relativeTarget)}l&&(n.animationValues=o,function(t,e,n,i,r,a){r?(t.opacity=L(0,null!=(o=n.opacity)?o:1,rL(i)),t.opacityExit=L(null!=(s=e.opacity)?s:1,0,rj(i))):a&&(t.opacity=L(null!=(u=e.opacity)?u:1,null!=(l=n.opacity)?l:1,i));for(var o,s,u,l,c=0;c<rV;c++){var h="border".concat(rM[c],"Radius"),d=r_(e,h),v=r_(n,h);(void 0!==d||void 0!==v)&&(d||(d=0),v||(v=0),0===d||0===v||rR(d)===rR(v)?(t[h]=Math.max(L(rD(d),rD(v),i),0),(tr.test(v)||tr.test(d))&&(t[h]+="%")):t[h]=v)}(e.rotate||n.rotate)&&(t.rotate=L(e.rotate||0,n.rotate||0,i))}(o,a,n.latestValues,y,d,h)),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=y},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}},{key:"startAnimation",value:function(t){var e,n,i,r=this;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(i=this.resumingFrom)||null==(n=i.currentAnimation)||n.stop(),this.pendingAnimation&&(tA(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tS.update(function(){var e,n,i;rg.hasAnimatedSinceResize=!0,nE.layout++,r.motionValue||(r.motionValue=ef(0)),e=r.motionValue,n=(0,$._)((0,Z._)({},t),{velocity:0,isSync:!0,onUpdate:function(e){r.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:function(){nE.layout--},onComplete:function(){nE.layout--,t.onComplete&&t.onComplete(),r.completeAnimation()}}),(i=er(e)?e:ef(e)).start(iB("",i,[0,1e3],n)),r.currentAnimation=i.animation,r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0})}},{key:"completeAnimation",value:function(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);var t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}},{key:"finishAnimation",value:function(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}},{key:"applyTransformsToTarget",value:function(){var t=this.getLead(),e=t.targetWithTransforms,n=t.target,i=t.layout,r=t.latestValues;if(e&&n&&i){if(this!==t&&this.layout&&i&&av(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||eS();var a=i5(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+a;var o=i5(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}rB(e,n),K(e,r),i4(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}},{key:"registerSharedNode",value:function(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rJ),this.sharedNodes.get(t).add(e);var n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}},{key:"isLead",value:function(){var t=this.getStack();return!t||t.lead===this}},{key:"getLead",value:function(){var t;return this.options.layoutId&&(null==(t=this.getStack())?void 0:t.lead)||this}},{key:"getPrevLead",value:function(){var t;return this.options.layoutId?null==(t=this.getStack())?void 0:t.prevLead:void 0}},{key:"getStack",value:function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)}},{key:"promote",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.needsReset,n=t.transition,i=t.preserveFollowOpacity,r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}},{key:"relegate",value:function(){var t=this.getStack();return!!t&&t.relegate(this)}}
1,{key:"resetSkewAndRotation",value:function(){var t=this.options.visualElement;if(t){var e=!1,n=t.latestValues;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),e){var i={};n.z&&r1("z",t,i,this.animationValues);for(var r=0;r<rQ.length;r++)r1("rotate".concat(rQ[r]),t,i,this.animationValues),r1("skew".concat(rQ[r]),t,i,this.animationValues);for(var a in t.render(),i)t.setStaticValue(a,i[a]),this.animationValues&&(this.animationValues[a]=i[a]);t.scheduleRender()}}}},{key:"applyProjectionStyles",value:function(t,e){if(this.instance&&!this.isSVG){if(!this.isVisible){t.visibility="hidden";return}var n,i,r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=nu(null==e?void 0:e.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none";return}var a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nu(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!O(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1);return}t.visibility="";var o=a.animationValues||a.latestValues;this.applyTransformsToTarget();var s=function(t,e,n){var i="",r=t.x.translate/e.x,a=t.y.translate/e.y,o=(null==n?void 0:n.z)||0;if((r||a||o)&&(i="translate3d(".concat(r,"px, ").concat(a,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(i+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),n){var s=n.transformPerspective,u=n.rotate,l=n.rotateX,c=n.rotateY,h=n.skewX,d=n.skewY;s&&(i="perspective(".concat(s,"px) ").concat(i)),u&&(i+="rotate(".concat(u,"deg) ")),l&&(i+="rotateX(".concat(l,"deg) ")),c&&(i+="rotateY(".concat(c,"deg) ")),h&&(i+="skewX(".concat(h,"deg) ")),d&&(i+="skewY(".concat(d,"deg) "))}var v=t.x.scale*e.x,f=t.y.scale*e.y;return(1!==v||1!==f)&&(i+="scale(".concat(v,", ").concat(f,")")),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);r&&(s=r(o,s)),t.transform=s;var u=this.projectionDelta,l=u.x,c=u.y;for(var h in t.transformOrigin="".concat(100*l.origin,"% ").concat(100*c.origin,"% 0"),a.animationValues?t.opacity=a===this?null!=(n=null!=(i=o.opacity)?i:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=a===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,ez)if(void 0!==o[h]){var d=ez[h],v=d.correct,f=d.applyTo,p=d.isCSSVariable,m="none"===s?o[h]:v(o[h],a);if(f)for(var y=f.length,g=0;g<y;g++)t[f[g]]=m;else p?this.options.visualElement.renderState.vars[h]=m:t[h]=m}this.options.layoutId&&(t.pointerEvents=a===this?nu(null==e?void 0:e.pointerEvents)||"":"none")}}},{key:"clearSnapshot",value:function(){this.resumeFrom=this.snapshot=void 0}},{key:"resetTree",value:function(){this.root.nodes.forEach(function(t){var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(r7),this.root.sharedNodes.clear()}}]),o}function r5(t){t.updateLayout()}function r3(t){var e,n=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){var i=t.layout,r=i.layoutBox,a=i.measuredBox,o=t.options.animationType,s=n.source!==t.layout.source;"size"===o?i8(function(t){var e=s?n.measuredBox[t]:n.layoutBox[t],i=i5(e);e.min=r[t].min,e.max=e.min+i}):av(o,n.layoutBox,r)&&i8(function(e){var i=s?n.measuredBox[e]:n.layoutBox[e],a=i5(r[e]);i.max=i.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[e].max=t.relativeTarget[e].min+a)});var u=eP();i4(u,r,n.layoutBox);var l=eP();s?i4(l,t.applyTransform(a,!0),n.measuredBox):i4(l,r,n.layoutBox);var c=!rz(u),h=!1;if(!t.resumeFrom){var d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){var v=d.snapshot,f=d.layout;if(v&&f){var p=eS();i7(p,n.layoutBox,v.layoutBox);var m=eS();i7(m,r,f.layoutBox),rq(p,m)||(h=!0),d.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:c,hasRelativeLayoutChanged:h})}else if(t.isLead()){var y=t.options.onExitComplete;y&&y()}t.options.transition=void 0}function r4(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r9(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r6(t){t.clearSnapshot()}function r7(t){t.clearMeasurements()}function r8(t){t.isLayoutDirty=!1}function at(t){var e=t.options.visualElement;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ae(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function an(t){t.resolveTargetDelta()}function ai(t){t.calcProjection()}function ar(t){t.resetSkewAndRotation()}function aa(t){t.removeLeadSnapshot()}function ao(t,e,n){t.translate=L(e.translate,0,n),t.scale=L(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function as(t,e,n,i){t.min=L(e.min,n.min,i),t.max=L(e.max,n.max,i)}function au(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var al={duration:.45,ease:[.4,0,.1,1]},ac=function(t){return"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t)},ah=ac("applewebkit/")&&!ac("chrome/")?Math.round:tx;function ad(t){t.min=ah(t.min),t.max=ah(t.max)}function av(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rZ(e)-rZ(n)))}function af(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var ap=r2({attachResizeListener:function(t,e){return iQ(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),am={current:void 0},ay=r2({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!am.current){var t=new ap({});t.mount(window),t.setOptions({layoutScroll:!0}),am.current=t}return am.current},resetTransform:function(t,e){t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:function(t){return"fixed"===window.getComputedStyle(t).position}});function ag(t,e){var n=function(t,e,n){if((0,l._)(t,EventTarget))return[t];if("string"==typeof t){var i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),i=new AbortController;return[n,(0,$._)((0,Z._)({passive:!0},e),{signal:i.signal}),function(){return i.abort()}]}function ak(t){return!("touch"===t.pointerType||iJ.x||iJ.y)}function ax(t,e,n){var i=t.props;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);var r=i["onHover"+n];r&&tS.postRender(function(){return r(e,i1(e))})}var aT=function(t){function e(){return c(this,e),u(this,e,arguments)}return f(e,t),d(e,[{key:"mount",value:function(){var t=this,e=this.node.current;e&&(this.unmount=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,H._)(ag(t,n),3),r=i[0],a=i[1],o=i[2],s=function(t){if(ak(t)){var n=t.target,i=e(n,t);if("function"==typeof i&&n){var r=function(t){ak(t)&&(i(t),n.removeEventListener("pointerleave",r))};n.addEventListener("pointerleave",r,a)}}};return r.forEach(function(t){t.addEventListener("pointerenter",s,a)}),o}(e,function(e,n){return ax(t.node,n,"Start"),function(e){return ax(t.node,e,"End")}}))}},{key:"unmount",value:function(){}}]),e}(iG),aw=function(t){function e(){var t;return c(this,e),t=u(this,e,arguments),t.isActive=!1,t}return f(e,t),d(e,[{key:"onFocus",value:function(){var t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}},{key:"onBlur",value:function(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}},{key:"mount",value:function(){var t=this;this.unmount=nb(iQ(this.node.current,"focus",function(){return t.onFocus()}),iQ(this.node.current,"blur",function(){return t.onBlur()}))}},{key:"unmount",value:function(){}}]),e}(iG);function aP(t){return rS(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>aP],812064);var ab=function(t,e){return!!e&&(t===e||ab(t,e.parentElement))}
1,aS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),aA=new WeakSet;function aE(t){return function(e){"Enter"===e.key&&t(e)}}function aC(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}var aM=function(t,e){var n=t.currentTarget;if(n){var i=aE(function(){if(!aA.has(n)){aC(n,"down");var t=aE(function(){aC(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",function(){return aC(n,"cancel")},e)}});n.addEventListener("keydown",i,e),n.addEventListener("blur",function(){return n.removeEventListener("keydown",i)},e)}};function aV(t){return i0(t)&&!(iJ.x||iJ.y)}function aD(t,e,n){var i=t.props;if(!(0,l._)(t.current,HTMLButtonElement)||!t.current.disabled){t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);var r=i["onTap"+("End"===n?"":n)];r&&tS.postRender(function(){return r(e,i1(e))})}}var aR=function(t){function e(){return c(this,e),u(this,e,arguments)}return f(e,t),d(e,[{key:"mount",value:function(){var t=this,e=this.node.current;e&&(this.unmount=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,H._)(ag(t,n),3),r=i[0],a=i[1],o=i[2],s=function(t){var i=t.currentTarget;if(aV(t)){aA.add(i);var r=e(i,t),o=function(t,e){window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",u),aA.has(i)&&aA.delete(i),aV(t)&&"function"==typeof r&&r(t,{success:e})},s=function(t){o(t,i===window||i===document||n.useGlobalTarget||ab(i,t.target))},u=function(t){o(t,!1)};window.addEventListener("pointerup",s,a),window.addEventListener("pointercancel",u,a)}};return r.forEach(function(t){((n.useGlobalTarget?window:t).addEventListener("pointerdown",s,a),aP(t))&&(t.addEventListener("focus",function(t){return aM(t,a)}),aS.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(e,function(e,n){return aD(t.node,n,"Start"),function(e,n){var i=n.success;return aD(t.node,e,i?"End":"Cancel")}},{useGlobalTarget:this.node.props.globalTapTarget}))}},{key:"unmount",value:function(){}}]),e}(iG),a_=new WeakMap,aL=new WeakMap,aj=function(t){var e=a_.get(t.target);e&&e(t)},aF=function(t){t.forEach(aj)},aO={some:0,all:1},aB=function(t){function e(){var t;return c(this,e),t=u(this,e,arguments),t.hasEnteredView=!1,t.isInView=!1,t}return f(e,t),d(e,[{key:"startObserver",value:function(){var t,e,n,i,r,a,o,s,u=this;this.unmount();var l=this.node.getProps().viewport,c=void 0===l?{}:l,h=c.root,d=c.margin,v=c.amount,f=void 0===v?"some":v,p=c.once,m={root:h?h.current:void 0,rootMargin:d,threshold:"number"==typeof f?f:aO[f]};return t=this.node.current,e=function(t){var e=t.isIntersecting;if(u.isInView!==e){if(u.isInView=e,p&&!e&&u.hasEnteredView)return;e&&(u.hasEnteredView=!0),u.node.animationState&&u.node.animationState.setActive("whileInView",e);var n=u.node.getProps(),i=n.onViewportEnter,r=n.onViewportLeave,a=e?i:r;a&&a(t)}},n=m.root,i=(0,ea._)(m,["root"]),r=n||document,aL.has(r)||aL.set(r,{}),(a=aL.get(r))[o=JSON.stringify(i)]||(a[o]=new IntersectionObserver(aF,(0,Z._)({root:n},i))),s=a[o],a_.set(t,e),s.observe(t),function(){a_.delete(t),s.unobserve(t)}}},{key:"mount",value:function(){this.startObserver()}},{key:"update",value:function(){if("u">typeof IntersectionObserver){var t=this.node;["amount","margin","root"].some(function(t){var e=t.viewport,n=void 0===e?{}:e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.viewport,a=void 0===r?{}:r;return function(t){return n[t]!==a[t]}}(t.props,t.prevProps))&&this.startObserver()}}},{key:"unmount",value:function(){}}]),e}(iG),aI=function(t,e){if("u"<typeof Proxy)return ny;var n=new Map,i=function(n,i){return ny(n,i,t,e)};return new Proxy(function(t,e){return i(t,e)},{get:function(r,a){return"create"===a?i:(n.has(a)||n.set(a,ny(a,void 0,t,e)),n.get(a))}})}((0,Z._)({},{animation:{Feature:iq},exit:{Feature:i$}},{inView:{Feature:aB},tap:{Feature:aR},focus:{Feature:aw},hover:{Feature:aT}},{pan:{Feature:rm},drag:{Feature:rf,ProjectionNode:ay,MeasureLayout:rP}},{layout:{ProjectionNode:ay,MeasureLayout:rP}}),function(t,e){return e4(t)?new e5(e):new eq(e,{allowProjection:t!==i.Fragment})});t.s(["motion",()=>aI],151303)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.