PageSourceSearch

https://wishglow.pl/_next/static/chunks/4799-8d11e55e303bd07b.js

js wishglow.pl collected 2026-10-02 02:07:43 UTC 259,346 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4799],{74048:function(e,t,n){"use strict";n.d(t,{do:function(){return G}});var r,i,s,o=[],a="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:a}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=a),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},h=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),d=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(d(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,s=e.offsetHeight;return!(i||s||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},g=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},m="undefined"!=typeof window?window:{},y=new WeakMap,b=/auto|scroll/,v=/^tb|vertical/,w=/msie|trident/i.test(m.navigator&&m.navigator.userAgent),x=function(e){return parseFloat(e||"0")},S=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},k=u({devicePixelContentBoxSize:S(),borderBoxSize:S(),contentBoxSize:S(),contentRect:new h(0,0,0,0)}),P=function(e,t){if(void 0===t&&(t=!1),y.has(e)&&!t)return y.get(e);if(f(e))return y.set(e,k),k;var n=getComputedStyle(e),r=d(e)&&e.ownerSVGElement&&e.getBBox(),i=!w&&"border-box"===n.boxSizing,s=v.test(n.writingMode||""),o=!r&&b.test(n.overflowY||""),a=!r&&b.test(n.overflowX||""),l=r?0:x(n.paddingTop),c=r?0:x(n.paddingRight),p=r?0:x(n.paddingBottom),g=r?0:x(n.paddingLeft),m=r?0:x(n.borderTopWidth),P=r?0:x(n.borderRightWidth),E=r?0:x(n.borderBottomWidth),A=r?0:x(n.borderLeftWidth),T=g+c,M=l+p,C=A+P,R=m+E,O=a?e.offsetHeight-R-e.clientHeight:0,j=o?e.offsetWidth-C-e.clientWidth:0,V=r?r.width:x(n.width)-(i?T+C:0)-j,D=r?r.height:x(n.height)-(i?M+R:0)-O,I=V+T+j+C,L=D+M+O+R,$=u({devicePixelContentBoxSize:S(Math.round(V*devicePixelRatio),Math.round(D*devicePixelRatio),s),borderBoxSize:S(I,L,s),c
1ontentBoxSize:S(V,D,s),contentRect:new h(g,l,V,D)});return y.set(e,$),$},E=function(e,t,n){var r=P(e,n),s=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return a;case i.BORDER_BOX:return s;default:return o}},A=function(e){var t=P(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},T=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},M=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new A(t.target),i=T(t.target);r.push(n),t.lastReportedSize=E(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},C=function(e){o.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(T(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},R=function(){var e=0;for(C(0);o.some(function(e){return e.activeTargets.length>0});)C(e=M());return o.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},O=[],j=function(e){if(!s){var t=0,n=document.createTextNode("");new MutationObserver(function(){return O.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),s=function(){n.textContent="".concat(t?t--:t++)}}O.push(e),s()},V=function(e){j(function(){requestAnimationFrame(e)})},D=0,I={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],$=function(e){return void 0===e&&(e=0),Date.now()+e},F=!1,_=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!F){F=!0;var n=$(e);V(function(){var r=!1;try{r=R()}finally{if(F=!1,e=n-$(),!D)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,I)};document.body?t():m.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return m.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return m.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),B=function(e){!D&&e>0&&_.start(),(D+=e)||_.stop()},z=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=E(this.target,this.observedBox,!0);return d(e=this.target)||g(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),N=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,W=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},U=function(){function e(){}return e.connect=function(e,t){var n=new N(e,t);H.set(e,n)},e.observe=function(e,t,n){var r=H.get(e),i=0===r.observationTargets.length;0>W(r.observationTargets,t)&&(i&&o.push(r),r.observationTargets.push(new z(t,n&&n.box)),B(1),_.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=W(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),B(-1))},e.disconnect=function(e){var t=this,n=H.get(e);
1n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),G=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");U.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");U.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");U.unobserve(this,e)},e.prototype.disconnect=function(){U.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},23910:function(e,t,n){var r=n(74288).Symbol;e.exports=r},73819:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},76378:function(e){e.exports=function(e,t,n,r){var i=-1,s=null==e?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}},53417:function(e){e.exports=function(e){return e.split("")}},59652:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},54506:function(e,t,n){var r=n(23910),i=n(4479),s=n(80910),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},98880:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},99558:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}},65020:function(e,t,n){var r=n(23910),i=n(73819),s=n(25614),o=n(78371),a=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return i(t,e)+"";if(o(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}},91684:function(e,t,n){var r=n(99558);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},80675:function(e,t,n){var r=n(91684),i=n(14503),s=n(88551),o=n(3641);e.exports=function(e){return function(t){var n=i(t=o(t))?s(t):void 0,a=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return a[e]()+l}}},82638:function(e,t,n){var r=n(76378),i=n(42143),s=n(67512),o=RegExp("['’]","g");e.exports=function(e){return function(t){return r(s(i(t).replace(o,"")),e,"")}}},62167:function(e,t,n){var r=n(98880)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},17071:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},4479:function(e,t,n){var r=n(23910),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[a]=n:delete e[a]),i}},14503:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},27926:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},80910:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74288:function(e,t,n){var r=n(17071),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},88551:function(e,t,n){var r=n(53417),i=n(14503),s=n(26364);e.exports=function(e){return i(e)?s(e):r(e)}},26364:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",s="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,s,o].join("|")+")"+l+a+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,s,o,"["+t+"]"].join("|")+")"+(l+a+u),"g");e.exports=function(e){return e.match(c)||[]}},79269:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="['’]",a="["+s+"]",l="["+r+"]",u="[^"+t+s+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",h="[\ud800-\udbff][\udc00-\udfff]",d="["+i+"]",f="(?:"+l+"|"+u+")",p="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",g="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",y="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",c,h].join("|")+")"+y+m+")*",v="(?:"+["["+n+"]",c,h].join("|")+")"+(y+m+b),w=RegExp([d+"?"+l+"+"+p+"(?="+[a,d,"$"].join("|")+")","(?:"+d+"|"+u+")+"+g+"(?="+[a,d+f,"$"].join("|")+")",d+"?"+f+"+"+p,d+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",v].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},42143:function(e,t,n){var r=n(62167),i=n(3641),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(s,r).replace(o,"")}},25614:function(e){var t=Array.isArray;e.exports=t},10303:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},78371:function(e,t,n){var r=n(54506),i=n(10303);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},57685:function(e,t,n){var r=n(82638),i=n(75551),s=r(function(e,t,n){return e+(n?" ":"")+i(t)});e.exports=s},3641:function(e,t,n){var r=n(65020);e.exports=function(e){return null==e?"":r(e)}},75551:function(e,t,n){var r=n(80675)("toUpperCase");e.exports=r},67512:function(e,t,n){var r=n(59652),i=n(27926),s=n(3641),o=n(79269);e.exports=function(e,t,n){return(e=s(e),void 0===(t=n?void 0:t))?i(e)?o(e):r(e):e.match(t)||[]}},83238:function(e,t,n){"use strict";let r,i,s;var o,a,l=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of h(t))f.call(e,i)||i===n||u(e,i,{get:()=>t[i],enumerable:!(r=c(t,i))||r.enumerable});return e},g={};((e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})}
1)(g,{$dispatcherGuard:()=>T,$makeReadOnly:()=>C,$reset:()=>M,$structuralCheck:()=>D,c:()=>S,clearRenderCounterRegistry:()=>O,renderCounterRegistry:()=>R,useRenderCounter:()=>j}),e.exports=p(u({},"__esModule",{value:!0}),g);var m=(s=null!=(r=n(2265))?l(d(r)):{},p(!i&&r&&r.__esModule?s:u(s,"default",{value:r,enumerable:!0}),r)),{useRef:y,useEffect:b,isValidElement:v}=m,w=null!=(o=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?o:m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.memo_cache_sentinel"),S="function"==typeof(null==(a=m.__COMPILER_RUNTIME)?void 0:a.c)?m.__COMPILER_RUNTIME.c:function(e){return m.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=x;return t[x]=!0,t},[])},k={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{k[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var P=null;function E(e){return w.ReactCurrentDispatcher.current=e,w.ReactCurrentDispatcher.current}k.useMemoCache=e=>{if(null!=P)return P.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var A=[];function T(e){let t=w.ReactCurrentDispatcher.current;if(0===e){if(A.push(t),1===A.length&&(P=t),t===k)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");E(k)}else if(1===e){let e=A.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===A.length&&(P=null),E(e)}else if(2===e)A.push(t),E(P);else if(3===e){let e=A.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");E(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function M(e){for(let t=0;t<e.length;t++)e[t]=x}function C(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var R=new Map;function O(){for(let e of R.values())e.forEach(e=>{e.count=0})}function j(e){let t=y(null);null!=t.current&&(t.current.count+=1),b(()=>{if(null==t.current){let n;let r={count:0};null==(n=R.get(e))&&(n=new Set,R.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=R.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var V=new Set;function D(e,t,n,r,i,s){function o(e,t,o,a){let l=`${r}:${s} [${i}] ${n}${o} changed from ${e} to ${t} at depth ${a}`;V.has(l)||(V.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)&&t!==n){if(typeof t!=typeof n)o(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let s=Array.isArray(t),a=Array.isArray(n);if(null===t&&null!==n)o("null",`type ${typeof n}`,r,i);else if(null===n)o(`type ${typeof t}`,"null",r,i);else if(t instanceof Map){if(n instanceof Map){if(t.size!==n.size)o(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(let[s,a]of t)n.has(s)?e(a,n.get(s),`${r}.get(${s})`,i+1):o(`Map instance with key ${s}`,`Map instance without key ${s}`,r,i)}else o("Map instance","other value",r,i)}else if(n instanceof Map)o("other value","Map instance",r,i);else if(t instanceof Set){if(n instanceof Set){if(t.size!==n.size)o(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i)}else o("Set instance","other value",r,i)}else if(n instanceof Set)o("other value","Set instance",r,i);else if(s||a){if(s!==a)o(`type ${s?"array":"object"}`,`type ${a?"array":"object"}`,r,i);else if(t.length!==n.length)o(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let s=0;s<t.length;s++)e(t[s],n[s],`${r}[${s}]`,i+1)}else if(v(t)||v(n))v(t)!==v(n)?o(`type ${v(t)?"React element":"object"}`,`type ${v(n)?"React element":"object"}`,r,i):t.type!==n.type?o(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||o(`object without key ${e}`,`object with key ${e}
1`,r,i);for(let s in t)s in n?e(t[s],n[s],`${r}.${s}`,i+1):o(`object with key ${s}`,`object without key ${s}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&o(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&o(t,n,r,i)}}}(e,t,"",0)}},59679:function(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case o:case s:case c:case h:case p:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case d:case a:return e;default:return t}}case r:return t}}}t.ContextConsumer=a,t.ContextProvider=l,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=f,t.Memo=d,t.Portal=r,t.Profiler=o,t.StrictMode=s,t.Suspense=c,t.SuspenseList=h,t.isContextConsumer=function(e){return m(e)===a},t.isContextProvider=function(e){return m(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return m(e)===u},t.isFragment=function(e){return m(e)===i},t.isLazy=function(e){return m(e)===f},t.isMemo=function(e){return m(e)===d},t.isPortal=function(e){return m(e)===r},t.isProfiler=function(e){return m(e)===o},t.isStrictMode=function(e){return m(e)===s},t.isSuspense=function(e){return m(e)===c},t.isSuspenseList=function(e){return m(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===o||e===s||e===c||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===l||e.$$typeof===a||e.$$typeof===u||e.$$typeof===g||void 0!==e.getModuleId)},t.typeOf=m},84851:function(e,t,n){"use strict";e.exports=n(59679)},17647:function(e,t,n){"use strict";n.d(t,{E:function(){return f}});var r,i=n(5853),s=n(8150),o=1,a={};function l(e){return e in a&&(delete a[e],!0)}var u=function(e){var t=o++;return a[t]=!0,r||(r=Promise.resolve()),r.then(function(){return l(t)&&e()}),t},c=function(e){l(e)},h={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=h.delegate;return((null==n?void 0:n.setImmediate)||u).apply(void 0,(0,i.ev)([],(0,i.CR)(e)))},clearImmediate:function(e){var t=h.delegate;return((null==t?void 0:t.clearImmediate)||c)(e)},delegate:void 0},d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return(0,i.ZT)(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=h.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i,s=t.actions;null!=n&&(null===(i=s[s.length-1])||void 0===i?void 0:i.id)!==n&&(h.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(s.o),f=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype.flush=function(e){this._active=!0;var t,n=this._scheduled;this._scheduled=void 0;var r=this.actions;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,t){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw t}},t}(n(319).v))(d)},80717:function(e,t,n){"use strict";n.d(t,{qH:function(){return tM},LC:function(){return th},f6:function(){return tp},vJ:function(){return tE},iv:function(){return tx},F4:function(){return tT},zo:function(){return tk},Fg:function(){return tf}});var r,i,s,o=n(2265),a="-ms-",l="-moz-",u="-webkit-",c="comm",h="rule",d="decl",f="@keyframes",p=Math.abs,g=String.fromCharCode,m=Object.assign;function y(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function v(e,t,n){return e.indexOf(t,n)}function w(e,t){return 0|e.charCodeAt(t)}function x(e,t,n){return e.slice(t,n)}function S(e){return e.length}function k(e,t){return t.push(e),e}function P(e,t){return e.filter(function(e){return!y(e,t)})}var E=1,A=1,T=0,M=0,C=0,R="";function O(e,t,n,r,i,s,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:E,column:A,length:o,return:"",siblings:a}}function j(e,t){return m(O("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function V(e){for(;e.root;)e=j(e.root,{children:[e]});k(e,e.siblings)}function D(){return C=M<T?w(R,M++):0,A++,10===C&&(A=1,E++),C}function I(){return w(R,M)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $(e){var t,n;return(t=M-1,n=function e(t){for(;D();)switch(C){case t:return M;case 34:case 39:34!==t&&39!==t&&e(C);break;case 40:41===t&&e(t);break;case 92:D()}return M}(91===e?e+2:40===e?e+1:e),x(R,t,n)).trim()}function F(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function _(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case d:return e.return=e.return||e.value;case c:return"";case f:return e.return=e.value+"{"+F(e.children,r)+"}";case h:if(!S(e.value=e.props.join(",")))return""}return S(n=F(e.children,r))?e.return=e.value+"{"+n+"}":""}function B(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case d:e.return=function e(t,n,r){var i;switch(i=n,45^w(t,0)?(((i<<2^w(t,0))<<2^w(t,1))<<2^w(t,2))<<2^w(t,3):0){case 5103:return u+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return u+t+t;case 4855:return u+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return l+t+t;
1case 5349:case 4246:case 4810:case 6968:case 2756:return u+t+l+t+a+t+t;case 5936:switch(w(t,n+11)){case 114:return u+t+a+b(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return u+t+a+b(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return u+t+a+b(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return u+t+a+t+t;case 6165:return u+t+a+"flex-"+t+t;case 5187:return u+t+b(t,/(\w+).+(:[^]+)/,u+"box-$1$2"+a+"flex-$1$2")+t;case 5443:return u+t+a+"flex-item-"+b(t,/flex-|-self/g,"")+(y(t,/flex-|baseline/)?"":a+"grid-row-"+b(t,/flex-|-self/g,""))+t;case 4675:return u+t+a+"flex-line-pack"+b(t,/align-content|flex-|-self/g,"")+t;case 5548:return u+t+a+b(t,"shrink","negative")+t;case 5292:return u+t+a+b(t,"basis","preferred-size")+t;case 6060:return u+"box-"+b(t,"-grow","")+u+t+a+b(t,"grow","positive")+t;case 4554:return u+b(t,/([^-])(transform)/g,"$1"+u+"$2")+t;case 6187:return b(b(b(t,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),t,"")+t;case 5495:case 3959:return b(t,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return b(b(t,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+a+"flex-pack:$3"),/space-between/,"justify")+u+t+t;case 4200:if(!y(t,/flex-|baseline/))return a+"grid-column-align"+x(t,n)+t;break;case 2592:case 3360:return a+b(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,y(e.props,/grid-\w+-end/)}))return~v(t+(r=r[n].value),"span",0)?t:a+b(t,"-start","")+t+a+"grid-row-span:"+(~v(r,"span",0)?y(r,/\d+/):+y(r,/\d+/)-+y(t,/\d+/))+";";return a+b(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return y(e.props,/grid-\w+-start/)})?t:a+b(b(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return b(t,/(.+)-inline(.+)/,u+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(S(t)-1-n>6)switch(w(t,n+1)){case 109:if(45!==w(t,n+4))break;case 102:return b(t,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+l+(108==w(t,n+3)?"$3":"$2-$3"))+t;case 115:return~v(t,"stretch",0)?e(b(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return b(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,s,o,l){return a+n+":"+r+l+(i?a+n+"-span:"+(s?o:+o-+r)+l:"")+t});case 4949:if(121===w(t,n+6))return b(t,":",":"+u)+t;break;case 6444:switch(w(t,45===w(t,14)?18:11)){case 120:return b(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===w(t,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+a+"$2box$3")+t;case 100:return b(t,":",":"+a)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return b(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case f:return F([j(e,{value:b(e.value,"@","@"+u)})],r);case h:if(e.length){var i,s;return i=n=e.props,s=function(t){switch(y(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":V(j(e,{props:[b(t,/:(read-\w+)/,":"+l+"$1")]})),V(j(e,{props:[t]})),m(e,{props:P(n,r)});break;case"::placeholder":V(j(e,{props:[b(t,/:(plac\w+)/,":"+u+"input-$1")]})),V(j(e,{props:[b(t,/:(plac\w+)/,":"+l+"$1")]})),V(j(e,{props:[b(t,/:(plac\w+)/,a+"input-$1")]})),V(j(e,{props:[t]})),m(e,{props:P(n,r)})}return""},i.map(s).join("")}}}function z(e,t,n,r,i,s,o,a,l,u,c,d){for(var f=i-1,g=0===i?s:[""],m=g.length,y=0,v=0,w=0;y<r;++y)for(var S=0,k=x(e,f+1,f=p(v=o[y])),P=e;S<m;++S)(P=(v>0?g[S]+" "+k:b(k,/&\f/g,g[S])).trim())&&(l[w++]=P);return O(e,t,n,0===i?h:a,l,u,c,d)}function N(e,t,n,r,i){return O(e,t,n,d,x(e,0,r),x(e,r+1,-1),r,i)}var H=n(25566);let W=void 0!==H&&void 0!==H.env&&(H.env.REACT_APP_SC_ATTR||H.env.SC_ATTR)||"data-styled",U="active",G="data-styled-version",Y="6.4.3",X="/*!sc*/\n",K="undefined"!=typeof window&&"undefined"!=typeof document;function Z(e){if(void 0!==H&&void 0!==H.env){let t=H.env[e];if(void 0!==t&&""!==t)return"false"!==t}}let q=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(i=null!==(r=Z("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==r?r:Z("SC_DISABLE_SPEEDY"))&&void 0!==i?i:void 0!==H&&void 0!==H.env&&!1),J="sc-keyframes-",Q={};function ee(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let et=new Map,en=new Map,er=1,ei=e=>{if(et.has(e))return et.get(e);for(;en.has(er);)er++;let t=er++;return et.set(e,t),en.set(t,e),t},es=e=>en.get(e),eo=(e,t)=>{er=t+1,et.set(e,t),en.set(t,e)},ea=Object.freeze([]),el=Object.freeze({});function eu(e,t,n=el){return e.theme!==n.theme&&e.theme||t||n.theme}let ec=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eh=/(^-|-$)/g;function ed(e){return e.replace(ec,"-").replace(eh,"")}let ef=/(a)(d)/gi,ep=e=>String.fromCharCode(e+(e>25?39:97));function eg(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ep(t%52)+n;return(ep(t%52)+n).replace(ef,"$1-$2")}let em=(e,t)=>
1{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ey=e=>em(5381,e);function eb(e){return eg(ey(e)>>>0)}function ev(e){return"string"==typeof e}let ew=Symbol.for("react.memo"),ex=Symbol.for("react.forward_ref"),eS={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},ek={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eE={[ex]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ew]:eP};function eA(e){return("type"in e&&e.type.$$typeof)===ew?eP:"$$typeof"in e?eE[e.$$typeof]:eS}let eT=Object.defineProperty,eM=Object.getOwnPropertyNames,eC=Object.getOwnPropertySymbols,eR=Object.getOwnPropertyDescriptor,eO=Object.getPrototypeOf,ej=Object.prototype;function eV(e){return"function"==typeof e}let eD=Symbol.for("react.forward_ref");function eI(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===eD&&"styledComponentId"in e}function eL(e,t){return e&&t?e+" "+t:e||t||""}function e$(e,t){return e.join(t||"")}function eF(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function e_(e,t){Object.defineProperty(e,"toString",{value:t})}let eB=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if((r<<=1)<0)throw ee(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,s=t.length;i<s;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+X;return t}},ez=`style[${W}][${G}="${Y}"]`,eN=RegExp(`^${W}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),eH=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,eW=e=>{if(!e)return document;if(eH(e))return e;if("getRootNode"in e){let t=e.getRootNode();if(eH(t))return t}return document},eU=(e,t,n)=>{let r;let i=n.split(",");for(let n=0,s=i.length;n<s;n++)(r=i[n])&&e.registerName(t,r)},eG=(e,t)=>{var n;let r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(X),i=[];for(let t=0,n=r.length;t<n;t++){let n=r[t].trim();if(!n)continue;let s=n.match(eN);if(s){let t=0|parseInt(s[1],10),n=s[2];0!==t&&(eo(n,t),eU(e,n,s[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(n)}},eY=e=>{let t=eW(e.options.target).querySelectorAll(ez);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(W)!==U&&(eG(e,r),r.parentNode&&r.parentNode.removeChild(r))}},eX=!1;function eK(){if(!1!==eX)return eX;if("undefined"!=typeof document){let e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return eX=e.nonce||e.getAttribute("content")||void 0;let t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return eX=t.getAttribute("content")||void 0}return eX=n.nc}let eZ=(e,t)=>{let n=document.head,r=e||n,i=document.createElement("style"),s=(e=>{let t=Array.from(e.querySelectorAll(`style[${W}]`));return t[t.length-1]})(r),o=void 0!==s?s.nextSibling:null;i.setAttribute(W,U),i.setAttribute(G,Y);let a=t||eK();return a&&i.setAttribute("nonce",a),r.insertBefore(i,o),i},eq=class{constructor(e,t){this.element=eZ(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;let n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){let r=n[t];if(r.ownerNode===e)return r}throw ee(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}}
1,eJ=class{constructor(e,t){this.element=eZ(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},eQ=K,e0={isServer:!K,useCSSOMInjection:!q};class e1{static registerId(e){return ei(e)}constructor(e=el,t={},n){this.options=Object.assign(Object.assign({},e0),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&K&&eQ&&(eQ=!1,eY(this)),e_(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r="";for(let i=0;i<n;i++){let n=es(i);if(void 0===n)continue;let s=e.names.get(n);if(void 0===s||!s.size)continue;let o=t.getGroup(i);if(0===o.length)continue;let a=W+".g"+i+'[id="'+n+'"]',l="";for(let e of s)e.length>0&&(l+=e+",");r+=o+a+'{content:"'+l+'"}'+X}return r})(this))}rehydrate(){!this.server&&K&&eY(this)}reconstructWithOptions(e,t=!0){let n=new e1(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&K&&e.target!==this.options.target&&eW(this.options.target)!==eW(e.target)&&eY(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=new eB((({useCSSOMInjection:e,target:t,nonce:n})=>e?new eq(t,n):new eJ(t,n))(this.options)))}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){ei(e),e.startsWith(J)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(ei(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(ei(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}let e2=new WeakSet,e5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function e3(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}let e4=Symbol.for("sc-keyframes");function e6(e){return eV(e)&&!(e.prototype&&e.prototype.isReactComponent)}let e8=e=>null==e||!1===e||""===e,e9=Symbol.for("react.client.reference");function e7(e){return e.$$typeof===e9}function te(e,t,n,r,i=[]){if(e8(e))return i;let s=typeof e;if("string"===s)return i.push(e),i;if("function"===s)return e7(e)?i:e6(e)&&t?te(e(t),t,n,r,i):(i.push(e),i);if(Array.isArray(e)){for(let s=0;s<e.length;s++)te(e[s],t,n,r,i);return i}return eI(e)?i.push(`.${e.styledComponentId}`):"object"==typeof e&&null!==e&&e4 in e?n?(e.inject(n,r),i.push(e.getName(r))):i.push(e):e7(e)||(eF(e)?e.toString!==Object.prototype.toString?i.push(e.toString()):function e(t,n){for(let r in t){let i=t[r];t.hasOwnProperty(r)&&!e8(i)&&(Array.isArray(i)&&e2.has(i)||eV(i)?n.push(e3(r)+":",i,";"):eF(i)?(n.push(r+" {"),e(i,n),n.push("}")):n.push(e3(r)+": "+(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in e5||r.startsWith("--")?String(i).trim():i+"px")+";"))}}(e,i):i.push(e.toString())),i}let tt=ey(Y);class tn{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=em(tt,t),this.baseStyle=n,e1.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let i="";for(let r=0;r<this.rules.length;r++){let s=this.rules[r];if("string"==typeof s)i+=s;else if(s){if(e6(s)){let r=s(e);"string"==typeof r?i+=r:null!=r&&!1!==r&&(i+=e$(te(r,e,t,n)))}else i+=e$(te(s,e,t,n))}}
1if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);let e=n.hash?n.hash+i:i,s=this.dynamicNameCache.get(e);if(!s){if(s=eg(em(em(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,s)}if(!t.hasNameForId(this.componentId,s)){let e=n(i,"."+s,void 0,this.componentId);t.insertRules(this.componentId,s,e)}r=eL(r,s)}}return r}}let tr=/&/g;function ti(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function ts(e){let t=e.length,n="",r=0,i=0,s=0,o=!1,a=!1;for(let l=0;l<t;l++){let u=e.charCodeAt(l);if(0!==s||o||47!==u||42!==e.charCodeAt(l+1)){if(o)42===u&&47===e.charCodeAt(l+1)&&(o=!1,l++);else if(34!==u&&39!==u||ti(e,l)){if(0===s){if(123===u)i++;else if(125===u){if(--i<0){a=!0;let n=l+1;for(;n<t;){let t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,i=0,l=n-1,r=n;continue}0===i&&(n+=e.substring(r,l+1),r=l+1)}else 59===u&&0===i&&(n+=e.substring(r,l+1),r=l+1)}}else 0===s?s=u:s===u&&(s=0)}else o=!0,l++}return a||0!==i||0!==s?(r<t&&0===i&&0===s&&(n+=e.substring(r)),n):e}function to({options:e=el,plugins:t=ea}=el){var n,r,i;let s,o,a;let l=(e,t,n)=>n.startsWith(o)&&n.endsWith(o)&&n.replaceAll(o,"").length>0?`.${s}`:e,u=t.slice();u.push(e=>{e.type===h&&e.value.includes("&")&&(a||(a=RegExp(`\\${o}\\b`,"g")),e.props[0]=e.props[0].replace(tr,o).replace(a,l))}),e.prefix&&u.push(B),u.push(_);let d=[],f=(i=(r=u.concat((n=e=>d.push(e),function(e){!e.root&&(e=e.return)&&n(e)}))).length,function(e,t,n,s){for(var o="",a=0;a<i;a++)o+=r[a](e,t,n,s)||"";return o}),m=(t,n="",r="",i="&")=>{var l,u,h;s=i,o=n,a=void 0;let m=function(e){let t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return ts(e);let r=e.length,i="",s=0,o=0,a=0,l=0,u=0,c=!1;for(;o<r;){let t=e.charCodeAt(o);if(34!==t&&39!==t||ti(e,o)){if(0===a){if(47===t&&o+1<r&&42===e.charCodeAt(o+1)){for(o+=2;o+1<r&&(42!==e.charCodeAt(o)||47!==e.charCodeAt(o+1));)o++;o+=2}else if(40!==t){if(41!==t){if(l>0)o++;else if(42===t&&o+1<r&&47===e.charCodeAt(o+1))i+=e.substring(s,o),o+=2,
1s=o,c=!0;else if(47===t&&o+1<r&&47===e.charCodeAt(o+1)){for(i+=e.substring(s,o);o<r&&10!==e.charCodeAt(o);)o++;s=o,c=!0}else 123===t?u++:125===t&&u--,o++}else l>0&&l--,o++}else l++,o++}else o++}else 0===a?a=t:a===t&&(a=0),o++}return c?(s<r&&(i+=e.substring(s)),0===u?i:ts(i)):0===u?e:ts(e)}(t),y=(h=function e(t,n,r,i,s,o,a,l,u){for(var h,d=0,f=0,m=a,y=0,P=0,T=0,j=1,V=1,F=1,_=0,B="",H=s,W=o,U=i,G=B;V;)switch(T=_,_=D()){case 40:if(108!=T&&58==w(G,m-1)){-1!=v(G+=b($(_),"&","&\f"),"&\f",p(d?l[d-1]:0))&&(F=-1);break}case 34:case 39:case 91:G+=$(_);break;case 9:case 10:case 13:case 32:G+=function(e){for(;C=I();)if(C<33)D();else break;return L(e)>2||L(C)>3?"":" "}(T);break;case 92:G+=function(e,t){for(var n;--t&&D()&&!(C<48)&&!(C>102)&&(!(C>57)||!(C<65))&&(!(C>70)||!(C<97)););return n=M+(t<6&&32==I()&&32==D()),x(R,e,n)}(M-1,7);continue;case 47:switch(I()){case 42:case 47:k(O(h=function(e,t){for(;D();)if(e+C===57)break;else if(e+C===84&&47===I())break;return"/*"+x(R,t,M-1)+"*"+g(47===e?e:D())}(D(),M),n,r,c,g(C),x(h,2,-2),0,u),u),(5==L(T||1)||5==L(I()||1))&&S(G)&&" "!==x(G,-1,void 0)&&(G+=" ");break;default:G+="/"}break;case 123*j:l[d++]=S(G)*F;case 125*j:case 59:case 0:switch(_){case 0:case 125:V=0;case 59+f:-1==F&&(G=b(G,/\f/g,"")),P>0&&(S(G)-m||0===j&&47===T)&&k(P>32?N(G+";",i,r,m-1,u):N(b(G," ","")+";",i,r,m-2,u),u);break;case 59:G+=";";default:if(k(U=z(G,n,r,d,f,s,l,B,H=[],W=[],m,o),o),123===_){if(0===f)e(G,n,U,U,H,o,m,l,W);else{switch(y){case 99:if(110===w(G,3))break;case 108:if(97===w(G,2))break;default:f=0;case 100:case 109:case 115:}f?e(t,U,U,i&&k(z(t,U,U,0,0,s,l,B,s,H=[],m,W),W),s,W,m,l,i?H:W):e(G,U,U,U,[""],W,0,l,W)}}}d=f=P=0,j=F=1,B=G="",m=a;break;case 58:m=1+S(G),P=T;default:if(j<1){if(123==_)--j;else if(125==_&&0==j++&&125==(C=M>0?w(R,--M):0,A--,10===C&&(A=1,E--),C))continue}switch(G+=g(_),_*j){case 38:F=f>0?1:(G+="\f",-1);break;case 44:l[d++]=(S(G)-1)*F,F=1;break;case 64:45===I()&&(G+=$(D())),y=I(),f=m=S(B=G+=function(e){for(;!L(I());)D();return x(R,e,M)}(M)),_++;break;case 45:45===T&&2==S(G)&&(j=0)}}return o}("",null,null,null,[""],(u=l=r||n?r+" "+n+" { "+m+" }":m,E=A=1,T=S(R=u),M=0,l=[]),0,[0],l),R="",h);return e.namespace&&(y=function e(t,n){let r=n+" ",i=","+r;for(let s=0;s<t.length;s++){let o=t[s];if("rule"===o.type){o.value=(r+o.value).replaceAll(",",i);let e=o.props,t=[];for(let n=0;n<e.length;n++)t[n]=r+e[n];o.props=t}Array.isArray(o.children)&&"@keyframes"!==o.type&&e(o.children,n)}return t}(y,e.namespace)),d=[],F(y,f),d},y=5381;for(let e=0;e<t.length;e++)t[e].name||ee(15),y=em(y,t[e].name);return(null==e?void 0:e.namespace)&&(y=em(y,e.namespace)),(null==e?void 0:e.prefix)&&(y=em(y,"p")),m.hash=5381!==y?y.toString():"",m}let ta=new e1,tl=to(),tu=o.createContext({shouldForwardProp:void 0,styleSheet:ta,stylis:tl,stylisPlugins:void 0});function tc(){return o.useContext(tu)}function th(e){var t;let n=tc(),{styleSheet:r}=n,i=o.useMemo(()=>{let t=r;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,r]),s=o.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?n.stylis:to({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,n.stylis,n.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:n.shouldForwardProp,l=null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins,u=o.useMemo(()=>({shouldForwardProp:a,styleSheet:i,stylis:s,stylisPlugins:l}),[a,i,s,l]);return o.createElement(tu.Provider,{value:u},e.children)}tu.Consumer;let td=o.createContext(void 0);function tf(){let e=o.useContext(td);if(!e)throw ee(18);return e}function tp(e){let t=o.useContext(td),n=o.useMemo(()=>(function(e,t){if(!e)throw ee(14);if(eV(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw ee(8);return t?Object.assign(Object.assign({},t),e):e})(e.theme,t),[e.theme,t]);return e.children?o.createElement(td.Provider,{value:n},e.children):null}td.Consumer;let tg=Object.prototype.hasOwnProperty,tm={};function ty(e,t,n){let r=eI(e),i=!ev(e),{attrs:s=ea,componentId:a=function(e,t){let n="string"!=typeof e?"sc":ed(e);tm[n]=(tm[n]||0)+1;let r=n+"-"+eb(Y+n+tm[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId),displayName:l=ev(e)?`styled.${e}`:`Styled(${e.displayName||e.name||"Component"})`}=t,u=t.displayName&&t.componentId?ed(t.displayName)+"-"+t.componentId:t.componentId||a,c=r&&e.attrs?e.attrs.concat(s).filter(
1Boolean):s,{shouldForwardProp:h}=t;if(r&&e.shouldForwardProp){let n=e.shouldForwardProp;if(t.shouldForwardProp){let e=t.shouldForwardProp;h=(t,r)=>n(t,r)&&e(t,r)}else h=n}let d=new tn(n,u,r?e.componentStyle:void 0);function f(e,t){return function(e,t,n){let r,i;let{attrs:s,componentStyle:a,defaultProps:l,foldedComponentIds:u,styledComponentId:c,target:h}=e,d=o.useContext(td),f=tc(),p=e.shouldForwardProp||f.shouldForwardProp,g=eu(t,d,l)||el;{let e=o.useRef(null),n=e.current;if(null!==n&&n[1]===g&&n[2]===f.styleSheet&&n[3]===f.stylis&&n[7]===a&&function(e,t,n){let r=0;for(let n in t)if(tg.call(t,n)&&(r++,e[n]!==t[n]))return!1;return r===n}(n[0],t,n[4]))r=n[5],i=n[6];else{var m,y,b;m=r=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let s=e[n],o=eV(s)?s(i?Object.assign({},r):r):s;for(let e in o)"className"===e?r.className=eL(r.className,o[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&void 0===t[e]||(r[e]=o[e])}return"className"in t&&"string"==typeof t.className&&(r.className=eL(r.className,t.className)),r}(s,t,g),y=f.styleSheet,b=f.stylis,i=a.generateAndInjectStyles(m,y,b);let n=0;for(let e in t)tg.call(t,e)&&n++;e.current=[t,g,f.styleSheet,f.stylis,n,r,i,a]}}let v=r.as||h,w=function(e,t,n,r){let i={};for(let s in e)void 0===e[s]||"$"===s[0]||"as"===s||"theme"===s&&e.theme===n||("forwardedAs"===s?i.as=e.forwardedAs:r&&!r(s,t)||(i[s]=e[s]));return i}(r,v,g,p),x=eL(u,c);return i&&(x+=" "+i),r.className&&(x+=" "+r.className),w[ev(v)&&v.includes("-")?"class":"className"]=x,n&&(w.ref=n),(0,o.createElement)(v,w)}(p,e,t)}f.displayName=l;let p=o.forwardRef(f);return p.attrs=c,p.componentStyle=d,p.displayName=l,p.shouldForwardProp=h,p.foldedComponentIds=r?eL(e.foldedComponentIds,e.styledComponentId):"",p.styledComponentId=u,p.target=r?e.target:e,Object.defineProperty(p,"defaultProps",{get(){return this._foldedDefaultProps},set(t){this._foldedDefaultProps=r?function(e,...t){for(let n of t)(function e(t,n,r=!1){if(!r&&!eF(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(let r=0;r<n.length;r++)t[r]=e(t[r],n[r]);else if(eF(n))for(let r in n)t[r]=e(t[r],n[r]);return t})(e,n,!0);return e}({},e.defaultProps,t):t}}),e_(p,()=>`.${p.styledComponentId}`),i&&function e(t,n,r){if("string"!=typeof n){let i=eO(n);i&&i!==ej&&e(t,i,r);let s=eM(n).concat(eC(n)),o=eA(t),a=eA(n);for(let e=0;e<s.length;++e){let i=s[e];if(!(i in ek||r&&r[i]||a&&i in a||o&&i in o)){let e=eR(n,i);try{eT(t,i,e)}catch(e){}}}}return t}(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),p}var tb=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function tv(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}let tw=e=>(e2.add(e),e);function tx(e,...t){return eV(e)||eF(e)?tw(te(tv(ea,[e,...t]))):0===t.length&&1===e.length&&"string"==typeof e[0]?te(e):tw(te(tv(e,t)))}let tS=e=>(function e(t,n,r=el){if(!n)throw ee(1,n);let i=(e,...i)=>t(n,r,tx(e,...i));return i.attrs=i=>e(t,n,Object.assign(Object.assign({}
1,r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)})),i.withConfig=i=>e(t,n,Object.assign(Object.assign({},r),i)),i})(ty,e),tk=tS;tb.forEach(e=>{tk[e]=tS(e)});class tP{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(eV(n)&&!eI(n))return!1}return!0}(e),e1.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let s=this.computeRules(e,t,n,r);n.insertRules(i,s.name,s.rules)}return}let s=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&s){let t=s.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=e$(te(this.rules,t,n,r)),s={name:this.componentId+e,rules:r(i,"")};return this.instanceRules.set(e,s),s}rebuildGroup(e){let t=this.componentId;for(let n of(e.clearRules(t),this.instanceRules.values()))e.insertRules(t,n.name,n.rules)}}function tE(e,...t){let n=tx(e,...t),r=`sc-global-${eb(JSON.stringify(n))}`,i=new tP(n,r),s=e=>{let t;let n=tc(),s=o.useContext(td);{let e=o.useRef(null);null===e.current&&(e.current=n.styleSheet.allocateGSInstance(r)),t=e.current}n.styleSheet.server&&a(t,e,n.styleSheet,s,n.stylis);{let l=i.isStatic?[t,n.styleSheet,i]:[t,e,n.styleSheet,s,n.stylis,i],u=o.useRef(i);o.useLayoutEffect(()=>{n.styleSheet.server||(u.current!==i&&(n.styleSheet.clearRules(r),u.current=i),a(t,e,n.styleSheet,s,n.stylis))},l),o.useLayoutEffect(()=>()=>{n.styleSheet.server||i.removeStyles(t,n.styleSheet)},[t,n.styleSheet,i])}return n.styleSheet.server&&i.instanceRules.delete(t),null};function a(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Q,n,o);else{let a=Object.assign(Object.assign({},t),{theme:eu(t,r,s.defaultProps)});i.renderStyles(e,a,n,o)}}return o.memo(s)}class tA{constructor(e,t){this[s]=!0,this.inject=(e,t=tl)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=J+e,this.rules=t,ei(this.id),e_(this,()=>{throw ee(12,String(this.name))})}getName(e=tl){return e.hash?this.name+eg(+e.hash>>>0):this.name}}function tT(e,...t){let n=e$(tx(e,...t));return new tA(eb(n),n)}s=e4;class tM{constructor({nonce:e}={}){this._emitSheetCSS=()=>{let e=this.instance.toString();if(!e)return"";let t=this.instance.options.nonce||eK();return`<style ${e$([t&&`nonce="${t}"`,`${W}="true"`,`${G}="${Y}"`].filter(Boolean)," ")}>${e}</style>`},this.getStyleTags=()=>{if(this.sealed)throw ee(2);return this._emitSheetCSS()}
1,this.getStyleElement=()=>{if(this.sealed)throw ee(2);let e=this.instance.toString();if(!e)return[];let t={[W]:"",[G]:Y,dangerouslySetInnerHTML:{__html:e}},n=this.instance.options.nonce||eK();return n&&(t.nonce=n),[o.createElement("style",Object.assign({},t,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new e1({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw ee(2);return o.createElement(th,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw ee(3)}}},94046:function(e,t,n){"use strict";let r;function i(){return"undefined"!=typeof window}function s(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!i()&&(e instanceof Node||e instanceof o(e).Node)}function u(e){return!!i()&&(e instanceof Element||e instanceof o(e).Element)}function c(e){return!!i()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function h(e){return!!i()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function d(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=S(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function f(e){return/^(table|td|th)$/.test(s(e))}function p(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{Dx:function(){return S},Jj:function(){return o},Kx:function(){return function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let s=function e(t){let n=P(t);return x(n)?t.ownerDocument?t.ownerDocument.body:t.body:c(n)&&d(n)?n:e(n)}(t),a=s===(null==(i=t.ownerDocument)?void 0:i.body),l=o(s);if(!a)return n.concat(s,e(s,[],r));{let t=E(l);return n.concat(l,l.visualViewport||[],d(s)?s:[],t&&r?e(t):[])}}},Lw:function(){return k},Ow:function(){return P},Pf:function(){return w},Py:function(){return x},Re:function(){return c},UG:function(){return l},Ze:function(){return f},Zq:function(){return h},ao:function(){return d},gQ:function(){return v},hT:function(){return b},kK:function(){return u},tF:function(){return a},tR:function(){return p},wK:function(){return E},wk:function(){return s}});let g=/transform|translate|scale|rotate|perspective|filter/,m=/paint|layout|strict|content/,y=e=>!!e&&"none"!==e;function b(e){let t=u(e)?S(e):e;return y(t.transform)||y(t.translate)||y(t.scale)||y(t.rotate)||y(t.perspective)||!w()&&(y(t.backdropFilter)||y(t.filter))||g.test(t.willChange||"")||m.test(t.contain||"")}function v(e){let t=P(e);for(;c(t)&&!x(t);){if(b(t))return t;if(p(t))break;t=P(t)}return null}function w(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function x(e){return/^(html|body|#document)$/.test(s(e))}function S(e){return o(e).getComputedStyle(e)}function k(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function P(e){if("html"===s(e))return e;let t=e.assignedSlot||e.parentNode||h(e)&&e.host||a(e);return h(t)?t.host:t}function E(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},37326:function(e,t,n){"use strict";n.d(t,{$_:function(){return p},EZ:function(){return i},MA:function(){return a},Q6:function(){return c},Sn:function(){return s},VG:function(){return f},ek:function(){return d},er:function(){return h},iN:function(){return l},ix:function(){return o},jk:function(){return u},mE:function(){return r}});let r=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],i=["50","100","200","300","400","500","600","700","800","900","950"],s={title:"Black",hex:"#0d0e12"},o={title:"White",hex:"#ffffff"},a={50:{title:"Gray 50",hex:"#f6f6f8"},100:{title:"Gray 100",hex:"#eeeef1"},200:{title:"Gray 200",hex:"#e3e4e8"},300:{title:"Gray 300",hex:"#bbbdc9"},400:{title:"Gray 400",hex:"#9499ad"},500:{title:"Gray 500",hex:"#727892"},600:{title:"Gray 600",hex:"#515870"},700:{title:"Gray 700",hex:"#383d51"},800:{title:"Gray 800",hex:"#252837"},900:{title:"Gray 900",hex:"#1b1d27"},950:{title:"Gray 950",hex:"#13141b"}},l={50:{title:"Blue 50",hex:"#f5f8ff"},100:{title:"Blue 100",hex:"#e5edff"},200:{title:"Blue 200",hex:"#dbe5ff"},300:{title:"Blue 300",hex:"#a8bfff"},400:{title:"Blue 400",hex:"#7595ff"},500:{title:"Blue 500",hex:"#556bfc"},600:{title:"Blue 600",hex:"#4043e7"},700:{title:"Blue 700",hex:"#2927aa"},800:{title:"Blue 800",hex:"#192457"},900:{title:"Blue 900",hex:"#161a41"},950:{title:"Blue 950",hex:"#101228"}},u={50:{title:"Purple 50",hex:"#f8f5ff"},100:{title:"Purple 100",hex:"#f1ebff"},200:{title:"Purple 200",hex:"#ece1fe"},300:{title:"Purple 300",hex:"#ccb1fc"},400:{title:"Purple 400",hex:"#b087f7"},500:{title:"Purple 500",hex:"#8f57ef"},600:{title:"Purple 600",hex:"#721fe5"},700:{title:"Purple 700",hex:"#4c1a9e"},800:{title:"Purple 800",hex:"#2f1862"},900:{title:"Purple 900",hex:"#23173f"},950:{title:"Purple 950",hex:"#181128"}},c={50:{title:"Red 50",hex:"#fff6f5"},100:{title:"Red 100",hex:"#ffe7e5"},200:{title:"Red 200",hex:"#ffdedc"},300:{title:"Red 300",hex:"#fdada5"},400:{title:"Red 400",hex:"#f77769"},500:{title:"Red 500",hex:"#ef4434"},600:{title:"Red 600",hex:"#cc2819"},700:{title:"Red 700",hex:"#8b2018"},800:{title:"Red 800",hex:"#4d1714"},900:{title:"Red 900",hex:"#321615"},950:{title:"Red 950",hex:"#1e1011"}},h={50:{title:"Yellow 50",hex:"#fefae1"},100:{title:"Yellow 100",hex:"#fcf3bb"},200:{title:"Yellow 200",hex:"#f9e994"},300:{title:"Yellow 300",hex:"#f7d455"},400:{title:"Yellow 400",hex:"#f9bc15"},500:{title:"Yellow 500",hex:"#d28a04"},600:{title:"Yellow 600",hex:"#965908"},700:{title:"Yellow 700",hex:"#653a0b"},800:{title:"Yellow 800",hex:"#3b220c"},900:{title:"Yellow 900",hex:"#271a11"},950:{title:"Yellow 950",hex:"#181410"}},d={50:{title:"Green 50",hex:"#e7fef5"},100:{title:"Green 100",hex:"#c5fce8"},200:{title:"Green 200",hex:"#a9f9dc"},300:{title:"Green 300",hex:"#59f3ba"},400:{title:"Green 400",hex:"#0ff0a1"},500:{title:"Green 500",hex:"#04b97a"},600:{title:"Green 600",hex:"#01794f"},700:{title:"Green 700",hex:"#015133"},800:{title:"Green 800",hex:"#023120"},900:{title:"Green 900",hex:"#06231a"},950:{title:"Green 950",hex:"#071715"}},f={gray:a,blue:l,purple:u,magenta:{50:{title:"Magenta 50",hex:"#fef6f9"},100:{title:"Magenta 100",hex:"#fde8ef"},200:{title:"Magenta 200",hex:"#fcdee9"},300:{title:"Magenta 300",hex:"#f7abc5"},400:{title:"Magenta 400",hex:"#f0709b"},500:{title:"Magenta 500",hex:"#e72767"},600:{title:"Magenta 600",hex:"#b11651"},700:{title:"Magenta 700",hex:"#7c1342"},800:{title:"Magenta 800",hex:"#4b1130"},900:{title:"Magenta 900",hex:"#341325"},950:{title:"Magenta 950",hex:"#1f0f14"}},red:c,orange:{50:{title:"Orange 50",hex:"#fff7f0"},100:{title:"Orange 100",hex:"#ffeadb"},200:{title:"Orange 200",hex:"#ffddc7"},300:{title:"Orange 300",hex:"#ffb685"},400:{title:"Orange 400",hex:"#ff8e42"},500:{title:"Orange 500",hex:"#fa6400"},600:{title:"Orange 600",hex:"#b14802"},700:{title:"Orange 700",hex:"#7c3404"},800:{title:"Orange 800",hex:"#461e07"},900:{title:"Orange 900",hex:"#32160b"},950:{title:"Orange 950",hex:"#21120d"}},yellow:h,green:d,cyan:{50:{title:"Cyan 50",hex:"#e7fefe"},100:{title:"Cyan 100",hex:"#c5fcfc"},200:{title:"Cyan 200",hex:"#96f8f8"},300:{title:"Cyan 300",hex:"#62efef"},400:{title:"Cyan 400",hex:"#18e2e2"},500:{title:"Cyan 500",hex:"#04b8be"},600:{title:"Cyan 600",hex:"#037782"},700:{title:"Cyan 700",hex:"#024950"},800:{title:"Cyan 800",hex:"#042f34"},900:{title:"Cyan 900",hex:"#072227"},950:{title:"Cyan 950",hex:"#0d181c"}}},p={black:s,white:o,...f}},53374:function(e,t,n){"use strict";function r(e){let[t,n]=e;return[t,n]}function i(e,t){let n=e,r=t,i=n.length,s=r.length;if(0===i||0===s)return 0;i>s?n=n.substring(i-s):i<s&&(r=r.substring(0,i));let o=Math.min(i,s);if(n===r)return o;let a=0,l=1;for(let e=0;-1!==e;){let t=n.substring(o-l);if(-1===(e=r.indexOf(t)))break;
1l+=e,(0===e||n.substring(o-l)===r.substring(0,l))&&(a=l,l++)}return a}function s(e,t){if(!e||!t||e[0]!==t[0])return 0;let n=0,r=Math.min(e.length,t.length),i=r,s=0;for(;n<i;)e.substring(s,i)===t.substring(s,i)?s=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function o(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let n=0,r=Math.min(e.length,t.length),i=r,s=0;for(;n<i;)e.substring(e.length-i,e.length-s)===t.substring(t.length-i,t.length-s)?s=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function l(e,t,n,r,i){let s=e.substring(0,n),o=t.substring(0,r),a=e.substring(n),l=t.substring(r),u=w(s,o,{checkLines:!1,deadline:i}),c=w(a,l,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,n){let r=e.slice(n,n+Math.floor(e.length/4)),i=-1,a="",l,u,c,h;for(;-1!==(i=t.indexOf(r,i+1));){let r=s(e.slice(n),t.slice(i)),d=o(e.slice(0,n),t.slice(0,i));a.length<d+r&&(a=t.slice(i-d,i)+t.slice(i,i+r),l=e.slice(0,n-d),u=e.slice(n+r),c=t.slice(0,i-d),h=t.slice(i+r))}return 2*a.length>=e.length?[l||"",u||"",c||"",h||"",a||""]:null}n.d(t,{$T:function(){return v},D$:function(){return y},G8:function(){return eo},Hy:function(){return j},JZ:function(){return b},M5:function(){return el},NL:function(){return m},QE:function(){return Y},el:function(){return P},oY:function(){return en}});var c=Object.defineProperty,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&p(e,n,t[n]);if(h)for(var n of h(t))f.call(t,n)&&p(e,n,t[n]);return e};let m=-1,y=1,b=0;function v(e,t,n){var r,i;let s;if(null===e||null===t)throw Error("Null input. (diff)");let o=w(e,t,g({checkLines:!0,deadline:(i=(r=n||{}).timeout||1,s=1,"u">typeof i&&(s=i<=0?Number.MAX_VALUE:i),Date.now()+1e3*s)},r));return function(e){for(let t=0;t<e.length;t++){let[n,r]=e[t];if(0===r.length)continue;let i=r[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(r[r.length-1])&&n===b&&k(e,t,1),a(i)&&n===b&&k(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(o),o}function w(e,t,n){let r=e,i=t;if(r===i)return r?[[b,r]]:[];let a=s(r,i),c=r.substring(0,a);a=o(r=r.substring(a),i=i.substring(a));let h=r.substring(r.length-a),d=function(e,t,n){let r;if(!e)return[[y,t]];if(!t)return[[m,e]];let i=e.length>t.length?e:t,s=e.length>t.length?t:e,o=i.indexOf(s);if(-1!==o)return r=[[y,i.substring(0,o)],[b,s],[y,i.substring(o+s.length)]],e.length>t.length&&(r[0][0]=m,r[2][0]=m),r;if(1===s.length)return[[m,e],[y,t]];let a=function(e,t,n=1){let r,i,s,o,a;if(n<=0)return null;let l=e.length>t.length?e:t,c=e.length>t.length?t:e;if(l.length<4||2*c.length<l.length)return null;let h=u(l,c,Math.ceil(l.length/4)),d=u(l,c,Math.ceil(l.length/2));if(h&&d)r=h[4].length>d[4].length?h:d;else{if(!h&&!d)return null;d?h||(r=d):r=h}if(!r)throw Error("Unable to find a half match.");return e.length>t.length?(i=r[0],s=r[1],o=r[2],a=r[3]):(o=r[0],a=r[1],i=r[2],s=r[3]),[i,s,o,a,r[4]]}(e,t);if(a){let e=a[0],t=a[1],r=a[2],i=a[3],s=a[4],o=w(e,r,n),l=w(t,i,n);return o.concat([[b,s]],l)}return n.checkLines&&e.length>100&&t.length>100?function(e,t,n){let r=e,i=t,s=function(e,t){let n=[],r={};function i(e){let t="",i=0,o=-1,a=n.length;for(;o<e.length-1;){-1===(o=e.indexOf(`
2`,i))&&(o=e.length-1);let l=e.slice(i,o+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(a===s&&(l=e.slice(i),o=e.length),t+=String.fromCharCode(a),r[l]=a,n[a++]=l),i=o+1}return t}n[0]="";let s=4e4,o=i(e);return s=65535,{chars1:o,chars2:i(t),lineArray:n}}(r,i);r=s.chars1,i=s.chars2;let o=s.lineArray,a=w(r,i,{checkLines:!1,deadline:n.deadline});(function(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join("")}})(a,o),(a=P(a)).push([b,""]);let l=0,u=0,c=0,h="",d="";for(;l<a.length;){switch(a[l][0]){case y:c++,d+=a[l][1];break;case m:u++,h+=a[l][1];break;case b:if(u>=1&&c>=1){a.splice(l-u-c,u+c),l=l-u-c;let e=w(h,d,{checkLines:!1,deadline:n.deadline});for(let t=e.length-1;t>=0;t--)a.splice(l,0,e[t]);l+=e.length}c=0,u=0,h="",d="";break;default:throw Error("Unknown diff operation.")}l++}return a.pop(),a}(e,t,n):function(e,t,n){let r=e.length,i=t.length,s=Math.ceil((r+i)/2),o=2*s,a=Array(o),u=Array(o);for(let e=0;e<o;e++)a[e]=-1,u[e]=-1;a[s+1]=0,u[s+1]=0;let c=r-i,h=c%2!=0,d=0,f=0,p=0,g=0;for(let m=0;m<s&&!(Date.now()>n);m++){for(let p=-m+d;p<=m-f;p+=2){let g;let y=s+p,b=(g=p===-m||p!==m&&a[y-1]<a[y+1]?a[y+1]:a[y-1]+1)-p;for(;g<r&&b<i&&e.charAt(g)===t.charAt(b);)g++,b++;if(a[y]=g,g>r)f+=2;else if(b>i)d+=2;else if(h){let i=s+c-p;if(i>=0&&i<o&&-1!==u[i]&&g>=r-u[i])return l(e,t,g,b,n)}}for(let d=-m+p;d<=m-g;d+=2){let f;let y=s+d,b=(f=d===-m||d!==m&&u[y-1]<u[y+1]?u[y+1]:u[y-1]+1)-d;for(;f<r&&b<i&&e.charAt(r-f-1)===t.charAt(i-b-1);)f++,b++;if(u[y]=f,f>r)g+=2;else if(b>i)p+=2;else if(!h){let i=s+c-d;if(i>=0&&i<o&&-1!==a[i]){let o=a[i],u=s+o-i;if(o>=(f=r-f))return l(e,t,o,u,n)}}}}return[[m,e],[y,t]]}(e,t,n.deadline)}(r=r.substring(0,r.length-a),i=i.substring(0,i.length-a),n);return c&&d.unshift([b,c]),h&&d.push([b,h]),d=O(d)}function x(e,t,n){return 1===n?e+t:t+e}function S(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}
2function k(e,t,n){var r,i;let s=1===n?-1:1,o=null,a=null,l=t+n;for(;l>=0&&l<e.length&&(null===o||null===a);l+=n){let[r,i]=e[l];if(0!==i.length){if(r===y){null===o&&(o=l);continue}if(r===m){null===a&&(a=l);continue}if(r===b){if(null===o&&null===a){let[r,i]=S(e[t][1],n);e[t][1]=r,e[l][1]=x(e[l][1],i,s);return}break}}}if(null!==o&&null!==a&&(r=o,i=a,1===n?e[r][1][e[r][1].length-1]===e[i][1][e[i][1].length-1]:e[r][1][0]===e[i][1][0])){let[r,i]=S(e[o][1],s),[l]=S(e[a][1],s);e[o][1]=r,e[a][1]=l,e[t][1]=x(e[t][1],i,n);return}let[u,c]=S(e[t][1],n);e[t][1]=u,null===o?(e.splice(l,0,[y,c]),null!==a&&a>=l&&a++):e[o][1]=x(e[o][1],c,s),null===a?e.splice(l,0,[m,c]):e[a][1]=x(e[a][1],c,s)}function P(e){let t=e.map(e=>r(e)),n=!1,s=[],o=0,a=null,l=0,u=0,c=0,h=0,d=0;for(;l<t.length;)t[l][0]===b?(s[o++]=l,u=h,c=d,h=0,d=0,a=t[l][1]):(t[l][0]===y?h+=t[l][1].length:d+=t[l][1].length,a&&a.length<=Math.max(u,c)&&a.length<=Math.max(h,d)&&(t.splice(s[o-1],0,[m,a]),t[s[o-1]+1][0]=y,o--,l=--o>0?s[o-1]:-1,u=0,c=0,h=0,d=0,a=null,n=!0)),l++;for(n&&(t=O(t)),t=R(t),l=1;l<t.length;){if(t[l-1][0]===m&&t[l][0]===y){let e=t[l-1][1],n=t[l][1],r=i(e,n),s=i(n,e);r>=s?(r>=e.length/2||r>=n.length/2)&&(t.splice(l,0,[b,n.substring(0,r)]),t[l-1][1]=e.substring(0,e.length-r),t[l+1][1]=n.substring(r),l++):(s>=e.length/2||s>=n.length/2)&&(t.splice(l,0,[b,e.substring(0,s)]),t[l-1][0]=y,t[l-1][1]=n.substring(0,n.length-s),t[l+1][0]=m,t[l+1][1]=e.substring(s),l++),l++}l++}return t}let E=/[^a-zA-Z0-9]/,A=/\s/,T=/[\r\n]/,M=/\n\r?\n$/,C=/^\r?\n\r?\n/;function R(e){let t=e.map(e=>r(e));function n(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(E),s=r.match(E),o=i&&n.match(A),a=s&&r.match(A),l=o&&n.match(T),u=a&&r.match(T),c=l&&e.match(M),h=u&&t.match(C);return c||h?5:l||u?4:i&&!o&&a?3:o||a?2:i||s?1:0}let i=1;for(;i<t.length-1;){if(t[i-1][0]===b&&t[i+1][0]===b){let e=t[i-1][1],r=t[i][1],s=t[i+1][1],a=o(e,r);if(a){let t=r.substring(r.length-a);e=e.substring(0,e.length-a),r=t+r.substring(0,r.length-a),s=t+s}let l=e,u=r,c=s,h=n(e,r)+n(r,s);for(;r.charAt(0)===s.charAt(0);){e+=r.charAt(0),r=r.substring(1)+s.charAt(0),s=s.substring(1);let t=n(e,r)+n(r,s);t>=h&&(h=t,l=e,u=r,c=s)}t[i-1][1]!==l&&(l?t[i-1][1]=l:(t.splice(i-1,1),i--),t[i][1]=u,c?t[i+1][1]=c:(t.splice(i+1,1),i--))}i++}return t}function O(e){let t=e.map(e=>r(e));t.push([b,""]);let n=0,i=0,a=0,l="",u="",c;for(;n<t.length;)switch(t[n][0]){case y:a++,u+=t[n][1],n++;break;case m:i++,l+=t[n][1],n++;break;case b:i+a>1?(0!==i&&0!==a&&(0!==(c=s(u,l))&&(n-i-a>0&&t[n-i-a-1][0]===b?t[n-i-a-1][1]+=u.substring(0,c):(t.splice(0,0,[b,u.substring(0,c)]),n++),u=u.substring(c),l=l.substring(c)),0!==(c=o(u,l))&&(t[n][1]=u.substring(u.length-c)+t[n][1],u=u.substring(0,u.length-c),l=l.substring(0,l.length-c))),n-=i+a,t.splice(n,i+a),l.length&&(t.splice(n,0,[m,l]),n++),u.length&&(t.splice(n,0,[y,u]),n++),n++):0!==n&&t[n-1][0]===b?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,a=0,i=0,l="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let h=!1;for(n=1;n<t.length-1;)t[n-1][0]===b&&t[n+1][0]===b&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),h=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),h=!0)),n++;return h&&(t=O(t)),t}function j(e,t=4){let n=e.map(e=>r(e)),i=!1,s=[],o=0,a=null,l=0,u=!1,c=!1,h=!1,d=!1;for(;l<n.length;)n[l][0]===b?(n[l][1].length<t&&(h||d)?(s[o++]=l,u=h,c=d,a=n[l][1]):(o=0,a=null),h=!1,d=!1):(n[l][0]===m?d=!0:h=!0,a&&(u&&c&&h&&d||a.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+(t?1:0),0)}(u,c,h,d))&&(n.splice(s[o-1],0,[m,a]),n[s[o-1]+1][0]=y,o--,a=null,u&&c?(h=!0,d=!0,o=0):(l=--o>0?s[o-1]:-1,h=!1,d=!1),i=!0)),l++;return i&&(n=O(n)),n}var V=Object.defineProperty,D=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,$=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))I.call(t,n)&&$(e,n,t[n]);if(D)for(var n of D(t))L.call(t,n)&&$(e,n,t[n]);return e};let _={threshold:.5,distance:1e3};function B(e,t,n,r={}){if(null===e||null===t||null===n)throw Error("Null input. (match())");let i=Math.max(0,Math.min(n,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,n,r={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=F(F({},_),r),s=function(e){let t={};for(let n=0;n<e.length;n++)t[e.charAt(n)]=0;for(let n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t}(t);function o(e,r){let s=e/t.length,o=Math.abs(n-r);return i.distance?s+o/i.distance:o?1:s}let a=i.threshold,l=e.indexOf(t,n);-1!==l&&(a=Math.min(o(0,l),a),-1!==(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(o(0,l),a)));let u=1<<t.length-1;l=-1;let c,h,d=t.length+e.length,f=[];for(let r=0;r<t.length;r++){for(c=0,h=d;c<h;)o(r,n+h)<=a?c=h:d=h,h=Math.floor((d-c)/2+c);d=h;let i=Math.max(1,n-h+1),p=Math.min(n+h,e.length)+t.length,g=Array(p+2);g[p+1]=(1<<r)-1;for(let t=p;t>=i;t--){let c=s[e.charAt(t-1)];if(0===r?g[t]=(g[t+1]<<1|1)&c:g[t]=(g[t+1]<<1|1)&c|((f[t+1]|f[t])<<1|1)|f[t+1],g[t]&u){let e=o(r,t-1);if(e<=a){if(a=e,(l=t-1)>n)i=Math.max(1,2*n-l);else break}}}if(o(r+1,n)>a)break;f=g}return l}(e,t,i,r):-1}function z(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==y&&(t[n]=e[n][1]);return t.join("")}function N(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==m&&(t[n]=e[n][1]);return t.join("")}function H(e,t){let n=0,r=0,i=0,s=0,o;for(o=0;o<e.length&&(e[o][0]!==y&&(n+=e[o][1].length),e[o][0]!==m&&(r+=e[o][1].length),!(n>t));o++)i=n,s=r;return e.length!==o&&e[o][0]===m?s:s+(t-i)}function W(e){let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);if(typeof r>"u")throw Error("Failed to get codepoint");t+=U(r)}return t}function U(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function G(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function Y(e,t,n={}){if("string"==typeof e)throw Error("Patches must be an array - pass the patch to `parsePatch()` first");let i=t;if(0===e.length)return[i,[]];let s=function(e,t,n={}){let i=0,s=0;function o(e){for(;i<e;){let e=t.codePointAt(s);if(typeof e>"u")return s;i+=U(e),e>65535?s+=2:s+=1}if(!n.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return s}let a=[];for(let t of e)a.push({diffs:t.diffs.map(e=>r(e)),start1:o(t.start1),start2:o(t.start2),utf8Start1:t.utf8Start1,utf8Start2:t.utf8Start2,length1:t.length1,length2:t.length2,utf8Length1:t.utf8Length1,utf8Length2:t.utf8Length2});return a}(e,i,{allowExceedingIndices:n.allowExceedingIndices}),o=n.margin||4,a=n.deleteThreshold||.4,l=function(e,t=4){let n="";for(let e=1;e<=t;e++)n+=String.fromCharCode(e);for(let n of e)n.start1+=t,n.start2+=t,n.utf8Start1+=t,n.utf8Start2+=t;let r=e[0],i=r.diffs;if(0===i.length||i[0][0]!==b)i.unshift([b,n]),r.start1-=t,r.start2-=t,r.utf8Start1-=t,r.utf8Start2-=t,r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,s=t-e;i[0][1]=n.substring(e)+i[0][1],r.start1-=s,r.start2-=s,r.utf8Start1-=s,r.utf8Start2-=s,r.length1+=s,r.length2+=s,r.utf8Length1+=s,r.utf8Length2+=s}if(0===(i=(r=e[e.length-1]).diffs).length||i[i.length-1][0]!==b)i.push([b,n]),r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[i.length-1][1].length){let e=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,e),r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e}return n}(s,o);i=l+i+l,function(e,t=4){for(let n=0;n<e.length;n++){if(e[n].length1<=32)continue;let r=e[n];e.splice(n--,1);let i=r.start1,s=r.start2,o="";for(;0!==r.diffs.length;){let a=G(i-o.length,s-o.length),l=!0;if(""!==o){let e=W(o);a.length1=o.length,a.utf8Length1=e,a.length2=o.length,a.utf8Length2=e,a.diffs.push([b,o])}for(;0!==r.diffs.length&&a.length1<32-t;){let e=r.diffs[0][0],n=r.diffs[0][1],o=W(n);if(e===y){a.length2+=n.length,a.utf8Length2+=o,s+=n.length;let e=r.diffs.shift();e&&a.diffs.push(e),l=!1}else e===m&&1===a.diffs.length&&a.diffs[0][0]===b&&n.length>64?(a.length1+=n.length,a.utf8Length1+=o,i+=n.length,l=!1,a.diffs.push([e,n]),r.diffs.shift()):(o=W(n=n.substring(0,32-a.length1-t)),a.length1+=n.length,a.utf8Length1+=o,i+=n.length,e===b?(a.length2+=n.length,a.utf8Length2+=o,s+=n.length):l=!1,a.diffs.push([e,n]),n===r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(n.length))}o=(o=N(a.diffs)).substring(o.length-t);let u=z(r.diffs).substring(0,t),c=W(u);""!==u&&(a.length1+=u.length,a.length2+=u.length,a.utf8Length1+=c,a.utf8Length2+=c,0!==a.diffs.length&&a.diffs[a.diffs.length-1][0]===b?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push([b,u])),l||e.splice(++n,0,a)}}}(s,o);let u=0,c=[];for(let e=0;e<s.length;e++){let t=s[e].start2+u,n=z(s[e].diffs),r,o=-1;if(n.length>32?-1!==(r=B(i,n.substring(0,32),t))&&(-1===(o=B(i,n.substring(n.length-32),t+n.length-32))||r>=o)&&(r=-1):r=B(i,n,t),-1===r)c[e]=!1,u-=s[e].length2-s[e].length1;else{let l;if(c[e]=!0,u=r-t,l=-1===o?i.substring(r,r+n.length):i.substring(r,o+32),n===l)i=i.substring(0,r)+N(s[e].diffs)+i.substring(r+n.length);else{let t=v(n,l,{checkLines:!1});if(n.length>32&&function(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let s=e[i][0],o=e[i][1];switch(s){case y:n+=o.length;break;case m:r+=o.length;break;case b:t+=Math.max(n,r),n=0,r=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(n,r)}(t)/n.length>a)c[e]=!1;else{t=R(t);let n=0,o=0;for(let a=0;a<s[e].diffs.length;a++){let l=s[e].diffs[a];l[0]!==b&&(o=H(t,n)),l[0]===y?i=i.substring(0,r+o)+l[1]+i.substring(r+o):l[0]===m&&(i=i.substring(0,r+o)+i.substring(r+H(t,n+l[1].length))),l[0]!==m&&(n+=l[1].length)}}}}}return[i=i.substring(l.length,i.length-l.length),c]}var X=Object.defineProperty,K=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,J=(e,t,n
2)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))Z.call(t,n)&&J(e,n,t[n]);if(K)for(var n of K(t))q.call(t,n)&&J(e,n,t[n]);return e};let ee={margin:4};function et(e={}){return Q(Q({},ee),e)}function en(e,t,n){if("string"==typeof e&&"string"==typeof t){let r=v(e,t,{checkLines:!0});return r.length>2&&(r=j(r=P(r))),er(e,r,et(n))}if(e&&Array.isArray(e)&&typeof t>"u")return er(z(e),e,et(n));if("string"==typeof e&&t&&Array.isArray(t))return er(e,t,et(n));throw Error("Unknown call format to make()")}function er(e,t,n){if(0===t.length)return[];let r=[],i=G(0,0),s=0,o=0,a=0,l=0,u=0,c=e,h=e;for(let e=0;e<t.length;e++){let d=t[e],[f,p]=d,g=p.length,v=W(p);switch(s||f===b||(i.start1=o,i.start2=a,i.utf8Start1=l,i.utf8Start2=u),f){case y:i.diffs[s++]=d,i.length2+=g,i.utf8Length2+=v,h=h.substring(0,a)+p+h.substring(a);break;case m:i.length1+=g,i.utf8Length1+=v,i.diffs[s++]=d,h=h.substring(0,a)+h.substring(a+g);break;case b:g<=2*n.margin&&s&&t.length!==e+1?(i.diffs[s++]=d,i.length1+=g,i.length2+=g,i.utf8Length1+=v,i.utf8Length2+=v):g>=2*n.margin&&s&&(ei(i,c,n),r.push(i),i=G(-1,-1),s=0,c=h,o=a,l=u);break;default:throw Error("Unknown diff type")}f!==y&&(o+=g,l+=v),f!==m&&(a+=g,u+=v)}return s&&(ei(i,c,n),r.push(i)),r}function ei(e,t,n){if(0===t.length)return;let r=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(r)!==t.lastIndexOf(r)&&r.length<32-n.margin-n.margin;)i+=n.margin,r=t.substring(e.start2-i,e.start2+e.length1+i);i+=n.margin;let s=e.start2-i;s>=1&&a(t[s])&&s--;let o=t.substring(s,e.start2);o&&e.diffs.unshift([b,o]);let l=o.length,u=W(o),c=e.start2+e.length1+i;c<t.length&&a(t[c])&&c++;let h=t.substring(e.start2+e.length1,c);h&&e.diffs.push([b,h]);let d=h.length,f=W(h);e.start1-=l,e.start2-=l,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=l+d,e.length2+=l+d,e.utf8Length1+=u+f,e.utf8Length2+=u+f}let es=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function eo(e){if(!e)return[];let t=[],n=e.split(`
3`),r=0;for(;r<n.length;){let e=n[r].match(es);if(!e)throw Error(`Invalid patch string: ${n[r]}`);let i=G(ea(e[1]),ea(e[3]));for(t.push(i),""===e[2]?(i.start1--,i.utf8Start1--,i.length1=1,i.utf8Length1=1):"0"===e[2]?(i.length1=0,i.utf8Length1=0):(i.start1--,i.utf8Start1--,i.utf8Length1=ea(e[2]),i.length1=i.utf8Length1),""===e[4]?(i.start2--,i.utf8Start2--,i.length2=1,i.utf8Length2=1):"0"===e[4]?(i.length2=0,i.utf8Length2=0):(i.start2--,i.utf8Start2--,i.utf8Length2=ea(e[4]),i.length2=i.utf8Length2),r++;r<n.length;){let e;let t=n[r],s=t.charAt(0);if("@"===s)break;if(""===s){r++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let o=W(e)-e.length;if("-"===s)i.diffs.push([m,e]),i.length1-=o;else if("+"===s)i.diffs.push([y,e]),i.length2-=o;else if(" "===s)i.diffs.push([b,e]),i.length1-=o,i.length2-=o;else throw Error(`Invalid patch mode "${s}" in: ${e}`);r++}}return t}function ea(e){return parseInt(e,10)}function el(e){return e.map(eu).join("")}function eu(e){let t,n,r;let{utf8Length1:i,utf8Length2:s,utf8Start1:o,utf8Start2:a,diffs:l}=e;t=0===i?`${o},0`:1===i?`${o+1}`:`${o+1},${i}`,n=0===s?`${a},0`:1===s?`${a+1}`:`${a+1},${s}`;let u=[`@@ -${t} +${n} @@
4`];for(let e=0;e<l.length;e++){switch(l[e][0]){case y:r="+";break;case m:r="-";break;case b:r=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${r+encodeURI(l[e][1])}
5`}return u.join("").replace(/%20/g," ")}},20920:function(e,t,n){"use strict";n.d(t,{BA:function(){return eh},aQ:function(){return f},fi:function(){return eu}});var r=n(37326);let i={avatar:{sizes:[{distance:-4,size:19},{distance:-4,size:25},{distance:-8,size:33},{distance:-12,size:49}],focusRing:{offset:1,width:1}},button:{textWeight:"medium",border:{width:1},focusRing:{offset:-1,width:1}},card:{border:{width:1},focusRing:{offset:-1,width:1},shadow:{outline:.5}},container:[320,640,960,1280,1600,1920],media:[360,600,900,1200,1800,2400],layer:{dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}},radius:[0,1,3,6,9,12,21],shadow:[null,{umbra:[0,0,0,0],penumbra:[0,0,0,0],ambient:[0,0,0,0]},{umbra:[0,3,5,-2],penumbra:[0,6,10,0],ambient:[0,1,18,1]},{umbra:[0,7,8,-4],penumbra:[0,12,17,2],ambient:[0,5,22,4]},{umbra:[0,9,11,-5],penumbra:[0,18,28,2],ambient:[0,7,34,6]},{umbra:[0,11,15,-7],penumbra:[0,24,38,3],ambient:[0,9,46,8]}],space:[0,4,8,12,20,32,52,84,136,220],input:{border:{width:1},checkbox:{size:17,focusRing:{offset:-1,width:1}}
5,radio:{size:17,markSize:9,focusRing:{offset:-1,width:1}},switch:{width:25,height:17,padding:5,transitionDurationMs:150,transitionTimingFunction:"ease-out",focusRing:{offset:1,width:1}},select:{focusRing:{offset:-1,width:1}},text:{focusRing:{offset:-1,width:1}}},style:{button:{root:{transition:"background-color 100ms,border-color 100ms,color 100ms"}}}},s={code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:19,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:22,iconSize:33,lineHeight:31,letterSpacing:0}]},heading:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:700,medium:800,semibold:900,bold:900},sizes:[{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:17,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:21,iconSize:33,lineHeight:29,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:27,iconSize:41,lineHeight:35,letterSpacing:0},{ascenderHeight:9.5,descenderHeight:8.5,fontSize:33,iconSize:49,lineHeight:41,letterSpacing:0},{ascenderHeight:10.5,descenderHeight:9.5,fontSize:38,iconSize:53,lineHeight:47,letterSpacing:0}]},label:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',weights:{regular:600,medium:700,semibold:800,bold:900},sizes:[{ascenderHeight:2,descenderHeight:2,fontSize:8.1,iconSize:13,lineHeight:10,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:9.5,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:10.8,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.25,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:13.6,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:15,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:18,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},o=new WeakMap;function a(e){let t=o.get(e);if(t)return t;let n=u(e,e.card.enabled),r={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:l(e,e.button.default),ghost:l(e,e.button.ghost),bleed:l(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:c(e.input.default),invalid:c(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:l(e,e.selectable||e.muted),shadow:e.base.shadow,skeleton:{from:e.skeleton?.from||e.base.border,to:e.skeleton?.to||e.base.border},syntax:e.syntax};return o.set(e,r),r}function l(e,t){return{default:{enabled:u(e,t.default.enabled),hovered:u(e,t.default.hovered),pressed:u(e,t.default.pressed),selected:u(e,t.default.selected),disabled:u(e,t.default.disabled)},neutral:{enabled:u(e,t.default.enabled),hovered:u(e,t.default.hovered),pressed:u(e,t.default.pressed),selected:u(e,t.default.selected),disabled:u(e,t.default.disabled)},primary:{enabled:u(e,t.primary.enabled),hovered:u(e,t.primary.hovered),pressed:u(e,t.primary.pressed),selected:u(e,t.primary.selected),disabled:u(e,t.primary.disabled)},suggest:{enabled:u(e,t.primary.enabled),hovered:u(e,t.primary.hovered),pressed:u(e,t.primary.pressed),selected:u(e,t.primary.selected),disabled:u(e,t.primary.disabled)},positive:{enabled:u(e,t.positive.enabled),hovered:u(e,t.positive.hovered),pressed:u(e,t.positive.pressed),selected:u(e,t.positive.selected),disabled:u(e,t.positive.disabled)},caution:{enabled:u(e,t.caution.enabled),hovered:u(e,t.caution.hovered),pressed:u(e,t.caution.pressed),selected:u(e,t.caution.selected),disabled:u(e,t.caution.disabled)},critical:{enabled:u(e,t.critical.enabled),hovered:u(e,t.critical.hovered),pressed:u(e,t.critical.pressed),selected:u(e,t.critical.selected),disabled:u(e,t.critical.disabled)}}}function u(e,t){return{...t,avatar:{gray:{bg:e.spot.gray,fg:e.base.bg},blue:{bg:e.spot.blue,fg:e.base.bg},purple:{bg:e.spot.purple,fg:e.base.bg},magenta:{bg:e.spot.magenta,fg:e.base.bg},red:{bg:e.spot.red,fg:e.base.bg},orange:{bg:e.spot.orange,fg:e.base.bg},yellow:{bg:e.spot.yellow,fg:e.base.bg},green:{bg:e.spot.green,fg:e.base.bg}
5,cyan:{bg:e.spot.cyan,fg:e.base.bg}},badge:{default:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,dot:e.muted.default.enabled.muted.fg,icon:e.muted.default.enabled.muted.fg},neutral:{bg:e.muted.transparent.enabled.bg,fg:e.muted.transparent.enabled.fg,dot:e.muted.transparent.enabled.muted.fg,icon:e.muted.transparent.enabled.muted.fg},primary:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},suggest:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},positive:{bg:e.muted.positive.enabled.bg,fg:e.muted.positive.enabled.fg,dot:e.muted.positive.enabled.muted.fg,icon:e.muted.positive.enabled.muted.fg},caution:{bg:e.muted.caution.enabled.bg,fg:e.muted.caution.enabled.fg,dot:e.muted.caution.enabled.muted.fg,icon:e.muted.caution.enabled.muted.fg},critical:{bg:e.muted.critical.enabled.bg,fg:e.muted.critical.enabled.fg,dot:e.muted.critical.enabled.muted.fg,icon:e.muted.critical.enabled.muted.fg}},kbd:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,border:e.muted.default.enabled.border},muted:{...e.muted.default.enabled.muted,bg:t.bg2||t.bg},skeleton:{from:t.skeleton?.from||t.border,to:t.skeleton?.to||t.border}}}function c(e){return{enabled:h(e.enabled),disabled:h(e.disabled),readOnly:h(e.readOnly),hovered:h(e.hovered)}}function h(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let d=new WeakMap;function f(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=d.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...i.avatar,...e.sanity.avatar},button:{...i.button,...e.sanity.button},card:i.card,color:a(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...i.input,...e.sanity.input,checkbox:{...i.input.checkbox,...e.sanity.input.checkbox},radio:{...i.input.radio,...e.sanity.input.radio},switch:{...i.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??i.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return d.set(e,n),n}function p(e){return 2===e._version}let g=new WeakMap,m=new WeakMap;function y(e){let t=m.get(e);if(t)return t;
5let{avatar:n,button:r,color:i,container:s,font:o,input:a,media:l,radius:u,shadow:c,space:h,style:d}=e;return{_version:0,avatar:n,button:r,container:s,color:{light:{transparent:b(i.light.transparent),default:b(i.light.default),primary:b(i.light.primary),positive:b(i.light.positive),caution:b(i.light.caution),critical:b(i.light.critical)},dark:{transparent:b(i.dark.transparent),default:b(i.dark.default),primary:b(i.dark.primary),positive:b(i.dark.positive),caution:b(i.dark.caution),critical:b(i.dark.critical)}},focusRing:a.text.focusRing,fonts:o,input:a,media:l,radius:u,shadows:c,space:h,styles:d,v2:e}}function b(e){return{base:{bg:e.bg,fg:e.fg,border:e.border,focusRing:e.focusRing,shadow:e.shadow},button:e.button,card:e.selectable.default,dark:e._dark,input:{default:v(e.input.default),invalid:v(e.input.invalid)},muted:{...e.button.ghost,transparent:e.button.ghost.default},solid:{...e.button.default,transparent:e.button.default.default},selectable:e.selectable,spot:{gray:e.avatar.gray.bg,blue:e.avatar.blue.bg,purple:e.avatar.purple.bg,magenta:e.avatar.magenta.bg,red:e.avatar.red.bg,orange:e.avatar.orange.bg,yellow:e.avatar.yellow.bg,green:e.avatar.green.bg,cyan:e.avatar.cyan.bg},syntax:e.syntax}}function v(e){return{enabled:w(e.enabled),disabled:w(e.disabled),readOnly:w(e.readOnly),hovered:w(e.hovered)}}function w(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let x=["multiply","screen"],S=["transparent","default","neutral","primary","suggest","positive","caution","critical"],k=["default","neutral","primary","suggest","positive","caution","critical"],P=["enabled","hovered","pressed","selected","disabled"],E=["default","ghost","bleed"],A=["default","invali
5d"],T=["enabled","hovered","readOnly","disabled"];function M(e){return r.EZ.includes(e)}function C(e){return/^\d+%$/.test(e)}function R(e){let t=e.split("/"),n=t.shift()||"",[i,s]=n.split(" ");if(M(i)){let e=t.shift()||"";return C(s)?{type:"color",tint:i,mix:Number(s.slice(0,-1))/100}:O(e)?{type:"color",tint:i,opacity:Number(e)}:{type:"color",tint:i}}if("black"===i||"white"===i){let e=t.shift()||"";return C(s)?{type:"color",key:i,mix:Number(s.slice(0,-1))/100}:O(e)?{type:"color",key:i,opacity:Number(e)}:{type:"color",key:i}}if(r.mE.includes(i)){let[e,r]=(n=t.shift()||"").split(" ");if(M(e)){let n=t.shift()||"";return C(r)?{type:"color",hue:i,tint:e,mix:Number(r.slice(0,-1))/100}:O(n)?{type:"color",hue:i,tint:e,opacity:Number(n)}:{type:"color",hue:i,tint:e}}return{type:"hue",value:i}}if(x.includes(i))return{type:"blendMode",value:i}}function O(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}[...r.mE],[...S],[...k],[...P],[...A],[...T];let j=["500","500"];function V(e,t=j){var n;let r;let{hue:i,scheme:s}=e,o=R(t["light"===s?0:1]);if(!o||"color"!==o.type)throw Error(`Invalid color token: ${t[0]}`);return n={...o,hue:o.hue||i},r="",r="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0!==n.mix?`${r} ${100*n.mix}%`:(void 0!==n.opacity&&(r+=`/${n.opacity}`),r)}let D={base:{"*":{_blend:["multiply","screen"],accent:{fg:["purple/600","purple/400"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},backdrop:["gray/200/0.5","black/0.5"],badge:{"*":{bg:["100","900"],fg:["600","400"],icon:["500","500"],dot:["500","500"]},positive:{bg:["200 50%","900"],fg:["600","500"]},caution:{bg:["200 50%","900"],fg:["600","500"]}},bg:["50","950"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["800","200"],focusRing:["blue/500","blue/500"],icon:["600","400"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/600","blue/300"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},shadow:{outline:["500/0.3","500/0.4"],umbra:["gray/500/0.1","black/0.2"],penumbra:["gray/500/0.07","black/0.14"],ambient:["gray/500/0.06","black/0.12"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},transparent:{bg:["50","black"]},default:{bg:["white","950"],fg:["800","200"],muted:{fg:["600","400"]}},primary:{_hue:"blue"},suggest:{_hue:"purple"},positive:{_hue:"green",shadow:{outline:["500/0.4","500/0.4"]}},caution:{_hue:"yellow",shadow:{outline:["600/0.3","500/0.4"]}},critical:{_hue:"red"}},button:{default:{"*":{"*":{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500/0","400/0"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},hovered:{bg:["600","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/500","gray/400"],fg:["white","black"]}},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["300","600"],code:{bg:["950","50"],fg:["300","600"]},fg:["300","600"],muted:{bg:["950","50"],fg:["300","600"]},kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},bg:["800","200"],muted:{bg:["950","50"],fg:["400","600"]}},hovered:{bg:["900","100"]},pressed:{bg:["black","white"]},selected:{bg:["black","white"]}}},ghost:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 60%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["50","950"],border:["100","900"],code:{bg:["500 10%","400 10%"],fg:["700 60%","400 60%"]},fg:["600","400"],icon:["700 60%","300 60%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 60%","blue/300 60%"]},muted:{bg:["100","950"],fg:["700 60%","300 60%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["100","900"],fg:["700","300"]},pressed:{bg:["200","800"],fg:["800","200"]},selected:{bg:["200","800"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
5,badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["400","600"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","700"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{bg:["50","950"],fg:["400","600"],border:["100","900"],placeholder:["200","800 50%"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","950"]},pressed:{bg:["100","900"]},selected:{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["multiply","screen"],bg:["white","black"],fg:["black","white"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500 20%","400 20%"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["500 10%","400 10%"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{bg:["50 50%","950 50%"],fg:["200","800"]}}},default:{selected:{_hue:"blue"}},critical:{disabled:{bg:["50 50%","950 50%"]}}},syntax:{atrule:["purple/600","purple/400"],attrName:["green/600","green/400"],attrValue:["yellow/600","yellow/400"],attribute:["yellow/600","yellow/400"],boolean:["purple/600","purple/400"],builtin:["purple/600","purple/400"],c
5data:["yellow/600","yellow/400"],char:["yellow/600","yellow/400"],class:["orange/600","orange/400"],className:["cyan/600","cyan/400"],comment:["gray/400","gray/600"],constant:["purple/600","purple/400"],deleted:["red/600","red/400"],entity:["red/600","red/400"],function:["green/600","green/400"],hexcode:["blue/600","blue/400"],id:["purple/600","purple/400"],important:["purple/600","purple/400"],inserted:["yellow/600","yellow/400"],keyword:["magenta/600","magenta/400"],number:["purple/600","purple/400"],operator:["magenta/600","magenta/400"],property:["blue/600","blue/400"],pseudoClass:["yellow/600","yellow/400"],pseudoElement:["yellow/600","yellow/400"],punctuation:["gray/600","gray/400"],regex:["blue/600","blue/400"],selector:["red/600","red/400"],string:["yellow/600","yellow/400"],symbol:["purple/600","purple/400"],tag:["red/600","red/400"],unit:["orange/600","orange/400"],url:["red/600","red/400"],variable:["red/600","red/400"]}};function I(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function L(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce($,{})}function $(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];I(r)&&I(i)?e[n]=L(r,i):e[n]=i}return e}function F(e,t){let{scheme:n}=e,r={};for(let e of S)r[e]=function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],s={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["multiply","screen"])["light"===n?0:1],_dark:"dark"===n,accent:{fg:V(s,i?.accent?.fg)},avatar:_({scheme:n},i),backdrop:V(s,i?.backdrop),badge:z(i?.badge,{scheme:n},t),bg:V(s,i?.bg),border:V(s,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of E)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,s={};for(let e of k)s[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:s}=e,o={};for(let e of P)o[e]=function(e,t){let{cardTone:n,mode:r,tone:i,scheme:s,state:o}=e,a=t?.color?.base?.[n],l=t?.color?.button?.[r]?.[i]?.[o],u=l?._hue||a?._hue||"gray",c=l?._blend||["screen","multiply"],h={hue:u,scheme:s};return{_blend:c["light"===s?0:1],accent:{fg:V(h,l?.accent?.fg)},avatar:_({scheme:s},l),badge:z(l?.badge,{scheme:s},t),bg:V(h,l?.bg),border:V(h,l?.border),code:{bg:V(h,l?.code?.bg),fg:V(h,l?.code?.fg)},fg:V(h,l?.fg),icon:V(h,l?.icon),muted:{bg:V(h,l?.muted?.bg),fg:V(h,l?.muted?.fg)},kbd:{bg:V(h,l?.kbd?.bg),fg:V(h,l?.kbd?.fg),border:V(h,l?.kbd?.border)},link:{fg:V(h,l?.link?.fg)},skeleton:{from:V(h,l?.skeleton?.from),to:V(h,l?.skeleton?.to)}}}({cardTone:n,mode:r,tone:s,scheme:i,state:e},t);return o}({cardTone:n,mode:r,scheme:i,tone:e},t);return s}({cardTone:r,scheme:n,mode:e},t);return i}({scheme:n,tone:r},t),code:{bg:V(s,i?.code?.bg),fg:V(s,i?.code?.fg)},fg:V(s,i?.fg),focusRing:V(s,i?.focusRing),icon:V(s,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:N({mode:"default",scheme:n,tone:r},t),invalid:N({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:V(s,i?.kbd?.bg),fg:V(s,i?.kbd?.fg),border:V(s,i?.kbd?.border)},link:{fg:V(s,i?.link?.fg)},muted:{bg:V(s,i?.muted?.bg),fg:V(s,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of k)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,s={};for(let e of P)s[e]=function(e,t){let{cardTone:n,scheme:r,state:i,tone:s}=e,o=t?.color?.base?.[n],a=t?.color?.selectable?.[s]?.[i],l=a?._hue||o?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:l,scheme:r};return{_blend:u["light"===r?0:1],accent:{fg:V(c,a?.accent?.fg)},avatar:_({scheme:r},a),badge:z(a?.badge,{scheme:r},t),bg:V(c,a?.bg),border:V(c,a?.border),code:{bg:V(c,a?.code?.bg),fg:V(c,a?.code?.fg)},fg:V(c,a?.fg),icon:V(c,a?.icon),muted:{bg:V(c,a?.muted?.bg),fg:V(c,a?.muted?.fg)},kbd:{bg:V(c,a?.kbd?.bg),fg:V(c,a?.kbd?.fg),border:V(c,a?.kbd?.border)},link:{fg:V(c,a?.link?.fg)},skeleton:{from:V(c,a?.skeleton?.from),to:V(c,a?.skeleton?.to)}}}({cardTone:n,tone:i,scheme:r,state:e},t);return s}({cardTone:r,scheme:n,tone:e},t);return i}({scheme:n,tone:r},t),shadow:function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],s={hue:i?._hue||"gray",scheme:n};return{outline:V(s,i?.shadow?.outline),umbra:V(s,i?.shadow?.umbra),penumbra:V(s,i?.shadow?.penumbra),ambient:V(s,i?.shadow?.ambient)}}
5({scheme:n,tone:r},t),skeleton:{from:V(s,i?.skeleton?.from),to:V(s,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:V(i,r?.atrule),attrName:V(i,r?.attrName),attrValue:V(i,r?.attrValue),attribute:V(i,r?.attribute),boolean:V(i,r?.boolean),builtin:V(i,r?.builtin),cdata:V(i,r?.cdata),char:V(i,r?.char),class:V(i,r?.class),className:V(i,r?.className),comment:V(i,r?.comment),constant:V(i,r?.constant),deleted:V(i,r?.deleted),doctype:V(i,r?.doctype),entity:V(i,r?.entity),function:V(i,r?.function),hexcode:V(i,r?.hexcode),id:V(i,r?.id),important:V(i,r?.important),inserted:V(i,r?.inserted),keyword:V(i,r?.keyword),number:V(i,r?.number),operator:V(i,r?.operator),prolog:V(i,r?.prolog),property:V(i,r?.property),pseudoClass:V(i,r?.pseudoClass),pseudoElement:V(i,r?.pseudoElement),punctuation:V(i,r?.punctuation),regex:V(i,r?.regex),selector:V(i,r?.selector),string:V(i,r?.string),symbol:V(i,r?.symbol),tag:V(i,r?.tag),unit:V(i,r?.unit),url:V(i,r?.url),variable:V(i,r?.variable)}}({scheme:n},t)}}({scheme:n,tone:e},t);return r}function _(e,t){let{scheme:n}=e;return{gray:B({color:"gray",scheme:n},t),blue:B({color:"blue",scheme:n},t),purple:B({color:"purple",scheme:n},t),magenta:B({color:"magenta",scheme:n},t),red:B({color:"red",scheme:n},t),orange:B({color:"orange",scheme:n},t),yellow:B({color:"yellow",scheme:n},t),green:B({color:"green",scheme:n},t),cyan:B({color:"cyan",scheme:n},t)}}function B(e,t){let{color:n,scheme:r}=e,i=t?.avatar?.[n],s={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["screen","multiply"])["light"===r?0:1],bg:V(s,i?.bg),fg:V(s,i?.fg)}}function z(e,t,n){let{scheme:r}=t,i={};for(let t of k)i[t]=function(e,t,n){let{scheme:r,tone:i}=t,s=e?.[i],o={hue:s?._hue||n?.color?.base?.[i]?._hue||"gray",scheme:r};return{bg:V(o,s?.bg),fg:V(o,s?.fg),dot:V(o,s?.dot),icon:V(o,s?.icon)}}(e,{scheme:r,tone:t},n);return i}function N(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:H({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:H({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:H({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:H({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function H(e,t){let{cardTone:n,mode:r,scheme:i,state:s}=e,o=t?.color?.base?.[n],a=t?.color?.input?.[r]?.[s],l=a?._hue||o?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:l,scheme:i};return{_blend:u["light"===i?0:1],bg:V(c,a?.bg),border:V(c,a?.border),fg:V(c,a?.fg),muted:{bg:V(c,a?.muted?.bg)},placeholder:V(c,a?.placeholder)}}let W=r.$_;function U(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function G(e,t,n,r,i){var s;return n*(1-(s=U((i-e)/(t-e))))+r*s}function Y(e){return Math.round(e)}function X(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function K(e){let t=Y(U(Math.round(e.r),0,255)),n=Y(U(Math.round(e.g),0,255)),r=Y(U(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(16777216+(t<<16)+(n<<8)+r).toString(16).slice(1)}let Z=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function q(e){if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw Error("parseColor: expected a string");if("#"===e[0]&&(4===e.length||7===e.length)&&function(e){for(let t of e)if(-1==="0123456789ABCDEFabcdef".indexOf(t))return!1;return!0}(e.slice(1)))return X(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,n=e.l/100,r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e.h/60%2-1)),s=n-r/2,o=0,a=0,l=0;return 0<=e.h&&e.h<60?(o=r,a=i,l=0):60<=e.h&&e.h<120?(o=i,a=r,l=0):120<=e.h&&e.h<180?(o=0,a=r,l=i):180<=e.h&&e.h<240?(o=0,a=i,l=r):240<=e.h&&e.h<300?(o=i,a=0,l=r):300<=e.h&&e.h<360&&(o=r,a=0,l=i),{r:Math.round((o+s)*255),g:Math.round((a+s)*255),b:Math.round((l+s)*255)}}(function(e){let t=Z.exec(e);if(!t)throw Error(`parseHsl: string is not a HSL color: "${e}"`);return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}(e));if(e.startsWith("rgba("))return function(e){let t=e.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(t[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}(e);throw Error(`parseColor: unexpected color format: "${e}"`)}let J=[0,255];function Q(e,t){let{bg:n,blendMode:r,colorPalette:i}=t;if("white"===n)throw Error("Cannot blend with white background");let s=R(e);if(!s||"color"!==s.type)throw Error(`Invalid color token value: ${e}`);let o="";if("black"===s.key&&(o=ee(i.black)),"white"===s.key&&(o=ee(i.white)),s.hue&&s.tint&&(o=ee(i[s.hue][s.tint])),!o)throw Error(`Invalid color token value: ${e}`);let a=o,l={blendMode:r,bg:n,black:ee(i.black),white:ee(i.white)};try{if(o=function(e,t){var n,r,i,s,o,a,l,u,c;let{blendMode:h}=t,d=q(e),f=q(t.black),p=q(t.white),g=t.bg?q(t.bg):"multiply"===h?p:f,m={r:[f.r,p.r],g:[f.g,p.g],b:[f.b,p.b]},y={r:U(G(...m.r,...J,g.r),...J),g:U(G(...m.g,...J,g.g),...J),b:U(G(...m.b,...J,g.b),...J)},b={r:U(G(...m.r,...J,d.r),...J),g:U(G(...m.g,...J,d.g),...J),b:U(G(...m.b,...J,d.b),...J)},v="multiply"===h?{r:255*(n=y.r/255,b.r/255*n),g:255*(r=y.g/255,b.g/255*r),b:255*(i=y.b/255,b.b/255*i)}:{r:255*((s=y.r/255)+(o=b.r/255)-s*o),g:255*((a=y.g/255)+(l=b.g/255)-a*l),b:255*((u=y.b/255)+(c=b.b/255)-u*c)};return K({r:U(G(...J,...m.r,v.r),...m.r),g:U(G(...J,...m.g,v.g),...m.g),b:U(G(...J,...m.b,v.b),...m.b)})}(o,l),n&&void 0!==s.mix){var u,c,h,d,f,p,g;let e=X(n),t=X(o);o=K((u=s.mix,{r:(c=e.r,h=t.r,c+(h-c)*u),g:(d=e.g,f=t.g,d+(f-d)*u),b:(p=e.b,g=t.b,p+(g-p)*u)}))}}catch(e){throw console.warn("could not blend",o,l),e}
5return"#aN"===o&&(console.warn(`invalid color token value: ${e}`),o=a),void 0!==s.opacity&&(o=function(e,t){let n=q(e);return`rgba(${n.r},${n.g},${n.b},${t})`}(o,s.opacity)),o}function ee(e){return"string"==typeof e?e:e.hex}function et(e,t){let n=Object.entries(t),[,r]=n.find(([e])=>"transparent"===e),[,i]=n.find(([e])=>"default"===e),s=en(r,{colorPalette:e}),o=en(i,{colorPalette:e}),a=o.bg;if("white"===a)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",s],["default",o],...n.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,n])=>[t,en(n,{bg:a,colorPalette:e})])])}function en(e,t){var n,r,i,s;let{colorPalette:o,bg:a}=t,l=e._blend||"multiply",u=Q(e.bg,{colorPalette:o,bg:a,blendMode:l}),c={colorPalette:o,bg:u,blendMode:l},h=(n=e.button,r={baseBg:u,blendMode:l,colorPalette:o},{default:es(n.default,r),ghost:es(n.ghost,r),bleed:es(n.bleed,r)}),d=function(e,t){let n={};for(let i of k){var r;n[i]={enabled:eo((r=e[i]).enabled,t),hovered:eo(r.hovered,t),pressed:eo(r.pressed,t),selected:eo(r.selected,t),disabled:eo(r.disabled,t)}}return n}(e.selectable,{colorPalette:o,baseBg:u,blendMode:l}),f={outline:Q(e.shadow.outline,c),umbra:Q(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}}),penumbra:Q(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}}),ambient:Q(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:Q(e.accent.fg,c)},avatar:er(e.avatar,{baseBg:u,colorPalette:o,blendMode:l}),backdrop:Q(e.backdrop,c),badge:ei(e.badge,{baseBg:u,colorPalette:o,blendMode:l}),bg:u,border:Q(e.border,c),button:h,code:{bg:Q(e.code.bg,c),fg:Q(e.code.fg,c)},fg:Q(e.fg,c),focusRing:Q(e.focusRing,c),icon:Q(e.icon,c),input:(i=e.input,s={baseBg:u,colorPalette:o,blendMode:l},{default:ea(i.default,s),invalid:ea(i.invalid,s)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=Q(e.bg,{bg:n,blendMode:r,colorPalette:i}),o={bg:s,blendMode:r,colorPalette:i};return{bg:s,fg:Q(e.fg,o),border:Q(e.border,o)}}(e.kbd,{baseBg:u,colorPalette:o,blendMode:l}),link:{fg:Q(e.link.fg,c)},muted:{bg:Q(e.muted.bg,c),fg:Q(e.muted.fg,c)},shadow:f,skeleton:{from:Q(e.skeleton.from,c),to:Q(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:n,baseBg:r,blendMode:i}=t,s={colorPalette:n,bg:r,blendMode:i};return{atrule:Q(e.atrule,s),attrName:Q(e.attrName,s),attrValue:Q(e.attrValue,s),attribute:Q(e.attribute,s),boolean:Q(e.boolean,s),builtin:Q(e.builtin,s),cdata:Q(e.cdata,s),char:Q(e.char,s),class:Q(e.class,s),className:Q(e.className,s),comment:Q(e.comment,s),constant:Q(e.constant,s),deleted:Q(e.deleted,s),doctype:Q(e.doctype,s),entity:Q(e.entity,s),function:Q(e.function,s),hexcode:Q(e.hexcode,s),id:Q(e.id,s),important:Q(e.important,s),inserted:Q(e.inserted,s),keyword:Q(e.keyword,s),number:Q(e.number,s),operator:Q(e.operator,s),prolog:Q(e.prolog,s),property:Q(e.property,s),pseudoClass:Q(e.pseudoClass,s),pseudoElement:Q(e.pseudoElement,s),punctuation:Q(e.punctuation,s),regex:Q(e.regex,s),selector:Q(e.selector,s),string:Q(e.string,s),symbol:Q(e.symbol,s),tag:Q(e.tag,s),unit:Q(e.unit,s),url:Q(e.url,s),variable:Q(e.variable,s)}}(e.syntax,{baseBg:u,colorPalette:o,blendMode:l}),selectable:d}}function er(e,t){let n={};for(let i of r.mE)n[i]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",o=Q(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:s,bg:o,fg:Q(e.fg,{bg:o,blendMode:s,colorPalette:i})}}(e[i],t);return n}function ei(e,t){let n={};for(let r of k)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=Q(e.bg,{bg:n,blendMode:r,colorPalette:i}),o={bg:s,blendMode:r,colorPalette:i};return{bg:s,dot:Q(e.dot,o),fg:Q(e.fg,o),icon:Q(e.icon,o)}}(e[r],t);return n}function es(e,t){let n={};for(let i of k){var r;n[i]={enabled:eo((r=e[i]).enabled,t),hovered:eo(r.hovered,t),pressed:eo(r.pressed,t),selected:eo(r.selected,t),disabled:eo(r.disabled,t)}}return n}function eo(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",o=Q(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:o,blendMode:s,colorPalette:i};return{_blend:s,accent:{fg:Q(e.accent.fg,a)},avatar:er(e.avatar,{baseBg:o,colorPalette:i,blendMode:s}),badge:ei(e.badge,{baseBg:o,colorPalette:i,blendMode:s}),bg:o,border:Q(e.border,a),code:{bg:Q(e.code.bg,a),fg:Q(e.code.fg,a)},fg:Q(e.fg,a),icon:Q(e.icon,a),link:{fg:Q(e.link.fg,a)},muted:{bg:Q(e.muted.bg,a),fg:Q(e.muted.fg,a)},kbd:{bg:Q(e.kbd.bg,a),fg:Q(e.kbd.fg,a),border:Q(e.kbd.border,a)},skeleton:{from:Q(e.skeleton?.from,a),to:Q(e.skeleton?.to,a)}}}function ea(e,t){return{enabled:el(e.enabled,t),hovered:el(e.hovered,t),readOnly:el(e.readOnly,t),disabled:el(e.disabled,t)}}function el(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",o=Q(e.bg,{colorPalette:i,bg:n,blendMode:r}),a={colorPalette:i,bg:o,blendMode:s};return{_blend:s,bg:o,border:Q(e.border,a),fg:Q(e.fg,a),muted:{bg:Q(e.muted.bg,a)},placeholder:Q(e.placeholder,a)}}function eu(e){let t=function(e){let t={color:function(e){let t=L(D,e);return{base:function(e){let t={};for(let n of S)t[n]=function(e,t){let n=L(e?.base?.["*"],e?.base?.[t]),i=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:i,avatar:r.mE.reduce((e,t)=>
5({...e,[t]:L({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:k.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||i,...n.badge?.["*"],...n.badge?.[r]}}),{})}}(e,n);return t}(t),button:function(e){let t={};for(let n of E)t[n]=function(e,t){let n={};for(let i of k)n[i]=function(e,t,n){let i={};for(let s of P)i[s]=function(e,t,n,i){let s=L(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[i],e?.button?.[n]?.[t]?.[i]),o=s._hue||e?.base?.[t]?._hue;return{...s,_hue:o,avatar:r.mE.reduce((e,t)=>({...e,[t]:L({_hue:t},s.avatar?.["*"],s.avatar?.[t])}),{}),badge:k.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||o,...s.badge?.["*"],...s.badge?.[n]}}),{})}}(e,n,t,s);return i}(e,t,i);return n}(e,n);return t}(t),input:function(e){let t={};for(let n of A)t[n]=function(e,t){let n={};for(let r of T)n[r]=function(e,t,n){let r=L(e?.input?.["*"]?.["*"],e?.input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),i=r._hue||e?.input?.[t]?._hue;return{...r,_hue:i}}(e,t,r);return n}(e,n);return t}(t),selectable:function(e){let t={};for(let n of k)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of P)n[i]=function(e,t,n){let i=L(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),s=i._hue||e?.base?.[t]?._hue;return{...i,_hue:s,avatar:r.mE.reduce((e,t)=>({...e,[t]:L({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:k.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||s,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,t,i);return n}(e,n);return t}(t),syntax:t.syntax}}(e?.color)};return{light:F({scheme:"light"},t),dark:F({scheme:"dark"},t)}}(e);return y({_version:2,avatar:e?.avatar??i.avatar,button:e?.button??i.button,card:e?.card??i.card,color:function(e,t){let n=t?.palette??W;return{light:et(n,e.light),dark:et(n,e.dark)}}(t,e),container:e?.container??i.container,font:e?.font??s,input:e?.input??i.input,layer:e?.layer??i.layer,media:e?.media??i.media,radius:e?.radius??i.radius,shadow:e?.shadow??i.shadow,space:e?.space??i.space,style:e?.style??i.style})}let ec=new Map;function eh(e,t,n){var r;let s=function(e,t,n){let r=ec.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(s)return s;let o=p(e)?y(e):e,l=p(e)?e:function(e){if(e.v2)return e.v2;let t=g.get(e);if(t)return t;let{avatar:n,button:r,color:s,container:o,fonts:l,input:u,layer:c,media:h,radius:d,shadows:f,space:p,styles:m}=e,y={_version:2,avatar:{...i.avatar,...n},button:{...i.button,...r},card:i.card,color:{light:{transparent:a(s.light.transparent),default:a(s.light.default),neutral:a(s.light.transparent),primary:a(s.light.primary),suggest:a(s.light.primary),positive:a(s.light.positive),caution:a(s.light.caution),critical:a(s.light.critical)},dark:{transparent:a(s.dark.transparent),default:a(s.dark.default),neutral:a(s.dark.transparent),primary:a(s.dark.primary),suggest:a(s.dark.primary),positive:a(s.dark.positive),caution:a(s.dark.caution),critical:a(s.dark.critical)}},container:o,font:l,input:{...i.input,...u,checkbox:{...i.input.checkbox,...u.checkbox},radio:{...i.input.radio,...u.radio},switch:{...i.input.switch,...u.switch}},layer:c??i.layer,media:h,radius:d,shadow:f,space:p,style:m};return g.set(e,y),y}(e),u=o.color[t]||o.color.light,c=u[n]||u.default,h=o.layer||i.layer,d=l.color[t]||l.color.light,f="neutral"in(r=d[n]||d.default).badge?r:{...r,badge:{...r.badge,neutral:r.badge.default,suggest:r.badge.primary},button:{bleed:{...r.button.bleed,neutral:r.button.bleed.default,suggest:r.button.bleed.primary},default:{...r.button.default,neutral:r.button.default.default,suggest:r.button.default.primary},ghost:{...r.button.ghost,neutral:r.button.ghost.default,suggest:r.button.ghost.primary}},selectable:{...r.selectable,neutral:r.selectable.default,suggest:r.selectable.primary}},m=l.layer||i.layer,b={sanity:{...o,color:c,layer:h,v2:{...l,_resolved:!0,color:f,layer:m}}};return function(e,t,n,r){ec.has(t)||ec.set(t,new Map);let i=ec.get(t);i.has(n)||i.set(n,new WeakMap),i.get(n).set(e,r)}(e,t,n,b),b}},57586:function(e,t,n){"use strict";n.d(t,{M:function(){return v}});var r=n(57437),i=n(2265),s=n(58881),o=n(53576),a=n(12014),l=n(64252),u=n(13537),c=n(45750);function h(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,u.R)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,u.R)(e)&&e.offsetWidth||0,r=(0,u.R)(e)&&e.offsetHeight||0,i=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(i.height),s.width=parseFloat(i.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=n-s.width-s.left,s.bottom=r-s.height-s.top,s.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function f(e){var t,n;let{children:s,isPresent:o,anchorX:a,anchorY:l,root:u,pop:f}=e,p=(0,i.useId)(),g=(0,i.useRef)(null),m=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:y}=(0,i.useContext)(c._),b=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=h(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():h(e[t],null)}}}}(...e),e)}(g,null!==(n=null===(t=s.props)||void 0===t?void 0:t.ref)&&void 0!==n?n:null==s?void 0:s.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:r,right:i,bottom:s,direction:c}=m.current;if(o||!1===f||!g.current||!e||!t)return;let h="rtl"===c;g.current.dataset.motionPopId=p;let d=document.createElement("style");y&&(d.nonce=y);let b=null!=u?u:document.head;return b.appendChild(d),d.sheet&&d.sheet.insertRule('\n          [data-motion-pop-id="'.concat(p,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;
5\n            ").concat("left"===a?h?"right: ".concat(i):"left: ".concat(r):h?"left: ".concat(r):"right: ".concat(i),"px !important;\n            ").concat("bottom"===l?"bottom: ".concat(s):"top: ".concat(n),"px !important;\n          }\n        ")),()=>{var e;null===(e=g.current)||void 0===e||e.removeAttribute("data-motion-pop-id"),b.contains(d)&&b.removeChild(d)}},[o]),(0,r.jsx)(d,{isPresent:o,childRef:g,sizeRef:m,pop:f,children:!1===f?s:i.cloneElement(s,{ref:b})})}let p=e=>{let{children:t,initial:n,isPresent:s,onExitComplete:u,custom:c,presenceAffectsLayout:h,mode:d,anchorX:p,anchorY:m,root:y}=e,b=(0,o.h)(g),v=(0,i.useId)(),w=(0,i.useRef)(s),x=(0,i.useRef)(u);(0,a.L)(()=>{w.current=s,x.current=u});let S=!0,k=(0,i.useMemo)(()=>(S=!1,{id:v,initial:n,isPresent:s,custom:c,onExitComplete:e=>{for(let t of(b.set(e,!0),b.values()))if(!t)return;u&&u()},register:e=>(b.set(e,!1),()=>{var t;b.delete(e),w.current||b.size||null===(t=x.current)||void 0===t||t.call(x)})}),[s,b,u]);return h&&S&&(k={...k}),(0,i.useMemo)(()=>{b.forEach((e,t)=>b.set(t,!1))},[s]),i.useEffect(()=>{s||b.size||!u||u()},[s]),t=(0,r.jsx)(f,{pop:"popLayout"===d,isPresent:s,anchorX:p,anchorY:m,root:y,children:t}),(0,r.jsx)(l.O.Provider,{value:k,children:t})};function g(){return new Map}var m=n(49637);let y=e=>e.key||"";function b(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let v=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:f="left",anchorY:g="top",root:v}=e,[w,x]=(0,m.oO)(d),S=(0,i.useMemo)(()=>b(t),[t]),k=d&&!w?[]:S.map(y),P=(0,i.useRef)(!0),E=(0,i.useRef)(S),A=(0,o.h)(()=>new Map),T=(0,i.useRef)(new Set),[M,C]=(0,i.useState)(S),[R,O]=(0,i.useState)(S);(0,a.L)(()=>{P.current=!1,E.current=S;for(let e=0;e<R.length;e++){let t=y(R[e]);k.includes(t)?(A.delete(t),T.current.delete(t)):!0!==A.get(t)&&A.set(t,!1)}},[R,k.length,k.join("-")]);let j=[];if(S!==M){let e=[...S];for(let t=0;t<R.length;t++){let n=R[t],r=y(n);k.includes(r)||(e.splice(t,0,n),j.push(n))}return"wait"===h&&j.length&&(e=j),O(b(e)),C(S),null}let{forceRender:V}=(0,i.useContext)(s.p);return(0,r.jsx)(r.Fragment,{children:R.map(e=>{let t=y(e),i=(!d||!!w)&&(S===R||k.includes(t));return(0,r.jsx)(p,{isPresent:i,initial:(!P.current||!!l)&&void 0,custom:n,presenceAffectsLayout:c,mode:h,root:v,onExitComplete:i?void 0:()=>{if(T.current.has(t)||!A.has(t))return;T.current.add(t),A.set(t,!0);let e=!0;A.forEach(t=>{t||(e=!1)}),e&&(null==V||V(),O(E.current),d&&(null==x||x()),u&&u())},anchorX:f,anchorY:g,children:e},t)})})}},49637:function(e,t,n){"use strict";n.d(t,{oO:function(){return s}});var r=n(2265),i=n(64252);function s(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useContext)(i.O);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:s,register:o}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return o(a)},[e]);let l=(0,r.useCallback)(()=>e&&s&&s(a),[a,s,e]);return!n&&s?[!1,l]:[!0]}},58881:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});let r=(0,n(2265).createContext)({})},45750:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});let r=(0,n(2265).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},64252:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=(0,n(2265).createContext)(null)},53576:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(2265);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},12014:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(2265);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},80096:function(e,t,n){"use strict";n.d(t,{a:function(){return f},v:function(){return h}});let r=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class i{model;root;patch;i;inputStack;outputStack;constructor(e,t,n){this.model=e,this.root=t,this.patch=n,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let e=this.read(),t=r[e];if(!t)throw Error(`Unknown opcode: ${e}`);this[`process${t}`].apply(this)}let e=this.outputStack.pop();return this.finalizeOutput(e)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(e,t){return e.keys||(e.keys=this.model.objectGetKeys(e.value).sort()),e.keys[t]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyArray(e.value)),e.writeValue}outputObject(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyObject(e.value)),e.writeValue}outputString(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyString(e.value)),e.writeValue}finalizeOutput(e){return e.writeValue?this.model.finalize(e.writeValue):e.value}processValue(){let e=this.model.wrap(this.read());this.outputStack.push({value:e})}processCopy(){let e=this.inputEntry();this.outputStack.push({value:e.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let e=this.outputStack.pop(),t=this.finalizeOutput(e),n=this.outputArray();this.model.arrayAppendValue(n,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),n=this.finalizeOutput(t);n=this.model.markChanged(n);let r=this.outputObject();this.model.objectSetField(r,e,n)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),n=this.finalizeOutput(t),r=this.outputObject();this.model.objectSetField(r,e.key,n)}processPushField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.model.objectGetField(t.value,n);this.inputStack.push({value:r,key:n})}processPushElement(){let e=this.read(),t=this.inputEntry(),n=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:n})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.outputObject();this.model.objectDeleteField(r,n)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),n=this.outputArray(),r=this.inputEntry().value;this.model.arrayAppendSlice(n,r,e,t)}processStringAppendString(){let e=this.model.wrap(this.read()),t=this.outputString();this.model.stringAppendValue(t,e)}processStringAppendSlice(){let e=this.read(),t=this.read(),n=this.outputString(),r=this.inputEntry().value;this.model.stringAppendSlice(n,r,e,t)}}function s(e){return e>>16?4:e>>11?3:e>>7?2:1}function o(e){let t=0;for(let n=0;n<e.length;n++){let r=s(e.codePointAt(n));4==r&&n++,t+=r}return t}function a(e,t,n=0){let r=n,i=0;for(i=n;r<t;i++){let t=s(e.codePointAt(i));4===t&&i++,r+=t}return i}class l{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,n=this.meta){return{data:e,startMeta:t,endMeta:n}}asObject(e){if(!e.content){let t={};for(let[n,r]of Object.entries(e.data))t[n]=this.wrapWithMeta(r,e.startMeta);e.content={type:"object",fields:t}}return e.content}asArray(e){if(!e.content){let t=e.data.map(t=>this.wrapWithMeta(t,e.startMeta)),n=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:n}}return e.content}asString(e){if(!e.content){let t=e.data,n={value:t,utf8size:o(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([n])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let n of e)n.uses.push(t);return t}objectGetKeys(e){return e.content?Object.keys(e.content.fields):Object.keys(e.data)}objectGetField(e,t){return this.asObject(e).fields[t]}arrayGetElement(e,t){return this.asArray(e).elements[t]}finalize(e){return this.updateEndMeta(e),{content:e,startMeta:this.meta,endMeta:this.meta}}markChanged(e){return this.wrap(u(e))}updateEndMeta(e){if("string"==e.type)for(let t of e.parts)t.endMeta=this.meta;else if("array"===e.type)for(let t of e.elements)t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta;else for(let t of Object.values(e.fields))t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta}copyString(e){if(!e)return{type:"string",parts:[]};{let t=this.asString(e);return this.stringFromParts(t.parts.slice())}}copyObject(e){let t={type:"object",fields:{}};if(e){let n=this.asObject(e);Object.assign(t.fields,n.fields)}return t}copyArray(e){let t=e?this.asArray(e):null;return{type:"array",elements:t?t.elements:[],metas:t?t.metas:[]}}objectSetField(e,t,n){e.fields[t]=n}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,n,r){let i=this.asArray(t),s=i.elements.length===n;if(e.elements.push(...i.elements.slice(n,r)),s)e.metas.push(...i.metas.slice(n,r));else for(let t=n;t<r;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let n of this.asString(t).parts)this.stringAppendPart(e,n)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,n){if(0===n)return t;for(let r=t;r<e.parts.length;r++){let t=e.parts[r];if(n===t.utf8size)return r+1;if(n<t.utf8size)return this.splitString(t,n),r+1;n-=t.utf8size}throw Error("splitting string out of bounds")}
5splitString(e,t){let n,r=t,i=e.utf8size-r;if(e.utf8size!==e.value.length){let n=0;for(t=0;n<r;t++){let r=s(e.value.codePointAt(t));4===r&&t++,n+=r}}n=e.value.slice(0,t);let o={value:e.value.slice(t),utf8size:i,uses:e.uses.slice(),startMeta:e.startMeta,endMeta:e.endMeta};for(let t of(e.value=n,e.utf8size=r,e.uses)){let n=t.parts.indexOf(e);if(-1===n)throw Error("bug: mismatch between string parts and use.");t.parts.splice(n+1,0,o)}}stringAppendSlice(e,t,n,r){let i=this.asString(t),s=this.resolveStringPart(i,0,n),o=this.resolveStringPart(i,s,r-n);for(let t=s;t<o;t++){let n=i.parts[t];this.stringAppendPart(e,n)}}}function u(e){if("u">typeof e.data)return e.data;let t,n=e.content;switch(n.type){case"string":t=n.parts.map(e=>e.value).join("");break;case"array":t=n.elements.map(e=>u(e));break;case"object":for(let[e,r]of(t={},Object.entries(n.fields)))t[e]=u(r)}return e.data=t,t}function c(e){return e.content?e.content.type:Array.isArray(e.data)?"array":null===e.data?"null":typeof e.data}var h=Object.freeze({__proto__:null,applyPatch:function(e,t,n){return new i(new l(n),e,t).process()},getType:c,rebaseValue:function e(t,n){let r=c(t);if(r!==c(n))return n;let i=new l(t.endMeta),a=new l(n.endMeta);switch(r){case"object":{let r=i.asObject(t),s=a.asObject(n),o=0,l=Object.keys(r.fields).length,u=Object.keys(s.fields).length;for(let[t,n]of Object.entries(s.fields)){let i=r.fields[t];i&&(s.fields[t]=e(i,n),s.fields[t]===i&&o++)}return l===u&&l===o?t:n}case"array":{let r=i.asArray(t),s=a.asArray(n);if(r.elements.length!==s.elements.length)break;let o=0;for(let t=0;t<s.elements.length;t++)s.elements[t]=e(r.elements[t],s.elements[t]),s.elements[t]!==r.elements[t]&&o++;return 0===o?t:n}case"null":case"boolean":case"number":if(u(t)===u(n))return t;break;case"string":{let e=u(t),r=u(n);if(e===r)return t;let i=a.copyString(null),l=function(e,t){let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;){let n=e.codePointAt(i);if(n!==t.codePointAt(i))break;let o=s(n);r+=o,i+=4===o?2:1}return r}(e,r),c=function(e,t,n=0){let r=Math.min(e.length,t.length)-n,i=0;for(let n=0;n<r;){let r=e.codePointAt(e.length-1-n);if(r!==t.codePointAt(t.length-1-n))break;let o=s(r);i+=o,n+=4===o?2:1}return i}(e,r,l),h=o(r),d=o(e);0<l&&a.stringAppendSlice(i,t,0,l),l<h-c&&a.stringAppendSlice(i,n,l,h-c),d-c<d&&a.stringAppendSlice(i,t,d-c,d);let f=a.finalize(i);if(u(f)!==r)throw Error("incorrect string rebase");return f}}return n},unwrap:u,wrap:function(e,t){return{data:e,startMeta:t,endMeta:t}}});class d{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[n,r]of Object.entries(e))t.data[n]=r;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,n){e.data[t]=n}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,n,r){e.push(...t.slice(n,r))}stringAppendSlice(e,t,n,r){let i=a(t,n),s=a(t,r,i);e.data+=t.slice(i,s)}stringAppendValue(e,t){e.data+=t}}function f(e,t){return new i(new d,e,t).process()}},13537:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r=n(41464);function i(e){return(0,r.K)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},41464:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});let r=e=>"object"==typeof e&&null!==e},30763:function(e,t,n){"use strict";let r,i,s;n.d(t,{EAS:function(){return s1}});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set([...o,"pathRotation"]),l=(e,t,n)=>n>t?t:n<e?e:n,u={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},c={...u,transform:e=>l(0,1,e)},h={...u,default:1},d=e=>Math.round(1e5*e)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(e,t)=>n=>!!("string"==typeof n&&p.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),m=(e,t,n
5)=>r=>{if("string"!=typeof r)return r;let[i,s,o,a]=r.match(f);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},y=e=>l(0,255,e),b={...u,transform:e=>Math.round(y(e))},v={test:g("rgb","red"),parse:m("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+b.transform(e)+", "+b.transform(t)+", "+b.transform(n)+", "+d(c.transform(r))+")"},w={test:g("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:v.transform},x=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),S=x("deg"),k=x("%"),P=x("px"),E=x("vh"),A=x("vw"),T={...k,parse:e=>k.parse(e)/100,transform:e=>k.transform(100*e)},M={test:g("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+k.transform(d(t))+", "+k.transform(d(n))+", "+d(c.transform(r))+")"},C={test:e=>v.test(e)||w.test(e)||M.test(e),parse:e=>v.test(e)?v.parse(e):M.test(e)?M.parse(e):w.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?v.transform(e):M.transform(e),getAnimatableNone:e=>{let t=C.parse(e);return t.alpha=0,C.transform(t)}},R=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,O="number",j="color",V=/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 D(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],s=0,o=t.replace(V,e=>(C.test(e)?(r.color.push(s),i.push(j),n.push(C.parse(e))):e.startsWith("var(")?(r.var.push(s),i.push("var"),n.push(e)):(r.number.push(s),i.push(O),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:o,indexes:r,types:i}}function I({split:e,types:t}){let n=e.length;return r=>{let i="";for(let s=0;s<n;s++)if(i+=e[s],void 0!==r[s]){let e=t[s];e===O?i+=d(r[s]):e===j?i+=C.transform(r[s]):i+=r[s]}return i}}let L=e=>"number"==typeof e?0:C.test(e)?C.getAnimatableNone(e):e,$=(e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:L(e),F={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(f)?.length||0)+(e.match(R)?.length||0)>0},parse:function(e){return D(e).values},createTransformer:function(e){return I(D(e))},getAnimatableNone:function(e){let t=D(e);return I(t)(t.values.map((e,n)=>$(e,t.split[n])))}},_=new Set(["brightness","contrast","saturate","opacity"]);function B(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(f)||[];if(!r)return e;let i=n.replace(r,""),s=_.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}let z=/\b([a-z-]*)\(.*?\)/gu,N={...F,getAnimatableNone:e=>{let t=e.match(z);return t?t.map(B).join(" "):e}},H={...F,getAnimatableNone:e=>{let t=F.parse(e);return F.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},W={...u,transform:Math.round},U={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:S,pathRotation:S,rotateX:S,rotateY:S,rotateZ:S,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:S,skewX:S,skewY:S,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:c,originX:T,originY:T,originZ:P,zIndex:W,fillOpacity:c,strokeOpacity:c,numOctaves:W},G={...U,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:N,WebkitFilter:N,mask:H,WebkitMask:H},Y=e=>G[e],X=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:X(),y:X()}),Z=()=>({min:0,max:0}),q=()=>({x:Z(),y:Z()}),J=e=>!!(e&&e.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...o]),ee=e=>t=>t.test(e),et=[u,P,k,S,A,E,{test:e=>"auto"===e,parse:e=>e}],en=e=>et.find(ee(e));n(25566);let er=()=>{},ei=()=>{},es=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),eo=e=>t=>"string"==typeof t&&t.startsWith(e),ea=eo("--"),el=eo("var(--"),eu=e=>!!el(e)&&ec.test(e.split("/*")[0].trim()),ec=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eh(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ed=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ef=e=>180*e/Math.PI,ep=e=>em(ef(Math.atan2(e[1],e[0]))),eg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ep,rotateZ:ep,skewX:e=>ef(Math.atan(e[1])),skewY:e=>ef(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},em=e=>((e%=360)<0&&(e+=360),e),ey=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ev={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ey,scaleY:eb,scale:e=>(ey(e)+eb(e))/2,rotateX:e=>em(ef(Math.atan2(e[6],e[5]))),rotateY:e=>em(ef(Math.atan2(-e[2],e[0]))),rotateZ:ep,rotate:ep,skewX:e=>ef(Math.atan(e[4])),skewY:e=>ef(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ew(e){return e.includes("scale")?1:0}function ex(e,t){let n,r;if(!e||"none"===e)return ew(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=ev,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=eg,r=t}if(!r)return ew(t);let s=n[t],o=r[1].split(",").map(ek);return"function"==typeof s?s(o):o[s]}let eS=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ex(n,t)};function ek(e){return parseFloat(e.trim())}let eP=e=>e===u||e===P,eE=new Set(["x","y","z"]),eA=o.filter(e=>!eE.has(e)),eT={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ex(t,"x"),y:(e,{transform:t})=>ex(t,"y")};eT.translateX=eT.x,eT.translateY=eT.y;let eM=e=>e,eC={},eR=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eO(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=eR.reduce((e,t)=>
5(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(t){s.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,i=!1,o=!1)=>{let a=o&&r?t:n;return i&&s.add(e),a.add(e),e},cancel:e=>{n.delete(e),s.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let s=t;t=n,n=s,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(s),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:f,postRender:p}=o,g=()=>{let s=eC.useManualTiming,o=s?i.timestamp:performance.now();n=!1,s||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},m=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:eR.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||m(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<eR.length;t++)o[eR[t]].cancel(e)},state:i,steps:o}}let{schedule:ej,cancel:eV,state:eD,steps:eI}=eO("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:eM,!0),eL=new Set,e$=!1,eF=!1,e_=!1;function eB(){if(eF){let e=Array.from(eL).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return eA.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eF=!1,e$=!1,eL.forEach(e=>e.complete(e_)),eL.clear()}function ez(){eL.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eF=!0)})}class eN{constructor(e,t,n,r,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eL.add(this),e$||(e$=!0,ej.read(ez),ej.resolveKeyframes(eB))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),s=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===i&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eL.delete(this)}cancel(){"scheduled"===this.state&&(eL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eH=e=>/^0[^.\s]+$/u.test(e),eW=new Set([N,H]);function eU(e,t){let n=Y(e);return eW.has(n)||(n=F),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eG=new Set(["auto","none","0"]);class eY extends eN{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&eu(r=r.trim())){let i=function e(t,n,r=1){ei(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,s]=function(e){let t=ed.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let o=window.getComputedStyle(n).getPropertyValue(i);if(o){let e=o.trim();return es(e)?parseFloat(e):e}return eu(s)?e(s,n,r+1):s}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Q.has(n)||2!==e.length)return;let[r,i]=e,s=en(r),o=en(i);if(eh(r)!==eh(i)&&eT[n]){this.needsMeasurement=!0;return}if(s!==o){if(eP(s)&&eP(o))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eT[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||eH(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eG.has(t)&&D(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eU(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eT[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,s=n[i];n[i]=eT[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
5h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eX=e=>1e3*e,eK=e=>e/1e3;function eZ(e,t){-1===e.indexOf(t)&&e.push(t)}function eq(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eJ{constructor(){this.subscriptions=[]}add(e){return eZ(this.subscriptions,e),()=>eq(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let eQ=e=>e.startsWith("--");function e0(e,t,n){eQ(t)?e.style.setProperty(t,n):e.style[t]=n}function e1(e){let t;return()=>(void 0===t&&(t=e()),t)}let e2={};function e5(e,t){let n=e1(e);return()=>e2[t]??n()}let e3=e5(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),e4=e=>null!==e;function e6(e,{repeat:t,repeatType:n="loop"},r,i=1){let s=e.filter(e4),o=i<0||t&&"loop"!==n&&t%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}class e8{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e9=e=>Array.isArray(e)&&"number"==typeof e[0],e7=e5(()=>{try{document.createElement("div").animate({opacity:0}
5,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),te=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tt([0,.65,.55,1]),circOut:tt([.55,0,1,.45]),backIn:tt([.31,.01,.66,-.59]),backOut:tt([.33,1.53,.69,.99])};function tr(e){return"function"==typeof e&&"applyToOptions"in e}class ti extends e8{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=e;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=e,ei("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:e,...t}){return tr(e)&&e7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let h=function e(t,n){if(t)return"function"==typeof t?e7()?te(t,n):"ease-out":e9(t)?tt(t):Array.isArray(t)?t.map(t=>e(t,n)||tn.easeOut):tn[t]}(a,i);Array.isArray(h)&&(c.easing=h);let d={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=e6(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),e0(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return eK(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+eK(e)}get time(){return eK(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eX(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e3())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),eM):r(this)}}let ts=new Set(["opacity","clipPath","filter","transform"]),{schedule:to,cancel:ta}=eO(queueMicrotask,!1);function tl(){r=void 0}let tu={now:()=>(void 0===r&&tu.set(eD.isProcessing||eC.useManualTiming?eD.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(tl)}},tc=(e,t)=>t?1e3/t*e:0,th=e=>!isNaN(parseFloat(e)),td={current:void 0};class tf{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tu.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tu.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=th(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eJ);let n=this.events[e].add(t);return"change"===e?()=>{n(),ej.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
5setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return td.current&&td.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tu.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tc(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tp(e,t){return new tf(e,t)}let tg=[...et,C,F],tm=e=>tg.find(ee(e)),ty=new WeakMap;function tb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tv(e){return"string"==typeof e||Array.isArray(e)}let tw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tx=["initial",...tw];function tS(e){return tb(e.animate)||tx.some(t=>tv(e[t]))}function tk(e){return!!(tS(e)||e.variants)}let tP={current:null},tE={current:!1},tA="undefined"!=typeof window;function tT(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tM(e,t,n,r){if("function"==typeof t){let[i,s]=tT(r);t=t(void 0!==n?n:e.custom,i,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,s]=tT(r);t=t(void 0!==n?n:e.custom,i,s)}return t}let tC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tR={};class tO{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:s,visualState:o},a={}){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=eN,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tu.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ej.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=tS(t),this.isVariantNode=tk(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==l[e]&&J(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ty.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
5h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tE.current||function(){if(tE.current=!0,tA){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tP.current=e.matches;e.addEventListener("change",t),t()}else tP.current=!1}}(),this.shouldReduceMotion=tP.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eV(this.notifyUpdate),eV(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&ts.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:s,duration:o}=t.accelerate,a=new ti({element:this.current,name:e,keyframes:r,times:i,ease:s,duration:eX(o)}),l=n(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let r=a.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ej.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tR){let t=tR[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tC.length;t++){let n=tC[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],s=n[r];if(J(i))e.addValue(r,i);else if(J(s))e.addValue(r,tp(i,{owner:e}));else if(s!==i){if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,tp(void 0!==t?t:i,{owner:e}))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tp(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];
5return null!=n&&("string"==typeof n&&(es(n)||eH(n))?n=parseFloat(n):!tm(n)&&F.test(t)&&(n=eU(e,t)),this.setBaseTarget(e,J(n)?n.get():n)),J(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tM(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||J(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eJ),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){to.render(this.render)}}class tj extends tO{constructor(){super(...arguments),this.KeyframeResolver=eY}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;J(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tV(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tD=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tL=o.length;function t$(e,t,n){let{style:r,vars:i,transformOrigin:s}=e,l=!1,u=!1;for(let e in t){let n=t[e];if(a.has(e)){l=!0;continue}if(ea(e)){i[e]=n;continue}{let t=tD(n,U[e]);e.startsWith("origin")?(u=!0,s[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<tL;s++){let a=o[s],l=e[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===(a.startsWith("scale")?1:0);else{let e=parseFloat(l);u=a.startsWith("scale")?1===e:0===e}if(!u||n){let e=tD(l,U[a]);if(!u){i=!1;let t=tI[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}let s=e.pathRotation;return s&&(i=!1,r+=`rotate(${tD(s,U.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}let tF={offset:"stroke-dashoffset",array:"stroke-dasharray"},t_={offset:"strokeDashoffset",array:"strokeDasharray"},tB=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tz(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(t$(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:d}=e;for(let e of(h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),tB))void 0!==h[e]&&(d[e]=h[e],delete h[e]);void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let s=i?tF:t_;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}(h,i,s,o,!1)}let tN=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"]),tH=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tW(e,{style:t,vars:n},r,i){let s;let o=e.style;for(s in t)o[s]=t[s];for(s in i?.applyProjectionStyles(o,r),n)o.setProperty(s,n[s])}let tU=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function tG(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tY={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!P.test(e))return e;e=parseFloat(e)}let n=tG(e,t.target.x),r=tG(e,t.target.y);return`${n}% ${r}%`}},tX=(e,t,n)=>e+(t-e)*n,tK={borderRadius:{...tY,applyTo:[...tU]},borderTopLeftRadius:tY,borderTopRightRadius:tY,borderBottomLeftRadius:tY,borderBottomRightRadius:tY,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=F.parse(e);if(r.length>5)return e;let i=F.createTransformer(e),s="number"!=typeof r[0]?1:0,o=n.x.scale*t.x,a=n.y.scale*t.y;r[0+s]/=o,r[1+s]/=a;let l=tX(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),i(r)}}};function tZ(e,{layout:t,layoutId:n}){return a.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tK[e]||"opacity"===e)}function tq(e,t,n){let r=e.style,i=t?.style,s={};if(!r)return s;for(let t in r)(J(r[t])||i&&J(i[t])||tZ(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(s[t]=r[t]);return s}function tJ(e,t,n){let r=tq(e,t,n);for(let n in e)(J(e[n])||J(t[n]))&&(r[-1!==o.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tQ extends tj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(a.has(t)){let e=Y(t);return e&&e.default||0}return t=tN.has(t)?t:tV(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tJ(e,t,n)}
5build(e,t,n){tz(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){for(let n in tW(e,t,void 0,r),t.attrs)e.setAttribute(tN.has(n)?n:tV(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=tH(e.tagName),super.mount(e)}}function t0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function t1(e){return void 0===e||1===e}function t2({scale:e,scaleX:t,scaleY:n}){return!t1(e)||!t1(t)||!t1(n)}function t5(e){return t2(e)||t3(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function t3(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function t4(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function t6(e,t=0,n=1,r,i){e.min=t4(e.min,t,n,r,i),e.max=t4(e.max,t,n,r,i)}function t8(e,{x:t,y:n}){t6(e.x,t.translate,t.scale,t.originPoint),t6(e.y,n.translate,n.scale,n.originPoint)}function t9(e,t){e.min+=t,e.max+=t}function t7(e,t,n,r,i=.5){let s=tX(e.min,e.max,i);t6(e,t,n,s,r)}function ne(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function nt(e,t,n){let r=n??e;t7(e.x,ne(t.x,r.x),t.scaleX,t.scale,t.originX),t7(e.y,ne(t.y,r.y),t.scaleY,t.scale,t.originY)}function nn(e,t){return t0(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class nr extends tj{constructor(){super(...arguments),this.type="html",this.renderInstance=tW}readValueFromInstance(e,t){if(a.has(t))return this.projection?.isProjecting?ew(t):eS(e,t);{let n=window.getComputedStyle(e),r=(ea(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nn(e,t)}build(e,t,n){t$(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tq(e,t,n)}}var ni,ns=n(2265);let no=["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 na(e){if("string"!=typeof e||e.includes("-"));else if(no.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var nl=n(57437),nu=n(58881);let nc=(0,ns.createContext)({strict:!1});var nh=n(45750);let nd=(0,ns.createContext)({});function nf(e){return Array.isArray(e)?e.join(" "):e}let np=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ng(e,t,n){for(let r in t)J(t[r])||tZ(r,n)||(e[r]=t[r])}let nm=()=>({...np(),attrs:{}}),ny=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 nb(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ny.has(e)}let nv=e=>!nb(e);try{ni=require("@emotion/is-prop-valid").default,"function"==typeof ni&&(nv=e=>e.startsWith("on")?!nb(e):ni(e))}catch{}function nw(e){return J(e)?e.get():e}var nx=n(64252),nS=n(53576);let nk=e=>(t,n)=>{let r=(0,ns.useContext)(nd),i=(0,ns.useContext)(nx.O),s=()=>(function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:s}=e;return{latestValues:function(e,t,n,r){let i={},s=r(e,{});for(let e in s)i[e]=nw(s[e]);let{initial:o,animate:a}=e,l=tS(e),u=tk(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===o)?a:o;if(h&&"boolean"!=typeof h&&!tb(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let r=tM(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(t,n,r,i),renderState:s()}})(e,t,r,i);return n?s():(0,nS.h)(s)},nP=nk({scrapeMotionValuesFromProps:tq,createRenderState:np}),nE=nk({scrapeMotionValuesFromProps:tJ,createRenderState:nm}),nA={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"]},nT=!1;function nM(){return!function(){if(nT)return;let e={};for(let t in nA)e[t]={isEnabled:e=>nA[t].some(t=>!!e[t])};tR=e,nT=!0}(),tR}let nC=Symbol.for("motionComponentSymbol"),nR="data-"+tV("framerAppearId"),nO=(0,ns.createContext)({});function nj(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var nV=n(12014);function nD(e){var t,n;let{forwardMotionProps:r=!1,type:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;s&&function(e){let t=nM();for(let n in e)t[n]={...t[n],...e[n]};tR=t}(s);let a=i?"svg"===i:na(e),l=a?nE:nP;function u(t,n){let i;let s={...(0,ns.useContext)(nh._),...t,layoutId:function(e){let{layoutId:t}=e,n=(0,ns.useContext)(nu.p).id;return n&&void 0!==t?n+"-"+t:t}(t)},{isStatic:u}=s,c=function(e){let{initial:t,animate:n}=function(e,t){if(tS(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tv(t)?t:void 0,animate:tv(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,ns.useContext)(nd));return(0,ns.useMemo)(()=>({initial:t,animate:n}),[nf(t),nf(n)])}(t),h=l(t,u);if(!u&&"undefined"!=typeof window){(0,ns.useContext)(nc).strict;let t=function(e){let{drag:t,layout:n}=nM();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
5(s);i=t.MeasureLayout,c.visualElement=function(e,t,n,r,i,s){var o,a,l,u;let{visualElement:c}=(0,ns.useContext)(nd),h=(0,ns.useContext)(nc),d=(0,ns.useContext)(nx.O),f=(0,ns.useContext)(nh._),p=f.reducedMotion,g=f.skipAnimations,m=(0,ns.useRef)(null),y=(0,ns.useRef)(!1);r=r||h.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,skipAnimations:g,isSVG:s}),y.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let b=m.current,v=(0,ns.useContext)(nO);b&&!b.projection&&i&&("html"===b.type||"svg"===b.type)&&function(e,t,n,r){let{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&nj(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(m.current,n,i,v);let w=(0,ns.useRef)(!1);(0,ns.useInsertionEffect)(()=>{b&&w.current&&b.update(n,d)});let x=n[nR],S=(0,ns.useRef)(!!x&&"undefined"!=typeof window&&!(null===(o=(a=window).MotionHandoffIsComplete)||void 0===o?void 0:o.call(a,x))&&(null===(l=(u=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(u,x)));return(0,nV.L)(()=>{y.current=!0,b&&(w.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),S.current&&b.animationState&&b.animationState.animateChanges())}),(0,ns.useEffect)(()=>{b&&(!S.current&&b.animationState&&b.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var e,t;null===(e=(t=window).MotionHandoffMarkAsComplete)||void 0===e||e.call(t,x)}),S.current=!1),b.enteringChildren=void 0)}),b}(e,h,s,o,t.ProjectionNode,a)}return(0,nl.jsxs)(nd.Provider,{value:c,children:[i&&c.visualElement?(0,nl.jsx)(i,{visualElement:c.visualElement,...s}):null,function(e,t,n,r,i){let{latestValues:s}=r,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:na(e))?function(e,t,n,r){let i=(0,ns.useMemo)(()=>{let n=nm();return tz(n,t,tH(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ng(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return ng(r,n,e),Object.assign(r,function(e,t){let{transformTemplate:n}=e;return(0,ns.useMemo)(()=>{let e=np();return t$(e,t,n),Object.assign({},e.vars,e.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,s,i,e),u=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!J(e[i])&&(nv(i)||!0===n&&nb(i)||!t&&!nb(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),c=e!==ns.Fragment?{...u,...l,ref:n}:{},{children:h}=t,d=(0,ns.useMemo)(()=>J(h)?h.get():h,[h]);return(0,ns.createElement)(e,{...c,children:d})}(e,t,function(e,t,n){let r=(0,ns.useRef)(n);(0,ns.useInsertionEffect)(()=>{r.current=n});let i=(0,ns.useRef)(null);return(0,ns.useCallback)(n=>{if(n){var s;null===(s=e.onMount)||void 0===s||s.call(e,n)}t&&(n?t.mount(n):t.unmount());let o=r.current;if("function"==typeof o){if(n){let e=o(n);"function"==typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):o(n)}else o&&(o.current=n)},[t])}(h,c.visualElement,n),h,u,r,a)]})}u.displayName="motion.".concat("string"==typeof e?e:"create(".concat(null!==(n=null!==(t=e.displayName)&&void 0!==t?t:e.name)&&void 0!==n?n:"",")"));let c=(0,ns.forwardRef)(u);return c[nC]=e,c}class nI{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nL(e,t,n){let r=e.getProps();return tM(r,t,void 0!==n?n:r.custom,e)}function n$(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function nF(e,t){let n=e?.[t]??e?.default??e;return n!==e?n$(n,e):n}let n_=e=>Array.isArray(e);function nB(e,t){let n=e.getValue("willChange");if(J(n)&&n.add)return n.add(t);if(!n&&eC.WillChange){let n=new eC.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nz=(...e)=>e.reduce((e,t)=>
5n=>t(e(n)));function nN(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nH(e,t){return n=>n>0?t:e}let nW=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nU=[w,v,M],nG=e=>nU.find(t=>t.test(e));function nY(e){let t=nG(e);if(er(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===M&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,s=0,o=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=nN(a,r,e+1/3),s=nN(a,r,e),o=nN(a,r,e-1/3)}else i=s=o=n;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(n)),n}let nX=(e,t)=>{let n=nY(e),r=nY(t);if(!n||!r)return nH(e,t);let i={...n};return e=>(i.red=nW(n.red,r.red,e),i.green=nW(n.green,r.green,e),i.blue=nW(n.blue,r.blue,e),i.alpha=tX(n.alpha,r.alpha,e),v.transform(i))},nK=new Set(["none","hidden"]);function nZ(e,t){return n=>tX(e,t,n)}function nq(e){return"number"==typeof e?nZ:"string"==typeof e?eu(e)?nH:C.test(e)?nX:n0:Array.isArray(e)?nJ:"object"==typeof e?C.test(e)?nX:nQ:nH}function nJ(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nq(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nQ(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nq(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let n0=(e,t)=>{let n=F.createTransformer(t),r=D(e),i=D(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?nK.has(e)&&!i.values.length||nK.has(t)&&!r.values.length?nK.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:nz(nJ(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}(r,i),i.values),n):(er(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nH(e,t))};function n1(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tX(e,t,n):nq(e)(e,t)}let n2=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ej.update(t,e),stop:()=>eV(t),now:()=>eD.isProcessing?eD.timestamp:tu.now()}};function n5(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let n3={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function n4(e,t){return e*Math.sqrt(1-t*t)}let n6=["duration","bounce"],n8=["stiffness","damping","mass"];function n9(e,t){return t.some(t=>void 0!==e[t])}function n7(e=n3.visualDuration,t=n3.bounce){let n,r,i,s,o,a;let u="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:c,restDelta:h}=u,d=u.keyframes[0],f=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:y,duration:b,velocity:v,isResolvedFromDuration:w}=function(e){let t={velocity:n3.velocity,stiffness:n3.stiffness,damping:n3.damping,mass:n3.mass,isResolvedFromDuration:!1,...e};if(!n9(e,n8)&&n9(e,n6)){if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*l(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:n3.mass,stiffness:r,damping:i}}else{let n=function({duration:e=n3.duration,bounce:t=n3.bounce,velocity:n=n3.velocity,mass:r=n3.mass}){let i,s;er(e<=eX(n3.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=l(n3.minDamping,n3.maxDamping,o),e=l(n3.minDuration,n3.maxDuration,eK(e)),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/n4(t,o)*Math.exp(-i)},s=t=>{let r=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=n4(Math.pow(t,2),o);return(r*n+n-s)*Math.exp(-r)*(-i(t)+.001>0?-1:1)/a}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),s=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,s,5/e);if(e=eX(e),isNaN(a))return{stiffness:n3.stiffness,damping:n3.damping,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:n3.mass}).isResolvedFromDuration=!0}}return t}({...u,velocity:-eK(u.velocity||0)}
5),x=v||0,S=m/(2*Math.sqrt(g*y)),k=f-d,P=eK(Math.sqrt(g/y)),E=5>Math.abs(k);if(c||(c=E?n3.restSpeed.granular:n3.restSpeed.default),h||(h=E?n3.restDelta.granular:n3.restDelta.default),S<1)i=n4(P,S),s=(x+S*P*k)/i,n=e=>f-Math.exp(-S*P*e)*(s*Math.sin(i*e)+k*Math.cos(i*e)),o=S*P*s+k*i,a=S*P*k-s*i,r=e=>Math.exp(-S*P*e)*(o*Math.sin(i*e)+a*Math.cos(i*e));else if(1===S){n=e=>f-Math.exp(-P*e)*(k+(x+P*k)*e);let e=x+P*k;r=t=>Math.exp(-P*t)*(P*e*t-x)}else{let e=P*Math.sqrt(S*S-1);n=t=>{let n=Math.exp(-S*P*t),r=Math.min(e*t,300);return f-n*((x+S*P*k)*Math.sinh(r)+e*k*Math.cosh(r))/e};let t=(x+S*P*k)/e,i=S*P*t-k*e,s=S*P*k-t*e;r=t=>{let n=Math.exp(-S*P*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+s*Math.cosh(r))}}let A={calculatedDuration:w&&b||null,velocity:e=>eX(r(e)),next:e=>{if(!w&&S<1){let t=Math.exp(-S*P*e),n=Math.sin(i*e),r=Math.cos(i*e),l=f-t*(s*n+k*r),u=eX(t*(o*n+a*r));return p.done=Math.abs(u)<=c&&Math.abs(f-l)<=h,p.value=p.done?f:l,p}let t=n(e);if(w)p.done=e>=b;else{let n=eX(r(e));p.done=Math.abs(n)<=c&&Math.abs(f-t)<=h}return p.value=p.done?f:t,p},toString:()=>{let e=Math.min(n5(A),2e4),t=te(t=>A.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return A}function re(e,t,n){let r=Math.max(t-5,0);return tc(n-e(r),t-r)}function rt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let f=e[0],p={done:!1,value:f},g=e=>void 0!==a&&e<a||void 0!==l&&e>l,m=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,y=n*t,b=f+y,v=void 0===o?b:o(b);v!==b&&(y=v-f);let w=e=>-y*Math.exp(-e/r),x=e=>v+w(e),S=e=>{let t=w(e),n=x(e);p.done=Math.abs(t)<=u,p.value=p.done?v:n},k=e=>{g(p.value)&&(h=e,d=n7({keyframes:[p.value,m(p.value)],velocity:re(x,e,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,S(e),k(e)),void 0!==h&&e>=h)?d.next(e-h):(t||S(e),p)}}}n7.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(n5(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:eK(i)}}(e,100,n7);return e.ease=t.ease,e.duration=eX(t.duration),e.type="keyframes",e};let rn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function rr(e,t,n,r){if(e===t&&n===r)return eM;let i=t=>(function(e,t,n,r,i){let s,o;let a=0;do(s=rn(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(s)>1e-7&&++a<12);return o})(t,0,1,e,n);return e=>0===e||1===e?e:rn(i(e),t,r)}let ri=rr(.42,0,1,1),rs=rr(0,0,.58,1),ro=rr(.42,0,.58,1),ra=e=>Array.isArray(e)&&"number"!=typeof e[0],rl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ru=e=>t=>1-e(1-t),rc=rr(.33,1.53,.69,.99),rh=ru(rc),rd=rl(rh),rf=e=>e>=1?1:(e*=2)<1?.5*rh(e):.5*(2-Math.pow(2,-10*(e-1))),rp=e=>1-Math.sin(Math.acos(e)),rg=ru(rp),rm=rl(rp),ry={linear:eM,easeIn:ri,easeInOut:ro,easeOut:rs,circIn:rp,circInOut:rm,circOut:rg,backIn:rh,backInOut:rd,backOut:rc,anticipate:rf},rb=e=>"string"==typeof e,rv=e=>{if(e9(e)){ei(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return rr(t,n,r,i)}return rb(e)?(ei(void 0!==ry[e],`Invalid easing type '${e}'`,"invalid-easing-type"),ry[e]):e},rw=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function rx({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=ra(r)?r.map(rv):rv(r),s={done:!1,value:t[0]},o=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let s=e.length;if(ei(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||eC.mix||n1,s=e.length-1;for(let n=0;n<s;n++){let s=i(e[n],e[n+1]);t&&(s=nz(Array.isArray(t)?t[n]||eM:t,s)),r.push(s)}return r}(t,r,i),u=a.length,c=n=>{if(o&&n<e[0])return t[0];let r=0;if(u>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rw(e[r],e[r+1],n);return a[r](i)};return n?t=>c(l(e[0],e[s-1],t)):c}((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rw(0,t,r);e.push(tX(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ro).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=o(t),s.done=t>=e,s)}}let rS={decay:rt,inertia:rt,tween:rx,keyframes:rx,spring:n7};function rk(e){"string"==typeof e.type&&(e.type=rS[e.type])}let rP=e=>e/100;class rE extends e8{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tu.now()&&this.tick(tu.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rk(e);let{type:t=rx,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=e,{keyframes:o}=e,a=t||rx;a!==rx&&"number"!=typeof o[0]&&(this.mixKeyframes=nz(rP,n1(o[0],o[1])),o=[0,100]);let l=a({...e,keyframes:o});"mirror"===i&&(this.mirroredGenerator=a({...e,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=n5(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n;let{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return r.next(0);let{delay:c=0,keyframes:h,repeat:d,repeatType:f,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let b=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let w=this.currentTime,x=r;if(d){let e=Math.min(this.currentTime,i)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/a)):"mirror"===f&&(x=o)),w=l(0,1,n)*
5a}v?(this.delayState.value=h[0],n=this.delayState):n=x.next(w),s&&!v&&(n.value=s(n.value));let{done:S}=n;v||null===u||(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return k&&g!==rt&&(n.value=e6(h,this.options,y,this.speed)),m&&m(n.value),k&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return eK(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+eK(e)}get time(){return eK(this.currentTime)}set time(e){e=eX(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return re(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tu.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=eK(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=n2,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tu.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rA={anticipate:rf,backInOut:rd,circInOut:rm};class rT extends ti{constructor(e){"string"==typeof e.ease&&e.ease in rA&&(e.ease=rA[e.ease]),rk(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...s}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let o=new rE({...s,autoplay:!1}),a=Math.max(10,tu.now()-this.startTime),u=l(0,10,a-10),c=o.sample(a).value,{name:h}=this.options;i&&h&&e0(i,h,c),t.setWithVelocity(o.sample(Math.max(0,a-u)).value,c,u),o.stop()}}let rM=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(F.test(e)||"0"===e)&&!e.startsWith("url("));function rC(e){e.duration=0,e.type="keyframes"}let rR=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rO=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rj=e1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rV extends e8{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tu.now();let h={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:s,name:a,motionValue:l,element:u,...c},d=u?.KeyframeResolver||eN;this.keyframeResolver=new d(o,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=tu.now();let h=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=rM(i,t),a=rM(s,t);return er(o===a,`You are trying to animate ${t} from "${i}" to "${s}". "${o?s:i}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||tr(n))&&r)}(e,s,o,a)&&(h=!1,(eC.instantAnimations||!l)&&c?.(e6(e,n,t)),e[0]=e[e.length-1],rC(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=h&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
5let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return rj()&&n&&(ts.has(n)||rO.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&rR.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!u)&&!l&&!r&&"mirror"!==i&&0!==s&&"inertia"!==o}(d),p=d.motionValue?.owner?.current;if(f)try{i=new rT({...d,element:p})}catch{i=new rE(d)}else i=new rE(d);i.finished.then(()=>{this.notifyFinished()}).catch(eM),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),e_=!0,ez(),eB(),e_=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rD={type:"spring",stiffness:500,damping:25,restSpeed:10},rI=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),rL={type:"keyframes",duration:.8},r$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rF=(e,{keyframes:t})=>t.length>2?rL:a.has(e)?e.startsWith("scale")?rI(t[1]):rD:r$,r_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rB=(e,t,n,r={},i,s)=>o=>{let a=nF(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=eX(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function(e){for(let t in e)if(!r_.has(t))return!0;return!1}(a)&&Object.assign(c,rF(e,c)),c.duration&&(c.duration=eX(c.duration)),c.repeatDelay&&(c.repeatDelay=eX(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(rC(c),0!==c.delay||(h=!0)),(eC.instantAnimations||eC.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,rC(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!s&&void 0!==t.get()){let e=e6(c.keyframes,a);if(void 0!==e){ej.update(()=>{c.onUpdate(e),c.onComplete()});return}}return a.isSync?new rE(c):new rV(c)};function rz(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:o,...a}=t,l=e.getDefaultTransition();s=s?n$(s,l):l;let u=s?.reduceMotion,c=s?.skipAnimations;r&&(s=r);let h=[],d=i&&e.animationState&&e.animationState.getState()[i],f=s?.path;for(let t in f&&f.animateVisualElement(e,a,s,n,h),a){let r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...nF(s||{},t)};c&&(o.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){ej.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=e.props[nR];if(n){let e=window.MotionHandoffAnimation(n,t,ej);null!==e&&(o.startTime=e,f=!0)}}nB(e,t);let p=u??e.shouldReduceMotion;r.start(rB(t,r,i,p&&Q.has(t)?{type:!1}:o,e,f));let g=r.animation;g&&h.push(g)}if(o){let t=()=>ej.update(()=>{o&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=nL(e,t)||{};for(let t in i={...i,...n}){var s;let n=n_(s=i[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tp(n))}}(e,o)});h.length?Promise.all(h).then(t):t()}return h}function rN(e,t,n,r=0,i=1){let s=Array.from(e).sort((e,t)=>
5e.sortNodePosition(t)).indexOf(t),o=e.size,a=(o-1)*r;return"function"==typeof n?n(s,o):1===i?s*r:a-s*r}function rH(e,t,n={}){let r=nL(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let s=r?()=>Promise.all(rz(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=0,s=1,o){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(rH(l,t,{...o,delay:n+("function"==typeof r?0:r)+rN(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,s,o,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([s(),o(n.delay)]);{let[e,t]="beforeChildren"===a?[s,o]:[o,s];return e().then(()=>t())}}let rW=tx.length;function rU(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let rG=[...tw].reverse(),rY=tw.length;function rX(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rK(){return{animate:rX(!0),whileInView:rX(),whileHover:rX(),whileTap:rX(),whileDrag:rX(),whileFocus:rX(),exit:rX()}}class rZ extends nI{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rH(e,t,n)));else if("string"==typeof t)r=rH(e,t,n);else{let i="function"==typeof t?nL(e,t,n.custom):t;r=Promise.all(rz(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rK(),r=!0,i=!1,s=t=>(n,r)=>{let i=nL(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(o){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rW;e++){let r=tx[e],i=t.props[r];(tv(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},u=[],c=new Set,h={},d=1/0;for(let t=0;t<rY;t++){var f;let p=rG[t],g=n[p],m=void 0!==a[p]?a[p]:l[p],y=tv(m),b=p===o?g.isActive:null;!1===b&&(d=t);let v=m===l[p]&&m!==a[p]&&y;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),g.protectedKeys={...h},!g.isActive&&null===b||!m&&!g.prevProp||tb(m)||"boolean"==typeof m)continue;if("exit"===p&&g.isActive&&!0!==b){g.prevResolvedValues&&(h={...h,...g.prevResolvedValues});continue}let w=(f=g.prevProp,"string"==typeof m?m!==f:!!Array.isArray(m)&&!rU(m,f)),x=w||p===o&&g.isActive&&!v&&y||t>d&&y,S=!1,k=Array.isArray(m)?m:[m],P=k.reduce(s(p),{});!1===b&&(P={});let{prevResolvedValues:E={}}=g,A={...E,...P},T=t=>{x=!0,c.has(t)&&(S=!0,c.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in A){let t=P[e],n=E[e];if(!h.hasOwnProperty(e))(n_(t)&&n_(n)?!rU(t,n)||w:t!==n)?null!=t?T(e):c.add(e):void 0!==t&&c.has(e)?T(e):g.protectedKeys[e]=!0}g.prevProp=m,g.prevResolvedValues=P,g.isActive&&(h={...h,...P}),(r||i)&&e.blockInitialAnimation&&(x=!1);let M=v&&w,C=!M||S;x&&C&&u.push(...k.map(t=>{let n={type:p};if("string"==typeof t&&(r||i)&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nL(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rN(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof a.initial){let n=nL(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let p=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rK(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tb(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rq=0;class rJ extends nI{constructor(){super(...arguments),this.id=rq++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=nL(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
5{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rQ={x:!1,y:!1};function r0(e){return[e("x"),e("y")]}function r1(e){return e.max-e.min}function r2(e,t,n,r=.5){e.origin=r,e.originPoint=tX(t.min,t.max,e.origin),e.scale=r1(n)/r1(t),e.translate=tX(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function r5(e,t,n,r){r2(e.x,t.x,n.x,r?r.originX:void 0),r2(e.y,t.y,n.y,r?r.originY:void 0)}function r3(e,t,n,r=0){let i=r?tX(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+r1(t)}function r4(e,t,n,r=0){let i=r?tX(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+r1(t)}function r6(e,t,n,r){r4(e.x,t.x,n.x,r?.x),r4(e.y,t.y,n.y,r?.y)}let r8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r9=new Set(["INPUT","SELECT","TEXTAREA"]);function r7(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var ie=n(41464);function it(e){return(0,ie.K)(e)&&"ownerSVGElement"in e}function ir(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let ii=new WeakMap,is=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:it(r)&&"getBBox"in r?r.getBBox()[t]:r[n],io=is("inline","width","offsetWidth"),ia=is("block","height","offsetHeight");function il({target:e,borderBoxSize:t}){ii.get(e)?.forEach(n=>{n(e,{get width(){return io(e,t)},get height(){return ia(e,t)}})})}function iu(e){e.forEach(il)}let ic=new Set;function ih(e,t){return"function"==typeof e?(ic.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ic.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{ic.delete(e),ic.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(e,t){i||"undefined"==typeof ResizeObserver||(i=new ResizeObserver(iu));let n=ir(e);return n.forEach(e=>{let n=ii.get(e);n||(n=new Set,ii.set(e,n)),n.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let n=ii.get(e);n?.delete(t),n?.size||i?.unobserve(e)})}}(e,t)}let id=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ip(e){return{point:{x:e.pageX,y:e.pageY}}}let ig=e=>t=>id(t)&&e(t,ip(t));function im(e,t,n,r){return r7(e,t,ig(n),r)}let iy=({current:e})=>e?e.ownerDocument.defaultView:null,ib=(e,t)=>Math.abs(e-t),iv=new Set(["auto","scroll"]);class iw{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3,element:o}={}){if(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=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ix(this.lastRawMoveEventInfo,this.transformPagePoint));let n=ik(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(ib(e.x,t.x)**2+ib(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:s}=n,{timestamp:o}=eD;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ix(t,this.transformPagePoint),ej.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=ik("pointercancel"===e.type?this.lastMoveEventInfo:ix(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!id(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=r||window;let a=ix(ip(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=eD;this.history=[{...l,timestamp:u}];let{onSessionStart:c}=t;c&&c(e,ik(a,this.history));let h={passive:!0,capture:!0};this.removeListeners=nz(im(this.contextWindow,"pointermove",this.handlePointerMove,h),im(this.contextWindow,"pointerup",this.handlePointerUp,h),im(this.contextWindow,"pointercancel",this.handlePointerUp,h)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(iv.has(e.overflowX)||iv.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),ej.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eV(this.updatePoint)}}function ix(e,t){return t?{point:t(e.point)}:e}function iS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ik({point:e},t){return{point:e,delta:iS(e,iP(t)),offset:iS(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=iP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>eX(.1)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>
52*eX(.1)&&(r=e[1]);let s=eK(i.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,.1)}}function iP(e){return e[e.length-1]}function iE(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function iA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function iT(e,t,n){return{min:iM(e,t),max:iM(e,n)}}function iM(e,t){return"number"==typeof e?e:e[t]||0}let iC=new WeakMap;class iR{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new iw(e,{onSessionStart:e=>{t&&this.snapToCursor(ip(e).point),this.stopAnimation()},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?rQ[n]?null:(rQ[n]=!0,()=>{rQ[n]=!1}):rQ.x||rQ.y?null:(rQ.x=rQ.y=!0,()=>{rQ.x=rQ.y=!1}),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r0(e=>{let t=this.getAxisMotionValue(e).get()||0;if(k.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=r1(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&ej.update(()=>i(e,t),!1,!0),nB(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(o),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&ej.update(()=>s(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:iy(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&ej.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ij(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tX(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tX(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nj(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:iE(e.x,n,i),y:iE(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:iT(e,"left","right"),y:iT(e,"top","bottom")}}(t),r!==this.constraints&&!nj(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&r0(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nj(t))return!1;let r=t.current;ei(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let s=function(e,t,n){let r=nn(e,n),{scroll:i}=t;return i&&(t9(r.x,i.offset.x),t9(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:iA((e=i.layout.layoutBox).x,s.x),y:iA(e.y,s.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=t0(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(r0(o=>{if(!ij(o,t,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nB(this.visualElement,e),n.start(rB(e,n,0,t,this.visualElement,!1))}stopAnimation(){r0(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){r0(t=>{let{drag:n}=this.getProps();if(!ij(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:s}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-tX(n,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nj(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};r0(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();
5r[e]=function(e,t){let n=.5,r=r1(e),i=r1(t);return i>r?n=rw(t.min,t.max-r,e.min):r>i&&(n=rw(e.min,e.max-i,t.min)),l(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),r0(t=>{if(!ij(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(tX(i,s,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;iC.set(this.visualElement,this);let t=this.visualElement.current,n=im(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,s=i!==t&&(r9.has(i.tagName)||!0===i.isContentEditable);n&&r&&!s&&this.start(e)}),r=()=>{let{dragConstraints:n}=this.getProps();nj(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,n){let r=ih(e,iO(n)),i=ih(t,iO(n));return()=>{r(),i()}}(t,n.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ej.read(r);let o=r7(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(r0(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function iO(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function ij(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class iV extends nI{constructor(e){super(e),this.removeGroupControls=eM,this.removeListeners=eM,this.controls=new iR(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eM}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let iD=e=>(t,n)=>{e&&ej.update(()=>e(t,n),!1,!0)};class iI extends nI{constructor(){super(...arguments),this.removePointerDownListener=eM}onPointerDown(e){this.session=new iw(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iy(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:iD(e),onStart:iD(t),onMove:iD(n),onEnd:(e,t)=>{delete this.session,r&&ej.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=im(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let iL={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var i$=n(49637);let iF=!1;class i_ extends ns.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),iF&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iL.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:s}=n;return s&&(s.isPresent=i,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),iF=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?s.willUpdate():this.safeToRemove(),e.isPresent===i||(i?s.promote():s.relegate()||ej.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),to.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;iF=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iB(e){let[t,n]=(0,i$.oO)(),r=(0,ns.useContext)(nu.p);return(0,nl.jsx)(i_,{...e,layoutGroup:r,switchLayoutGroup:(0,ns.useContext)(nO),isPresent:t,safeToRemove:n})}let iz={value:null,addProjectionMetrics:null},iN=tU.length,iH=e=>"string"==typeof e?parseFloat(e):e,iW=e=>"number"==typeof e||P.test(e);function iU(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iG=iX(0,.5,rg),iY=iX(.5,.95,eM);function iX(e,t,n){return r=>r<e?0:r>t?1:n(rw(e,t,r))}function iK(e,t){e.min=t.min,e.max=t.max}function iZ(e,t){iK(e.x,t.x),iK(e.y,t.y)}function iq(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iJ(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iQ(e,t,[n,r,i],s,o){!function(e,t=0,n=1,r=.5,i,s=e,o=e){if(k.test(t)&&(t=parseFloat(t),t=tX(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=tX(s.min,s.max,r);e===s&&(a-=t),e.min=iJ(e.min,t,n,a,i),e.max=iJ(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,s,o)}let i0=["x","scaleX","originX"],i1=["y","scaleY","originY"];function i2(e,t,n,r){iQ(e.x,t,i0,n?n.x:void 0,r?r.x:void 0),iQ(e.
5y,t,i1,n?n.y:void 0,r?r.y:void 0)}function i5(e){return 0===e.translate&&1===e.scale}function i3(e){return i5(e.x)&&i5(e.y)}function i4(e,t){return e.min===t.min&&e.max===t.max}function i6(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function i8(e,t){return i6(e.x,t.x)&&i6(e.y,t.y)}function i9(e){return r1(e.x)/r1(e.y)}function i7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class se{constructor(){this.members=[]}add(e){eZ(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(eq(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(eq(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let st=(e,t)=>e.depth-t.depth;class sn{constructor(){this.children=[],this.isDirty=!1}add(e){eZ(this.children,e),this.isDirty=!0}remove(e){eq(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(st),this.isDirty=!1,this.children.forEach(e)}}let sr={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},si=["","X","Y","Z"],ss=0;function so(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function sa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ss++,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=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,iz.value&&(sr.nodes=sr.calculatedTargetDeltas=sr.calculatedProjections=0),this.nodes.forEach(sc),this.nodes.forEach(sv),this.nodes.forEach(sw),this.nodes.forEach(sh),iz.addProjectionMetrics&&iz.addProjectionMetrics(sr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new sn)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eJ),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=it(t)&&!(it(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n;let r=0,i=()=>this.root.updateBlockedByResize=!1;ej.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=tu.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(eV(r),e(i-250))};return ej.setup(r,!0),()=>eV(r)}(i,0),iL.hasAnimatedSinceResize&&(iL.hasAnimatedSinceResize=!1,this.nodes.forEac
5h(sb)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||i.getDefaultTransition()||sA,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!i8(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nF(s,"layout"),onPlay:o,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||sb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eV(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sx),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[nR];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ej,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(sp),this.nodes.forEach(sf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sm),this.nodes.forEach(sy),this.nodes.forEach(sl),this.nodes.forEach(su)):this.nodes.forEach(sg),this.clearAllSnapshots();let e=tu.now();eD.delta=l(0,1e3/60,e-eD.timestamp),eD.timestamp=e,eD.isProcessing=!0,eI.update.process(eD),eI.preRender.process(eD),eI.render.process(eD),eD.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,to.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sd),this.sharedNodes.forEach(sS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ej.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ej.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||r1(this.snapshot.measuredBox.x)||r1(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!i3(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||t5(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),sC((t=r).x),sC(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return q();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sO))){let{scroll:e}=this.root;e&&(t9(t.x,e.offset.x),t9(t.y,e.offset.y))}return t}removeElementScroll(e){let t=q();if(iZ(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:s}=r;r!==this.root&&i&&s.layoutScroll&&(i.wasRoot&&iZ(t,e),t9(t.x,i.offset.x),t9(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||q();iZ(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(t9(r.x,-n.scroll.offset.x),t9(r.y,-n.scroll.offset.y)),t5(n.latestValues)&&nt(r,n.latestValues,n.layout?.layoutBox)}return t5(this.latestValues)&&nt(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=q();iZ(t,e);for(let e=0;e<this.path.length;e++){let n;let r=this.path[e];t5(r.latestValues)&&(r.instance&&(t2(r.latestValues)&&r.updateSnapshot(),iZ(n=q(),r.measurePageBox())),i2(t,r.latestValues,r.snapshot?.layoutBox,n))}return t5(this.latestValues)&&i2(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eD.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
5isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=eD.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,r3(o.x,a.x,l.x,u?.x),r3(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):iZ(this.target,this.layout.layoutBox),t8(this.target,this.targetDelta)):iZ(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),iz.value&&sr.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||t2(this.parent.latestValues)||t3(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),r6(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),iZ(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eD.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;iZ(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(e,t,n,r=!1){let i,s;let o=n.length;if(o){t.x=t.y=1;for(let a=0;a<o;a++){s=(i=n[a]).projectionDelta;let{visualElement:o}=i.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(t9(e.x,-i.scroll.offset.x),t9(e.y,-i.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,t8(e,s)),r&&t5(i.latestValues)&&nt(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=q());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iq(this.prevProjectionDelta.x,this.projectionDelta.x),iq(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r5(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&i7(this.projectionDelta.x,this.prevProjectionDelta.x)&&i7(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),iz.value&&sr.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(e,t=!1,n){let r;let i=this.snapshot,s=i?i.latestValues:{},o={...this.latestValues},a=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=q(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),h=!c||c.members.length<=1,d=!!(u&&!h&&
5!0===this.options.crossfade&&!this.path.some(sE));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=f?.(n);if(i?(a.x.translate=i.x,a.x.scale=tX(e.x.scale,1,n),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=i.y,a.y.scale=tX(e.y.scale,1,n),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(sk(a.x,e.x,n),sk(a.y,e.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,g,m;r6(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),g=this.relativeTarget,m=this.relativeTargetOrigin,sP(g.x,m.x,l.x,n),sP(g.y,m.y,l.y,n),r&&(c=this.relativeTarget,p=r,i4(c.x,p.x)&&i4(c.y,p.y))&&(this.isProjectionDirty=!1),r||(r=q()),iZ(r,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,n,r,i,s){i?(e.opacity=tX(0,n.opacity??1,iG(r)),e.opacityExit=tX(t.opacity??1,0,iY(r))):s&&(e.opacity=tX(t.opacity??1,n.opacity??1,r));for(let i=0;i<iN;i++){let s=tU[i],o=iU(t,s),a=iU(n,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||iW(o)===iW(a)?(e[s]=Math.max(tX(iH(o),iH(a),r),0),(k.test(a)||k.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||n.rotate)&&(e.rotate=tX(t.rotate||0,n.rotate||0,r))}(o,s,this.latestValues,n,d,h)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eV(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ej.update(()=>{iL.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=tp(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){let r=J(e)?e:tp(e);return r.start(rB("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&sR(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||q();let t=r1(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=r1(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iZ(t,n),nt(t,i),r5(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new se),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&so("z",e,r,this.animationValues);for(let t=0;t<si.length;t++)so(`rotate${si[t]}`,e,r,this.animationValues),so(`skew${si[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=nw(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nw(t?.pointerEvents)||""),this.hasProjected&&!t5(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(e,t,n){let r="",i=e.x.translate/t.x,s=e.y.translate/t.y,o=n?.z||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:s,rotateY:o,skewX:a,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),s&&(r+=`rotateX(${s}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l}
5)`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(s=n(i,s)),e.transform=s;let{x:o,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tK){if(void 0===i[t])continue;let{correct:n,applyTo:o,isCSSVariable:a}=tK[t],l="none"===s?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?nw(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(sf),this.root.sharedNodes.clear()}}}function sl(e){e.updateLayout()}function su(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;if("size"===i)r0(e=>{let r=s?t.measuredBox[e]:t.layoutBox[e],i=r1(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";iK(s?t.measuredBox[e]:t.layoutBox[e],n[e])}else sR(i,t.layoutBox,n)&&r0(r=>{let i=s?t.measuredBox[r]:t.layoutBox[r],o=r1(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=K();r5(o,n,t.layoutBox);let a=K();s?r5(a,e.applyTransform(r,!0),t.measuredBox):r5(a,n,t.layoutBox);let l=!i3(o),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:s}=r;if(i&&s){let o=e.options.layoutAnchor||void 0,a=q();r6(a,t.layoutBox,i.layoutBox,o);let l=q();r6(l,n,s.layoutBox,o),i8(a,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function sc(e){iz.value&&sr.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sd(e){e.clearSnapshot()}function sf(e){e.clearMeasurements()}function sp(e){e.isLayoutDirty=!0,e.updateLayout()}function sg(e){e.isLayoutDirty=!1}function sm(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sy(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sv(e){e.resolveTargetDelta()}function sw(e){e.calcProjection()}function sx(e){e.resetSkewAndRotation()}function sS(e){e.removeLeadSnapshot()}function sk(e,t,n){e.translate=tX(t.translate,0,n),e.scale=tX(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sP(e,t,n,r){e.min=tX(t.min,n.min,r),e.max=tX(t.max,n.max,r)}function sE(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sA={duration:.45,ease:[.4,0,.1,1]},sT=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sM=sT("applewebkit/")&&!sT("chrome/")?Math.round:eM;function sC(e){e.min=sM(e.min),e.max=sM(e.max)}function sR(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(i9(t)-i9(n)))}function sO(e){return e!==e.root&&e.scroll?.wasRoot}let sj=sa({attachResizeListener:(e,t)=>r7(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sV={current:void 0},sD=sa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sV.current){let e=new sj({});e.mount(window),e.setOptions({layoutScroll:!0}),sV.current=e}return sV.current},resetTransform:(e,t)=>
5{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sI(e,t){let n=ir(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sL(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&ej.postRender(()=>i(t,ip(t)))}class s$ extends nI{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=sI(e,n);return r.forEach(e=>{let n,r=!1,s=!1,o=()=>{e.removeEventListener("pointerleave",u)},a=e=>{n&&(n(e),n=void 0),o()},l=e=>{r=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(e))},u=e=>{if("touch"!==e.pointerType){if(r){s=!0;return}a(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||rQ.x||rQ.y)return;s=!1;let o=t(e,r);"function"==typeof o&&(n=o,e.addEventListener("pointerleave",u,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",l,i),window.addEventListener("pointercancel",l,i)},i)}),s}(e,(e,t)=>(sL(this.node,t,"Start"),e=>sL(this.node,e,"End"))))}unmount(){}}class sF extends nI{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nz(r7(this.node.current,"focus",()=>this.onFocus()),r7(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var s_=n(13537);let sB=(e,t)=>!!t&&(e===t||sB(e,t.parentElement)),sz=new WeakSet;function sN(e){return t=>{"Enter"===t.key&&e(t)}}function sH(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let sW=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=sN(()=>
5{if(sz.has(n))return;sH(n,"down");let e=sN(()=>{sH(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>sH(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function sU(e){return id(e)&&!(rQ.x||rQ.y)}let sG=new WeakSet;function sY(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&ej.postRender(()=>i(t,ip(t)))}class sX extends nI{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,s]=sI(e,n),o=e=>{let r=e.currentTarget;if(!sU(e)||sG.has(e))return;sz.add(r),n.stopPropagation&&sG.add(e);let s=t(r,e),o={...i,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),sz.has(r)&&sz.delete(r),sU(e)&&"function"==typeof s&&s(e,{success:t})},l=e=>{a(e,r===window||r===document||n.useGlobalTarget||sB(r,e.target))},u=e=>{a(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),(0,s_.R)(e)&&(e.addEventListener("focus",e=>sW(e,i)),r8.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sY(this.node,t,"Start"),(e,{success:t})=>sY(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let sK=new WeakMap,sZ=new WeakMap,sq=e=>{let t=sK.get(e.target);t&&t(e)},sJ=e=>{e.forEach(sq)},sQ={some:0,all:1};class s0 extends nI{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:sQ[r]};this.stopObserver=function(e,t,n){let r=function({root:e,...t}){let n=e||document;sZ.has(n)||sZ.set(n,{});let r=sZ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(sJ,{root:e,...t})),r[i]}(t);return sK.set(e,n),r.observe(e),()=>{sK.delete(e),r.unobserve(e)}}(this.node.current,s,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=t?n:r;s&&s(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let s1=function(e,t){if("undefined"==typeof Proxy)return nD;let n=new Map,r=(n,r)=>nD(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,s)=>"create"===s?r:(n.has(s)||n.set(s,nD(s,void 0,e,t)),n.get(s))})}({animation:{Feature:rZ},exit:{Feature:rJ},inView:{Feature:s0},tap:{Feature:sX},focus:{Feature:sF},hover:{Feature:s$},pan:{Feature:iI},drag:{Feature:iV,ProjectionNode:sD,MeasureLayout:iB},layout:{ProjectionNode:sD,MeasureLayout:iB}},(e,t)=>t.isSVG??na(e)?new tQ(t):new nr(t,{allowProjection:e!==ns.Fragment}))},89056:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,s=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},o=(e,t,n,r,i,s,o,a)=>s<e&&o>t||s>e&&o<t?0:s<=e&&a<=n||o>=t&&a>=n?s-e-r:o>t&&a<n||s<e&&a>n?o-t+i:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>
5{var n,i,l,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:h,inline:d,boundary:f,skipOverflowHiddenElements:p}=t,g="function"==typeof f?f:e=>e!==f;if(!r(e))throw TypeError("Invalid target");let m=document.scrollingElement||document.documentElement,y=[],b=e;for(;r(b)&&g(b);){if((b=a(b))===m){y.push(b);break}null!=b&&b===document.body&&s(b)&&!s(document.documentElement)||null!=b&&s(b,p)&&y.push(b)}let v=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,w=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:x,scrollY:S}=window,{height:k,width:P,top:E,right:A,bottom:T,left:M}=e.getBoundingClientRect(),{top:C,right:R,bottom:O,left:j}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),V="start"===h||"nearest"===h?E-C:"end"===h?T+O:E+k/2-C+O,D="center"===d?M+P/2-j+R:"end"===d?A+R:M-j,I=[];for(let e=0;e<y.length;e++){let t=y[e],{height:n,width:r,top:i,right:a,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===c&&E>=0&&M>=0&&T<=w&&A<=v&&(t===m&&!s(t)||E>=i&&T<=l&&M>=u&&A<=a))break;let f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),g=parseInt(f.borderTopWidth,10),b=parseInt(f.borderRightWidth,10),C=parseInt(f.borderBottomWidth,10),R=0,O=0,j="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-b:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-C:0,$="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)R="start"===h?V:"end"===h?V-w:"nearest"===h?o(S,S+w,w,g,C,S+V,S+V+k,k):V-w/2,O="start"===d?D:"center"===d?D-v/2:"end"===d?D-v:o(x,x+v,v,p,b,x+D,x+D+P,P),R=Math.max(0,R+S),O=Math.max(0,O+x);else{R="start"===h?V-i-g:"end"===h?V-l+C+L:"nearest"===h?o(i,l,n,g,C+L,V,V+k,k):V-(i+n/2)+L/2,O="start"===d?D-u-p:"center"===d?D-(u+r/2)+j/2:"end"===d?D-a+b+j:o(u,a,r,p,b+j,D,D+P,P);let{scrollLeft:e,scrollTop:s}=t;R=0===F?0:Math.max(0,Math.min(s+R/F,t.scrollHeight-n/F+L)),O=0===$?0:Math.max(0,Math.min(e+O/$,t.scrollWidth-r/$+j)),V+=s-R,D+=e-O}I.push({el:t,top:R,left:O})}return I},u=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};function c(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(l(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:s,left:o}of l(e,u(t))){let e=s-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}}}]);

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.