PageSourceSearch

https://event-fungames.netlify.app/_next/static/chunks/0h_hk0lke4re5.js

js event-fungames.netlify.app collected 2026-10-03 10:42:56 UTC 149,981 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20752,t=>{"use strict";t.s(["_",0,function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}])},7955,14692,87379,t=>{"use strict";t.s(["_",0,function(t){if(Array.isArray(t))return t}],7955),t.s(["_",0,function(t,e){var n,i,r=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}],14692),t.s(["_",0,function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}],87379)},60439,96326,17962,t=>{"use strict";var e=t.i(20752);t.s(["_",0,function(t){if(Array.isArray(t))return(0,e._)(t)}],60439),t.s(["_",0,function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}],96326),t.s(["_",0,function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}],17962)},60721,24298,65091,18188,99914,56625,23331,98977,65563,56958,t=>{"use strict";function e(t){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(n=function(){return!!t})()}function i(t){return t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function r(t,e){if(e&&("object"===i(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 o(t,e){return null!=e&&"u">typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function a(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 s(t,n,i){return(s="u">typeof Reflect&&Reflect.get?Reflect.get:function(t,n,i){var r=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=e(t)););return t}(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(i||t):o.value}})(t,n,i||t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}t.s(["_",()=>e],24298),t.s(["_",0,i],65091),t.s(["_",0,r],18188),t.s(["_",0,function(t,i,o){return i=e(i),r(t,n()?Reflect.construct(i,o||[],e(t).constructor):i.apply(t,o))}],60721),t.s(["_",0,o],99914),t.s(["_",0,function(t,e){if(!o(t,e))throw TypeError("Cannot call a class as a function")}],56625),t.s(["_",0,function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}],23331),t.s(["_",()=>s],98977),t.s(["_",()=>u],65563),t.s(["_",0,function(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&&u(t,e)}],56958)},78559,t=>{"use strict";t.s(["_",0,function(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e}
1)(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}])},87735,t=>{"use strict";var e=t.i(7955),n=t.i(14692),i=t.i(87379),r=t.i(94361);t.s(["_",0,function(t,o){return(0,e._)(t)||(0,n._)(t,o)||(0,r._)(t,o)||(0,i._)()}])},60722,t=>{"use strict";var e=t.i(60439),n=t.i(96326),i=t.i(17962),r=t.i(94361);t.s(["_",0,function(t){return(0,e._)(t)||(0,n._)(t)||(0,r._)(t)||(0,i._)()}])},94361,t=>{"use strict";var e=t.i(20752);t.s(["_",0,function(t,n){if(t){if("string"==typeof t)return(0,e._)(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if("Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return(0,e._)(t,n)}}])},98311,34554,9185,13731,11535,12600,62946,57126,39016,86398,51723,t=>{"use strict";var e,n,i,r,o=t.i(60721),a=t.i(56625),s=t.i(23331),u=t.i(98977),l=t.i(24298),c=t.i(56958),h=t.i(55810),d=t.i(64022),v=t.i(78559),f=t.i(71955),p=t.i(48601),m=t.i(77095),y=t.i(46349),g=t.i(87735),x=RegExp("-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)","gu"),k=RegExp("^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$","iu"),w=function(t,e){return function(n){return!!("string"==typeof n&&k.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e))}},b=function(t,e,n){return function(i){if("string"!=typeof i)return i;var r,o=(0,g._)(i.match(x),4),a=o[0],s=o[1],u=o[2],l=o[3];return r={},(0,y._)(r,t,parseFloat(a)),(0,y._)(r,e,parseFloat(s)),(0,y._)(r,n,parseFloat(u)),(0,y._)(r,"alpha",void 0!==l?parseFloat(l):1),r}},S=(0,v._)((0,d._)({},p.number),{transform:function(t){return Math.round((0,f.clamp)(0,255,t))}}),T={test:w("rgb","red"),parse:b("red","green","blue"),transform:function(t){var e=t.red,n=t.green,i=t.blue,r=t.alpha;return"rgba("+S.transform(e)+", "+S.transform(n)+", "+S.transform(i)+", "+(0,m.sanitize)(p.alpha.transform(void 0===r?1:r))+")"}},P={test:w("#"),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:T.transform},E=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)}}},_=E("deg"),A=E("%"),C=E("px"),M=E("vh"),V=E("vw"),D=(0,v._)((0,d._)({},A),{parse:function(t){return A.parse(t)/100},transform:function(t){return A.transform(100*t)}}),R={test:w("hsl","hue"),parse:b("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,i=t.lightness,r=t.alpha;return"hsla("+Math.round(e)+", "+A.transform((0,m.sanitize)(n))+", "+A.transform((0,m.sanitize)(i))+", "+(0,m.sanitize)(p.alpha.transform(void 0===r?1:r))+")"}},L={test:function(t){return T.test(t)||P.test(t)||R.test(t)},parse:function(t){return T.test(t)?T.parse(t):R.test(t)?R.parse(t):P.parse(t)},transform:function(t){return"string"==typeof t?t:t.hasOwnProperty("red")?T.transform(t):R.transform(t)},getAnimatableNone:function(t){var e=L.parse(t);return e.alpha=0,L.transform(e)}},j=RegExp("(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))","giu"),O="number",B="color",I=RegExp("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 F(t){var e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,a=e.replace(I,function(t){return L.test(t)?(i.color.push(o),r.push(B),n.push(L.parse(t))):t.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(t)):(i.number.push(o),r.push(O),n.push(parseFloat(t))),++o,"${}"}).split("${}");return{values:n,split:a,indexes:i,types:r}}function U(t){var e=t.split,n=t.types,i=e.length;return function(t){for(var r="",o=0;o<i;o++)if(r+=e[o],void 0!==t[o]){var a=n[o];a===O?r+=(0,m.sanitize)(t[o]):a===B?r+=L.transform(t[o]):r+=t[o]}return r}}var W=function(t,e){return"number"==typeof t?(null==e?void 0:e.trim().endsWith("/"))?t:0:"number"==typeof t?0:L.test(t)?L.getAnimatableNone(t):t},N={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(x))?void 0:e.length)||0)+((null==(n=t.match(j))?void 0:n.length)||0)>0},parse:function(t){return F(t).values},createTransformer:function(t){return U(F(t))},getAnimatableNone:function(t){var e=F(t);return U(e)(e.values.map(function(t,n){return W(t,e.split[n])}))}},z=new Set(["brightness","contrast","saturate","opacity"]);function Y(t){var e=(0,g._)(t.slice(0,-1).split("("),2),n=e[0],i=e[1];if("drop-shadow"===n)return t;
1var r=(0,g._)(i.match(x)||[],1)[0];if(!r)return t;var o=i.replace(r,""),a=+!!z.has(n);return r!==i&&(a*=100),n+"("+a+o+")"}var X=RegExp("\\b([a-z-]*)\\(.*?\\)","gu"),K=(0,v._)((0,d._)({},N),{getAnimatableNone:function(t){var e=t.match(X);return e?e.map(Y).join(" "):t}}),H=t.i(65091),G=(0,v._)((0,d._)({},N),{getAnimatableNone:function(t){var e=N.parse(t);return N.createTransformer(t)(e.map(function(t){return"number"==typeof t?0:(void 0===t?"undefined":(0,H._)(t))==="object"?(0,v._)((0,d._)({},t),{alpha:1}):t}))}}),q=(0,v._)((0,d._)({},p.number),{transform:Math.round}),Z={rotate:_,pathRotation:_,rotateX:_,rotateY:_,rotateZ:_,scale:p.scale,scaleX:p.scale,scaleY:p.scale,scaleZ:p.scale,skew:_,skewX:_,skewY:_,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:p.alpha,originX:D,originY:D,originZ:C},$=(0,v._)((0,d._)({borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,top:C,right:C,bottom:C,left:C,inset:C,insetBlock:C,insetBlockStart:C,insetBlockEnd:C,insetInline:C,insetInlineStart:C,insetInlineEnd:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,paddingBlock:C,paddingBlockStart:C,paddingBlockEnd:C,paddingInline:C,paddingInlineStart:C,paddingInlineEnd:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,marginBlock:C,marginBlockStart:C,marginBlockEnd:C,marginInline:C,marginInlineStart:C,marginInlineEnd:C,fontSize:C,backgroundPositionX:C,backgroundPositionY:C},Z),{zIndex:q,fillOpacity:p.alpha,strokeOpacity:p.alpha,numOctaves:q}),J=(0,v._)((0,d._)({},$),{color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:K,WebkitFilter:K,mask:G,WebkitMask:G}),Q=function(t){return J[t]},tt=function(){return{translate:0,scale:1,origin:0,originPoint:0}},te=function(){return{x:tt(),y:tt()}},tn=function(){return{min:0,max:0}},ti=function(){return{x:tn(),y:tn()}},tr=function(t){return!!(t&&t.getVelocity)},to=t.i(60722),ta=new Set(["width","height","top","left","right","bottom"].concat((0,to._)(h.transformPropOrder))),ts=function(t){return function(e){return e.test(t)}},tu=[p.number,C,A,_,V,M,{test:function(t){return"auto"===t},parse:function(t){return t}}],tl=function(t){return tu.find(ts(t))},tc=t.i(50461);function th(t,e){return e?"".concat(t,". For more information and steps for solving, visit https://motion.dev/troubleshooting/").concat(e):t}var td=function(){},tv=function(){};void 0!==tc.default&&(null==(e=tc.default.env)?void 0:e.NODE_ENV)!=="production"&&(td=function(t,e,n){!t&&"u">typeof console&&console.warn(th(e,n))},tv=function(t,e,n){if(!t)throw Error(th(e,n))});var tf=function(t){return RegExp("^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$","u").test(t)},tp=function(t){return function(e){return"string"==typeof e&&e.startsWith(t)}},tm=tp("--"),ty=tp("var(--"),tg=function(t){return!!ty(t)&&tx.test(t.split("/*")[0].trim())},tx=RegExp("var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$","iu");function tk(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}var tw=RegExp("^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)","u"),tb=function(t){return 180*t/Math.PI},tS=function(t){return tP(tb(Math.atan2(t[1],t[0])))},tT={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:tS,rotateZ:tS,skewX:function(t){return tb(Math.atan(t[1]))},skewY:function(t){return tb(Math.atan(t[2]))},skew:function(t){return(Math.abs(t[1])+Math.abs(t[2]))/2}},tP=function(t){return(t%=360)<0&&(t+=360),t},tE=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},t_=function(t){return Math.sqrt(t[4]*t[4]+t[5]*t[5])},tA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tE,scaleY:t_,scale:function(t){return(tE(t)+t_(t))/2},rotateX:function(t){return tP(tb(Math.atan2(t[6],t[5])))},rotateY:function(t){return tP(tb(Math.atan2(-t[2],t[0])))},rotateZ:tS,rotate:tS,skewX:function(t){return tb(Math.atan(t[4]))},skewY:function(t){return tb(Math.atan(t[1]))},skew:function(t){return(Math.abs(t[1])+Math.abs(t[4]))/2}};function tC(t){return+!!t.includes("scale")}function tM(t,e){if(!t||"none"===t)return tC(e);var n,i,r=t.match(RegExp("^matrix3d\\(([-\\d.e\\s,]+)\\)$","u"));if(r)n=tA,i=r;else{var o=t.match(RegExp("^matrix\\(([-\\d.e\\s,]+)\\)$","u"));n=tT,i=o}if(!i)return tC(e);var a=n[e],s=i[1].split(",").map(tD);return"function"==typeof a?a(s):s[a]}var tV=function(t,e){var n=getComputedStyle(t).transform;return tM(void 0===n?"none":n,e)};function tD(t){return parseFloat(t.trim())}var tR=function(t){return t===p.number||t===C},tL=new Set(["x","y","z"]),tj=h.transformPropOrder.filter(function(t){return!tL.has(t)}),tO={width:function(t,e){var n=t.x,i=e.paddingLeft,r=e.paddingRight,o=e.boxSizing,a=n.max-n.min;return"border-box"===o?a:a-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,o=e.boxSizing,a=n.max-n.min;return"border-box"===o?a:a-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 tM(e.transform,"x")},y:function(t,e){return tM(e.transform,"y")}};tO.translateX=tO.x,tO.translateY=tO.y;var tB=function(t){return t},tI={},tF=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tU(t,e){var n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},o=function(){return n=!0},a=tF.reduce(function(t,e){return t[e]=function(t){var e=new Set,n=new Set,i=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(e){o.has(e)&&(u.schedule(e),t()),e(a)}var u={schedule:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=a&&i?e:n;return r&&o.add(t),s.add(t),t},cancel:function(t){n.delete(t),o.delete(t)},process:function(t){if(a=t,i){r=!0;return}i=!0;var o=e;e=n,n=o,e.forEach(s),e.clear(),i=!1,r&&(r=!1,u.process(t))}};return u}(o),t},{}),s=a.setup,u=a.read,l=a.resolveKeyframes,c=a.preUpdate,h=a.update,d=a.preRender,v=a.render,f=a.postRender,p=function(){var o=tI.useManualTiming,a=o?r.timestamp:performance.now();n=!1,o||(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:tF.reduce(function(t,e){var i=a[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<tF.length;e++)a[tF[e]].cancel(t)},state:r,steps:a}}var tW=tU("u">typeof requestAnimationFrame?requestAnimationFrame:tB,!0),tN=tW.schedule,tz=tW.cancel,tY=tW.state,tX=tW.steps,tK=new Set,tH=!1,tG=!1,tq=!1;function tZ(){if(tG){var t=Array.from(tK).filter(function(t){return t.needsMeasurement}),e=new Set(t.map(function(t){return t.element})),n=new Map;
1e.forEach(function(t){var e,i=(e=[],tj.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,g._)(e,2),r=i[0],o=i[1];null==(n=t.getValue(r))||n.set(o)})}),t.forEach(function(t){return t.measureEndState()}),t.forEach(function(t){void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tG=!1,tH=!1,tK.forEach(function(t){return t.complete(tq)}),tK.clear()}function t$(){tK.forEach(function(t){t.readKeyframes(),t.needsMeasurement&&(tG=!0)})}var tJ=function(){function t(e,n,i,r,o){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];(0,a._)(this,t),this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=(0,to._)(e),this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}return(0,s._)(t,[{key:"scheduleResolve",value:function(){this.state="scheduled",this.isAsync?(tK.add(this),tH||(tH=!0,tN.read(t$),tN.resolveKeyframes(tZ))):(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(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){var a=n.readValue(e,o);null!=a&&(t[0]=a)}void 0===t[0]&&(t[0]=o),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),tK.delete(this)}},{key:"cancel",value:function(){"scheduled"===this.state&&(tK.delete(this),this.state="pending")}},{key:"resume",value:function(){"pending"===this.state&&this.scheduleResolve()}}]),t}(),tQ=function(t){return RegExp("^0[^.\\s]+$","u").test(t)},t0=new Set([K,G]);function t1(t,e){var n=Q(t);return t0.has(n)||(n=N),n.getAnimatableNone?n.getAnimatableNone(e):void 0}var t2=new Set(["auto","none","0"]),t3=function(t){function e(t,n,i,r,s){return(0,a._)(this,e),(0,o._)(this,e,[t,n,i,r,s,!0])}return(0,c._)(e,t),(0,s._)(e,[{key:"readKeyframes",value:function(){var t=this.unresolvedKeyframes,n=this.element,i=this.name;if(n&&n.current){(0,u._)((0,l._)(e.prototype),"readKeyframes",this).call(this);for(var r=0;r<t.length;r++){var o=t[r];if("string"==typeof o&&tg(o=o.trim())){var a=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,g._)(function(t){var e=tw.exec(t);if(!e)return[,];var n=(0,g._)(e,4),i=n[1],r=n[2],o=n[3];return["--".concat(null!=i?i:r),o]}(e),2),o=r[0],a=r[1];if(o){var s=window.getComputedStyle(n).getPropertyValue(o);if(s){var u=s.trim();return tf(u)?parseFloat(u):u}return tg(a)?t(a,n,i+1):a}}(o,n.current);void 0!==a&&(t[r]=a),r===t.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),ta.has(i)&&2===t.length){var s=(0,g._)(t,2),c=s[0],h=s[1],d=tl(c),v=tl(h);if(tk(c)!==tk(h)&&tO[i]){this.needsMeasurement=!0;return}if(d!==v)if(tR(d)&&tR(v))for(var f=0;f<t.length;f++){var p=t[f];"string"==typeof p&&(t[f]=parseFloat(p))}else tO[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||tQ(t)))&&i.push(r);i.length&&function(t,e,n){for(var i=0,r=void 0;i<t.length&&!r;){var o=t[i];"string"==typeof o&&!t2.has(o)&&F(o).values.length&&(r=t[i]),i++}if(r&&n){var a=!0,s=!1,u=void 0;try{for(var l,c=e[Symbol.iterator]();!(a=(l=c.next()).done);a=!0)t[l.value]=t1(n,r)}catch(t){s=!0,u=t}finally{try{a||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=tO[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 o=i.length-1,a=i[o];i[o]=tO[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(function(t){var n=(0,g._)(t,2),i=n[0],r=n[1];e.getValue(i).set(r)}),this.resolveNoneKeyframes()}}}]),e}(tJ),t5=t.i(99914);function t9(t,e){if(null==t)return{};var n,i,r,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(t)),r=0;r<n.length;r++)i=n[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i]);return o}if(o=function(t,e){if(null==t)return{};var n,i,r={},o=Object.getOwnPropertyNames(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n]);return r}(t,e),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(t),r=0;r<n.length;r++)i=n[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i]);return o}t.s(["_",0,t9],34554);var t6=function(t){return 1e3*t},t4=function(t){return t/1e3},t7=t.i(7955),t8=t.i(96326),et=t.i(87379),ee=t.i(94361);function en(t){return(0,t7._)(t)||(0,t8._)(t)||(0,ee._)(t)||(0,et._)()}function ei(t,e){-1===t.indexOf(e)&&t.push(e)}function er(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var eo=function(){function t(){(0,a._)(this,t),this.subscriptions=[]}return(0,s._)(t,[{key:"add",value:function(t){var e=this;return ei(this.subscriptions,t),function(){return er(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 o=this.subscriptions[r];o&&o(t,e,n)}}},{key:"getSize",value:function(){return this.subscriptions.length}},{key:"clear",value:function(){this.subscriptions.length=0}}]),t}(),ea=t.i(18188);function es(t,e,n){e.startsWith("--")?t.style.setProperty(e,n):t.style[e]=n}function eu(t){var e;return function(){return void 0===e&&(e=t()),e}}var el={};function ec(t,e){var n=eu(t);return function(){var t;return null!=(t=el[e])?t:n()}}var eh=ec(function(){return void 0!==window.ScrollTimeline},"scrollTimeline"),ed=function(t){return null!==t};function ev(t,e,n){var i=e.repeat,r=e.repeatType,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=t.filter(ed),s=o<0||i&&"loop"!==(void 0===r?"loop":r)&&i%2==1?0:a.length-1;return s&&void 0!==n?n:a[s]}var ef=function(){function t(){(0,a._)(this,t),this.updateFinished()}return(0,s._)(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}(),ep=function(t){return Array.isArray(t)&&"number"==typeof t[0]},em=ec(function(){try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ey=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),o=0;o<r;o++)i+=Math.round(1e4*t(o/(r-1)))/1e4+", ";return"linear(".concat(i.substring(0,i.length-2),")")},eg=function(t){var e=(0,g._)(t,4),n=e[0],i=e[1],r=e[2],o=e[3];return"cubic-bezier(".concat(n,", ").concat(i,", ").concat(r,", ").concat(o,")")},ex={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eg([0,.65,.55,1]),circOut:eg([.55,0,1,.45]),backIn:eg([.31,.01,.66,-.59]),backOut:eg([.33,1.53,.69,.99])};function ek(t){return"function"==typeof t&&"applyToOptions"in t}var ew=function(t){function e(t){if((0,a._)(this,e),(r=(0,o._)(this,e)).finishedTime=null,r.isStopped=!1,r.manualStartTime=null,!t)return(0,ea._)(r);var n,i,r,s=t.element,u=t.name,l=t.keyframes,c=t.pseudoElement,h=t.allowFlatten,d=t.finalKeyframe,v=t.onComplete;r.isPseudoElement=!!c,r.allowFlatten=void 0!==h&&h,r.options=t,tv("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");var f=(n=t.type,i=t9(t,["type"]),ek(n)&&em()?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,o=i.duration,a=void 0===o?300:o,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,y._)({},e,n);c&&(d.offset=c);var v=function t(e,n){if(e)return"function"==typeof e?em()?ey(e,n):"ease-out":ep(e)?eg(e):Array.isArray(e)?e.map(function(e){return t(e,n)||ex.easeOut}):ex[e]}(void 0===l?"easeOut":l,a);Array.isArray(v)&&(d.easing=v);var f={delay:void 0===r?0:r,duration:a,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:(void 0===s?0:s)+1,direction:"reverse"===(void 0===u?"loop":u)?"alternate":"normal"};return h&&(f.pseudoElement=h),t.animate(d,f)}(s,u,l,f,c),!1===f.autoplay&&r.animation.pause(),r.animation.onfinish=function(){if(r.finishedTime=r.time,!c){var t=ev(l,r.options,d,r.speed);r.updateMotionValue&&r.updateMotionValue(t),es(s,u,t),r.animation.cancel()}null==v||v(),r.notifyFinished()},r}return(0,c._)(e,t),(0,s._)(e,[{key:"play",value:function(){this.isStopped||(this.manualStartTime=null,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(){var t,e,n,i=null==(t=this.options)?void 0:t.element;!this.isPseudoElement&&(null==i?void 0:i.isConnected)&&(null==(e=(n=this.animation).commitStyles)||e.call(n))}},{key:"duration",get:function(){var t,e;return t4(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+t4(void 0===t?0:t)}},{key:"time",get:function(){return t4(Number(this.animation.currentTime)||0)},set:function(t){var e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t6(t),e&&this.animation.pause()}},{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(){var t;return null!=(t=this.manualStartTime)?t:Number(this.animation.startTime)},set:function(t){this.manualStartTime=this.animation.startTime=t}},{key:"attachTimeline",value:function(t){var e,n=t.timeline,i=t.rangeStart,r=t.rangeEnd,o=t.observe;return(this.allowFlatten&&(null==(e=this.animation.effect)||e.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&eh())?(this.animation.timeline=n,i&&(this.animation.rangeStart=i),r&&(this.animation.rangeEnd=r),tB):o(this)}}]),e}(ef),eb=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),eS=tU(queueMicrotask,!1),eT=eS.schedule;function eP(){n=void 0}eS.cancel;var eE={now:function(){return void 0===n&&eE.set(tY.isProcessing||tI.useManualTiming?tY.timestamp:performance.now()),n},set:function(t){n=t,queueMicrotask(eP)}},e_=function(t,e){return e?1e3/e*t:0},eA=void 0,eC=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a._)(this,t),this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){var e=eE.now();if(n.updatedAt!==e&&n.setPrevFrameValue(),n.prev=n.current,n.setCurrent(t),n.current!==n.prev&&(null==(a=n.events.change)||a.notify(n.current),n.dependents)){var i=!0,r=!1,o=void 0;try{for(var a,s,u=n.dependents[Symbol.iterator]();!(i=(s=u.next()).done);i=!0)s.value.dirty()}catch(t){r=!0,o=t}finally{try{i||null==u.return||u.return()}finally{if(r)throw o}}}},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}return(0,s._)(t,[{key:"setCurrent",value:function(t){this.current=t,this.updatedAt=eE.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 eo);var i=this.events[t].add(e);return"change"===t?function(){i(),tN.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 eA&&eA.push(this),this.current}},{key:"getPrevious",value:function(){return this.prev}},{key:"getVelocity",value:function(){var t=eE.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;var e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e_(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}},{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 eM(t,e){return new eC(t,e)}var eV=(0,to._)(tu).concat([L,N]),eD=new WeakMap;function eR(t){return null!==t&&(void 0===t?"undefined":(0,H._)(t))==="object"&&"function"==typeof t.start}function eL(t){return"string"==typeof t||Array.isArray(t)}var ej=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eO=["initial"].concat((0,to._)(ej));function eB(t){return eR(t.animate)||eO.some(function(e){return eL(t[e])})}function eI(t){return!!(eB(t)||t.variants)}var eF={current:null},eU={current:!1};t.s(["hasReducedMotionListener",0,eU,"prefersReducedMotion",0,eF],9185);var eW="u">typeof window;function eN(){if(eU.current=!0,eW)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return eF.current=t.matches};t.addEventListener("change",e),e()}else eF.current=!1}function ez(t){var e=[{},{}];
1return null==t||t.values.forEach(function(t,n){e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function eY(t,e,n,i){if("function"==typeof e){var r=(0,g._)(ez(i),2),o=r[0],a=r[1];e=e(void 0!==n?n:t.custom,o,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){var s=(0,g._)(ez(i),2),u=s[0],l=s[1];e=e(void 0!==n?n:t.custom,u,l)}return e}t.s(["initPrefersReducedMotion",0,eN],13731);var eX=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eK={},eH=function(t){function e(){var t;return(0,a._)(this,e),t=(0,o._)(this,e,arguments),t.KeyframeResolver=t3,t}return(0,c._)(e,t),(0,s._)(e,[{key:"sortInstanceNodePosition",value:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1}},{key:"getBaseTargetFromProps",value:function(t,e){var n=t.style;return n?n[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;tr(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,o=e.presenceContext,s=e.reducedMotionConfig,u=e.skipAnimations,l=e.blockInitialAnimation,c=e.visualState,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a._)(this,t),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tJ,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=eE.now();n.renderScheduledAt<t&&(n.renderScheduledAt=t,tN.render(n.render,!1,!0))};var v=c.latestValues,f=c.renderState;this.latestValues=v,this.baseTarget=(0,d._)({},v),this.initialValues=r.initial?(0,d._)({},v):{},this.renderState=f,this.parent=i,this.props=r,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=u,this.options=h,this.blockInitialAnimation=!!l,this.isControllingVariants=eB(r),this.isVariantNode=eI(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);var p=this.scrapeMotionValuesFromProps(r,{},this),m=(p.willChange,t9(p,["willChange"]));for(var y in m){var g=m[y];void 0!==v[y]&&tr(g)&&g.set(v[y])}}return(0,s._)(t,[{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return{}}},{key:"mount",value:function(t){var e,n,i,r=this;if(this.hasBeenMounted)for(var o in this.initialValues)null==(i=this.values.get(o))||i.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,eD.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 r.bindToMotionValue(e,t)}),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eU.current||eN(),this.shouldReduceMotion=eF.current),this.shouldSkipAnimations=null!=(e=this.skipAnimationsConfig)&&e,null==(n=this.parent)||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}},{key:"unmount",value:function(){var t;for(var e in this.projection&&this.projection.unmount(),tz(this.notifyUpdate),tz(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;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&eb.has(t)&&(0,t5._)(this.current,HTMLElement)){var r=e.accelerate,o=r.factory,a=r.keyframes,s=r.times,u=r.ease,l=r.duration,c=new ew({element:this.current,name:t,keyframes:a,times:s,ease:u,duration:t6(l)}),d=o(c);this.valueSubscriptions.set(t,function(){d(),c.cancel()});return}var v=h.transformProps.has(t);v&&this.onBindTransform&&this.onBindTransform();var f=e.on("change",function(e){i.latestValues[t]=e,i.props.onUpdate&&tN.preRender(i.notifyUpdate),v&&i.projection&&(i.projection.isTransformDirty=!0),i.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,function(){f(),n&&n()})}}
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 eK){var e=eK[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):ti()}},{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<eX.length;n++){var i=eX[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],o=n[i];if(tr(r))t.addValue(i,r);else if(tr(o))t.addValue(i,eM(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){var a=t.getValue(i);!0===a.liveStyle?a.jump(r):a.hasAnimated||a.set(r)}else{var s=t.getStaticValue(i);t.addValue(i,eM(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=eM(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)||tQ(r))?r=parseFloat(r):(n=r,!eV.find(ts(n))&&N.test(e)&&(r=t1(t,e))),this.setBaseTarget(t,tr(r)?r.get():r)),tr(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,H._)(e))==="object"){var n,i,r=eY(this.props,e,null==(i=this.presenceContext)?void 0:i.custom);r&&(n=r[t])}if(e&&void 0!==n)return n;var o=this.getBaseTargetFromProps(this.props,t);return void 0===o||tr(o)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:o}},{key:"on",value:function(t,e){return this.events[t]||(this.events[t]=new eo),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,to._)(i))}},{key:"scheduleRenderMicrotask",value:function(){eT.render(this.render)}}]),t}());function eG(t){return t.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})}var eq=function(t,e){return e&&"number"==typeof t?e.transform(t):t},eZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e$=h.transformPropOrder.length;function eJ(t,e,n){var i=t.style,r=t.vars,o=t.transformOrigin,a=!1,s=!1;for(var u in e){var l=e[u];if(h.transformProps.has(u)){a=!0;continue}if(tm(u)){r[u]=l;continue}var c=eq(l,$[u]);u.startsWith("origin")?(s=!0,o[u]=c):i[u]=c}if(!e.transform&&(a||n?i.transform=function(t,e,n){for(var i="",r=!0,o=0;o<e$;o++){var a=h.transformPropOrder[o],s=t[a];if(void 0!==s){var u=!0;if("number"==typeof s)u=s===+!!a.startsWith("scale");else{var l=parseFloat(s);u=a.startsWith("scale")?1===l:0===l}if(!u||n){var c=eq(s,$[a]);if(!u){r=!1;var d=eZ[a]||a;i+="".concat(d,"(").concat(c,") ")}n&&(e[a]=c)}}}var v=t.pathRotation;return v&&(r=!1,i+="rotate(".concat(eq(v,$.pathRotation),") ")),i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),s){var d=o.originX,v=o.originY,f=o.originZ;i.transformOrigin="".concat(void 0===d?"50%":d," ").concat(void 0===v?"50%":v," ").concat(void 0===f?0:f)}}var eQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},e0={offset:"strokeDashoffset",array:"strokeDasharray"},e1=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e2(t,e,n,i,r){var o,a,s=en([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=t9(u,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]),y=en(l),x=y[0],k=en(y.slice(1)),w=k[0],b=k.slice(1),S=(0,g._)(b,1)[0];
1if(eJ(t,m,w),x){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};var T=t.attrs,P=t.style,E=!0,_=!1,A=void 0;try{for(var C,M=e1[Symbol.iterator]();!(E=(C=M.next()).done);E=!0){var V=C.value;void 0!==T[V]&&(P[V]=T[V],delete T[V])}}catch(t){_=!0,A=t}finally{try{E||null==M.return||M.return()}finally{if(_)throw A}}(P.transform||T.transformOrigin)&&(P.transformOrigin=null!=(o=T.transformOrigin)?o:"50% 50%",delete T.transformOrigin),P.transform&&(P.transformBox=null!=(a=null==S?void 0:S.transformBox)?a:"fill-box",delete T.transformBox),void 0!==c&&(T.x=c),void 0!==h&&(T.y=h),void 0!==d&&(T.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 o=r?eQ:e0;t[o.offset]="".concat(-i),t[o.array]="".concat(e," ").concat(n)}(T,v,void 0===f?1:f,void 0===p?0:p,!1)}var e3=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"]),e5=function(t){return"string"==typeof t&&"svg"===t.toLowerCase()};function e9(t,e,n,i){var r,o=e.style,a=e.vars,s=t.style;for(r in o)s[r]=o[r];for(r in null==i||i.applyProjectionStyles(s,n),a)s.setProperty(r,a[r])}var e6=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function e4(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var e7={correct:function(t,e){if(!e.target)return t;if("string"==typeof t)if(!C.test(t))return t;else t=parseFloat(t);var n=e4(t,e.target.x),i=e4(t,e.target.y);return"".concat(n,"% ").concat(i,"%")}},e8=function(t,e,n){return t+(e-t)*n},nt={borderRadius:(0,v._)((0,d._)({},e7),{applyTo:(0,to._)(e6)}),borderTopLeftRadius:e7,borderTopRightRadius:e7,borderBottomLeftRadius:e7,borderBottomRightRadius:e7,boxShadow:{correct:function(t,e){var n=e.treeScale,i=e.projectionDelta,r=N.parse(t);if(r.length>5)return t;var o=N.createTransformer(t),a=+("number"!=typeof r[0]),s=i.x.scale*n.x,u=i.y.scale*n.y;r[0+a]/=s,r[1+a]/=u;var l=e8(s,u,.5);return"number"==typeof r[2+a]&&(r[2+a]/=l),"number"==typeof r[3+a]&&(r[3+a]/=l),o(r)}}};function ne(t,e){var n=e.layout,i=e.layoutId;return h.transformProps.has(t)||t.startsWith("origin")||(n||void 0!==i)&&(!!nt[t]||"opacity"===t)}function nn(t,e,n){var i,r=t.style,o=null==e?void 0:e.style,a={};if(!r)return a;for(var s in r)(tr(r[s])||o&&tr(o[s])||ne(s,t)||(null==n||null==(i=n.getValue(s))?void 0:i.liveStyle)!==void 0)&&(a[s]=r[s]);return a}function ni(t,e,n){var i=nn(t,e,n);for(var r in t)(tr(t[r])||tr(e[r]))&&(i[-1!==h.transformPropOrder.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}var nr=function(t){function e(){var t;return(0,a._)(this,e),t=(0,o._)(this,e,arguments),t.type="svg",t.isSVGTag=!1,t.measureInstanceViewportBox=ti,t}return(0,c._)(e,t),(0,s._)(e,[{key:"getBaseTargetFromProps",value:function(t,e){return t[e]}},{key:"readValueFromInstance",value:function(t,e){if(h.transformProps.has(e)){var n=Q(e);return n&&n.default||0}if(e1.includes(e)){var i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=e3.has(e)?e:eG(e),t.getAttribute(e)}},{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return ni(t,e,n)}}
1,{key:"build",value:function(t,e,n){e2(t,e,this.isSVGTag,n.transformTemplate,n.style)}},{key:"renderInstance",value:function(t,e,n,i){for(var r in e9(t,e,void 0,i),e.attrs)t.setAttribute(e3.has(r)?r:eG(r),e.attrs[r])}},{key:"mount",value:function(t){this.isSVGTag=e5(t.tagName),(0,u._)((0,l._)(e.prototype),"mount",this).call(this,t)}}]),e}(eH);function no(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function na(t){return void 0===t||1===t}function ns(t){var e=t.scale,n=t.scaleX,i=t.scaleY;return!na(e)||!na(n)||!na(i)}function nu(t){return ns(t)||nl(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function nl(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function nc(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function nh(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=nc(t.min,e,n,i,r),t.max=nc(t.max,e,n,i,r)}function nd(t,e){var n=e.x,i=e.y;nh(t.x,n.translate,n.scale,n.originPoint),nh(t.y,i.translate,i.scale,i.originPoint)}function nv(t,e){t.min+=e,t.max+=e}function nf(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,o=e8(t.min,t.max,r);nh(t,e,n,o,i)}function np(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function nm(t,e,n){var i=null!=n?n:t;nf(t.x,np(e.x,i.x),e.scaleX,e.scale,e.originX),nf(t.y,np(e.y,i.y),e.scaleY,e.scale,e.originY)}function ny(t,e){return no(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))}var ng=function(t){function e(){var t;return(0,a._)(this,e),t=(0,o._)(this,e,arguments),t.type="html",t.renderInstance=e9,t}return(0,c._)(e,t),(0,s._)(e,[{key:"mount",value:function(t){tv(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),(0,u._)((0,l._)(e.prototype),"mount",this).call(this,t)}},{key:"readValueFromInstance",value:function(t,e){if(h.transformProps.has(e)){var n;return(null==(n=this.projection)?void 0:n.isProjecting)?tC(e):tV(t,e)}var i=window.getComputedStyle(t),r=(tm(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}},{key:"measureInstanceViewportBox",value:function(t,e){return ny(t,e.transformPagePoint)}},{key:"build",value:function(t,e,n){eJ(t,e,n.transformTemplate)}},{key:"scrapeMotionValuesFromProps",value:function(t,e,n){return nn(t,e,n)}}]),e}(eH),nx=t.i(91788),nk=["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 nw(t){if("string"!=typeof t||t.includes("-"));else if(nk.indexOf(t)>-1||RegExp("[A-Z]","u").test(t))return!0;return!1}var nb=t.i(91398),nS=(0,nx.createContext)({});t.s(["LayoutGroupContext",0,nS],11535);var nT=(0,nx.createContext)({strict:!1}),nP=(0,nx.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,nP],12600);var nE=(0,nx.createContext)({});function n_(t){return Array.isArray(t)?t.join(" "):t}var nA=function(){return{style:{},transform:{},transformOrigin:{},vars:{}}};function nC(t,e,n){for(var i in e)tr(e[i])||ne(i,n)||(t[i]=e[i])}var nM=function(){return(0,v._)((0,d._)({},nA()),{attrs:{}})},nV=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function nD(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nV.has(t)}function nR(t){return tr(t)?t.get():t}var nL=(0,nx.createContext)(null);function nj(t){var e=(0,nx.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["PresenceContext",0,nL],62946),t.s(["useConstant",0,nj],57126);var nO=function(t){return function(e,n){var i=(0,nx.useContext)(nE),r=(0,nx.useContext)(nL),o=function(){var n,o;return n=t.scrapeMotionValuesFromProps,o=t.createRenderState,{latestValues:function(t,e,n,i){var r={},o=i(t,{});for(var a in o)r[a]=nR(o[a]);var s=t.initial,u=t.animate,l=eB(t),c=eI(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&&!eR(d))for(var v=Array.isArray(d)?d:[d],f=0;f<v.length;f++){var p=eY(t,v[f]);if(p){var m=p.transitionEnd,y=(p.transition,t9(p,["transitionEnd","transition"]));for(var g in y){var x=y[g];if(Array.isArray(x)){var k=h?x.length-1:0;x=x[k]}null!==x&&(r[g]=x)}
1for(var w in m)r[w]=m[w]}}return r}(e,i,r,n),renderState:o()}};return n?o():nj(o)}},nB=nO({scrapeMotionValuesFromProps:nn,createRenderState:nA}),nI=nO({scrapeMotionValuesFromProps:ni,createRenderState:nM}),nF={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"]},nU=!1;function nW(){var t=function(t){e[t]={isEnabled:function(e){return nF[t].some(function(t){return!!e[t]})}}};if(!nU){var e={};for(var n in nF)t(n);eK=e,nU=!0}return eK}var nN=Symbol.for("motionComponentSymbol"),nz="data-"+eG("framerAppearId"),nY=(0,nx.createContext)({});function nX(t){return t&&(void 0===t?"undefined":(0,H._)(t))==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}var nK="u">typeof window?nx.useLayoutEffect:nx.useEffect;function nH(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.forwardMotionProps,o=void 0!==r&&r,a=i.type,s=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0;s&&function(t){var e=nW();for(var n in t)e[n]=(0,d._)({},e[n],t[n]);eK=e}(s);var l=a?"svg"===a:nw(t),c=l?nI:nB;function h(e,n){var i,r,a,s,h,f,p=(0,v._)((0,d._)({},(0,nx.useContext)(nP),e),{layoutId:(i=e.layoutId,(r=(0,nx.useContext)(nS).id)&&void 0!==i?r+"-"+i:i)}),m=p.isStatic,y=p.isValidProp,g=(R=(D=function(t,e){if(eB(t)){var n=t.initial,i=t.animate;return{initial:!1===n||eL(n)?n:void 0,animate:eL(i)?i:void 0}}return!1!==t.inherit?e:{}}(e,(0,nx.useContext)(nE))).initial,L=D.animate,(0,nx.useMemo)(function(){return{initial:R,animate:L}},[n_(R),n_(L)])),x=c(e,m);if(!m&&"u">typeof window){(0,nx.useContext)(nT).strict;var k,w,b,S,T,P,E,_,A,C,M,V,D,R,L,j,O,B,I,F,U,W,N,z,Y,X,K,G,q,Z,$,J,Q,tt,te=function(t){var e=nW(),n=e.drag,i=e.layout;if(!n&&!i)return{};var r=(0,d._)({},n,i);return{MeasureLayout:(null==n?void 0:n.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(p);f=te.MeasureLayout,j=u,O=te.ProjectionNode,W=(0,nx.useContext)(nE).visualElement,N=(0,nx.useContext)(nT),z=(0,nx.useContext)(nL),X=(Y=(0,nx.useContext)(nP)).reducedMotion,K=Y.skipAnimations,G=(0,nx.useRef)(null),q=(0,nx.useRef)(!1),j=j||N.renderer,!G.current&&j&&(G.current=j(t,{visualState:x,parent:W,props:p,presenceContext:z,blockInitialAnimation:!!z&&!1===z.initial,reducedMotionConfig:X,skipAnimations:K,isSVG:l}),q.current&&G.current&&(G.current.manuallyAnimateOnMount=!0)),Z=G.current,$=(0,nx.useContext)(nY),Z&&!Z.projection&&O&&("html"===Z.type||"svg"===Z.type)&&(k=G.current,w=p,b=O,S=$,T=w.layoutId,P=w.layout,E=w.drag,_=w.dragConstraints,A=w.layoutScroll,C=w.layoutRoot,M=w.layoutAnchor,V=w.layoutCrossfade,k.projection=new b(k.latestValues,w["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(k.parent)),k.projection.setOptions({layoutId:T,layout:P,alwaysMeasureLayout:!!E||_&&nX(_),visualElement:k,animationType:"string"==typeof P?P:"both",initialPromotionConfig:S,crossfade:V,layoutScroll:A,layoutRoot:C,layoutAnchor:M})),J=(0,nx.useRef)(!1),(0,nx.useInsertionEffect)(function(){Z&&J.current&&Z.update(p,z)}),Q=p[nz],tt=(0,nx.useRef)(!!Q&&"u">typeof window&&!(null==(B=(I=window).MotionHandoffIsComplete)?void 0:B.call(I,Q))&&(null==(F=(U=window).MotionHasOptimisedAnimation)?void 0:F.call(U,Q))),nK(function(){q.current=!0,Z&&(J.current=!0,window.MotionIsMounted=!0,Z.updateFeatures(),Z.scheduleRenderMicrotask(),tt.current&&Z.animationState&&Z.animationState.animateChanges())}),(0,nx.useEffect)(function(){Z&&(!tt.current&&Z.animationState&&Z.animationState.animateChanges(),tt.current&&(queueMicrotask(function(){var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,Q)}),tt.current=!1),Z.enteringChildren=void 0)}),g.visualElement=Z}return(0,nb.jsxs)(nE.Provider,{value:g,children:[f&&g.visualElement?(0,nb.jsx)(f,(0,d._)({visualElement:g.visualElement},p)):null,function(t,e,n,i,r){var o=i.latestValues,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,l=((null!=s?s:nw(t))?function(t,e,n,i){var r=(0,nx.useMemo)(function(){var n=nM();return e2(n,e,e5(i),t.transformTemplate,t.style),(0,v._)((0,d._)({},n.attrs),{style:(0,d._)({},n.style)})},[e]);if(t.style){var o={};nC(o,t.style,t),r.style=(0,d._)({},o,r.style)}
1return r}:function(t,e){var n,i,r={},o=(nC(n={},t.style||{},t),Object.assign(n,(i=t.transformTemplate,(0,nx.useMemo)(function(){var t=nA();return eJ(t,e,i),Object.assign({},t.vars,t.style)},[e]))),n);return t.drag&&!1!==t.dragListener&&(r.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)&&(r.tabIndex=0),r.style=o,r})(e,o,r,t),c=function(t,e,n,i){var r={};for(var o in t)("values"!==o||"object"!==(0,H._)(t.values))&&!tr(t[o])&&(function(t,e){var n;return t.startsWith("on")?!nD(t):null!=(n=null==e?void 0:e(t))?n:!nD(t)}(o,i)||!0===n&&nD(o)||!e&&!nD(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(e,"string"==typeof t,a,u),h=t!==nx.Fragment?(0,v._)((0,d._)({},c,l),{ref:n}):{},f=e.children,p=(0,nx.useMemo)(function(){return tr(f)?f.get():f},[f]);return(0,nx.createElement)(t,(0,v._)((0,d._)({},h),{children:p}))}(t,e,(a=g.visualElement,s=(0,nx.useRef)(n),(0,nx.useInsertionEffect)(function(){s.current=n}),h=(0,nx.useRef)(null),(0,nx.useCallback)(function(t){if(t){var e;null==(e=x.onMount)||e.call(x,t)}a&&(t?a.mount(t):a.unmount());var n=s.current;if("function"==typeof n)if(t){var i=n(t);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):n(t);else n&&(n.current=t)},[a])),x,m,o,l,y)]})}h.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(e=null!=(n=t.displayName)?n:t.name)?e:"",")"));var f=(0,nx.forwardRef)(h);return f[nN]=t,f}t.s(["useIsomorphicLayoutEffect",0,nK],39016);var nG=function(){function t(e){(0,a._)(this,t),this.isMounted=!1,this.node=e}return(0,s._)(t,[{key:"update",value:function(){}}]),t}();function nq(t,e,n){var i=t.getProps();return eY(i,e,void 0!==n?n:i.custom,t)}function nZ(t,e){if((null==t?void 0:t.inherit)&&e){t.inherit;var n=t9(t,["inherit"]);return(0,d._)({},e,n)}return t}function n$(t,e){var n,i,r=null!=(n=null!=(i=null==t?void 0:t[e])?i:null==t?void 0:t.default)?n:t;return r!==t?nZ(r,t):r}var nJ=function(t){return Array.isArray(t)};function nQ(t,e){var n=t.getValue("willChange");if(tr(n)&&n.add)return n.add(e);if(!n&&tI.WillChange){var i=new tI.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var n0=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(t,e){return function(n){return e(t(n))}})};function n1(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 n2(t,e){return function(n){return n>0?e:t}}var n3=function(t,e,n){var i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},n5=[P,T,R];function n9(t){var e=n5.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===R&&(n=function(t){var e=t.hue,n=t.saturation,i=t.lightness,r=t.alpha;e/=360,i/=100;var o=0,a=0,s=0;if(n/=100){var u=i<.5?i*(1+n):i+n-i*n,l=2*i-u;o=n1(l,u,e+1/3),a=n1(l,u,e),s=n1(l,u,e-1/3)}else o=a=s=i;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}(n)),n}var n6=function(t,e){var n=n9(t),i=n9(e);if(!n||!i)return n2(t,e);var r=(0,d._)({},n);return function(t){return r.red=n3(n.red,i.red,t),r.green=n3(n.green,i.green,t),r.blue=n3(n.blue,i.blue,t),r.alpha=e8(n.alpha,i.alpha,t),T.transform(r)}},n4=new Set(["none","hidden"]);function n7(t,e){return function(n){return e8(t,e,n)}}function n8(t){return"number"==typeof t?n7:"string"==typeof t?tg(t)?n2:L.test(t)?n6:ii:Array.isArray(t)?it:(void 0===t?"undefined":(0,H._)(t))==="object"?L.test(t)?n6:ie:n2}function it(t,e){var n=(0,to._)(t),i=n.length,r=t.map(function(t,n){return n8(t)(t,e[n])});return function(t){for(var e=0;e<i;e++)n[e]=r[e](t);return n}}function ie(t,e){var n=(0,d._)({},t,e),i={};for(var r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=n8(t[r])(t[r],e[r]));return function(t){for(var e in i)n[e]=i[e](t);return n}}var ii=function(t,e){var n=N.createTransformer(e),i=F(t),r=F(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?n4.has(t)&&!r.values.length||n4.has(e)&&!i.values.length?n4.has(t)?function(n){return n<=0?t:e}:function(n){return n>=1?e:t}:n0(it(function(t,e){for(var n=[],i={color:0,var:0,number:0},r=0;r<e.values.length;r++){var o,a=e.types[r],s=t.indexes[a][i[a]],u=null!=(o=t.values[s])?o:0;n[r]=u,i[a]++}return n}(i,r),r.values),n):(td(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all c
1olors 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"),n2(t,e))};function ir(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?e8(t,e,n):n8(t)(t,e)}var io=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 tN.update(e,t)},stop:function(){return tz(e)},now:function(){return tY.isProcessing?tY.timestamp:eE.now()}}};function ia(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e4,i=arguments.length>3?arguments[3]:void 0,r=0,o=t.next(r);for(null==i||i.push(o.value);!o.done&&r<n;)r+=e,o=t.next(r),null==i||i.push(o.value);return r>=n?1/0:r}var is=.01,iu=2,il=.005,ic=.5;function ih(t,e){return t*Math.sqrt(1-e*e)}var id=["duration","bounce"],iv=["stiffness","damping","mass"];function ip(t,e){return e.some(function(e){return void 0!==t[e]})}function im(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.3,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3,r=(void 0===n?"undefined":(0,H._)(n))!=="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n,o=r.restSpeed,a=r.restDelta,s=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],l={done:!1,value:s},c=function(t){var e=(0,d._)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!ip(t,iv)&&ip(t,id))if(e.velocity=0,t.visualDuration){var n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*(0,f.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(i);e=(0,v._)((0,d._)({},e),{mass:1,stiffness:i,damping:r})}else{var o=function(t){var e,n,i=t.duration,r=void 0===i?800:i,o=t.bounce,a=t.velocity,s=void 0===a?0:a,u=t.mass,l=void 0===u?1:u;td(r<=t6(10),"Spring duration must be 10 seconds or less","spring-duration-limit");var c=1-(void 0===o?.3:o);c=(0,f.clamp)(.05,1,c),r=(0,f.clamp)(.01,10,t4(r)),c<1?(e=function(t){var e=t*c,n=e*r;return .001-(e-s)/ih(t,c)*Math.exp(-n)},n=function(t){var n=t*c*r,i=c*c*t*t*r,o=Math.exp(-n),a=ih(t*t,c);return(n*s+s-i)*o*(-e(t)+.001>0?-1:1)/a}):(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=t6(r),isNaN(h))return{stiffness:100,damping:10,duration:r};var d=h*h*l;return{stiffness:d,damping:2*c*Math.sqrt(l*d),duration:r}}((0,v._)((0,d._)({},t),{velocity:0}));(e=(0,v._)((0,d._)({},e,o),{mass:1})).isResolvedFromDuration=!0}return e}((0,v._)((0,d._)({},r),{velocity:-t4(r.velocity||0)})),h=c.stiffness,p=c.damping,m=c.mass,y=c.duration,g=c.velocity,x=c.isResolvedFromDuration,k=g||0,w=p/(2*Math.sqrt(h*m)),b=u-s,S=t4(Math.sqrt(h/m)),T=w*S,P=5>Math.abs(b);if(o||(o=P?is:iu),a||(a=P?il:ic),w<1){var E=ih(S,w),_=(k+T*b)/E,A=T*_+b*E,C=T*b-_*E,M=-1,V=0,D=0,R=function(t){if(t!==M){M=t;var e=Math.exp(-T*t),n=Math.sin(E*t),i=Math.cos(E*t);V=u-e*(_*n+b*i),D=e*(A*n+C*i)}};t=function(t){return R(t),V},e=function(t){return R(t),D}}else if(1===w){t=function(t){return u-Math.exp(-S*t)*(b+(k+S*b)*t)};var L=k+S*b;e=function(t){return Math.exp(-S*t)*(S*L*t-k)}}else{var j=S*Math.sqrt(w*w-1);t=function(t){var e=Math.exp(-T*t),n=Math.min(j*t,300);return u-e*((k+T*b)*Math.sinh(n)+j*b*Math.cosh(n))/j};var O=(k+T*b)/j,B=T*O-b*j,I=T*b-O*j;e=function(t){var e=Math.exp(-T*t),n=Math.min(j*t,300);return e*(B*Math.sinh(n)+I*Math.cosh(n))}}var F={calculatedDuration:x&&y||null,velocity:function(t){return t6(e(t))},next:function(n){var i=t(n);return x?l.done=n>=y:l.done=Math.abs(t6(e(n)))<=o&&Math.abs(u-i)<=a,l.value=l.done?u:i,l},toString:function(){var t=Math.min(ia(F),2e4),e=ey(function(e){return F.next(t*e).value},t,30);return t+"ms "+e},toTransition:function(){}};return F}function iy(t){var e,n,i=t.keyframes,r=t.velocity,o=t.power,a=t.timeConstant,s=void 0===a?325:a,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],x={done:!1,value:g},k=(void 0===o?.8:o)*(void 0===r?0:r),w=g+k,b=void 0===d?w:d(w);b!==w&&(k=b-g);var S=function(t){return-k*Math.exp(-t/s)},T=function(t){var e=S(t);x.done=Math.abs(e)<=m,x.value=x.done?b:b+e},P=function(t){var i,r;
1((i=x.value)<v||i>f)&&(e=t,n=im({keyframes:[x.value,(r=x.value,void 0===v?f:void 0===f||Math.abs(v-r)<Math.abs(f-r)?v:f)],velocity:-S(t)/s*1e3,damping:l,stiffness:h,restDelta:m,restSpeed:y}))};return P(0),{calculatedDuration:null,next:function(t){var i=!1;return(n||void 0!==e||(i=!0,T(t),P(t)),void 0!==e&&t>=e)?n.next(t-e):(i||T(t),x)}}}im.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,v._)((0,d._)({},t),{keyframes:[0,e]})),r=Math.min(ia(i),2e4);return{type:"keyframes",ease:function(t){return i.next(r*t).value/e},duration:t4(r)}}(t,100,im);return t.ease=e.ease,t.duration=t6(e.duration),t.type="keyframes",t};var ig=function(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t};function ix(t,e,n,i){if(t===e&&n===i)return tB;var r=function(e){var i,r,o=0,a=1,s=0;do(i=ig(r=o+(a-o)/2,t,n)-e)>0?a=r:o=r;while(Math.abs(i)>1e-7&&++s<12)return r};return function(t){return 0===t||1===t?t:ig(r(t),e,i)}}var ik=ix(.42,0,1,1),iw=ix(0,0,.58,1),ib=ix(.42,0,.58,1),iS=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},iT=function(t){return function(e){return 1-t(1-e)}},iP=ix(.33,1.53,.69,.99),iE=iT(iP),i_=iS(iE),iA=function(t){return t>=1?1:(t*=2)<1?.5*iE(t):.5*(2-Math.pow(2,-10*(t-1)))},iC=function(t){return 1-Math.sin(Math.acos(t))},iM=iT(iC),iV=iS(iC),iD={linear:tB,easeIn:ik,easeInOut:ib,easeOut:iw,circIn:iC,circInOut:iV,circOut:iM,backIn:iE,backInOut:i_,backOut:iP,anticipate:iA},iR=function(t){if(ep(t)){tv(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");var e=(0,g._)(t,4);return ix(e[0],e[1],e[2],e[3])}return"string"==typeof t?(tv(void 0!==iD[t],"Invalid easing type '".concat(t,"'"),"invalid-easing-type"),iD[t]):t},iL=function(t,e,n){var i=e-t;return i?(n-t)/i:1};function ij(t){var e,n,i=t.duration,r=void 0===i?300:i,o=t.keyframes,a=t.times,s=t.ease,u=void 0===s?"easeInOut":s,l=Array.isArray(u)&&"number"!=typeof u[0]?u.map(iR):iR(u),c={done:!1,value:o[0]},h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.clamp,r=n.ease,o=n.mixer,a=t.length;if(tv(a===e.length,"Both input and output ranges must be the same length","range-length"),1===a)return function(){return e[0]};if(2===a&&e[0]===e[1])return function(){return e[1]};var s=t[0]===t[1];t[0]>t[a-1]&&(t=(0,to._)(t).reverse(),e=(0,to._)(e).reverse());var u=function(t,e,n){for(var i=[],r=n||tI.mix||ir,o=t.length-1,a=0;a<o;a++){var s=r(t[a],t[a+1]);e&&(s=n0(Array.isArray(e)?e[a]||tB:e,s)),i.push(s)}return i}(e,r,o),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((0,f.clamp)(t[0],t[a-1],e))}:c}((n=a&&a.length===o.length?a:(!function(t,e){for(var n=t[t.length-1],i=1;i<=e;i++){var r=iL(0,e,i);t.push(e8(n,1,r))}}(e=[0],o.length-1),e),n.map(function(t){return t*r})),o,{ease:Array.isArray(l)?l:o.map(function(){return l||ib}).splice(0,o.length-1)});return{calculatedDuration:r,next:function(t){return c.value=h(t),c.done=t>=r,c}}}var iO={decay:iy,inertia:iy,tween:ij,keyframes:ij,spring:im};function iB(t){"string"==typeof t.type&&(t.type=iO[t.type])}var iI=function(t){return t/100},iF=function(t){function e(t){var n;return(0,a._)(this,e),(n=(0,o._)(this,e)).state="idle",n.startTime=null,n.isStopped=!1,n.currentTime=0,n.holdTime=null,n.playbackSpeed=1,n.delayState={done:!1,value:void 0},n.stop=function(){var t,e,i=n.options.motionValue;i&&i.updatedAt!==eE.now()&&n.tick(eE.now()),n.isStopped=!0,"idle"!==n.state&&(n.teardown(),null==(t=(e=n.options).onStop)||t.call(e))},n.options=t,n.initAnimation(),n.play(),!1===t.autoplay&&n.pause(),n}return(0,c._)(e,t),(0,s._)(e,[{key:"initAnimation",value:function(){var t=this.options;iB(t);var e=t.type,n=t.repeat,i=t.repeatDelay,r=void 0===i?0:i,o=t.repeatType,a=t.velocity,s=t.keyframes,u=(void 0===e?ij:e)||ij;u!==ij&&"number"!=typeof s[0]&&(this.mixKeyframes=n0(iI,ir(s[0],s[1])),s=[0,100]);var l=u((0,v._)((0,d._)({},t),{keyframes:s}
1));"mirror"===o&&(this.mirroredGenerator=u((0,v._)((0,d._)({},t),{keyframes:(0,to._)(s).reverse(),velocity:-(void 0===a?0:a)}))),null===l.calculatedDuration&&(l.calculatedDuration=ia(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,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.generator,r=this.totalDuration,o=this.mixKeyframes,a=this.mirroredGenerator,s=this.resolvedDuration,u=this.calculatedDuration;if(null===this.startTime)return i.next(0);var l=this.options,c=l.delay,h=l.keyframes,d=l.repeat,v=l.repeatType,p=l.repeatDelay,m=l.type,y=l.onUpdate,g=l.finalKeyframe;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);var x=this.currentTime-(void 0===c?0:c)*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?x<0:x>r;this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);var w=this.currentTime,b=i;if(d){var S=Math.min(this.currentTime,r)/s,T=Math.floor(S),P=S%1;!P&&S>=1&&(P=1),1===P&&T--,(T=Math.min(T,d+1))%2&&("reverse"===v?(P=1-P,p&&(P-=p/s)):"mirror"===v&&(b=a)),w=(0,f.clamp)(0,1,P)*s}k?(this.delayState.value=h[0],e=this.delayState):e=b.next(w),o&&!k&&(e.value=o(e.value));var E=e.done;k||null===u||(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);var _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return _&&m!==iy&&(e.value=ev(h,this.options,g,this.speed)),y&&y(e.value),_&&this.finish(),e}},{key:"then",value:function(t,e){return this.finished.then(t,e)}},{key:"duration",get:function(){return t4(this.calculatedDuration)}},{key:"iterationDuration",get:function(){var t=(this.options||{}).delay;return this.duration+t4(void 0===t?0:t)}},{key:"time",get:function(){return t4(this.currentTime)},set:function(t){t=t6(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}},{key:"getGeneratorVelocity",value:function(){var t,e,n=this,i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);return e_(this.generator.next(i).value-(t=e=Math.max(i-5,0),n.generator.next(t).value),i-e)}},{key:"speed",get:function(){return this.playbackSpeed},set:function(t){var e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(eE.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=t4(this.currentTime))}},{key:"play",value:function(){var t,e,n=this;if(!this.isStopped){var i=this.options,r=i.driver,o=i.startTime;this.driver||(this.driver=(void 0===r?io:r)(function(t){return n.tick(t)})),null==(t=(e=this.options).onPlay)||t.call(e);var a=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=a):null!==this.holdTime?this.startTime=a-this.holdTime:this.startTime||(this.startTime=null!=o?o:a),"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(eE.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}},{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}
1(ef),iU={anticipate:iA,backInOut:i_,circInOut:iV},iW=function(t){function e(t){var n;return(0,a._)(this,e),"string"==typeof t.ease&&t.ease in iU&&(t.ease=iU[t.ease]),iB(t),n=(0,o._)(this,e,[t]),void 0!==t.startTime&&!1!==t.autoplay&&(n.startTime=t.startTime),n.options=t,n}return(0,c._)(e,t),(0,s._)(e,[{key:"updateMotionValue",value:function(t){var e=this.options,n=e.motionValue,i=(e.onUpdate,e.onComplete,e.element),r=t9(e,["motionValue","onUpdate","onComplete","element"]);if(n){if(void 0!==t)return void n.set(t);var o=new iF((0,v._)((0,d._)({},r),{autoplay:!1})),a=Math.max(10,eE.now()-this.startTime),s=(0,f.clamp)(0,10,a-10),u=o.sample(a).value,l=this.options.name;i&&l&&es(i,l,u),n.setWithVelocity(o.sample(Math.max(0,a-s)).value,u,s),o.stop()}}}]),e}(ew),iN=function(t,e){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(N.test(t)||"0"===t)&&!t.startsWith("url("))};function iz(t){t.duration=0,t.type="keyframes"}var iY=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,iX=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iK=eu(function(){return Object.hasOwnProperty.call(Element.prototype,"animate")}),iH=function(t){function e(t){(0,a._)(this,e);var n,i,r=t.autoplay,s=t.delay,u=t.type,l=t.repeat,c=t.repeatDelay,h=t.repeatType,v=t.keyframes,f=t.name,p=t.motionValue,m=t.element,y=t9(t,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);(n=(0,o._)(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=eE.now();var g=(0,d._)({autoplay:void 0===r||r,delay:void 0===s?0:s,type:void 0===u?"keyframes":u,repeat:void 0===l?0:l,repeatDelay:void 0===c?0:c,repeatType:void 0===h?"loop":h,name:f,motionValue:p,element:m},y);return n.keyframeResolver=new((null==m?void 0:m.KeyframeResolver)||tJ)(v,function(t,e,i){return n.onKeyframesResolved(t,e,g,!i)},f,p,m),null==(i=n.keyframeResolver)||i.scheduleResolve(),n}return(0,c._)(e,t),(0,s._)(e,[{key:"onKeyframesResolved",value:function(t,e,n,i){var r,o,a,s=this;this.keyframeResolver=void 0;var u=n.name,l=n.type,c=n.velocity,h=n.delay,f=n.isHandoff,p=n.onUpdate;this.resolvedAt=eE.now();var m=!0;!function(t,e,n,i){var r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;var o=t[t.length-1],a=iN(r,e),s=iN(o,e);return td(a===s,"You are trying to animate ".concat(e,' from "').concat(r,'" to "').concat(o,'". "').concat(a?o:r,'" is not an animatable value.'),"value-not-animatable"),!!a&&!!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||ek(n))&&i)}(t,u,l,c)&&(m=!1,(tI.instantAnimations||!h)&&(null==p||p(ev(t,n,e))),t[0]=t[t.length-1],iz(n),n.repeat=0);var y=i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,g=(0,v._)((0,d._)({startTime:y,finalKeyframe:e},n),{keyframes:t}),x=m&&!f&&function(t){var e,n=t.motionValue,i=t.name,r=t.repeatDelay,o=t.repeatType,a=t.damping,s=t.type,u=t.keyframes,l=null==n||null==(e=n.owner)?void 0:e.current;if(!(0,t5._)(l,HTMLElement)&&!(0,t5._)(l,SVGElement))return!1;var c=n.owner.getProps(),h=c.onUpdate,d=c.transformTemplate;return iK()&&i&&(eb.has(i)||iX.has(i)&&function(t){for(var e=0;e<t.length;e++)if("string"==typeof t[e]&&iY.test(t[e]))return!0;return!1}(u))&&("transform"!==i||!d)&&!h&&!r&&"mirror"!==o&&0!==a&&"inertia"!==s}(g),k=null==(o=g.motionValue)||null==(r=o.owner)?void 0:r.current;if(x)try{a=new iW((0,v._)((0,d._)({},g),{element:k}))}catch(t){a=new iF(g)}else a=new iF(g);a.finished.then(function(){s.notifyFinished()}).catch(tB),this.pendingTimeline&&(this.stopTimeline=a.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=a}},{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(),tq=!0,t$(),tZ(),tq=!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}(ef),iG={type:"spring",stiffness:500,damping:25,restSpeed:10},iq={type:"keyframes",duration:.8},iZ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},i$=function(t,e){var n=e.keyframes;return n.length>2?iq:h.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:iG:iZ},iJ=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iQ=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return function(a){var s=n$(i,t)||{},u=s.delay||i.delay||0,l=i.elapsed,c=void 0===l?0:l;c-=t6(u);var h=(0,v._)((0,d._)({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(){a(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:o?void 0:r});!function(t){for(var e in t)if(!iJ.has(e))return!0;return!1}(s)&&Object.assign(h,i$(t,h)),h.duration&&(h.duration=t6(h.duration)),h.repeatDelay&&(h.repeatDelay=t6(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);var f=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(iz(h),0===h.delay&&(f=!0)),(tI.instantAnimations||tI.skipAnimations||(null==r?void 0:r.shouldSkipAnimations)||s.skipAnimations)&&(f=!0,iz(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,f&&!o&&void 0!==e.get()){var p=ev(h.keyframes,s);if(void 0!==p)return void tN.update(function(){h.onUpdate(p),h.onComplete()})}return s.isSync?new iF(h):new iH(h)}},i0="u">typeof window;function i1(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.delay,r=void 0===i?0:i,o=n.transitionOverride,a=n.type,s=e.transition,u=e.transitionEnd,l=t9(e,["transition","transitionEnd"]),c=t.getDefaultTransition(),h=null==(s=s?nZ(s,c):c)?void 0:s.reduceMotion,v=null==s?void 0:s.skipAnimations;o&&(s=o);var f=[],p=a&&t.animationState&&t.animationState.getState()[a],m=null==s?void 0:s.path;for(var y in m&&m.animateVisualElement(t,l,s,r,f),l)!function(e){var n,i,o,a,u=t.getValue(e,null!=(a=t.latestValues[e])?a:null),c=l[e];
1if(void 0!==c&&(!p||(n=p.protectedKeys,i=p.needsAnimating,o=n.hasOwnProperty(e)&&!0!==i[e],i[e]=!1,!o))){var m=(0,d._)({delay:r},n$(s||{},e));v&&(m.skipAnimations=!0);var y=u.get();if(void 0!==y&&!u.isAnimating()&&!Array.isArray(c)&&c===y&&!m.velocity)return tN.update(function(){return u.set(c)});var g=!1;if(i0&&window.MotionHandoffAnimation){var x=t.props[nz];if(x){var k=window.MotionHandoffAnimation(x,e,tN);null!==k&&(m.startTime=k,g=!0)}}nQ(t,e);var w=null!=h?h:t.shouldReduceMotion;u.start(iQ(e,u,c,w&&ta.has(e)?{type:!1}:m,t,g));var b=u.animation;b&&f.push(b)}}(y);if(u){var g=function(){return tN.update(function(){u&&function(t,e){var n=nq(t,e)||{},i=n.transitionEnd,r=(n.transition,t9(n,["transitionEnd","transition"]));for(var o in r=(0,d._)({},r,void 0===i?{}:i)){var a,s=nJ(a=r[o])?a[a.length-1]||0:a;t.hasValue(o)?t.getValue(o).set(s):t.addValue(o,eM(s))}}(t,u)})};f.length?Promise.all(f).then(g):g()}return f}function i2(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,o=Array.from(t).sort(function(t,e){return t.sortNodePosition(e)}).indexOf(e),a=t.size,s=(a-1)*i;return"function"==typeof n?n(o,a):1===r?o*i:s-o*i}function i3(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=nq(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),o=(r||{}).transition,a=void 0===o?t.getDefaultTransition()||{}:o;i.transitionOverride&&(a=i.transitionOverride);var s=r?function(){return Promise.all(i1(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=a.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,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=arguments.length>6?arguments[6]:void 0,s=[],u=!0,l=!1,c=void 0;try{for(var h,f=t.variantChildren[Symbol.iterator]();!(u=(h=f.next()).done);u=!0)!function(){var u=h.value;u.notify("AnimationStart",e),s.push(i3(u,e,(0,v._)((0,d._)({},a),{delay:n+("function"==typeof i?0:i)+i2(t.variantChildren,u,i,r,o)})).then(function(){return u.notify("AnimationComplete",e)}))}()}catch(t){l=!0,c=t}finally{try{u||null==f.return||f.return()}finally{if(l)throw c}}return Promise.all(s)}(t,e,n,void 0===r?0:r,a.staggerChildren,a.staggerDirection,i)}:function(){return Promise.resolve()},l=a.when;if(!l)return Promise.all([s(),u(i.delay)]);var c=(0,g._)("beforeChildren"===l?[s,u]:[u,s],2),h=c[0],f=c[1];return h().then(function(){return f()})}var i5=eO.length;function i9(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 i6=(0,to._)(ej).reverse(),i4=ej.length;function i7(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i8(){return{animate:i7(!0),whileInView:i7(),whileHover:i7(),whileTap:i7(),whileDrag:i7(),whileFocus:i7(),exit:i7()}}var rt=function(t){function e(t){var n;return(0,a._)(this,e),n=(0,o._)(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 i3(t,e,i)}));else if("string"==typeof e)n=i3(t,e,i);else{var r="function"==typeof e?nq(t,e,i.custom):e;n=Promise.all(i1(t,r,i))}return n.then(function(){t.notify("AnimationComplete",e)})}(t,e.animation,e.options)}))},n=i8(),i=!0,r=!1;function o(o){for(var a=t.props,s=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<i5;r++){var o=eO[r],a=e.props[o];(eL(a)||!1===a)&&(i[o]=a)}return i}}(t.parent)||{},u=[],l=new Set,c={},h=1/0,v=0;v<i4;v++)!function(e){var v,f,p=i6[e],m=n[p],y=void 0!==a[p]?a[p]:s[p],g=eL(y),x=p===o?m.isActive:null;!1===x&&(h=e);var k=y===s[p]&&y!==a[p]&&g;if(k&&(i||r)&&t.manuallyAnimateOnMount&&(k=!1),m.protectedKeys=(0,d._)({},c),!(!m.isActive&&null===x||!y&&!m.prevProp||eR(y))&&"boolean"!=typeof y){if("exit"===p&&m.isActive&&!0!==x)return m.prevResolvedValues&&(c=(0,d._)({},c,m.prevResolvedValues));var w=(v=m.prevProp,"string"==typeof(f=y)?f!==v:!!Array.isArray(f)&&!i9(f,v)),b=w||p===o&&m.isActive&&!k&&g||e>h&&g,S=!1,T=Array.isArray(y)?y:[y],P=T.reduce(function(e,n){var i,r=nq(t,n,"exit"===p?null==(i=t.presenceContext)?void 0:i.custom:void 0);if(r){r.transition;var o=r.transitionEnd,a=t9(r,["transition","transitionEnd"]);e=(0,d._)({},e,a,o)}return e},{});!1===x&&(P={});var E=m.prevResolvedValues,_=void 0===E?{}:E,A=(0,d._)({},_,P),C=function(e){b=!0,l.has(e)&&(S=!0,l.delete(e)),m.needsAnimating[e]=!0;var n=t.getValue(e);n&&(n.liveStyle=!1)};for(var M in A){var V=P[M],D=_[M];!c.hasOwnProperty(M)&&((nJ(V)&&nJ(D)?!i9(V,D)||w:V!==D)?null!=V?C(M):l.add(M):void 0!==V&&l.has(M)?C(M):m.protectedKeys[M]=!0)}m.prevProp=y,m.prevResolvedValues=P,m.isActive&&(c=(0,d._)({},c,P)),(i||r)&&t.blockInitialAnimation&&(b=!1);var R=k&&w,L=!R||S;b&&L&&u.push.apply(u,(0,to._)(T.map(function(e){var n={type:p};if("string"==typeof e&&(i||r)&&!R&&t.manuallyAnimateOnMount&&t.parent){var o=t.parent,a=nq(o,e);
1if(o.enteringChildren&&a){var s=(a.transition||{}).delayChildren;n.delay=i2(o.enteringChildren,t,s)}}return{animation:e,options:n}})))}}(v);if(l.size){var f={};if("boolean"!=typeof a.initial){var p=nq(t,Array.isArray(a.initial)?a.initial[0]:a.initial);p&&p.transition&&(f.transition=p.transition)}l.forEach(function(e){var n=t.getBaseTarget(e),i=t.getValue(e);i&&(i.liveStyle=!0),f[e]=null!=n?n:null}),u.push({animation:f})}var m=!!u.length;return i&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),i=!1,r=!1,m?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(function(t){var n;return null==(n=t.animationState)?void 0:n.setActive(e,i)}),n[e].isActive=i;var r,a=o(e);for(var s in n)n[s].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:function(){return n},reset:function(){n=i8(),r=!0}}}(t)),n}return(0,c._)(e,t),(0,s._)(e,[{key:"updateAnimationControlsSubscription",value:function(){var t=this.node.getProps().animate;eR(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}(nG),re=0,rn=function(t){function e(){var t;return(0,a._)(this,e),t=(0,o._)(this,e,arguments),t.id=re++,t.isExitComplete=!1,t}return(0,c._)(e,t),(0,s._)(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){if(n&&!1===r){if(this.isExitComplete){var o=this.node.getProps(),a=o.initial,s=o.custom;if("string"==typeof a||(void 0===a?"undefined":(0,H._)(a))==="object"&&null!==a&&!Array.isArray(a)){var u=nq(this.node,a,s);if(u){u.transition,u.transitionEnd;var l,c=t9(u,["transition","transitionEnd"]);for(var h in c)null==(l=this.node.getValue(h))||l.jump(c[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}var d=this.node.animationState.setActive("exit",!n);i&&!n&&d.then(function(){t.isExitComplete=!0,i(t.id)})}}}},{key:"mount",value:function(){var t=this.node.presenceContext||{},e=t.register,n=t.onExitComplete;n&&n(this.id),e&&(this.unmount=e(this.id))}},{key:"unmount",value:function(){}}]),e}(nG);function ri(t){return[t("x"),t("y")]}function rr(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,i)}}var ro={x:!1,y:!1};function ra(t){return t.max-t.min}function rs(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=i,t.originPoint=e8(e.min,e.max,t.origin),t.scale=ra(n)/ra(e),t.translate=e8(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 ru(t,e,n,i){rs(t.x,e.x,n.x,i?i.originX:void 0),rs(t.y,e.y,n.y,i?i.originY:void 0)}function rl(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.min=(i?e8(n.min,n.max,i):n.min)+e.min,t.max=t.min+ra(e)}function rc(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=i?e8(n.min,n.max,i):n.min;t.min=e.min-r,t.max=t.min+ra(e)}function rh(t,e,n,i){rc(t.x,e.x,n.x,null==i?void 0:i.x),rc(t.y,e.y,n.y,null==i?void 0:i.y)}var rd=function(t){return(void 0===t?"undefined":(0,H._)(t))==="object"&&null!==t};function rv(t){return rd(t)&&"ownerSVGElement"in t}function rf(t,e,n){if(null==t)return[];if((0,t5._)(t,EventTarget))return[t];if("string"==typeof t){var i,r=document;e&&(r=e.current);var o=null!=(i=null==n?void 0:n[t])?i:r.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t).filter(function(t){return null!=t})}var rp=new WeakMap,rm=function(t,e,n){return function(i,r){return r&&r[0]?r[0][t+"Size"]:rv(i)&&"getBBox"in i?i.getBBox()[e]:i[n]}},ry=rm("inline","width","offsetWidth"),rg=rm("block","height","offsetHeight");function rx(t){var e,n=t.target,i=t.borderBoxSize;null==(e=rp.get(n))||e.forEach(function(t){t(n,{get width(){return ry(n,i)},get height(){return rg(n,i)}})})}function rk(t){t.forEach(rx)}var rw=new Set;function rb(t,e){var n;return"function"==typeof t?(rw.add(t),r||(r=function(){var t={get width(){return window.innerWidth},get height(){return window.innerHeight}};
1rw.forEach(function(e){return e(t)})},window.addEventListener("resize",r)),function(){rw.delete(t),rw.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(rk)),(n=rf(t)).forEach(function(t){var n=rp.get(t);n||(n=new Set,rp.set(t,n)),n.add(e),null==i||i.observe(t)}),function(){n.forEach(function(t){var n=rp.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==i||i.unobserve(t)})})}var rS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rT=new Set(["INPUT","SELECT","TEXTAREA"]),rP=function(t){return"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary};function rE(t){return{point:{x:t.pageX,y:t.pageY}}}function r_(t,e,n,i){return rr(t,e,function(t){return rP(t)&&n(t,rE(t))},i)}var rA=function(t){var e=t.current;return e?e.ownerDocument.defaultView:null},rC=function(t,e){return Math.abs(t-e)},rM=new Set(["auto","scroll"]),rV=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.transformPagePoint,s=r.contextWindow,u=void 0===s?window:s,l=r.dragSnapToOrigin,c=r.distanceThreshold,h=r.element;if((0,a._)(this,t),this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=function(t){i.handleScroll(t.target)},this.onWindowScroll=function(){i.handleScroll(window)},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){i.lastRawMoveEventInfo&&(i.lastMoveEventInfo=rD(i.lastRawMoveEventInfo,i.transformPagePoint));var t,e,n=rL(i.lastMoveEventInfo,i.history),r=null!==i.startEvent,o=(t=n.offset,e={x:0,y:0},Math.sqrt(Math.pow(rC(t.x,e.x),2)+Math.pow(rC(t.y,e.y),2))>=i.distanceThreshold);if(r||o){var a=n.point,s=tY.timestamp;i.history.push((0,v._)((0,d._)({},a),{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.lastRawMoveEventInfo=e,i.lastMoveEventInfo=rD(e,i.transformPagePoint),tN.update(i.updatePoint,!0)},this.handlePointerUp=function(t,e){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=n.resumeAnimation;if((i.dragSnapToOrigin||!i.startEvent)&&a&&a(),i.lastMoveEvent&&i.lastMoveEventInfo){var s=rL("pointercancel"===t.type?i.lastMoveEventInfo:rD(e,i.transformPagePoint),i.history);i.startEvent&&r&&r(t,s),o&&o(t,s)}},rP(e)){this.dragSnapToOrigin=void 0!==l&&l,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=void 0===c?3:c,this.contextWindow=u||window;var f=rD(rE(e),this.transformPagePoint),p=f.point,m=tY.timestamp;this.history=[(0,v._)((0,d._)({},p),{timestamp:m})];var y=n.onSessionStart;y&&y(e,rL(f,this.history));var g={passive:!0,capture:!0};this.removeListeners=n0(r_(this.contextWindow,"pointermove",this.handlePointerMove,g),r_(this.contextWindow,"pointerup",this.handlePointerUp,g),r_(this.contextWindow,"pointercancel",this.handlePointerUp,g)),h&&this.startScrollTracking(h)}}return(0,s._)(t,[{key:"startScrollTracking",value:function(t){for(var e=this,n=t.parentElement;n;){var i=getComputedStyle(n);(rM.has(i.overflowX)||rM.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=function(){window.removeEventListener("scroll",e.onElementScroll,{capture:!0}),window.removeEventListener("scroll",e.onWindowScroll)}}},{key:"handleScroll",value:function(t){var e=this.scrollPositions.get(t);if(e){var n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:i.x-e.x,y:i.y-e.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,i),tN.update(this.updatePoint,!0))}}},{key:"updateHandlers",value:function(t){this.handlers=t}},{key:"end",value:function(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tz(this.updatePoint)}}]),t}();function rD(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 rL(t,e){var n=t.point;return{point:n,delta:rR(n,rj(e)),offset:rR(n,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};for(var e=t.length-1,n=null,i=rj(t);e>=0&&(n=t[e],!(i.timestamp-n.timestamp>t6(.1)));)e--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&i.timestamp-n.timestamp>2*t6(.1)&&(n=t[1]);var r=t4(i.timestamp-n.timestamp);if(0===r)return{x:0,y:0};var o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function rj(t){return t[t.length-1]}function rO(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 rB(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 rI(t,e,n){return{min:rF(t,e),max:rF(t,n)}}function rF(t,e){return"number"==typeof t?t:t[e]||0}var rU=new WeakMap,rW=function(){function t(e){(0,a._)(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=ti(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}return(0,s._)(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,o=n.distanceThreshold,a=this.visualElement.presenceContext;if(!a||!1!==a.isPresent){var s=this.getProps().dragSnapToOrigin;this.panSession=new rV(t,{onSessionStart:function(t){r&&e.snapToCursor(rE(t).point),e.stopAnimation()},onStart:function(t,n){var i=e.getProps(),r=i.drag,o=i.dragPropagation,a=i.onDragStart;if(!r||o||(e.openDragLock&&e.openDragLock(),e.openDragLock=function(t){if("x"===t||"y"===t)if(ro[t])return null;else return ro[t]=!0,function(){ro[t]=!1};return ro.x||ro.y?null:(ro.x=ro.y=!0,function(){ro.x=ro.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),ri(function(t){var n=e.getAxisMotionValue(t).get()||0;if(A.test(n)){var i=e.visualElement.projection;if(i&&i.layout){var r=i.layout.layoutBox[t];r&&(n=ra(r)*(parseFloat(n)/100))}}e.originPoint[t]=n}),a&&tN.update(function(){return a(t,n)},!1,!0),nQ(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,o=i.dragDirectionLock,a=i.onDirectionLock,s=i.onDrag;if(r||e.openDragLock){var u=n.offset;if(o&&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&&a&&a(e.currentDirection);return}e.updateAxis("x",n.point,u),e.updateAxis("y",n.point,u),e.visualElement.render(),s&&tN.update(function(){return s(t,n)},!1,!0)}},onSessionEnd:function(t,n){e.latestPointerEvent=t,e.latestPanInfo=n,e.stop(t,n),e.latestPointerEvent=null,e.latestPanInfo=null},resumeAnimation:function(){(e.getProps().dragSnapToOrigin||e.constraints)&&e.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:o,contextWindow:rA(this.visualElement),element:this.visualElement.current})}}},{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 o=i.velocity;this.startAnimation(o);var a=this.getProps().onDragEnd;a&&tN.postRender(function(){return a(n,i)})}}},{key:"cancel",value:function(){this.isDragging=!1;var t=this.visualElement,e=t.projection,n=t.animationState;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}},{key:"endPanSession",value:function(){this.panSession&&this.panSession.end(),this.panSession=void 0}},{key:"updateAxis",value:function(t,e,n){var i=this.getProps().drag;if(n&&rz(t,i,this.currentDirection)){var r,o,a,s,u,l=this.getAxisMotionValue(t),c=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=c,o=this.constraints[t],a=this.elastic[t],s=o.min,u=o.max,void 0!==s&&r<s?r=a?e8(s,r,a.min):Math.max(r,s):void 0!==u&&r>u&&(r=a?e8(u,r,a.max):Math.min(r,u)),c=r),l.set(c)}}},{key:"resolveConstraints",value:function(){var t,e,n,i,r,o,a=this,s=this.getProps(),u=s.dragConstraints,l=s.dragElastic,c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(o=this.visualElement.projection)?void 0:o.layout,h=this.constraints;u&&nX(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:rO(t.x,n,r),y:rO(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:rI(t,"left","right"),y:rI(t,"top","bottom")}}(l),h!==this.constraints&&!nX(u)&&c&&this.constraints&&!this.hasMutatedConstraints&&ri(function(t){var e,n,i;!1!==a.constraints&&a.getAxisMotionValue(t)&&(a.constraints[t]=(e=c.layoutBox[t],n=a.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||!nX(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;r.root&&(r.root.scroll=void 0,r.root.updateScroll());var o=(s=r.root,u=ny(i,this.visualElement.getTransformPagePoint()),(l=s.scroll)&&(nv(u.x,l.offset.x),nv(u.y,l.offset.y)),u),a=(c=r.layout.layoutBox,{x:rB(c.x,o.x),y:rB(c.y,o.y)});if(n){var s,u,l,c,h,d,v,f=n((d=(h=a).x,{top:(v=h.y).min,right:d.max,bottom:v.max,left:d.min}));this.hasMutatedConstraints=!!f,f&&(a=no(f))}return a}},{key:"startAnimation",value:function(t){var e=this,n=this.getProps(),i=n.drag,r=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{};return Promise.all(ri(function(n){if(rz(n,i,e.currentDirection)){var u=l&&l[n]||{};(!0===s||s===n)&&(u={min:0,max:0});var c=(0,d._)({type:"inertia",velocity:r?t[n]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},a,u);return e.startAxisValueAnimation(n,c)}})).then(u)}},{key:"startAxisValueAnimation",value:function(t,e){var n=this.getAxisMotionValue(t);return nQ(this.visualElement,t),n.start(iQ(t,n,0,e,this.visualElement,!1))}},{key:"stopAnimation",value:function(){var t=this;ri(function(e){return t.getAxisMotionValue(e).stop()})}},{key:"getAxisMotionValue",value:function(t){var e,n="_drag".concat(t.toUpperCase());return this.visualElement.getProps()[n]||this.visualElement.getValue(t,null!=(e=this.visualElement.latestValues[t])?e:0)}},{key:"snapToCursor",value:function(t){var e=this;ri(function(n){if(rz(n,e.getProps().drag,e.currentDirection)){var i=e.visualElement.projection,r=e.getAxisMotionValue(n);if(i&&i.layout){var o=i.layout.layoutBox[n],a=o.min,s=o.max,u=r.get()||0;r.set(t[n]-e8(a,s,.5)+u)}}})}},{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(nX(i)&&r&&this.constraints){this.stopAnimation();var o={x:0,y:0};ri(function(e){var n=t.getAxisMotionValue(e);if(n&&!1!==t.constraints){var i,r,a,s,u,l=n.get();o[e]=(i={min:l,max:l},r=t.constraints[e],a=.5,s=ra(i),(u=ra(r))>s?a=iL(r.min,r.max-s,i.min):s>u&&(a=iL(i.min,i.max-u,r.min)),(0,f.clamp)(0,1,a))}});var a=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),ri(function(e){if(rz(e,n,null)){var i=t.getAxisMotionValue(e),r=t.constraints[e],a=r.min,s=r.max;i.set(e8(a,s,o[e]))}}),this.visualElement.render()}}}},{key:"addListeners",value:function(){var t,e=this;if(this.visualElement.current){rU.set(this.visualElement,this);var n=this.visualElement.current,i=r_(n,"pointerdown",function(t){var i=e.getProps(),r=i.drag,o=i.dragListener,a=t.target,s=a!==n&&(rT.has(a.tagName)||!0===a.isContentEditable);r&&(void 0===o||o)&&!s&&e.start(t)}),r=function(){var i,r,o,a,s,u=e.getProps().dragConstraints;nX(u)&&u.current&&(e.constraints=e.resolveRefConstraints(),t||(i=n,r=u.current,a=rb(i,rN(o=function(){return e.scalePositionWithinConstraints()})),s=rb(r,rN(o)),t=function(){a(),s()}))},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),tN.read(r);var s=rr(window,"resize",function(){return e.scalePositionWithinConstraints()}),u=o.addEventListener("didUpdate",function(t){var n=t.delta,i=t.hasLayoutChanged;e.isDragging&&i&&(ri(function(t){var i=e.getAxisMotionValue(t);i&&(e.originPoint[t]+=n[t].translate,i.set(i.get()+n[t].translate))}),e.visualElement.render())});return function(){s(),i(),a(),u&&u(),t&&t()}}}},{key:"getProps",value:function(){var t=this.visualElement.getProps(),e=t.drag,n=t.dragDirectionLock,i=t.dragPropagation,r=t.dragConstraints,o=t.dragElastic,a=t.dragMomentum;return(0,v._)((0,d._)({},t),{drag:void 0!==e&&e,dragDirectionLock:void 0!==n&&n,dragPropagation:void 0!==i&&i,dragConstraints:void 0!==r&&r,dragElastic:void 0===o?.35:o,dragMomentum:void 0===a||a})}}]),t}();function rN(t){var e=!0;return function(){if(e){e=!1;return}t()}}function rz(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var rY=function(t){function e(t){var n;return(0,a._)(this,e),(n=(0,o._)(this,e,[t])).removeGroupControls=tB,n.removeListeners=tB,n.controls=new rW(t),n}return(0,c._)(e,t),(0,s._)(e,[{key:"mount",value:function(){var t=this.node.getProps().dragControls;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tB}},{key:"update",value:function(){var t=this.node.getProps().dragControls;t!==(this.node.prevProps||{}).dragControls&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}},{key:"unmount",value:function(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}]),e}(nG),rX=function(t){return function(e,n){t&&tN.update(function(){return t(e,n)},!1,!0)}},rK=function(t){function e(){var t;return(0,a._)(this,e),t=(0,o._)(this,e,arguments),t.removePointerDownListener=tB,t}return(0,c._)(e,t),(0,s._)(e,[{key:"onPointerDown",value:function(t){this.session=new rV(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rA(this.node)})}},{key:"createPanHandlers",value:function(){var t=this,e=this.node.getProps(),n=e.onPanSessionStart,i=e.onPanStart,r=e.onPan,o=e.onPanEnd;return{onSessionStart:rX(n),onStart:rX(i),onMove:rX(r),onEnd:function(e,n){delete t.session,o&&tN.postRender(function(){return o(e,n)})}}}},{key:"mount",value:function(){var t=this;this.removePointerDownListener=r_(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}(nG),rH={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rG(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,nx.useContext)(nL);if(null===e)return[!0,null];var n=e.isPresent,i=e.onExitComplete,r=e.register,o=(0,nx.useId)();(0,nx.useEffect)(function(){if(t)return r(o)},[t]);var a=(0,nx.useCallback)(function(){return t&&i&&i(o)},[o,i,t]);return!n&&i?[!1,a]:[!0]}t.s(["usePresence",0,rG],86398);var rq=!1,rZ=function(t){function e(){return(0,a._)(this,e),(0,o._)(this,e,arguments)}
1return(0,c._)(e,t),(0,s._)(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.visualElement,i=e.layoutGroup,r=e.switchLayoutGroup,o=e.layoutId,a=n.projection;a&&(i.group&&i.group.add(a),r&&r.register&&o&&r.register(a),rq&&a.root.didUpdate(),a.addEventListener("animationComplete",function(){t.safeToRemove()}),a.setOptions((0,v._)((0,d._)({},a.options),{layoutDependency:this.props.layoutDependency,onExitComplete:function(){return t.safeToRemove()}}))),rH.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(t){var e=this,n=this.props,i=n.layoutDependency,r=n.visualElement,o=n.drag,a=n.isPresent,s=r.projection;return s&&(s.isPresent=a,t.layoutDependency!==i&&s.setOptions((0,v._)((0,d._)({},s.options),{layoutDependency:i})),rq=!0,o||t.layoutDependency!==i||void 0===i||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||tN.postRender(function(){var t=s.getStack();t&&t.members.length||e.safeToRemove()}))),null}},{key:"componentDidUpdate",value:function(){var t=this,e=this.props,n=e.visualElement,i=e.layoutAnchor,r=n.projection;r&&(r.options.layoutAnchor=i,r.root.didUpdate(),eT.postRender(function(){!r.currentAnimation&&r.isLead()&&t.safeToRemove()}))}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,i=t.switchLayoutGroup,r=e.projection;rq=!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}(nx.Component);function r$(t){var e=(0,g._)(rG(),2),n=e[0],i=e[1],r=(0,nx.useContext)(nS);return(0,nb.jsx)(rZ,(0,v._)((0,d._)({},t),{layoutGroup:r,switchLayoutGroup:(0,nx.useContext)(nY),isPresent:n,safeToRemove:i}))}var rJ=e6.length,rQ=function(t){return"string"==typeof t?parseFloat(t):t},r0=function(t){return"number"==typeof t||C.test(t)};function r1(t,e){return void 0!==t[e]?t[e]:t.borderRadius}var r2=r5(0,.5,iM),r3=r5(.5,.95,tB);function r5(t,e,n){return function(i){return i<t?0:i>e?1:n(iL(t,e,i))}}function r9(t,e){t.min=e.min,t.max=e.max}function r6(t,e){r9(t.x,e.x),r9(t.y,e.y)}function r4(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function r7(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 r8(t,e,n,i,r){var o=(0,g._)(n,3),a=o[0],s=o[1],u=o[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,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(A.test(e)&&(e=parseFloat(e),e=e8(a.min,a.max,e/100)-a.min),"number"==typeof e){var s=e8(o.min,o.max,i);t===o&&(s-=e),t.min=r7(t.min,e,n,s,r),t.max=r7(t.max,e,n,s,r)}}(t,e[a],e[s],e[u],e.scale,i,r)}var ot=["x","scaleX","originX"],oe=["y","scaleY","originY"];function on(t,e,n,i){r8(t.x,e,ot,n?n.x:void 0,i?i.x:void 0),r8(t.y,e,oe,n?n.y:void 0,i?i.y:void 0)}function oi(t){return 0===t.translate&&1===t.scale}function or(t){return oi(t.x)&&oi(t.y)}function oo(t,e){return t.min===e.min&&t.max===e.max}function oa(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function os(t,e){return oa(t.x,e.x)&&oa(t.y,e.y)}function ou(t){return ra(t.x)/ra(t.y)}function ol(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var oc=function(){function t(){(0,a._)(this,t),this.members=[]}return(0,s._)(t,[{key:"add",value:function(t){ei(this.members,t);for(var e=this.members.length-1;e>=0;e--){var n=this.members[e];if(n!==t&&n!==this.lead&&n!==this.prevLead){var i=n.instance;i&&!1!==i.isConnected||n.snapshot||(er(this.members,n),n.unmount())}}t.scheduleRender()}},{key:"remove",value:function(t){if(er(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){for(var e=this.members.indexOf(t)-1;e>=0;e--){var n,i=this.members[e];if(!1!==i.isPresent&&(null==(n=i.instance)?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}},{key:"promote",value:function(t,e){var n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();var i,r=n.options.layoutDependency,o=t.options.layoutDependency;(void 0===r||r!==o)&&(t.resumeFrom=n,e&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),(null==(i=t.root)?void 0:i.isUpdating)&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&n.hide()}}},{key:"exitAnimationComplete",value:function(){this.members.forEac
1h(function(t){var e,n,i,r,o;null==(e=(n=t.options).onExitComplete)||e.call(n),null==(r=t.resumingFrom)||null==(i=(o=r.options).onExitComplete)||i.call(o)})}},{key:"scheduleRender",value:function(){this.members.forEach(function(t){return t.instance&&t.scheduleRender(!1)})}},{key:"removeLeadSnapshot",value:function(){var t;(null==(t=this.lead)?void 0:t.snapshot)&&(this.lead.snapshot=void 0)}}]),t}(),oh=function(t,e){return t.depth-e.depth},od=function(){function t(){(0,a._)(this,t),this.children=[],this.isDirty=!1}return(0,s._)(t,[{key:"add",value:function(t){ei(this.children,t),this.isDirty=!0}},{key:"remove",value:function(t){er(this.children,t),this.isDirty=!0}},{key:"forEach",value:function(t){this.isDirty&&this.children.sort(oh),this.isDirty=!1,this.children.forEach(t)}}]),t}(),ov=["","X","Y","Z"],of=0;function op(t,e,n,i){var r=e.latestValues;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function om(t){var e=t.attachResizeListener,n=t.defaultParent,i=t.measureScroll,r=t.checkIsScrollRoot,o=t.resetTransform;function u(){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();(0,a._)(this,u),this.id=of++,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()},this.projectionUpdateScheduled=!1,this.checkUpdateFailed=function(){t.isUpdating&&(t.isUpdating=!1,t.clearAllSnapshots())},this.updateProjection=function(){t.projectionUpdateScheduled=!1,t.nodes.forEach(ox),t.nodes.forEach(oA),t.nodes.forEach(oC),t.nodes.forEach(ok)},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,to._)(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 od)}return(0,s._)(u,[{key:"addEventListener",value:function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eo),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,to._)(n))}},{key:"hasListeners",value:function(t){return this.eventHandlers.has(t)}},{key:"mount",value:function(t){var n=this;if(!this.instance){this.isSVG=rv(t)&&!(rv(t)&&"svg"===t.tagName),this.instance=t;var i=this.options,r=i.layoutId,o=i.layout,a=i.visualElement;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||r)&&(this.isLayoutDirty=!0),e){var s,u=0,l=function(){return n.root.updateBlockedByResize=!1};tN.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=eE.now(),e=function(n){var i=n.timestamp-t;i>=250&&(tz(e),l())},tN.setup(e,!0),s=function(){return tz(e)},rH.hasAnimatedSinceResize&&(rH.hasAnimatedSinceResize=!1,n.nodes.forEach(o_)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||o)&&this.addEventListener("didUpdate",function(t){var e=t.delta,i=t.hasLayoutChanged,r=t.hasRelativeLayoutChanged,o=t.layout;if(n.isTreeAnimationBlocked()){n.target=void 0,n.relativeTarget=void 0;return}var s=n.options.transition||a.getDefaultTransition()||oj,u=a.getProps(),l=u.onLayoutAnimationStart,c=u.onLayoutAnimationComplete,h=!n.targetLayout||!os(n.targetLayout,o),f=!i&&r;if(n.options.layoutRoot||n.resumeFrom||f||i&&(h||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0);var p=(0,v._)((0,d._)({},n$(s,"layout")),{onPlay:l,onComplete:c});(a.shouldReduceMotion||n.options.layoutRoot)&&(p.delay=0,p.type=!1),n.startAnimation(p),n.setAnimationOrigin(e,f,p.path)}else i||o_(n),n.isLead()&&n.options.onExitComplete&&n.options.onExitComplete();n.targetLayout=o})}}},{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(),tz(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}}
1,{key:"startUpdate",value:function(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oM),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[nz];if(window.MotionHasOptimisedAnimation(i,"transform")){var r=e.options,o=r.layout,a=r.layoutId;window.MotionCancelOptimisedAnimation(i,"transform",tN,!(o||a))}var s=e.parent;s&&!s.hasCheckedOptimisedAppear&&t(s)}}}(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,("string"==typeof n.latestValues.x||"string"==typeof n.latestValues.y)&&(n.isLayoutDirty=!0),n.updateScroll("snapshot"),n.options.layoutRoot&&n.willUpdate(!1)}var i=this.options,r=i.layoutId,o=i.layout;if(void 0!==r||o){var a=this.getTransformTemplate();this.prevTransformTemplateValue=a?a(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}}},{key:"update",value:function(){if(this.updateScheduled=!1,this.isUpdateBlocked()){var t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(oS),this.nodes.forEach(ob);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(oT);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oP),this.nodes.forEach(oE),this.nodes.forEach(oy),this.nodes.forEach(og)):this.nodes.forEach(oT),this.clearAllSnapshots();var e=eE.now();tY.delta=(0,f.clamp)(0,1e3/60,e-tY.timestamp),tY.timestamp=e,tY.isProcessing=!0,tX.update.process(tY),tX.preRender.process(tY),tX.render.process(tY),tY.isProcessing=!1}},{key:"didUpdate",value:function(){this.updateScheduled||(this.updateScheduled=!0,eT.read(this.scheduleUpdate))}},{key:"clearAllSnapshots",value:function(){this.nodes.forEach(ow),this.sharedNodes.forEach(oV)}},{key:"scheduleUpdateProjection",value:function(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tN.preRender(this.updateProjection,!1,!0))}},{key:"scheduleCheckAfterUnmount",value:function(){var t=this;tN.postRender(function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()})}},{key:"updateSnapshot",value:function(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ra(this.snapshot.measuredBox.x)||ra(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||(this.layoutCorrected=ti()),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(o){var t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!or(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,r=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||nu(this.latestValues)||r)&&(o(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)),oI((t=i).x),oI(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 ti();var n=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(oU))){var i=this.root.scroll;i&&(nv(n.x,i.offset.x),nv(n.y,i.offset.y))}return n}},{key:"removeElementScroll",value:function(t){var e,n=ti();if(r6(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],o=r.scroll,a=r.options;r!==this.root&&o&&a.layoutScroll&&(o.wasRoot&&r6(n,t),nv(n.x,o.offset.x),nv(n.y,o.offset.y))}return n}},{key:"applyTransform",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,r=i||ti();r6(r,t);for(var o=0;o<this.path.length;o++){var a,s=this.path[o];!n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(nv(r.x,-s.scroll.offset.x),nv(r.y,-s.scroll.offset.y)),nu(s.latestValues)&&nm(r,s.latestValues,null==(a=s.layout)?void 0:a.layoutBox)}return nu(this.latestValues)&&nm(r,this.latestValues,null==(e=this.layout)?void 0:e.layoutBox),r}},{key:"removeTransform",value:function(t){var e=ti();r6(e,t);for(var n=0;n<this.path.length;n++){var i,r=this.path[n];if(nu(r.latestValues)){var o=void 0;r.instance&&(ns(r.latestValues)&&r.updateSnapshot(),r6(o=ti(),r.measurePageBox())),on(e,r.latestValues,null==(i=r.snapshot)?void 0:i.layoutBox,o)}}return nu(this.latestValues)&&on(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,v._)((0,d._)({},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!==tY.timestamp&&this.relativeParent.resolveTargetDelta(!0)}},{key:"resolveTargetDelta",value:function(){var t,e,n,i,r,o=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 s=!!this.resumingFrom||this!==a;if(o||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(r=this.parent)?void 0:r.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize){var u=this.options,l=u.layout,c=u.layoutId;if(this.layout&&(l||c)){this.resolvedRelativeTargetAt=tY.timestamp;var h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=ti(),this.targetWithTransforms=ti()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),t=this.target,e=this.relativeTarget,n=this.relativeParent.target,i=this.options.layoutAnchor||void 0,rl(t.x,e.x,n.x,null==i?void 0:i.x),rl(t.y,e.y,n.y,null==i?void 0:i.y)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):r6(this.target,this.layout.layoutBox),nd(this.target,this.targetDelta)):r6(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&1!==this.animationProgress?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}}}},{key:"getClosestProjectingParent",value:function(){if(!(!this.parent||ns(this.parent.latestValues)||nl(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=ti(),this.relativeTargetOrigin=ti(),rh(this.relativeTargetOrigin,e,n,this.options.layoutAnchor||void 0),r6(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===tY.timestamp&&(i=!1),!i){var r=this.options,o=r.layout,a=r.layoutId;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(o||a)){r6(this.layoutCorrected,this.layout.layoutBox);var s=this.treeScale.x,u=this.treeScale.y;!function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=n.length;if(r){e.x=e.y=1;for(var o=0;o<r;o++){var a,s,u=(a=n[o]).projectionDelta,l=a.options.visualElement;(!l||!l.props.style||"contents"!==l.props.style.display)&&(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(nv(t.x,-a.scroll.offset.x),nv(t.y,-a.scroll.offset.y)),u&&(e.x*=u.x.scale,e.y*=u.y.scale,nd(t,u)),i&&nu(a.latestValues)&&nm(t,a.latestValues,null==(s=a.layout)?void 0:s.layoutBox))}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=ti());var l=e.target;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(r4(this.prevProjectionDelta.x,this.projectionDelta.x),r4(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ru(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===u&&ol(this.projectionDelta.x,this.prevProjectionDelta.x)&&ol(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=te(),this.projectionDelta=te(),this.projectionDeltaWithTransform=te()}},{key:"setAnimationOrigin",value:function(t){var e,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,o=this.snapshot,a=o?o.latestValues:{},s=(0,d._)({},this.latestValues),u=te();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;var l=ti(),c=(o?o.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),v=!h||h.members.length<=1,f=!!(c&&!v&&!0===this.options.crossfade&&!this.path.some(oL));this.animationProgress=0;var p=null==r?void 0:r.interpolateProjection(t);this.mixTargetDelta=function(i){var r,o,h,d,m,y,g=i/1e3,x=null==p?void 0:p(g);if(x?(u.x.translate=x.x,u.x.scale=e8(t.x.scale,1,g),u.x.origin=t.x.origin,u.x.originPoint=t.x.originPoint,u.y.translate=x.y,u.y.scale=e8(t.y.scale,1,g),u.y.origin=t.y.origin,u.y.originPoint=t.y.originPoint):(oD(u.x,t.x,g),oD(u.y,t.y,g)),n.setTargetDelta(u),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&n.relativeParent&&n.relativeParent.layout){rh(l,n.layout.layoutBox,n.relativeParent.layout.layoutBox,n.options.layoutAnchor||void 0),r=n.relativeTarget,o=n.relativeTargetOrigin,h=l,d=g,oR(r.x,o.x,h.x,d),oR(r.y,o.y,h.y,d),e&&(m=n.relativeTarget,y=e,oo(m.x,y.x)&&oo(m.y,y.y))&&(n.isProjectionDirty=!1),e||(e=ti()),r6(e,n.relativeTarget)}c&&(n.animationValues=s,function(t,e,n,i,r,o){r?(t.opacity=e8(0,null!=(a=n.opacity)?a:1,r2(i)),t.opacityExit=e8(null!=(s=e.opacity)?s:1,0,r3(i))):o&&(t.opacity=e8(null!=(u=e.opacity)?u:1,null!=(l=n.opacity)?l:1,i));for(var a,s,u,l,c=0;c<rJ;c++){var h=e6[c],d=r1(e,h),v=r1(n,h);(void 0!==d||void 0!==v)&&(d||(d=0),v||(v=0),0===d||0===v||r0(d)===r0(v)?(t[h]=Math.max(e8(rQ(d),rQ(v),i),0),(A.test(v)||A.test(d))&&(t[h]+="%")):t[h]=v)}(e.rotate||n.rotate)&&(t.rotate=e8(e.rotate||0,n.rotate||0,i))}(s,a,n.latestValues,g,f,v)),x&&void 0!==x.rotate&&(n.animationValues||(n.animationValues=s),n.animationValues.pathRotation=x.rotate),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=g},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&&(tz(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tN.update(function(){var e,n,i;rH.hasAnimatedSinceResize=!0,r.motionValue||(r.motionValue=eM(0)),r.motionValue.jump(0,!1),e=r.motionValue,n=(0,v._)((0,d._)({},t),{velocity:0,isSync:!0,onUpdate:function(e){r.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:function(){t.onComplete&&t.onComplete(),r.completeAnimation()}}),(i=tr(e)?e:eM(e)).start(iQ("",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;
1if(e&&n&&i){if(this!==t&&this.layout&&i&&oF(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||ti();var o=ra(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+o;var a=ra(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+a}r6(e,n),nm(e,r),ru(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}},{key:"registerSharedNode",value:function(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new oc),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)}},{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&&op("z",t,i,this.animationValues);for(var r=0;r<ov.length;r++)op("rotate".concat(ov[r]),t,i,this.animationValues),op("skew".concat(ov[r]),t,i,this.animationValues);for(var o in t.render(),i)t.setStaticValue(o,i[o]),this.animationValues&&(this.animationValues[o]=i[o]);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=nR(null==e?void 0:e.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none";return}var o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nR(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nu(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1);return}t.visibility="";var a=o.animationValues||o.latestValues;this.applyTransformsToTarget();var s=function(t,e,n){var i="",r=t.x.translate/e.x,o=t.y.translate/e.y,a=(null==n?void 0:n.z)||0;if((r||o||a)&&(i="translate3d(".concat(r,"px, ").concat(o,"px, ").concat(a,"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.pathRotation,c=n.rotateX,h=n.rotateY,d=n.skewX,v=n.skewY;s&&(i="perspective(".concat(s,"px) ").concat(i)),u&&(i+="rotate(".concat(u,"deg) ")),l&&(i+="rotate(".concat(l,"deg) ")),c&&(i+="rotateX(".concat(c,"deg) ")),h&&(i+="rotateY(".concat(h,"deg) ")),d&&(i+="skewX(".concat(d,"deg) ")),v&&(i+="skewY(".concat(v,"deg) "))}var f=t.x.scale*e.x,p=t.y.scale*e.y;return(1!==f||1!==p)&&(i+="scale(".concat(f,", ").concat(p,")")),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,a);r&&(s=r(a,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"),o.animationValues?t.opacity=o===this?null!=(n=null!=(i=a.opacity)?i:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:t.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,nt)if(void 0!==a[h]){var d=nt[h],v=d.correct,f=d.applyTo,p=d.isCSSVariable,m="none"===s?a[h]:v(a[h],o);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=o===this?nR(null==e?void 0:e.pointerEvents)||"":"none")}}},{key:"clearSnapshot",value:function(){this.resumeFrom=this.snapshot=void 0}}
1,{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(ob),this.root.sharedNodes.clear()}}]),u}function oy(t){t.updateLayout()}function og(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,o=i.measuredBox,a=t.options.animationType,s=n.source!==t.layout.source;if("size"===a)ri(function(t){var e=s?n.measuredBox[t]:n.layoutBox[t],i=ra(e);e.min=r[t].min,e.max=e.min+i});else if("x"===a||"y"===a){var u="x"===a?"y":"x";r9(s?n.measuredBox[u]:n.layoutBox[u],r[u])}else oF(a,n.layoutBox,r)&&ri(function(e){var i=s?n.measuredBox[e]:n.layoutBox[e],o=ra(r[e]);i.max=i.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[e].max=t.relativeTarget[e].min+o)});var l=te();ru(l,r,n.layoutBox);var c=te();s?ru(c,t.applyTransform(o,!0),n.measuredBox):ru(c,r,n.layoutBox);var h=!or(l),d=!1;if(!t.resumeFrom){var v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){var f=v.snapshot,p=v.layout;if(f&&p){var m=t.options.layoutAnchor||void 0,y=ti();rh(y,n.layoutBox,f.layoutBox,m);var g=ti();rh(g,r,p.layoutBox,m),os(y,g)||(d=!0),v.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=y,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:d})}else if(t.isLead()){var x=t.options.onExitComplete;x&&x()}t.options.transition=void 0}function ox(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ok(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ow(t){t.clearSnapshot()}function ob(t){t.clearMeasurements()}function oS(t){t.isLayoutDirty=!0,t.updateLayout()}function oT(t){t.isLayoutDirty=!1}function oP(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function oE(t){var e=t.options.visualElement;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function o_(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function oA(t){t.resolveTargetDelta()}function oC(t){t.calcProjection()}function oM(t){t.resetSkewAndRotation()}function oV(t){t.removeLeadSnapshot()}function oD(t,e,n){t.translate=e8(e.translate,0,n),t.scale=e8(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function oR(t,e,n,i){t.min=e8(e.min,n.min,i),t.max=e8(e.max,n.max,i)}function oL(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var oj={duration:.45,ease:[.4,0,.1,1]},oO=function(t){return"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t)},oB=oO("applewebkit/")&&!oO("chrome/")?Math.round:tB;function oI(t){t.min=oB(t.min),t.max=oB(t.max)}function oF(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ou(e)-ou(n)))}function oU(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var oW=om({attachResizeListener:function(t,e){return rr(t,"resize",e)},measureScroll:function(){var t,e;return{x:document.documentElement.scrollLeft||(null==(t=document.body)?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||(null==(e=document.body)?void 0:e.scrollTop)||0}},checkIsScrollRoot:function(){return!0}}),oN={current:void 0},oz=om({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!oN.current){var t=new oW({});t.mount(window),t.setOptions({layoutScroll:!0}),oN.current=t}return oN.current},resetTransform:function(t,e){t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:function(t){return"fixed"===window.getComputedStyle(t).position}});function oY(t,e){var n=rf(t),i=new AbortController;return[n,(0,v._)((0,d._)({passive:!0},e),{signal:i.signal}),function(){return i.abort()}]}function oX(t,e,n){var i=t.props;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);var r=i["onHover"+n];r&&tN.postRender(function(){return r(e,rE(e))})}var oK=function(t){function e(){return(0,a._)(this,e),(0,o._)(this,e,arguments)}return(0,c._)(e,t),(0,s._)(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,g._)(oY(t,n),3),r=i[0],o=i[1],a=i[2];return r.forEach(function(t){var n,i=!1,r=!1,a=function(){t.removeEventListener("pointerleave",l)},s=function(t){n&&(n(t),n=void 0),a()},u=function(t){i=!1,window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),r&&(r=!1,s(t))},l=function(t){if("touch"!==t.pointerType){if(i){r=!0;return}s(t)}};t.addEventListener("pointerenter",function(i){if("touch"!==i.pointerType&&!ro.x&&!ro.y){r=!1;var a=e(t,i);"function"==typeof a&&(n=a,t.addEventListener("pointerleave",l,o))}},o),t.addEventListener("pointerdown",function(){i=!0,window.addEventListener("pointerup",u,o),window.addEventListener("pointercancel",u,o)},o)}),a}(e,function(e,n){return oX(t.node,n,"Start"),function(e){return oX(t.node,e,"End")}}))}},{key:"unmount",value:function(){}}]),e}(nG),oH=function(t){function e(){var t;return(0,a._)(this,e),t=(0,o._)(this,e,arguments),t.isActive=!1,t}return(0,c._)(e,t),(0,s._)(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=n0(rr(this.node.current,"focus",function(){return t.onFocus()}),rr(this.node.current,"blur",function(){return t.onBlur()}))}},{key:"unmount",value:function(){}}]),e}(nG);function oG(t){return rd(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",0,oG],51723);var oq=function(t,e){return!!e&&(t===e||oq(t,e.parentElement))},oZ=new WeakSet;function o$(t){return function(e){"Enter"===e.key&&t(e)}}function oJ(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}var oQ=function(t,e){var n=t.currentTarget;if(n){var i=o$(function(){if(!oZ.has(n)){oJ(n,"down");var t=o$(function(){oJ(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",function(){return oJ(n,"cancel")},e)}});n.addEventListener("keydown",i,e),n.addEventListener("blur",function(){return n.removeEventListener("keydown",i)},e)}};function o0(t){return rP(t)&&!(ro.x||ro.y)}var o1=new WeakSet;function o2(t,e,n){var i=t.props;if(!(0,t5._)(t.current,HTMLButtonElement)||!t.current.disabled){t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);var r=i["onTap"+("End"===n?"":n)];r&&tN.postRender(function(){return r(e,rE(e))})}}var o3=function(t){function e(){return(0,a._)(this,e),(0,o._)(this,e,arguments)}return(0,c._)(e,t),(0,s._)(e,[{key:"mount",value:function(){var t=this,e=this.node.current;if(e){var n=this.node.props,i=n.globalTapTarget,r=n.propagate;this.unmount=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,g._)(oY(t,n),3),r=i[0],o=i[1],a=i[2],s=function(t){var i=t.currentTarget;if(o0(t)&&!o1.has(t)){oZ.add(i),n.stopPropagation&&o1.add(t);var r=e(i,t),a=(0,v._)((0,d._)({},o),{capture:!0}),s=function(t,e){window.removeEventListener("pointerup",u,a),window.removeEventListener("pointercancel",l,a),oZ.has(i)&&oZ.delete(i),o0(t)&&"function"==typeof r&&r(t,{success:e})},u=function(t){s(t,i===window||i===document||n.useGlobalTarget||oq(i,t.target))},l=function(t){s(t,!1)};window.addEventListener("pointerup",u,a),window.addEventListener("pointercancel",l,a)}};return r.forEach(function(t){((n.useGlobalTarget?window:t).addEventListener("pointerdown",s,o),oG(t))&&(t.addEventListener("focus",function(t){return oQ(t,o)}),rS.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(e,function(e,n){return o2(t.node,n,"Start"),function(e,n){var i=n.success;
1return o2(t.node,e,i?"End":"Cancel")}},{useGlobalTarget:i,stopPropagation:(null==r?void 0:r.tap)===!1})}}},{key:"unmount",value:function(){}}]),e}(nG),o5=new WeakMap,o9=new WeakMap,o6=function(t){var e=o5.get(t.target);e&&e(t)},o4=function(t){t.forEach(o6)},o7={some:0,all:1},o8=function(t){function e(){var t;return(0,a._)(this,e),t=(0,o._)(this,e,arguments),t.hasEnteredView=!1,t.isInView=!1,t}return(0,c._)(e,t),(0,s._)(e,[{key:"startObserver",value:function(){var t,e,n,i,r,o,a,s,u,l=this;null==(u=this.stopObserver)||u.call(this);var c=this.node.getProps().viewport,h=void 0===c?{}:c,v=h.root,f=h.margin,p=h.amount,m=void 0===p?"some":p,y=h.once,g={root:v?v.current:void 0,rootMargin:f,threshold:"number"==typeof m?m:o7[m]};this.stopObserver=(t=this.node.current,e=function(t){var e=t.isIntersecting;if(l.isInView!==e){if(l.isInView=e,y&&!e&&l.hasEnteredView)return;e&&(l.hasEnteredView=!0),l.node.animationState&&l.node.animationState.setActive("whileInView",e);var n=l.node.getProps(),i=n.onViewportEnter,r=n.onViewportLeave,o=e?i:r;o&&o(t)}},n=g.root,i=t9(g,["root"]),r=n||document,o9.has(r)||o9.set(r,{}),(o=o9.get(r))[a=JSON.stringify(i)]||(o[a]=new IntersectionObserver(o4,(0,d._)({root:n},i))),s=o[a],o5.set(t,e),s.observe(t),function(){o5.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,o=void 0===r?{}:r;return function(t){return n[t]!==o[t]}}(t.props,t.prevProps))&&this.startObserver()}}},{key:"unmount",value:function(){var t;null==(t=this.stopObserver)||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}]),e}(nG),at=function(t,e){if("u"<typeof Proxy)return nH;var n=new Map,i=function(n,i){return nH(n,i,t,e)};return new Proxy(function(t,e){return i(t,e)},{get:function(r,o){return"create"===o?i:(n.has(o)||n.set(o,nH(o,void 0,t,e)),n.get(o))}})}((0,d._)({},{animation:{Feature:rt},exit:{Feature:rn}},{inView:{Feature:o8},tap:{Feature:o3},focus:{Feature:oH},hover:{Feature:oK}},{pan:{Feature:rK},drag:{Feature:rY,ProjectionNode:oz,MeasureLayout:r$}},{layout:{ProjectionNode:oz,MeasureLayout:r$}}),function(t,e){var n;return(null!=(n=e.isSVG)?n:nw(t))?new nr(e):new ng(e,{allowProjection:t!==nx.Fragment})});t.s(["motion",0,at],98311)},55810,t=>{"use strict";var e=t.i(60722),n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set((0,e._)(n).concat(["pathRotation"]));t.s(["transformPropOrder",0,n,"transformProps",0,i])},71955,48601,77095,t=>{"use strict";var e=function(t,e,n){return n>e?e:n<t?t:n};t.s(["clamp",0,e],71955);var n=t.i(64022),i=t.i(78559),r={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},o=(0,i._)((0,n._)({},r),{transform:function(t){return e(0,1,t)}}),a=(0,i._)((0,n._)({},r),{default:1});t.s(["alpha",0,o,"number",0,r,"scale",0,a],48601),t.s(["sanitize",0,function(t){return Math.round(1e5*t)/1e5}],77095)}]);

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.