1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4679],{1206:(e,t,n)=>{"use strict";let r,i;n.d(t,{P:()=>rX});var s=n(40479),o=n(98387),a=n(39622),l=n(33182);let u=new Set(["width","height","top","left","right","bottom",...s.U]);var c=n(20091),d=n(78041),h=n(23863),f=n(21391);let p=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var g=n(63946),m=n(15075),y=n(24888),b=n(82264);let v=new Set(["auto","none","0"]);var x=n(78617);class w extends g.h{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&&(r=r.trim(),(0,f.pG)(r))){let i=function e(t,n,r=1){(0,d.V)(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=p.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(0,h.i)(e)?parseFloat(e):e}return(0,f.pG)(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(),!u.has(n)||2!==e.length)return;let[r,i]=e,s=(0,c.n)(r),o=(0,c.n)(i);if((0,f.rm)(r)!==(0,f.rm)(i)&&x.Hr[n]){this.needsMeasurement=!0;return}if(s!==o)if((0,x.E4)(s)&&(0,x.E4)(o))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else x.Hr[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||(0,m.$)(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&&!v.has(t)&&(0,y.V)(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=(0,b.J)(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=x.Hr[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]=x.Hr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}var k=n(65752);class S extends k.BX{constructor(){super(...arguments),this.KeyframeResolver=w}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;(0,l.S)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}var E=n(32246),C=n(31439);let A=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"]);var P=n(36795);function T(e,{style:t,vars:n},r,i){let s,o=e.style;for(s in t)o[s]=t[s];for(s in i?.applyProjectionStyles(o,r),n)o.setProperty(s,n[s])}var R=n(35043);class M extends S{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=a.ge}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(s.f.has(t)){let e=(0,o.D)(t);return e&&e.default||0}return t=A.has(t)?t:(0,E.I)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return(0,R.x)(e,t,n)}
1build(e,t,n){(0,C.B)(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in T(e,t,void 0,r),t.attrs)e.setAttribute(A.has(n)?n:(0,E.I)(n),t.attrs[n])}mount(e){this.isSVGTag=(0,P.n)(e.tagName),super.mount(e)}}var j=n(37899);function O({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}var I=n(39361);function $(e){return void 0===e||1===e}function _({scale:e,scaleX:t,scaleY:n}){return!$(e)||!$(t)||!$(n)}function D(e){return _(e)||V(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function V(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function L(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function N(e,t=0,n=1,r,i){e.min=L(e.min,t,n,r,i),e.max=L(e.max,t,n,r,i)}function z(e,{x:t,y:n}){N(e.x,t.translate,t.scale,t.originPoint),N(e.y,n.translate,n.scale,n.originPoint)}function F(e,t){e.min+=t,e.max+=t}function B(e,t,n,r,i=.5){let s=(0,I.k)(e.min,e.max,i);N(e,t,n,s,r)}function H(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function W(e,t,n){let r=n??e;B(e.x,H(t.x,r.x),t.scaleX,t.scale,t.originX),B(e.y,H(t.y,r.y),t.scaleY,t.scale,t.originY)}function U(e,t){return O(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))}var G=n(38708),X=n(76066);class K extends S{constructor(){super(...arguments),this.type="html",this.renderInstance=T}readValueFromInstance(e,t){if(s.f.has(t))return this.projection?.isProjecting?(0,j.zs)(t):(0,j.Ib)(e,t);{let n=window.getComputedStyle(e),r=((0,f.j4)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return U(e,t)}build(e,t,n){(0,G.O)(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,X.x)(e,t,n)}}var Y=n(12115),q=n(36619),Z=n(11660);class Q{constructor(e){this.isMounted=!1,this.node=e}update(){}}var J=n(10883);function ee(e,t,n){let r=e.getProps();return(0,J.a)(r,t,void 0!==n?n:r.custom,e)}var et=n(51118);function en(e,t){let n=e?.[t]??e?.default??e;return n!==e?(0,et.K)(n,e):n}var er=n(22039);let ei=e=>Array.isArray(e);var es=n(40042);function eo(e,t){let n=e.getValue("willChange");if((0,l.S)(n)&&n.add)return n.add(t);if(!n&&es.W.WillChange){let n=new es.W.WillChange("auto");e.addValue("willChange",n),n.add(t)}}var ea=n(99256);function el(e){return e.props[ea.n]}var eu=n(27290),ec=n(6500),ed=n(27424);let eh=(...e)=>e.reduce((e,t)=>n=>t(e(n)));var ef=n(48895),ep=n(55389),eg=n(68894),em=n(44807);function ey(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}var eb=n(31739);function ev(e,t){return n=>n>0?t:e}let ex=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ew=[eg.u,eb.B,em.V];function ek(e){let t=ew.find(t=>t.test(e));if((0,d.$)(!!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===em.V&&(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=ey(a,r,e+1/3),s=ey(a,r,e),o=ey(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 eS=(e,t)=>{let n=ek(e),r=ek(t);if(!n||!r)return ev(e,t);let i={...n};return e=>(i.red=ex(n.red,r.red,e),i.green=ex(n.green,r.green,e),i.blue=ex(n.blue,r.blue,e),i.alpha=(0,I.k)(n.alpha,r.alpha,e),eb.B.transform(i))},eE=new Set(["none","hidden"]);function eC(e,t){return n=>(0,I.k)(e,t,n)}function eA(e){return"number"==typeof e?eC:"string"==typeof e?(0,f.pG)(e)?ev:ep.y.test(e)?eS:eR:Array.isArray(e)?eP:"object"==typeof e?ep.y.test(e)?eS:eT:ev}function eP(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>eA(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function eT(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=eA(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let eR=(e,t)=>{let n=y.f.createTransformer(t),r=(0,y.V)(e),i=(0,y.V)(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?eE.has(e)&&!i.values.length||eE.has(t)&&!r.values.length?function(e,t){return eE.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):eh(eP(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]++}
1return n}(r,i),i.values),n):((0,d.$)(!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"),ev(e,t))};function eM(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,I.k)(e,t,n):eA(e)(e,t)}var ej=n(73934);let eO=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ej.Gt.update(t,e),stop:()=>(0,ej.WG)(t),now:()=>ej.uv.isProcessing?ej.uv.timestamp:ed.k.now()}};var eI=n(33754);function e$(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 e_={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 eD(e,t){return e*Math.sqrt(1-t*t)}let eV=["duration","bounce"],eL=["stiffness","damping","mass"];function eN(e,t){return t.some(t=>void 0!==e[t])}function ez(e=e_.visualDuration,t=e_.bounce){let n,r,i,s,o,a,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,h=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:h},{stiffness:g,damping:m,mass:y,duration:b,velocity:v,isResolvedFromDuration:x}=function(e){let t={velocity:e_.velocity,stiffness:e_.stiffness,damping:e_.damping,mass:e_.mass,isResolvedFromDuration:!1,...e};if(!eN(e,eL)&&eN(e,eV))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*(0,ef.q)(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:e_.mass,stiffness:r,damping:i}}else{let n=function({duration:e=e_.duration,bounce:t=e_.bounce,velocity:n=e_.velocity,mass:r=e_.mass}){let i,s;(0,d.$)(e<=(0,eu.f)(e_.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=(0,ef.q)(e_.minDamping,e_.maxDamping,o),e=(0,ef.q)(e_.minDuration,e_.maxDuration,(0,eu.X)(e)),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/eD(t,o)*Math.exp(-i)},s=t=>{let r=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=eD(Math.pow(t,2),o);return(r*n+n-s)*a*(-i(t)+.001>0?-1:1)/l}):(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=(0,eu.f)(e),isNaN(a))return{stiffness:e_.stiffness,damping:e_.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:e_.mass}).isResolvedFromDuration=!0}return t}({...l,velocity:-(0,eu.X)(l.velocity||0)}),w=v||0,k=m/(2*Math.sqrt(g*y)),S=f-h,E=(0,eu.X)(Math.sqrt(g/y)),C=5>Math.abs(S);if(u||(u=C?e_.restSpeed.granular:e_.restSpeed.default),c||(c=C?e_.restDelta.granular:e_.restDelta.default),k<1)i=eD(E,k),s=(w+k*E*S)/i,n=e=>f-Math.exp(-k*E*e)*(s*Math.sin(i*e)+S*Math.cos(i*e)),o=k*E*s+S*i,a=k*E*S-s*i,r=e=>Math.exp(-k*E*e)*(o*Math.sin(i*e)+a*Math.cos(i*e));else if(1===k){n=e=>f-Math.exp(-E*e)*(S+(w+E*S)*e);let e=w+E*S;r=t=>Math.exp(-E*t)*(E*e*t-w)}else{let e=E*Math.sqrt(k*k-1);n=t=>{let n=Math.exp(-k*E*t),r=Math.min(e*t,300);return f-n*((w+k*E*S)*Math.sinh(r)+e*S*Math.cosh(r))/e};let t=(w+k*E*S)/e,i=k*E*t-S*e,s=k*E*S-t*e;r=t=>{let n=Math.exp(-k*E*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+s*Math.cosh(r))}}let A={calculatedDuration:x&&b||null,velocity:e=>(0,eu.f)(r(e)),next:e=>{if(!x&&k<1){let t=Math.exp(-k*E*e),n=Math.sin(i*e),r=Math.cos(i*e),l=f-t*(s*n+S*r);return p.done=Math.abs((0,eu.f)(t*(o*n+a*r)))<=u&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let t=n(e);return x?p.done=e>=b:p.done=Math.abs((0,eu.f)(r(e)))<=u&&Math.abs(f-t)<=c,p.value=p.done?f:t,p},toString:()=>{let e=Math.min(e$(A),2e4),t=(0,eI.K)(t=>A.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return A}ez.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(e$(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:(0,eu.X)(i)}}(e,100,ez);return e.ease=t.ease,e.duration=(0,eu.f)(t.duration),e.type="keyframes",e};var eF=n(45242);function eB(e,t,n){let r=Math.max(t-5,0);return(0,eF.f)(n-e(r),t-r)}function eH({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 d,h,f=e[0],p={done:!1,value:f},g=n*t,m=f+g,y=void 0===o?m:o(m);y!==m&&(g=y-f);let b=e=>-g*Math.exp(-e/r),v=e=>y+b(e),x=e=>{let t=b(e),n=v(e);p.done=Math.abs(t)<=u,p.value=p.done?y:n},w=e=>{let t;if(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;d=e,h=ez({keyframes:[p.value,(n=p.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:eB(v,e,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;
1return(h||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||x(e),p)}}}let eW=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function eU(e,t,n,r){return e===t&&n===r?ec.l:i=>0===i||1===i?i:eW(function(e,t,n,r,i){let s,o,a=0;do(s=eW(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(s)>1e-7&&++a<12);return o}(i,0,1,e,n),t,r)}let eG=eU(.42,0,1,1),eX=eU(0,0,.58,1),eK=eU(.42,0,.58,1),eY=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eq=e=>t=>1-e(1-t),eZ=eU(.33,1.53,.69,.99),eQ=eq(eZ),eJ=eY(eQ),e0=e=>e>=1?1:(e*=2)<1?.5*eQ(e):.5*(2-Math.pow(2,-10*(e-1))),e1=e=>1-Math.sin(Math.acos(e)),e2=eq(e1),e5=eY(e1);var e3=n(34324);let e4={linear:ec.l,easeIn:eG,easeInOut:eK,easeOut:eX,circIn:e1,circInOut:e5,circOut:e2,backIn:eQ,backInOut:eJ,backOut:eZ,anticipate:e0},e6=e=>{if((0,e3.D)(e)){(0,d.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return eU(t,n,r,i)}return"string"==typeof e?((0,d.V)(void 0!==e4[e],`Invalid easing type '${e}'`,"invalid-easing-type"),e4[e]):e},e8=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function e9({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(e6):e6(r),o={done:!1,value:t[0]},a=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let s=e.length;if((0,d.V)(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||es.W.mix||eM,s=e.length-1;for(let n=0;n<s;n++){let s=i(e[n],e[n+1]);t&&(s=eh(Array.isArray(t)?t[n]||ec.l:t,s)),r.push(s)}return r}(t,r,i),l=a.length,u=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=e8(e[r],e[r+1],n);return a[r](i)};return n?t=>u((0,ef.q)(e[0],e[s-1],t)):u}((i=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=e8(0,t,r);e.push((0,I.k)(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||eK).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}var e7=n(33855);let te={decay:eH,inertia:eH,tween:e9,keyframes:e9,spring:ez};function tt(e){"string"==typeof e.type&&(e.type=te[e.type])}var tn=n(87671);let tr=e=>e/100;class ti extends tn.q{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!==ed.k.now()&&this.tick(ed.k.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;tt(e);let{type:t=e9,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=e,{keyframes:o}=e,a=t||e9;a!==e9&&"number"!=typeof o[0]&&(this.mixKeyframes=eh(tr,eM(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=e$(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,{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:m}=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 y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let v=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"===h?(n=1-n,f&&(n-=f/a)):"mirror"===h&&(x=o)),v=(0,ef.q)(0,1,n)*a}b?(this.delayState.value=c[0],n=this.delayState):n=x.next(v),s&&!b&&(n.value=s(n.value));let{done:w}=n;b||null===l||(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&p!==eH&&(n.value=(0,e7.X)(c,this.options,m,this.speed)),g&&g(n.value),k&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return(0,eu.X)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,eu.X)(e)}get time(){return(0,eu.X)(this.currentTime)}set time(e){e=(0,eu.f)(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 eB(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(ed.k.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,eu.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=eO,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(ed.k.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)}}var ts=n(46934),to=n(82617);let ta={anticipate:e0,backInOut:eJ,circInOut:e5};class tl extends to.m{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in ta&&(e.ease=ta[e.ease])}(e),tt(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)return void t.set(e);let o=new ti({...s,autoplay:!1}),a=Math.max(10,ed.k.now()-this.startTime),l=(0,ef.q)(0,10,a-10),u=o.sample(a).value,{name:c}=this.options;
1i&&c&&(0,ts.e)(i,c,u),t.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}var tu=n(65181);let tc=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(y.f.test(e)||"0"===e)&&!e.startsWith("url("));function td(e){e.duration=0,e.type="keyframes"}var th=n(60178),tf=n(87913);let tp=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,tg=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tm=(0,th.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ty extends tn.q{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=ed.k.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:s,name:a,motionValue:l,element:u,...c},h=u?.KeyframeResolver||g.h;this.keyframeResolver=new h(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!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=ed.k.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=tc(i,t),a=tc(s,t);return(0,d.$)(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||(0,tu.W)(n))&&r)}(e,s,o,a)&&(h=!1,(es.W.instantAnimations||!l)&&c?.((0,e7.X)(e,n,t)),e[0]=e[e.length-1],td(n),n.repeat=0);let f={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=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;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return tm()&&n&&(tf.M.has(n)||tg.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&tp.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!u)&&!l&&!r&&"mirror"!==i&&0!==s&&"inertia"!==o}(f),g=f.motionValue?.owner?.current;if(p)try{i=new tl({...f,element:g})}catch{i=new ti(f)}else i=new ti(f);i.finished.then(()=>{this.notifyFinished()}).catch(ec.l),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(),(0,g.q)()),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 tb={type:"spring",stiffness:500,damping:25,restSpeed:10},tv={type:"keyframes",duration:.8},tx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tw=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),tk=(e,t,n,r={},i,o)=>a=>{let l=en(r,e)||{},u=l.delay||r.delay||0,{elapsed:c=0}=r;c-=(0,eu.f)(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function(e){for(let t in e)if(!tw.has(t))return!0;return!1}(l)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?tv:s.f.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tb:tx)(e,d)),d.duration&&(d.duration=(0,eu.f)(d.duration)),d.repeatDelay&&(d.repeatDelay=(0,eu.f)(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(td(d),0===d.delay&&(h=!0)),(es.W.instantAnimations||es.W.skipAnimations||i?.shouldSkipAnimations||l.skipAnimations)&&(h=!0,td(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!o&&void 0!==t.get()){let e=(0,e7.X)(d.keyframes,l);if(void 0!==e)return void ej.Gt.update(()=>{d.onUpdate(e),d.onComplete()})}return l.isSync?new ti(d):new ty(d)};function tS(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:o,...a}=t,l=e.getDefaultTransition();s=s?(0,et.K)(s,l):l;let c=s?.reduceMotion,d=s?.skipAnimations;r&&(s=r);let h=[],f=i&&e.animationState&&e.animationState.getState()[i],p=s?.path;for(let t in p&&p.animateVisualElement(e,a,s,n,h),a){let r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||f&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(f,t))continue;let o={delay:n,...en(s||{},t)};d&&(o.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!o.velocity){ej.Gt.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=el(e);
1if(n){let e=window.MotionHandoffAnimation(n,t,ej.Gt);null!==e&&(o.startTime=e,p=!0)}}eo(e,t);let g=c??e.shouldReduceMotion;r.start(tk(t,r,i,g&&u.has(t)?{type:!1}:o,e,p));let m=r.animation;m&&h.push(m)}if(o){let t=()=>ej.Gt.update(()=>{o&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=ee(e,t)||{};for(let t in i={...i,...n}){var s;let n=ei(s=i[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,er.OQ)(n))}}(e,o)});h.length?Promise.all(h).then(t):t()}return h}function tE(e,t,n,r=0,i=1){let s=Array.from(e).sort((e,t)=>e.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 tC(e,t,n={}){let r=ee(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(tS(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(tC(l,t,{...o,delay:n+("function"==typeof r?0:r)+tE(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())}}var tA=n(19461),tP=n(52036);let tT=tP._.length;var tR=n(36874);function tM(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 tj=[...tP.U].reverse(),tO=tP.U.length;function tI(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t$(){return{animate:tI(!0),whileInView:tI(),whileHover:tI(),whileTap:tI(),whileDrag:tI(),whileFocus:tI(),exit:tI()}}class t_ extends Q{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=>tC(e,t,n)));else if("string"==typeof t)r=tC(e,t,n);else{let i="function"==typeof t?ee(e,t,n.custom):t;r=Promise.all(tS(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=t$(),r=!0,i=!1,s=t=>(n,r)=>{let i=ee(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<tT;e++){let r=tP._[e],i=t.props[r];((0,tA.w)(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},u=[],c=new Set,d={},h=1/0;for(let t=0;t<tO;t++){var f,p;let g=tj[t],m=n[g],y=void 0!==a[g]?a[g]:l[g],b=(0,tA.w)(y),v=g===o?m.isActive:null;!1===v&&(h=t);let x=y===l[g]&&y!==a[g]&&b;if(x&&(r||i)&&e.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...d},!m.isActive&&null===v||!y&&!m.prevProp||(0,tR.N)(y)||"boolean"==typeof y)continue;if("exit"===g&&m.isActive&&!0!==v){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let w=(f=m.prevProp,"string"==typeof(p=y)?p!==f:!!Array.isArray(p)&&!tM(p,f)),k=w||g===o&&m.isActive&&!x&&b||t>h&&b,S=!1,E=Array.isArray(y)?y:[y],C=E.reduce(s(g),{});!1===v&&(C={});let{prevResolvedValues:A={}}=m,P={...A,...C},T=t=>{k=!0,c.has(t)&&(S=!0,c.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in P){let t=C[e],n=A[e];if(!d.hasOwnProperty(e))(ei(t)&&ei(n)?!tM(t,n)||w:t!==n)?null!=t?T(e):c.add(e):void 0!==t&&c.has(e)?T(e):m.protectedKeys[e]=!0}m.prevProp=y,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(k=!1);let R=x&&w,M=!R||S;k&&M&&u.push(...E.map(t=>{let n={type:g};if("string"==typeof t&&(r||i)&&!R&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ee(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=tE(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof a.initial){let n=ee(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 g=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,i=!1,g?t(u):Promise.resolve()}
1return{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=t$(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,tR.N)(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 tD=0;class tV extends Q{constructor(){super(...arguments),this.id=tD++,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=ee(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(()=>{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 tL={x:!1,y:!1};function tN(e){return[e("x"),e("y")]}var tz=n(92419);function tF(e){return e.max-e.min}function tB(e,t,n,r=.5){e.origin=r,e.originPoint=(0,I.k)(t.min,t.max,e.origin),e.scale=tF(n)/tF(t),e.translate=(0,I.k)(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 tH(e,t,n,r){tB(e.x,t.x,n.x,r?r.originX:void 0),tB(e.y,t.y,n.y,r?r.originY:void 0)}function tW(e,t,n,r=0){e.min=(r?(0,I.k)(n.min,n.max,r):n.min)+t.min,e.max=e.min+tF(t)}function tU(e,t,n,r=0){let i=r?(0,I.k)(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+tF(t)}function tG(e,t,n,r){tU(e.x,t.x,n.x,r?.x),tU(e.y,t.y,n.y,r?.y)}let tX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tK=new Set(["INPUT","SELECT","TEXTAREA"]);function tY(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var tq=n(73142);function tZ(e){return(0,tq.G)(e)&&"ownerSVGElement"in e}function tQ(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 tJ=new WeakMap,t0=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:tZ(r)&&"getBBox"in r?r.getBBox()[t]:r[n],t1=t0("inline","width","offsetWidth"),t2=t0("block","height","offsetHeight");function t5({target:e,borderBoxSize:t}){tJ.get(e)?.forEach(n=>{n(e,{get width(){return t1(e,t)},get height(){return t2(e,t)}})})}function t3(e){e.forEach(t5)}let t4=new Set;function t6(e,t){return"function"==typeof e?(t4.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};t4.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{t4.delete(e),t4.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):function(e,t){r||"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(t3));let n=tQ(e);return n.forEach(e=>{let n=tJ.get(e);n||(n=new Set,tJ.set(e,n)),n.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let n=tJ.get(e);n?.delete(t),n?.size||r?.unobserve(e)})}}(e,t)}let t8=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function t9(e){return{point:{x:e.pageX,y:e.pageY}}}function t7(e,t,n,r){return tY(e,t,e=>t8(e)&&n(e,t9(e)),r)}let ne=({current:e})=>e?e.ownerDocument.defaultView:null;var nt=n(96344);let nn=(e,t)=>Math.abs(e-t),nr=new Set(["auto","scroll"]);
1class ni{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=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ns(this.lastRawMoveEventInfo,this.transformPagePoint));let e=na(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nn(e.x,t.x)**2+nn(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=ej.uv;this.history.push({...r,timestamp:i});let{onStart:s,onMove:o}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ns(t,this.transformPagePoint),ej.Gt.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=na("pointercancel"===e.type?this.lastMoveEventInfo:ns(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!t8(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=r||window;let a=ns(t9(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=ej.uv;this.history=[{...l,timestamp:u}];let{onSessionStart:c}=t;c&&c(e,na(a,this.history));let d={passive:!0,capture:!0};this.removeListeners=eh(t7(this.contextWindow,"pointermove",this.handlePointerMove,d),t7(this.contextWindow,"pointerup",this.handlePointerUp,d),t7(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nr.has(e.overflowX)||nr.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.Gt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,ej.WG)(this.updatePoint)}}function ns(e,t){return t?{point:t(e.point)}:e}function no(e,t){return{x:e.x-t.x,y:e.y-t.y}}function na({point:e},t){return{point:e,delta:no(e,nl(t)),offset:no(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>(0,eu.f)(.1)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*(0,eu.f)(t)&&(r=e[1]);let s=(0,eu.X)(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 nl(e){return e[e.length-1]}function nu(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 nc(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}}
1function nd(e,t,n){return{min:nh(e,t),max:nh(e,n)}}function nh(e,t){return"number"==typeof e?e:e[t]||0}let nf=new WeakMap;class np{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=(0,a.ge)(),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 i=e=>{t&&this.snapToCursor(t9(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(tL[e])return null;else return tL[e]=!0,()=>{tL[e]=!1};return tL.x||tL.y?null:(tL.x=tL.y=!0,()=>{tL.x=tL.y=!1})}(n),!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),tN(e=>{let t=this.getAxisMotionValue(e).get()||0;if(tz.KN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=tF(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&ej.Gt.update(()=>i(e,t),!1,!0),eo(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(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.Gt.update(()=>s(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ni(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:ne(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.Gt.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||!nm(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?(0,I.k)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,I.k)(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&&(0,nt.X)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:nu(e.x,n,i),y:nu(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:nd(e,"left","right"),y:nd(e,"top","bottom")}}(t),r!==this.constraints&&!(0,nt.X)(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&tN(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||!(0,nt.X)(t))return!1;let r=t.current;(0,d.V)(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=U(e,n),{scroll:i}=t;return i&&(F(r.x,i.offset.x),F(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=(e=i.layout.layoutBox,{x:nc(e.x,s.x),y:nc(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=O(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(tN(o=>{if(!nm(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 eo(this.visualElement,e),n.start(tk(e,n,0,t,this.visualElement,!1))}stopAnimation(){tN(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){tN(t=>{let{drag:n}=this.getProps();if(!nm(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]-(0,I.k)(n,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!(0,nt.X)(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};tN(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=tF(e),i=tF(t);return i>r?n=e8(t.min,t.max-r,e.min):r>i&&(n=e8(e.min,e.max-i,t.min)),(0,ef.q)(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(),tN(t=>{if(!nm(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set((0,I.k)(i,s,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nf.set(this.visualElement,this);let t=this.visualElement.current,n=t7(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,s=i!==t&&(tK.has(i.tagName)||!0===i.isContentEditable);n&&r&&!s&&this.start(e)}),r=()=>{let{dragConstraints:n}=this.getProps();(0,nt.X)(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,n){let r=t6(e,ng(n)),i=t6(t,ng(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.Gt.read(r);let o=tY(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(tN(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 ng(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nm(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class ny extends Q{constructor(e){super(e),this.removeGroupControls=ec.l,this.removeListeners=ec.l,this.controls=new np(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ec.l}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 nb=e=>(t,n)=>{e&&ej.Gt.update(()=>e(t,n),!1,!0)};
1class nv extends Q{constructor(){super(...arguments),this.removePointerDownListener=ec.l}onPointerDown(e){this.session=new ni(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ne(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:nb(e),onStart:nb(t),onMove:nb(n),onEnd:(e,t)=>{delete this.session,r&&ej.Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=t7(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nx=n(95155);let nw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nk=n(38358),nS=n(75601),nE=n(60296),nC=n(98860);let nA=!1;class nP extends Y.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),nA&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nw.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}),nA=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||ej.Gt.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(),nk.k.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;nA=!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 nT(e){let[t,n]=(0,nS.xQ)(),r=(0,Y.useContext)(nE.L);return(0,nx.jsx)(nP,{...e,layoutGroup:r,switchLayoutGroup:(0,Y.useContext)(nC.N),isPresent:t,safeToRemove:n})}var nR=n(8453),nM=n(45385);let nj={value:null,addProjectionMetrics:null};var nO=n(7170),nI=n(81666);let n$=nI.S.length,n_=e=>"string"==typeof e?parseFloat(e):e,nD=e=>"number"==typeof e||tz.px.test(e);function nV(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nL=nz(0,.5,e2),nN=nz(.5,.95,ec.l);function nz(e,t,n){return r=>r<e?0:r>t?1:n(e8(e,t,r))}function nF(e,t){e.min=t.min,e.max=t.max}function nB(e,t){nF(e.x,t.x),nF(e.y,t.y)}function nH(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nW(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 nU(e,t,[n,r,i],s,o){!function(e,t=0,n=1,r=.5,i,s=e,o=e){if(tz.KN.test(t)&&(t=parseFloat(t),t=(0,I.k)(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=(0,I.k)(s.min,s.max,r);e===s&&(a-=t),e.min=nW(e.min,t,n,a,i),e.max=nW(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,s,o)}let nG=["x","scaleX","originX"],nX=["y","scaleY","originY"];function nK(e,t,n,r){nU(e.x,t,nG,n?n.x:void 0,r?r.x:void 0),nU(e.y,t,nX,n?n.y:void 0,r?r.y:void 0)}function nY(e){return 0===e.translate&&1===e.scale}function nq(e){return nY(e.x)&&nY(e.y)}function nZ(e,t){return e.min===t.min&&e.max===t.max}function nQ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nJ(e,t){return nQ(e.x,t.x)&&nQ(e.y,t.y)}function n0(e){return tF(e.x)/tF(e.y)}function n1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var n2=n(16105);class n5{constructor(){this.members=[]}add(e){(0,n2.Kq)(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||((0,n2.Ai)(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if((0,n2.Ai)(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?.isU
1pdating&&(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 n3=(e,t)=>e.depth-t.depth;class n4{constructor(){this.children=[],this.isDirty=!1}add(e){(0,n2.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,n2.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(n3),this.isDirty=!1,this.children.forEach(e)}}let n6={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},n8=["","X","Y","Z"],n9=0;function n7(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function re({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=n9++,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,nj.value&&(n6.nodes=n6.calculatedTargetDeltas=n6.calculatedProjections=0),this.nodes.forEach(rr),this.nodes.forEach(rh),this.nodes.forEach(rf),this.nodes.forEach(ri),nj.addProjectionMetrics&&nj.addProjectionMetrics(n6)},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 n4)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new nR.v),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=tZ(t)&&!(tZ(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,r=0,i=()=>this.root.updateBlockedByResize=!1;ej.Gt.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=ed.k.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&((0,ej.WG)(r),e(i-250))};return ej.Gt.setup(r,!0),()=>(0,ej.WG)(r)}(i,250),nw.hasAnimatedSinceResize&&(nw.hasAnimatedSinceResize=!1,this.nodes.forEach(rd)))})}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()||rv,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!nJ(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={...en(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||rd(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(),(0,ej.WG)(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.forEac
1h(rp),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=el(n);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ej.Gt,!(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(ra),this.nodes.forEach(ro);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rl);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ru),this.nodes.forEach(rc),this.nodes.forEach(rt),this.nodes.forEach(rn)):this.nodes.forEach(rl),this.clearAllSnapshots();let e=ed.k.now();ej.uv.delta=(0,ef.q)(0,1e3/60,e-ej.uv.timestamp),ej.uv.timestamp=e,ej.uv.isProcessing=!0,ej.PP.update.process(ej.uv),ej.PP.preRender.process(ej.uv),ej.PP.render.process(ej.uv),ej.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nk.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rs),this.sharedNodes.forEach(rg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ej.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ej.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tF(this.snapshot.measuredBox.x)||tF(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=(0,a.ge)()),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&&!nq(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||D(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)),rk((t=r).x),rk(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,a.ge)();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rE))){let{scroll:e}=this.root;e&&(F(t.x,e.offset.x),F(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,a.ge)();if(nB(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&&nB(t,e),F(t.x,i.offset.x),F(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||(0,a.ge)();nB(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&&(F(r.x,-n.scroll.offset.x),F(r.y,-n.scroll.offset.y)),D(n.latestValues)&&W(r,n.latestValues,n.layout?.layoutBox)}return D(this.latestValues)&&W(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=(0,a.ge)();nB(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];D(r.latestValues)&&(r.instance&&(_(r.latestValues)&&r.updateSnapshot(),n
1B(n=(0,a.ge)(),r.measurePageBox())),nK(t,r.latestValues,r.snapshot?.layoutBox,n))}return D(this.latestValues)&&nK(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!==ej.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),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=ej.uv.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=(0,a.ge)(),this.targetWithTransforms=(0,a.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,l,u,c;this.forceRelativeParentToResolveTarget(),o=this.target,l=this.relativeTarget,u=this.relativeParent.target,c=this.options.layoutAnchor||void 0,tW(o.x,l.x,u.x,c?.x),tW(o.y,l.y,u.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nB(this.target,this.layout.layoutBox),z(this.target,this.targetDelta)):nB(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),nj.value&&n6.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||_(this.parent.latestValues)||V(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return 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=(0,a.ge)(),this.relativeTargetOrigin=(0,a.ge)(),tG(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),nB(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===ej.uv.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;nB(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(e,t,n,r=!1){let i,s,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&&(F(e.x,-i.scroll.offset.x),F(e.y,-i.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,z(e,s)),r&&D(i.latestValues)&&W(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=(0,a.ge)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nH(this.prevProjectionDelta.x,this.projectionDelta.x),nH(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tH(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&n1(this.projectionDelta.x,this.prevProjectionDelta.x)&&n1(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nj.value&&n6.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=(0,a.xU)(),this.projectionDelta=(0,a.xU)(),this.projectionDeltaWithTransform=(0,a.xU)()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,s=i?i.latestValues:{},o={...this.latestValues},l=(0,a.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let u=(0,a.ge)(),c=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),h=!d||d.members.length<=1,f=!!(c&&!h&&!0===this.options.crossfade&&!this.path.some(rb));this.animationProgress=0;let p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=p?.(n);if(i?(l.x.translate=i.x,l.x.scale=(0,I.k)(e.x.scale,1,n),l.x.origin=e.x.origin,l.x.originPoint=e.x.originPoint,l.y.translate=i.y,l.y.scale=(0,I.k)(e.y.scale,1,n),l.y.origin=e.y.origin,l.y.originPoint=e.y.originPoint):(rm(l.x,e.x,n),rm(l.y,e.y,n)),this.setTargetDelta(l),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,g,m,y,b,v;tG(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,y=this.relativeTargetOrigin,b=u,v=n,ry(m.x,y.x,b.x,v),ry(m.y,y.y,b.y,v),r&&(d=this.relativeTarget,g=r,nZ(d.x,g.x)&&nZ(d.y,g.y))&&(this.isProjectionDirty=!1),r||(r=(0,a.ge)()),nB(r,this.relativeTarget)}c&&(this.animationValues=o,function(e,t,n,r,i,s){i?(e.opacity=(0,I.k)(0,n.opacity??1,nL(r)),e.opacityExit=(0,I.k)(t.opacity??1,0,nN(r))):s&&(e.opacity=(0,I.k)(t.opacity??1,n.opacity??1,r));for(let i=0;i<n$;i++){let s=nI.S[i],o=nV(t,s),a=nV(n,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nD(o)===nD(a)?(e[s]=Math.max((0,I.k)(n_(o),n_(a),r),0),(tz.KN.test(a)||tz.KN.test(o))&&(e[s]+="
1%")):e[s]=a)}(t.rotate||n.rotate)&&(e.rotate=(0,I.k)(t.rotate||0,n.rotate||0,r))}(o,s,this.latestValues,n,f,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(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,ej.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ej.Gt.update(()=>{nw.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,er.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){let r=(0,l.S)(e)?e:(0,er.OQ)(e);return r.start(tk("",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&&rS(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||(0,a.ge)();let t=tF(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=tF(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nB(t,n),W(t,i),tH(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new n5),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&&n7("z",e,r,this.animationValues);for(let t=0;t<n8.length;t++)n7(`rotate${n8[t]}`,e,r,this.animationValues),n7(`skew${n8[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=(0,nO.u)(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=(0,nO.u)(t?.pointerEvents)||""),this.hasProjected&&!D(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}
1)`),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,nM.H){if(void 0===i[t])continue;let{correct:n,applyTo:o,isCSSVariable:a}=nM.H[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?(0,nO.u)(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ro),this.root.sharedNodes.clear()}}}function rt(e){e.updateLayout()}function rn(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)tN(e=>{let r=s?t.measuredBox[e]:t.layoutBox[e],i=tF(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";nF(s?t.measuredBox[e]:t.layoutBox[e],n[e])}else rS(i,t.layoutBox,n)&&tN(r=>{let i=s?t.measuredBox[r]:t.layoutBox[r],o=tF(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=(0,a.xU)();tH(o,n,t.layoutBox);let l=(0,a.xU)();s?tH(l,e.applyTransform(r,!0),t.measuredBox):tH(l,n,t.layoutBox);let u=!nq(o),c=!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,l=(0,a.ge)();tG(l,t.layoutBox,i.layoutBox,o);let u=(0,a.ge)();tG(u,n,s.layoutBox,o),nJ(l,u)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=u,e.relativeTargetOrigin=l,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rr(e){nj.value&&n6.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 ri(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rs(e){e.clearSnapshot()}function ro(e){e.clearMeasurements()}function ra(e){e.isLayoutDirty=!0,e.updateLayout()}function rl(e){e.isLayoutDirty=!1}function ru(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function rc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rh(e){e.resolveTargetDelta()}function rf(e){e.calcProjection()}function rp(e){e.resetSkewAndRotation()}function rg(e){e.removeLeadSnapshot()}function rm(e,t,n){e.translate=(0,I.k)(t.translate,0,n),e.scale=(0,I.k)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ry(e,t,n,r){e.min=(0,I.k)(t.min,n.min,r),e.max=(0,I.k)(t.max,n.max,r)}function rb(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rv={duration:.45,ease:[.4,0,.1,1]},rx=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rw=rx("applewebkit/")&&!rx("chrome/")?Math.round:ec.l;function rk(e){e.min=rw(e.min),e.max=rw(e.max)}function rS(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n0(t)-n0(n)))}function rE(e){return e!==e.root&&e.scroll?.wasRoot}let rC=re({attachResizeListener:(e,t)=>tY(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rA={current:void 0},rP=re({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rA.current){let e=new rC({});e.mount(window),e.setOptions({layoutScroll:!0}),rA.current=e}return rA.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function rT(e,t){let n=tQ(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function rR(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&ej.Gt.postRender(()=>i(t,t9(t)))}class rM extends Q{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=rT(e,n);return r.forEach(e=>{let n,r=!1,s=!1,o=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(r){s=!0;return}o(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||tL.x||tL.y)return;s=!1;let o=t(e,r);"function"==typeof o&&(n=o,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",a,i)},i)}),s}(e,(e,t)=>(rR(this.node,t,"Start"),e=>rR(this.node,e,"End"))))}unmount(){}}class rj extends Q{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=eh(tY(this.node.current,"focus",()=>this.onFocus()),tY(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var rO=n(81402);let rI=(e,t)=>!!t&&(e===t||rI(e,t.parentElement)),r$=new WeakSet;function r_(e){return t=>{"Enter"===t.key&&e(t)}}function rD(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function rV(e){return t8(e)&&!(tL.x||tL.y)}let rL=new WeakSet;function rN(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.Gt.postRender(()=>i(t,t9(t)))}class rz extends Q{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]=rT(e,n),o=e=>{let r=e.currentTarget;if(!rV(e)||rL.has(e))return;r$.add(r),n.stopPropagation&&rL.add(e);let s=t(r,e),o={...i,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),r$.has(r)&&r$.delete(r),rV(e)&&"function"==typeof s&&s(e,{success:t})},l=e=>{a(e,r===window||r===document||n.useGlobalTarget||rI(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,rO.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=r_(()=>{if(r$.has(n))return;rD(n,"down");let e=r_(()=>{rD(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>rD(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),tX.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(rN(this.node,t,"Start"),(e,{success:t})=>rN(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let rF=new WeakMap,rB=new WeakMap,rH=e=>{let t=rF.get(e.target);t&&t(e)},rW=e=>{e.forEach(rH)},rU={some:0,all:1};class rG extends Q{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:rU[r]},o=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)};this.stopObserver=function(e,t,n){let r=function({root:e,...t}){let n=e||document;rB.has(n)||rB.set(n,{});let r=rB.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(rW,{root:e,...t})),r[i]}(t);return rF.set(e,n),r.observe(e),()=>{rF.delete(e),r.unobserve(e)}}(this.node.current,s,o)}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 rX=(0,Z.H)({animation:{Feature:t_},exit:{Feature:tV},inView:{Feature:rG},tap:{Feature:rz},focus:{Feature:rj},hover:{Feature:rM},pan:{Feature:nv},drag:{Feature:ny,ProjectionNode:rP,MeasureLayout:nT},layout:{ProjectionNode:rP,MeasureLayout:nT}},(e,t)=>
1t.isSVG??(0,q.Q)(e)?new M(t):new K(t,{allowProjection:e!==Y.Fragment}))},3983: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}",d="[\ud800-\udbff][\udc00-\udfff]",h="["+i+"]",f="(?:"+l+"|"+u+")",p="(?:"+h+"|"+u+")",g="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",b="[\\ufe0e\\ufe0f]?",v="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+b+y+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(b+y+v),w=RegExp([h+"?"+l+"+"+g+"(?="+[a,h,"$"].join("|")+")",p+"+"+m+"(?="+[a,h+f,"$"].join("|")+")",h+"?"+f+"+"+g,h+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",x].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},6500:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});let r=e=>e},7170:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(33182);function i(e){return(0,r.S)(e)?e.get():e}},8453:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(16105);class i{constructor(){this.subscriptions=[]}add(e){return(0,r.Kq)(this.subscriptions,e),()=>(0,r.Ai)(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}}},9150:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});let r=e=>Math.round(1e5*e)/1e5},10883:(e,t,n)=>{"use strict";function r(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function i(e,t,n,i){if("function"==typeof t){let[s,o]=r(i);t=t(void 0!==n?n:e.custom,s,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[s,o]=r(i);t=t(void 0!==n?n:e.custom,s,o)}return t}n.d(t,{a:()=>i})},11660:(e,t,n)=>{"use strict";n.d(t,{H:()=>F});var r=n(95155),i=n(12115),s=n(60296);let o=(0,i.createContext)({strict:!1});var a=n(53127);let l=(0,i.createContext)({});var u=n(28033),c=n(19461);function d(e){return Array.isArray(e)?e.join(" "):e}var h=n(33182),f=n(93709),p=n(38708);let g=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function m(e,t,n){for(let r in t)(0,h.S)(t[r])||(0,f.zK)(r,n)||(e[r]=t[r])}var y=n(31439),b=n(36795);let v=()=>({...g(),attrs:{}});var x=n(59132),w=n(36619),k=n(76066),S=n(7170),E=n(36874),C=n(10883),A=n(59686),P=n(94416);let T=e=>(t,n)=>{let r=(0,i.useContext)(l),s=(0,i.useContext)(A.t),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},s=r(e,{});for(let e in s)i[e]=(0,S.u)(s[e]);let{initial:o,animate:a}=e,l=(0,u.e)(e),c=(0,u.O)(e);t&&c&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let d=!!n&&!1===n.initial,h=(d=d||!1===o)?a:o;if(h&&"boolean"!=typeof h&&!(0,E.N)(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let r=(0,C.a)(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=d?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,s);return n?o():(0,P.M)(o)},R=T({scrapeMotionValuesFromProps:k.x,createRenderState:g}),M=T({scrapeMotionValuesFromProps:n(35043).x,createRenderState:v});var j=n(65752);let O={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"]},I=!1;function $(){return!function(){if(I)return;let e={};for(let t in O)e[t]={isEnabled:e=>O[t].some(t=>!!e[t])};(0,j.lr)(e),I=!0}(),(0,j.vK)()}let _=Symbol.for("motionComponentSymbol");var D=n(99256),V=n(98860),L=n(96344),N=n(46436);function z(e,{forwardMotionProps:t=!1,type:n}={},f,k){f&&function(e){let t=$();for(let n in e)t[n]={...t[n],...e[n]};(0,j.lr)(t)}(f);let S=n?"svg"===n:(0,w.Q)(e),E=S?M:R;function C(n,f){let C,P={...(0,i.useContext)(a.Q),...n,layoutId:function({layoutId:e}){let t=(0,i.useContext)(s.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:T}=P,R=function(e){let{initial:t,animate:n}=function(e,t){if((0,u.e)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,c.w)(t)?t:void 0,animate:(0,c.w)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(l));return(0,i.useMemo)(()=>({initial:t,animate:n}),[d(t),d(n)])}(n),M=E(n,T);if(!T&&"undefined"!=typeof window){(0,i.useContext)(o).strict;let t=function(e){let{drag:t,layout:n}=$();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
1(P);C=t.MeasureLayout,R.visualElement=function(e,t,n,r,s,u){let{visualElement:c}=(0,i.useContext)(l),d=(0,i.useContext)(o),h=(0,i.useContext)(A.t),f=(0,i.useContext)(a.Q),p=f.reducedMotion,g=f.skipAnimations,m=(0,i.useRef)(null),y=(0,i.useRef)(!1);r=r||d.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,skipAnimations:g,isSVG:u}),y.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let b=m.current,v=(0,i.useContext)(V.N);b&&!b.projection&&s&&("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:d}=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&&(0,L.X)(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(m.current,n,s,v);let x=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{b&&x.current&&b.update(n,h)});let w=n[D.n],k=(0,i.useRef)(!!w&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return(0,N.E)(()=>{y.current=!0,b&&(x.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),k.current&&b.animationState&&b.animationState.animateChanges())}),(0,i.useEffect)(()=>{b&&(!k.current&&b.animationState&&b.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),k.current=!1),b.enteringChildren=void 0)}),b}(e,M,P,k,t.ProjectionNode,S)}return(0,r.jsxs)(l.Provider,{value:R,children:[C&&R.visualElement?(0,r.jsx)(C,{visualElement:R.visualElement,...P}):null,function(e,t,n,{latestValues:r},s,o=!1,a){let l=(a??(0,w.Q)(e)?function(e,t,n,r){let s=(0,i.useMemo)(()=>{let n=v();return(0,y.B)(n,t,(0,b.n)(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};m(t,e.style,e),s.style={...t,...s.style}}return s}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return m(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,i.useMemo)(()=>{let n=g();return(0,p.O)(n,t,e),Object.assign({},n.vars,n.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-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,r,s,e),u=(0,x.J)(t,"string"==typeof e,o),c=e!==i.Fragment?{...u,...l,ref:n}:{},{children:d}=t,f=(0,i.useMemo)(()=>(0,h.S)(d)?d.get():d,[d]);return(0,i.createElement)(e,{...c,children:f})}(e,n,function(e,t,n){let r=(0,i.useRef)(n);(0,i.useInsertionEffect)(()=>{r.current=n});let s=(0,i.useRef)(null);return(0,i.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let i=r.current;if("function"==typeof i)if(n){let e=i(n);"function"==typeof e&&(s.current=e)}else s.current?(s.current(),s.current=null):i(n);else i&&(i.current=n)},[t])}(M,R.visualElement,f),M,T,t,S)]})}C.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let P=(0,i.forwardRef)(C);return P[_]=e,P}function F(e,t){if("undefined"==typeof Proxy)return z;let n=new Map,r=(n,r)=>z(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,s)=>"create"===s?r:(n.has(s)||n.set(s,z(s,void 0,e,t)),n.get(s))})}},11748:(e,t,n)=>{"use strict";var r,i,s=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{$dispatcherGuard:()=>E,$makeReadOnly:()=>A,$reset:()=>C,$structuralCheck:()=>j,c:()=>v,clearRenderCounterRegistry:()=>T,renderCounterRegistry:()=>P,useRenderCounter:()=>R}),e.exports=d(o({},"__esModule",{value:!0}),h);var f=((e,t,n)=>(n=null!=e?s(u(e)):{}
1,d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(12115)),{useRef:p,useEffect:g,isValidElement:m}=f,y=null!=(r=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(i=f.__COMPILER_RUNTIME)?void 0:i.c)?f.__COMPILER_RUNTIME.c:function(e){return f.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=b;return t[b]=!0,t},[])},x={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{x[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 w=null;function k(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null!=w)return w.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var S=[];function E(e){let t=y.ReactCurrentDispatcher.current;if(0===e){if(S.push(t),1===S.length&&(w=t),t===x)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.");k(x)}else if(1===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===S.length&&(w=null),k(e)}else if(2===e)S.push(t),k(w);else if(3===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function C(e){for(let t=0;t<e.length;t++)e[t]=b}function A(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var P=new Map;function T(){for(let e of P.values())e.forEach(e=>{e.count=0})}function R(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=P.get(e))&&(n=new Set,P.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=P.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var M=new Set;function j(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}`;M.has(l)||(M.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)){if(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(m(t)||m(n))m(t)!==m(n)?o(`type ${m(t)?"React element":"object"}`,`type ${m(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)}},12205:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});let r=e=>t=>t.test(e)},13456: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)}},13862:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r,i=n(71450),s=n(33421),o=1,a={};function l(e){return e in a&&(delete a[e],!0)}var u={setImmediate:function(e){var t=o++;return a[t]=!0,r||(r=Promise.resolve()),r.then(function(){return l(t)&&e()}),t},clearImmediate:function(e){l(e)}},c=u.setImmediate,d=u.clearImmediate,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)||c).apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(e)))},clearImmediate:function(e){var t=h.delegate;return((null==t?void 0:t.clearImmediate)||d)(e)},delegate:void 0},f=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.__extends)(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.id)!==n&&(h.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(s.R),p=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(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(44289).q))(f)},15075:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});let r=e=>/^0[^.\s]+$/u.test(e)},15374:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>r,D9:()=>d,ON:()=>o,OZ:()=>f,Ql:()=>s,V0:()=>i,Zp:()=>u,wL:()=>h,wm:()=>a,wv:()=>c,yW:()=>p,z1:()=>l});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"}},d={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"}},h={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:d,green:h,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}},16105:(e,t,n)=>{"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{Ai:()=>i,Kq:()=>r})},19461:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{w:()=>r})},20031:(e,t,n)=>{"use strict";n.d(t,{E:()=>tT,ID:()=>td,NP:()=>tp,DU:()=>tC,AH:()=>tw,i7:()=>tP,I4:()=>tS,DP:()=>tf});var r,i,s,o=n(12115),a="-ms-",l="-moz-",u="-webkit-",c="comm",d="rule",h="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 x(e,t){return 0|e.charCodeAt(t)}function w(e,t,n){return e.slice(t,n)}function k(e){return e.length}function S(e,t){return t.push(e),e}function E(e,t){return e.filter(function(e){return!y(e,t)})}var C=1,A=1,P=0,T=0,R=0,M="";function j(e,t,n,r,i,s,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:C,column:A,length:o,return:"",siblings:a}}function O(e,t){return m(j("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function I(e){for(;e.root;)e=O(e.root,{children:[e]});S(e,e.siblings)}function $(){return R=T<P?x(M,T++):0,A++,10===R&&(A=1,C++),R}function _(){return x(M,T)}function D(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 V(e){var t,n;return(t=T-1,n=function e(t){for(;$();)switch(R){case t:return T;case 34:case 39:34!==t&&39!==t&&e(R);break;case 40:41===t&&e(t);break;case 92:$()}return T}(91===e?e+2:40===e?e+1:e),w(M,t,n)).trim()}function L(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function N(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case h:return e.return=e.return||e.value;case c:return"";case f:return e.return=e.value+"{"+L(e.children,r)+"}";case d:if(!k(e.value=e.props.join(",")))return""}return k(n=L(e.children,r))?e.return=e.value+"{"+n+"}":""}function z(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:e.return=function e(t,n,r){var i;switch(i=n,45^x(t,0)?(((i<<2^x(t,0))<<2^x(t,1))<<2^x(t,2))<<2^x(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(x(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"+w(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(k(t)-1-n>6)switch(x(t,n+1)){case 109:if(45!==x(t,n+4))break;case 102:return b(t,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+l+(108==x(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===x(t,n+6))return b(t,":",":"+u)+t;break;case 6444:switch(x(t,45===x(t,14)?18:11)){case 120:return b(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===x(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 L([O(e,{value:b(e.value,"@","@"+u)})],r);case d: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":I(O(e,{props:[b(t,/:(read-\w+)/,":"+l+"$1")]})),I(O(e,{props:[t]})),m(e,{props:E(n,r)});break;case"::placeholder":I(O(e,{props:[b(t,/:(plac\w+)/,":"+u+"input-$1")]})),I(O(e,{props:[b(t,/:(plac\w+)/,":"+l+"$1")]})),I(O(e,{props:[b(t,/:(plac\w+)/,a+"input-$1")]})),I(O(e,{props:[t]})),m(e,{props:E(n,r)})}return""},i.map(s).join("")}}}function F(e,t,n,r,i,s,o,a,l,u,c,h){for(var f=i-1,g=0===i?s:[""],m=g.length,y=0,v=0,x=0;y<r;++y)for(var k=0,S=w(e,f+1,f=p(v=o[y])),E=e;k<m;++k)(E=(v>0?g[k]+" "+S:b(S,/&\f/g,g[k])).trim())&&(l[x++]=E);return j(e,t,n,0===i?d:a,l,u,c,h)}function B(e,t,n,r,i){return j(e,t,n,h,w(e,0,r),w(e,r+1,-1),r,i)}var H=n(87358);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",X="6.4.3",K="/*!sc*/\n",Y="undefined"!=typeof window&&"undefined"!=typeof document;function q(e){if(void 0!==H&&void 0!==H.env){let t=H.env[e];if(void 0!==t&&""!==t)return"false"!==t}}let Z=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!=(i=null!=(r=q("REACT_APP_SC_DISABLE_SPEEDY"))?r:q("SC_DISABLE_SPEEDY"))?i:void 0!==H&&void 0!==H.env&&!1),Q="sc-keyframes-",J={};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,ed=/(^-|-$)/g;function eh(e){return e.replace(ec,"-").replace(ed,"")}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 ex=Symbol.for("react.memo"),ew=Symbol.for("react.forward_ref"),ek={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},eS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eC={[ew]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ex]:eE};function eA(e){return("type"in e&&e.type.$$typeof)===ex?eE:"$$typeof"in e?eC[e.$$typeof]:ek}let eP=Object.defineProperty,eT=Object.getOwnPropertyNames,eR=Object.getOwnPropertySymbols,eM=Object.getOwnPropertyDescriptor,ej=Object.getPrototypeOf,eO=Object.prototype;function eI(e){return"function"==typeof e}let e$=Symbol.for("react.forward_ref");function e_(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===e$&&"styledComponentId"in e}function eD(e,t){return e&&t?e+" "+t:e||t||""}function eV(e,t){return e.join(t||"")}function eL(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eN(e,t){Object.defineProperty(e,"toString",{value:t})}let ez=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)+K;return t}},eF=`style[${W}][${G}="${X}"]`,eB=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,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)?n:"").split(K),i=[];for(let t=0,n=r.length;t<n;t++){let n=r[t].trim();if(!n)continue;let s=n.match(eB);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)}},eX=e=>{let t=eW(e.options.target).querySelectorAll(eF);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))}},eK=!1;function eY(){if(!1!==eK)return eK;if("undefined"!=typeof document){let e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return eK=e.nonce||e.getAttribute("content")||void 0;let t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return eK=t.getAttribute("content")||void 0}return eK=n.nc}let eq=(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,X);let a=t||eY();return a&&i.setAttribute("nonce",a),r.insertBefore(i,o),i},eZ=class{constructor(e,t){this.element=eq(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)?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,eQ=class{constructor(e,t){this.element=eq(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:""}},eJ=Y,e0={isServer:!Y,useCSSOMInjection:!Z};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&&Y&&eJ&&(eJ=!1,eX(this)),eN(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+'"}'+K}return r})(this))}rehydrate(){!this.server&&Y&&eX(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&&Y&&e.target!==this.options.target&&eW(this.options.target)!==eW(e.target)&&eX(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=new ez((({useCSSOMInjection:e,target:t,nonce:n})=>e?new eZ(t,n):new eQ(t,n))(this.options)))}hasNameForId(e,t){var n,r;return null!=(r=null==(n=this.names.get(e))?void 0:n.has(t))&&r}registerName(e,t){ei(e),e.startsWith(Q)&&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 eI(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 e_(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)||(eL(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)||eI(i)?n.push(e3(r)+":",i,";"):eL(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(X);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+=eV(te(r,e,t,n)))}else i+=eV(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=eD(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,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===d&&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(z),u.push(N);let h=[],f=(i=(r=u.concat((n=e=>h.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,d;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=(d=function e(t,n,r,i,s,o,a,l,u){for(var d,h,f,m,y=0,E=0,P=a,O=0,I=0,L=0,N=1,z=1,H=1,W=0,U="",G=s,X=o,K=i,Y=U;z;)switch(L=W,W=$()){case 40:if(108!=L&&58==x(Y,P-1)){-1!=v(Y+=b(V(W),"&","&\f"),"&\f",p(y?l[y-1]:0))&&(H=-1);break}case 34:case 39:case 91:Y+=V(W);break;case 9:case 10:case 13:case 32:Y+=function(e){for(;R=_();)if(R<33)$();else break;return D(e)>2||D(R)>3?"":" "}(L);break;case 92:Y+=function(e,t){for(var n;--t&&$()&&!(R<48)&&!(R>102)&&(!(R>57)||!(R<65))&&(!(R>70)||!(R<97)););return n=T+(t<6&&32==_()&&32==$()),w(M,e,n)}(T-1,7);continue;case 47:switch(_()){case 42:case 47:S((d=function(e,t){for(;$();)if(e+R===57)break;else if(e+R===84&&47===_())break;return"/*"+w(M,t,T-1)+"*"+g(47===e?e:$())}($(),T),h=n,f=r,m=u,j(d,h,f,c,g(R),w(d,2,-2),0,m)),u),(5==D(L||1)||5==D(_()||1))&&k(Y)&&" "!==w(Y,-1,void 0)&&(Y+=" ");break;default:Y+="/"}break;case 123*N:l[y++]=k(Y)*H;case 125*N:case 59:case 0:switch(W){case 0:case 125:z=0;case 59+E:-1==H&&(Y=b(Y,/\f/g,"")),I>0&&(k(Y)-P||0===N&&47===L)&&S(I>32?B(Y+";",i,r,P-1,u):B(b(Y," ","")+";",i,r,P-2,u),u);break;case 59:Y+=";";default:if(S(K=F(Y,n,r,y,E,s,l,U,G=[],X=[],P,o),o),123===W)if(0===E)e(Y,n,K,K,G,o,P,l,X);else{switch(O){case 99:if(110===x(Y,3))break;case 108:if(97===x(Y,2))break;default:E=0;case 100:case 109:case 115:}E?e(t,K,K,i&&S(F(t,K,K,0,0,s,l,U,s,G=[],P,X),X),s,X,P,l,i?G:X):e(Y,K,K,K,[""],X,0,l,X)}}y=E=I=0,N=H=1,U=Y="",P=a;break;case 58:P=1+k(Y),I=L;default:if(N<1){if(123==W)--N;else if(125==W&&0==N++&&125==(R=T>0?x(M,--T):0,A--,10===R&&(A=1,C--),R))continue}switch(Y+=g(W),W*N){case 38:H=E>0?1:(Y+="\f",-1);break;case 44:l[y++]=(k(Y)-1)*H,H=1;break;case 64:45===_()&&(Y+=V($())),O=_(),E=P=k(U=Y+=function(e){for(;!D(_());)$();return w(M,e,T)}(T)),W++;break;case 45:45===L&&2==k(Y)&&(N=0)}}return o}("",null,null,null,[""],(u=l=r||n?r+" "+n+" { "+m+" }":m,C=A=1,P=k(M=u),T=0,l=[]),0,[0],l),M="",d);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)),h=[],L(y,f),h},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 td(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)?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)?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 th=o.createContext(void 0);function tf(){let e=o.useContext(th);if(!e)throw ee(18);return e}function tp(e){let t=o.useContext(th),n=o.useMemo(()=>(function(e,t){if(!e)throw ee(14);if(eI(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(th.Provider,{value:n},e.children):null}th.Consumer;let tg=Object.prototype.hasOwnProperty,tm={};function ty(e,t,n){let r=e_(e),i=!ev(e),{attrs:s=ea,componentId:a=function(e,t){let n="string"!=typeof e?"sc":eh(e);tm[n]=(tm[n]||0)+1;let r=n+"-"+eb(X+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?eh(t.displayName)+"-"+t.componentId:t.componentId||a,c=r&&e.attrs?e.attrs.concat(s).filter(
1Boolean):s,{shouldForwardProp:d}=t;if(r&&e.shouldForwardProp){let n=e.shouldForwardProp;if(t.shouldForwardProp){let e=t.shouldForwardProp;d=(t,r)=>n(t,r)&&e(t,r)}else d=n}let h=new tn(n,u,r?e.componentStyle:void 0);function f(e,t){return function(e,t,n){let r,i,{attrs:s,componentStyle:a,defaultProps:l,foldedComponentIds:u,styledComponentId:c,target:d}=e,h=o.useContext(th),f=tc(),p=e.shouldForwardProp||f.shouldForwardProp,g=eu(t,h,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;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=eI(s)?s(i?Object.assign({},r):r):s;for(let e in o)"className"===e?r.className=eD(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=eD(r.className,t.className)),r}(s,t,g),m=r,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||d,x=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),w=eD(u,c);return i&&(w+=" "+i),r.className&&(w+=" "+r.className),x[ev(v)&&v.includes("-")?"class":"className"]=w,n&&(x.ref=n),(0,o.createElement)(v,x)}(p,e,t)}f.displayName=l;let p=o.forwardRef(f);return p.attrs=c,p.componentStyle=h,p.displayName=l,p.shouldForwardProp=d,p.foldedComponentIds=r?eD(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&&!eL(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(eL(n))for(let r in n)t[r]=e(t[r],n[r]);return t}(e,n,!0);return e}({},e.defaultProps,t):t}}),eN(p,()=>`.${p.styledComponentId}`),i&&function e(t,n,r){if("string"!=typeof n){let i=ej(n);i&&i!==eO&&e(t,i,r);let s=eT(n).concat(eR(n)),o=eA(t),a=eA(n);for(let e=0;e<s.length;++e){let i=s[e];if(!(i in eS||r&&r[i]||a&&i in a||o&&i in o)){let e=eM(n,i);try{eP(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 tx=e=>(e2.add(e),e);function tw(e,...t){return eI(e)||eL(e)?tx(te(tv(ea,[e,...t]))):0===t.length&&1===e.length&&"string"==typeof e[0]?te(e):tx(te(tv(e,t)))}let tk=e=>(function e(t,n,r=el){if(!n)throw ee(1,n);let i=(e,...i)=>t(n,r,tw(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),tS=tk;tb.forEach(e=>{tS[e]=tk(e)});class tE{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(eI(n)&&!e_(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=eV(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 tC(e,...t){let n=tw(e,...t),r=`sc-global-${eb(JSON.stringify(n))}`,i=new tE(n,r),s=e=>{let t,n=tc(),s=o.useContext(th);{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,J,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=Q+e,this.rules=t,ei(this.id),eN(this,()=>{throw ee(12,String(this.name))})}getName(e=tl){return e.hash?this.name+eg(e.hash>>>0):this.name}}function tP(e,...t){let n=eV(tw(e,...t));return new tA(eb(n),n)}s=e4;class tT{constructor({nonce:e}={}){this._emitSheetCSS=()=>{let e=this.instance.toString();if(!e)return"";let t=this.instance.options.nonce||eY();return`<style ${eV([t&&`nonce="${t}"`,`${W}="true"`,`${G}="${X}"`].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]:X,dangerouslySetInnerHTML:{__html:e}},n=this.instance.options.nonce||eY();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(td,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw ee(3)}}},20091:(e,t,n)=>{"use strict";n.d(t,{T:()=>o,n:()=>a});var r=n(37822),i=n(92419),s=n(12205);let o=[r.ai,i.px,i.KN,i.uj,i.vw,i.vh,{test:e=>"auto"===e,parse:e=>e}],a=e=>o.find((0,s.w)(e))},21391:(e,t,n)=>{"use strict";n.d(t,{j4:()=>i,pG:()=>o,rm:()=>l});let r=e=>t=>"string"==typeof t&&t.startsWith(e),i=r("--"),s=r("var(--"),o=e=>!!s(e)&&a.test(e.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}},22039:(e,t,n)=>{"use strict";n.d(t,{OQ:()=>u});var r=n(8453),i=n(45242),s=n(27424),o=n(73934);let a={current:void 0};class l{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=s.k.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=s.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(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 r.v);let n=this.events[e].add(t);return"change"===e?()=>{n(),o.Gt.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)}setWithVelocity(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 a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=s.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.f)(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 u(e,t){return new l(e,t)}},23863:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});let r=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},23919:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,q:()=>o});var r=n(24531);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(e,t)=>n=>!!("string"==typeof n&&i.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),o=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[s,o,a,l]=i.match(r.S);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}}
1,24402:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},24531:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},24888:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,f:()=>h});var r=n(55389);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=n(24531),o=n(9150);let a="number",l="color",u=/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 c(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],o=0,c=t.replace(u,e=>(r.y.test(e)?(i.color.push(o),s.push(l),n.push(r.y.parse(e))):e.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(e)):(i.number.push(o),s.push(a),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:c,indexes:i,types:s}}function d({split:e,types:t}){let n=e.length;return i=>{let s="";for(let u=0;u<n;u++)if(s+=e[u],void 0!==i[u]){let e=t[u];e===a?s+=(0,o.a)(i[u]):e===l?s+=r.y.transform(i[u]):s+=i[u]}return s}}let h={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(s.S)?.length||0)+(e.match(i)?.length||0)>0},parse:function(e){return c(e).values},createTransformer:function(e){return d(c(e))},getAnimatableNone:function(e){let t=c(e);return d(t)(t.values.map((e,n)=>{var i;let s;return i=t.split[n],"number"==typeof e?i?.trim().endsWith("/")?e:0:"number"==typeof(s=e)?0:r.y.test(s)?r.y.getAnimatableNone(s):s}))}}},25411:e=>{e.exports=Array.isArray},26497:(e,t,n)=>{"use strict";n.d(t,{N:()=>v});var r=n(95155),i=n(12115),s=n(60296),o=n(94416),a=n(46436),l=n(59686),u=n(81402),c=n(53127);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class h extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,u.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=(0,u.s)(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({children:e,isPresent:t,anchorX:n,anchorY:s,root:o,pop:a}){let l=(0,i.useId)(),u=(0,i.useRef)(null),f=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=(0,i.useContext)(c.Q),g=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(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():d(e[t],null)}}}}(...e),e)}(u,e.props?.ref??e?.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:c,right:d,bottom:h,direction:g}=f.current;if(t||!1===a||!u.current||!e||!r)return;let m="rtl"===g,y="left"===n?m?`right: ${d}`:`left: ${c}`:m?`left: ${c}`:`right: ${d}`,b="bottom"===s?`bottom: ${h}`:`top: ${i}`;u.current.dataset.motionPopId=l;let v=document.createElement("style");p&&(v.nonce=p);let x=o??document.head;return x.appendChild(v),v.sheet&&v.sheet.insertRule(` 2 [data-motion-pop-id="${l}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${r}px !important; 6 ${y}px !important; 7 ${b}px !important; 8 } 9 `),()=>{u.current?.removeAttribute("data-motion-pop-id"),x.contains(v)&&x.removeChild(v)}},[t]),(0,r.jsx)(h,{isPresent:t,childRef:u,sizeRef:f,pop:a,children:!1===a?e:i.cloneElement(e,{ref:g})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:u,presenceAffectsLayout:c,mode:d,anchorX:h,anchorY:p,root:m})=>{let y=(0,o.M)(g),b=(0,i.useId)(),v=(0,i.useRef)(n),x=(0,i.useRef)(s);(0,a.E)(()=>{v.current=n,x.current=s});let w=!0,k=(0,i.useMemo)(()=>(w=!1,{id:b,initial:t,isPresent:n,custom:u,onExitComplete:e=>
9{for(let t of(y.set(e,!0),y.values()))if(!t)return;s&&s()},register:e=>(y.set(e,!1),()=>{y.delete(e),v.current||y.size||x.current?.()})}),[n,y,s]);return c&&w&&(k={...k}),(0,i.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[n]),i.useEffect(()=>{n||y.size||!s||s()},[n]),e=(0,r.jsx)(f,{pop:"popLayout"===d,isPresent:n,anchorX:h,anchorY:p,root:m,children:e}),(0,r.jsx)(l.t.Provider,{value:k,children:e})};function g(){return new Map}var m=n(75601);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=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:h="left",anchorY:f="top",root:g})=>{let[v,x]=(0,m.xQ)(d),w=(0,i.useMemo)(()=>b(e),[e]),k=d&&!v?[]:w.map(y),S=(0,i.useRef)(!0),E=(0,i.useRef)(w),C=(0,o.M)(()=>new Map),A=(0,i.useRef)(new Set),[P,T]=(0,i.useState)(w),[R,M]=(0,i.useState)(w);(0,a.E)(()=>{S.current=!1,E.current=w;for(let e=0;e<R.length;e++){let t=y(R[e]);k.includes(t)?(C.delete(t),A.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[R,k.length,k.join("-")]);let j=[];if(w!==P){let e=[...w];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"===c&&j.length&&(e=j),M(b(e)),T(w),null}let{forceRender:O}=(0,i.useContext)(s.L);return(0,r.jsx)(r.Fragment,{children:R.map(e=>{let i=y(e),s=(!d||!!v)&&(w===R||k.includes(i));return(0,r.jsx)(p,{isPresent:s,initial:(!S.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,root:g,onExitComplete:s?void 0:()=>{if(A.current.has(i)||!C.has(i))return;A.current.add(i),C.set(i,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(O?.(),M(E.current),d&&x?.(),l&&l())},anchorX:h,anchorY:f,children:e},i)})})}},26526:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},26719:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});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)=>{var n,i,l,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:h,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,x=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:w,scrollY:k}=window,{height:S,width:E,top:C,right:A,bottom:P,left:T}=e.getBoundingClientRect(),{top:R,right:M,bottom:j,left:O}=(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),I="start"===d||"nearest"===d?C-R:"end"===d?P+j:C+S/2-R+j,$="center"===h?T+E/2-O+M:"end"===h?A+M:T-O,_=[];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&&C>=0&&T>=0&&P<=x&&A<=v&&(t===m&&!s(t)||C>=i&&P<=l&&T>=u&&A<=a))break;let f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),g=parseInt(f.borderTopWidth,10),b=parseInt(f.borderRightWidth,10),R=parseInt(f.borderBottomWidth,10),M=0,j=0,O="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-b:0,D="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-R:0,V="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)M="start"===d?I:"end"===d?I-x:"nearest"===d?o(k,k+x,x,g,R,k+I,k+I+S,S):I-x/2,j="start"===h?$:"center"===h?$-v/2:"end"===h?$-v:o(w,w+v,v,p,b,w+$,w+$+E,E),M=Math.max(0,M+k),j=Math.max(0,j+w);else{M="start"===d?I-i-g:"end"===d?I-l+R+D:"nearest"===d?o(i,l,n,g,R+D,I,I+S,S):I-(i+n/2)+D/2,j="start"===h?$-u-p:"center"===h?$-(u+r/2)+O/2:"end"===h?$-a+b+O:o(u,a,r,p,b+O,$,$+E,E);let{scrollLeft:e,scrollTop:s}=t;M=0===L?0:Math.max(0,Math.min(s+M/L,t.scrollHeight-n/L+D)),j=0===V?0:Math.max(0,Math.min(e+j/V,t.scrollWidth-r/V+O)),I+=s-M,$+=e-j}_.push({el:t,top:M,left:j})}return _};function u(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)||
90,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,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=s-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}},27290:(e,t,n)=>{"use strict";n.d(t,{X:()=>i,f:()=>r});let r=e=>1e3*e,i=e=>e/1e3},27424:(e,t,n)=>{"use strict";let r;n.d(t,{k:()=>a});var i=n(40042),s=n(73934);function o(){r=void 0}let a={now:()=>(void 0===r&&a.set(s.uv.isProcessing||i.W.useManualTiming?s.uv.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(o)}}},28033:(e,t,n)=>{"use strict";n.d(t,{O:()=>a,e:()=>o});var r=n(36874),i=n(19461),s=n(52036);function o(e){return(0,r.N)(e.animate)||s._.some(t=>(0,i.w)(e[t]))}function a(e){return!!(o(e)||e.variants)}},28423:(e,t,n)=>{"use strict";function r(e){let t="undefined"!=typeof window&&"crypto"in window?window.crypto:globalThis.crypto;if(!t||!t.getRandomValues)throw Error("WebCrypto not available in this environment");return t.getRandomValues(e)}n.d(t,{A:()=>r})},28568:(e,t,n)=>{e.exports=n(33264)("toUpperCase")},31439:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(38708);let i={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"},o=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function a(e,{attrX:t,attrY:n,attrScale:a,pathLength:l,pathSpacing:u=1,pathOffset:c=0,...d},h,f,p){if((0,r.O)(e,d,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:g,style:m}=e;for(let e of(g.transform&&(m.transform=g.transform,delete g.transform),(m.transform||g.transformOrigin)&&(m.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),m.transform&&(m.transformBox=p?.transformBox??"fill-box",delete g.transformBox),o))void 0!==g[e]&&(m[e]=g[e],delete g[e]);void 0!==t&&(g.x=t),void 0!==n&&(g.y=n),void 0!==a&&(g.scale=a),void 0!==l&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;let a=o?i:s;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}(g,l,u,c,!1)}},31739:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r=n(48895),i=n(37822),s=n(9150),o=n(23919);let a={...i.ai,transform:e=>Math.round((0,r.q)(0,255,e))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+a.transform(e)+", "+a.transform(t)+", "+a.transform(n)+", "+(0,s.a)(i.X4.transform(r))+")"}},32246:(e,t,n)=>{"use strict";function r(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}n.d(t,{I:()=>r})},32438:(e,t,n)=>{var r=n(50030);e.exports=function(e){return null==e?"":r(e)}},33182:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});let r=e=>!!(e&&e.getVelocity)},33264:(e,t,n)=>{var r=n(95918),i=n(57716),s=n(71624),o=n(32438);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}}},33754:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});let r=(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)})`}},33855:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});let r=e=>null!==e;function i(e,{repeat:t,repeatType:n="loop"},s,o=1){let a=e.filter(r),l=o<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return l&&void 0!==s?s:a[l]}},34324:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});let r=e=>Array.isArray(e)&&"number"==typeof e[0]},35043:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(33182),i=n(40479),s=n(76066);function o(e,t,n){let o=(0,s.x)(e,t,n);
9for(let n in e)((0,r.S)(e[n])||(0,r.S)(t[n]))&&(o[-1!==i.U.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return o}},35443:(e,t,n)=>{var r=n(73423),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}},36619:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});let r=["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 i(e){if("string"!=typeof e||e.includes("-"));else if(r.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},36702:(e,t,n)=>{var r=n(80942),i=n(26526);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},36795:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});let r=e=>"string"==typeof e&&"svg"===e.toLowerCase()},36874:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{N:()=>r})},37121:(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;l+=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=v(s,o,{checkLines:!1,deadline:i}),c=v(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,d;for(;-1!==(i=t.indexOf(r,i+1));){let r=s(e.slice(n),t.slice(i)),h=o(e.slice(0,n),t.slice(0,i));a.length<h+r&&(a=t.slice(i-h,i)+t.slice(i,i+r),l=e.slice(0,n-h),u=e.slice(n+r),c=t.slice(0,i-h),d=t.slice(i+r))}return 2*a.length>=e.length?[l||"",u||"",c||"",d||"",a||""]:null}n.d(t,{$i:()=>G,Cm:()=>g,Ug:()=>m,Vx:()=>S,iU:()=>b,iz:()=>es,jW:()=>et,lw:()=>y,sw:()=>j,w1:()=>ea});var c=Object.defineProperty,d=Object.getOwnPropertySymbols,h=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;let g=-1,m=1,y=0;function b(e,t,n){if(null===e||null===t)throw Error("Null input. (diff)");let r=v(e,t,function(e){let t;var n,r={checkLines:!0,deadline:(n=e.timeout||1,t=1,"u">typeof n&&(t=n<=0?Number.MAX_VALUE:n),Date.now()+1e3*t)},i=e;for(var s in i||(i={}))h.call(i,s)&&p(r,s,i[s]);if(d)for(var s of d(i))f.call(i,s)&&p(r,s,i[s]);return r}(n||{}));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===y&&k(e,t,1),a(i)&&n===y&&k(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(r),r}function v(e,t,n){let r=e,i=t;if(r===i)return r?[[y,r]]:[];let a=s(r,i),c=r.substring(0,a);a=o(r=r.substring(a),i=i.substring(a));let d=r.substring(r.length-a),h=function(e,t,n){let r;if(!e)return[[m,t]];if(!t)return[[g,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=[[m,i.substring(0,o)],[y,s],[m,i.substring(o+s.length)]],e.length>t.length&&(r[0][0]=g,r[2][0]=g),r;if(1===s.length)return[[g,e],[m,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 d=u(l,c,Math.ceil(l.length/4)),h=u(l,c,Math.ceil(l.length/2));if(d&&h)r=d[4].length>h[4].length?d:h;else{if(!d&&!h)return null;h?d||(r=h):r=d}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=v(e,r,n),l=v(t,i,n);return o.concat([[y,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(`
10`,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=v(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=S(a)).push([y,""]);let l=0,u=0,c=0,d="",h="";for(;l<a.length;){switch(a[l][0]){case m:c++,h+=a[l][1];break;case g:u++,d+=a[l][1];break;case y:if(u>=1&&c>=1){a.splice(l-u-c,u+c),l=l-u-c;let e=v(d,h,{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,d="",h="";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,d=c%2!=0,h=0,f=0,p=0,y=0;for(let g=0;g<s&&!(Date.now()>n);g++){for(let p=-g+h;p<=g-f;p+=2){let m,y=s+p,b=(m=p===-g||p!==g&&a[y-1]<a[y+1]?a[y+1]:a[y-1]+1)-p;for(;m<r&&b<i&&e.charAt(m)===t.charAt(b);)m++,b++;if(a[y]=m,m>r)f+=2;else if(b>i)h+=2;else if(d){let i=s+c-p;if(i>=0&&i<o&&-1!==u[i]&&m>=r-u[i])return l(e,t,m,b,n)}}for(let h=-g+p;h<=g-y;h+=2){let f,m=s+h,b=(f=h===-g||h!==g&&u[m-1]<u[m+1]?u[m+1]:u[m-1]+1)-h;for(;f<r&&b<i&&e.charAt(r-f-1)===t.charAt(i-b-1);)f++,b++;if(u[m]=f,f>r)y+=2;else if(b>i)p+=2;else if(!d){let i=s+c-h;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[[g,e],[m,t]]}(e,t,n.deadline)}(r=r.substring(0,r.length-a),i=i.substring(0,i.length-a),n);return c&&h.unshift([y,c]),d&&h.push([y,d]),h=M(h)}function x(e,t,n){return 1===n?e+t:t+e}function w(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function 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===m){null===o&&(o=l);continue}else if(r===g){null===a&&(a=l);continue}else if(r===y){if(null===o&&null===a){let[r,i]=w(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]=w(e[o][1],s),[l]=w(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]=w(e[t][1],n);e[t][1]=u,null===o?(e.splice(l,0,[m,c]),null!==a&&a>=l&&a++):e[o][1]=x(e[o][1],c,s),null===a?e.splice(l,0,[g,c]):e[a][1]=x(e[a][1],c,s)}function S(e){let t=e.map(e=>r(e)),n=!1,s=[],o=0,a=null,l=0,u=0,c=0,d=0,h=0;for(;l<t.length;)t[l][0]===y?(s[o++]=l,u=d,c=h,d=0,h=0,a=t[l][1]):(t[l][0]===m?d+=t[l][1].length:h+=t[l][1].length,a&&a.length<=Math.max(u,c)&&a.length<=Math.max(d,h)&&(t.splice(s[o-1],0,[g,a]),t[s[o-1]+1][0]=m,o--,l=--o>0?s[o-1]:-1,u=0,c=0,d=0,h=0,a=null,n=!0)),l++;for(n&&(t=M(t)),t=R(t),l=1;l<t.length;){if(t[l-1][0]===g&&t[l][0]===m){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,[y,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,[y,e.substring(0,s)]),t[l-1][0]=m,t[l-1][1]=n.substring(0,n.length-s),t[l+1][0]=g,t[l+1][1]=e.substring(s),l++),l++}l++}return t}let E=/[^a-zA-Z0-9]/,C=/\s/,A=/[\r\n]/,P=/\n\r?\n$/,T=/^\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(C),a=s&&r.match(C),l=o&&n.match(A),u=a&&r.match(A),c=l&&e.match(P),d=u&&t.match(T);return c||d?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]===y&&t[i+1][0]===y){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,d=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>=d&&(d=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 M(e){let t=e.map(e=>r(e));t.push([y,""]);let n=0,i=0,a=0,l="",u="",c;for(;n<t.length;)switch(t[n][0]){case m:a++,u+=t[n][1],n++;break;case g:i++,l+=t[n][1],n++;break;case y:i+a>1?(0!==i&&0!==a&&(0!==(c=s(u,l))&&(n-i-a>0&&t[n-i-a-1][0]===y?t[n-i-a-1][1]+=u.substring(0,c):(t.splice(0,0,[y,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,[g,l]),n++),u.length&&(t.splice(n,0,[m,u]),n++),n++):0!==n&&t[n-1][0]===y?(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 d=!1;for(n=1;n<t.length-1;)t[n-1][0]===y&&t[n+1][0]===y&&(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),d=!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),d=!0)),n++;return d&&(t=M(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,d=!1,h=!1;for(;l<n.length;)n[l][0]===y?(n[l][1].length<t&&(d||h)?(s[o++]=l,u=d,c=h,a=n[l][1]):(o=0,a=null),d=!1,h=!1):(n[l][0]===g?h=!0:d=!0,a&&(u&&c&&d&&h||a.length<t/2&&3===function(...e){return e.reduce((e,t)=>
10e+ +!!t,0)}(u,c,d,h))&&(n.splice(s[o-1],0,[g,a]),n[s[o-1]+1][0]=m,o--,a=null,u&&c?(d=!0,h=!0,o=0):(l=--o>0?s[o-1]:-1,d=!1,h=!1),i=!0)),l++;return i&&(n=M(n)),n}var O=Object.defineProperty,I=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,D=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))$.call(t,n)&&D(e,n,t[n]);if(I)for(var n of I(t))_.call(t,n)&&D(e,n,t[n]);return e};let L={threshold:.5,distance:1e3};function N(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=V(V({},L),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,d,h=t.length+e.length,f=[];for(let r=0;r<t.length;r++){for(c=0,d=h;c<d;)o(r,n+d)<=a?c=d:h=d,d=Math.floor((h-c)/2+c);h=d;let i=Math.max(1,n-d+1),p=Math.min(n+d,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]!==m&&(t[n]=e[n][1]);return t.join("")}function F(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==g&&(t[n]=e[n][1]);return t.join("")}function B(e,t){let n=0,r=0,i=0,s=0,o;for(o=0;o<e.length&&(e[o][0]!==m&&(n+=e[o][1].length),e[o][0]!==g&&(r+=e[o][1].length),!(n>t));o++)i=n,s=r;return e.length!==o&&e[o][0]===g?s:s+(t-i)}function H(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+=W(r)}return t}function W(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function U(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function G(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+=W(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]!==y)i.unshift([y,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]!==y)i.push([y,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=U(i-o.length,s-o.length),l=!0;if(""!==o){let e=H(o);a.length1=o.length,a.utf8Length1=e,a.length2=o.length,a.utf8Length2=e,a.diffs.push([y,o])}for(;0!==r.diffs.length&&a.length1<32-t;){let e=r.diffs[0][0],n=r.diffs[0][1],o=H(n);if(e===m){a.length2+=n.length,a.utf8Length2+=o,s+=n.length;let e=r.diffs.shift();e&&a.diffs.push(e),l=!1}else e===g&&1===a.diffs.length&&a.diffs[0][0]===y&&n.length>64?(a.length1+=n.length,a.utf8Length1+=o,i+=n.length,l=!1,a.diffs.push([e,n]),r.diffs.shift()):(o=H(n=n.substring(0,32-a.length1-t)),a.length1+=n.length,a.utf8Length1+=o,i+=n.length,e===y?(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=F(a.diffs)).substring(o.length-t);let u=z(r.diffs).substring(0,t),c=H(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]===y?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push([y,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=N(i,n.substring(0,32),t))&&(-1===(o=N(i,n.substring(n.length-32),t+n.length-32))||r>=o)&&(r=-1):r=N(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)+F(s[e].diffs)+i.substring(r+n.length);else{let t=b(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 m:n+=o.length;break;case g:r+=o.length;break;case y: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];
10l[0]!==y&&(o=B(t,n)),l[0]===m?i=i.substring(0,r+o)+l[1]+i.substring(r+o):l[0]===g&&(i=i.substring(0,r+o)+i.substring(r+B(t,n+l[1].length))),l[0]!==g&&(n+=l[1].length)}}}}}return[i=i.substring(l.length,i.length-l.length),c]}var X=Object.defineProperty,K=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,Z=(e,t,n)=>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={}))Y.call(t,n)&&Z(e,n,t[n]);if(K)for(var n of K(t))q.call(t,n)&&Z(e,n,t[n]);return e};let J={margin:4};function ee(e={}){return Q(Q({},J),e)}function et(e,t,n){if("string"==typeof e&&"string"==typeof t){let r=b(e,t,{checkLines:!0});return r.length>2&&(r=j(r=S(r))),en(e,r,ee(n))}if(e&&Array.isArray(e)&&typeof t>"u")return en(z(e),e,ee(n));if("string"==typeof e&&t&&Array.isArray(t))return en(e,t,ee(n));throw Error("Unknown call format to make()")}function en(e,t,n){if(0===t.length)return[];let r=[],i=U(0,0),s=0,o=0,a=0,l=0,u=0,c=e,d=e;for(let e=0;e<t.length;e++){let h=t[e],[f,p]=h,b=p.length,v=H(p);switch(!s&&f!==y&&(i.start1=o,i.start2=a,i.utf8Start1=l,i.utf8Start2=u),f){case m:i.diffs[s++]=h,i.length2+=b,i.utf8Length2+=v,d=d.substring(0,a)+p+d.substring(a);break;case g:i.length1+=b,i.utf8Length1+=v,i.diffs[s++]=h,d=d.substring(0,a)+d.substring(a+b);break;case y:b<=2*n.margin&&s&&t.length!==e+1?(i.diffs[s++]=h,i.length1+=b,i.length2+=b,i.utf8Length1+=v,i.utf8Length2+=v):b>=2*n.margin&&s&&(er(i,c,n),r.push(i),i=U(-1,-1),s=0,c=d,o=a,l=u);break;default:throw Error("Unknown diff type")}f!==m&&(o+=b,l+=v),f!==g&&(a+=b,u+=v)}return s&&(er(i,c,n),r.push(i)),r}function er(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([y,o]);let l=o.length,u=H(o),c=e.start2+e.length1+i;c<t.length&&a(t[c])&&c++;let d=t.substring(e.start2+e.length1,c);d&&e.diffs.push([y,d]);let h=d.length,f=H(d);e.start1-=l,e.start2-=l,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=l+h,e.length2+=l+h,e.utf8Length1+=u+f,e.utf8Length2+=u+f}let ei=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function es(e){if(!e)return[];let t=[],n=e.split(` 11`),r=0;for(;r<n.length;){let e=n[r].match(ei);if(!e)throw Error(`Invalid patch string: ${n[r]}`);let i=U(eo(e[1]),eo(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=eo(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=eo(e[4]),i.length2=i.utf8Length2),r++;r<n.length;){let e,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=H(e)-e.length;if("-"===s)i.diffs.push([g,e]),i.length1-=o;else if("+"===s)i.diffs.push([m,e]),i.length2-=o;else if(" "===s)i.diffs.push([y,e]),i.length1-=o,i.length2-=o;else throw Error(`Invalid patch mode "${s}" in: ${e}`);r++}}return t}function eo(e){return parseInt(e,10)}function ea(e){return e.map(el).join("")}function el(e){let t,n,r,{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} @@ 12`];for(let e=0;e<l.length;e++){switch(l[e][0]){case m:r="+";break;case g:r="-";break;case y:r=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${r+encodeURI(l[e][1])} 13`}return u.join("").replace(/%20/g," ")}},37822:(e,t,n)=>{"use strict";n.d(t,{X4:()=>s,ai:()=>i,hs:()=>o});var r=n(48895);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},s={...i,transform:e=>(0,r.q)(0,1,e)},o={...i,default:1}},37849:(e,t,n)=>{"use strict";e.exports=n(68381)},37899:(e,t,n)=>{"use strict";n.d(t,{Ib:()=>h,ry:()=>d,zs:()=>c});let r=e=>180*e/Math.PI,i=e=>o(r(Math.atan2(e[1],e[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:i,rotateZ:i,skewX:e=>r(Math.atan(e[1])),skewY:e=>r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},o=e=>((e%=360)<0&&(e+=360),e),a=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),l=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:a,scaleY:l,scale:e=>(a(e)+l(e))/2,rotateX:e=>o(r(Math.atan2(e[6],e[5]))),rotateY:e=>o(r(Math.atan2(-e[2],e[0]))),rotateZ:i,rotate:i,skewX:e=>r(Math.atan(e[4])),skewY:e=>r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function c(e){return+!!e.includes("scale")}function d(e,t){let n,r;if(!e||"none"===e)return c(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=u,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=s,r=t}if(!r)return c(t);let o=n[t],a=r[1].split(",").map(f);return"function"==typeof o?o(a):a[o]}let h=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return d(n,t)};function f(e){return parseFloat(e.trim())}},38208:e=>{e.exports=function(e){return e.split("")}},38358:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});let{schedule:r}=(0,n(44300).I)(queueMicrotask,!1)},38708:(e,t,n)=>{"use strict";n.d(t,{O:()=>u});let r=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var i=n(96868),s=n(40479),o=n(21391);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=s.U.length;function u(e,t,n){let{style:u,vars:c,transformOrigin:d}=e,h=!1,f=!1;for(let e in t){let n=t[e];if(s.f.has(e)){h=!0;continue}if((0,o.j4)(e)){c[e]=n;continue}{let t=r(n,i.W[e]);e.startsWith("origin")?(f=!0,d[e]=t):u[e]=t}}if(!t.transform&&(h||n?u.transform=function(e,t,n){let o="",u=!0;for(let c=0;c<l;c++){let l=s.U[c],d=e[l];
13if(void 0===d)continue;let h=!0;if("number"==typeof d)h=d===+!!l.startsWith("scale");else{let e=parseFloat(d);h=l.startsWith("scale")?1===e:0===e}if(!h||n){let e=r(d,i.W[l]);if(!h){u=!1;let t=a[l]||l;o+=`${t}(${e}) `}n&&(t[l]=e)}}let c=e.pathRotation;return c&&(u=!1,o+=`rotate(${r(c,i.W.pathRotation)}) `),o=o.trim(),n?o=n(t,u?"":o):u&&(o="none"),o}(t,e.transform,n):u.transform&&(u.transform="none")),f){let{originX:e="50%",originY:t="50%",originZ:n=0}=d;u.transformOrigin=`${e} ${t} ${n}`}}},39361:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});let r=(e,t,n)=>e+(t-e)*n},39622:(e,t,n)=>{"use strict";n.d(t,{ge:()=>o,xU:()=>i});let r=()=>({translate:0,scale:1,origin:0,originPoint:0}),i=()=>({x:r(),y:r()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},40042:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});let r={}},40479:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,f:()=>i});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set([...r,"pathRotation"])},44300:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(40042);let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function s(e,t){let n=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=i.reduce((e,t)=>(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}(a),e),{}),{setup:u,read:c,resolveKeyframes:d,preUpdate:h,update:f,preRender:p,render:g,postRender:m}=l,y=()=>{let i=r.W.useManualTiming,a=i?o.timestamp:performance.now();n=!1,i||(o.delta=s?1e3/60:Math.max(Math.min(a-o.timestamp,40),1)),o.timestamp=a,o.isProcessing=!0,u.process(o),c.process(o),d.process(o),h.process(o),f.process(o),p.process(o),g.process(o),m.process(o),o.isProcessing=!1,n&&t&&(s=!1,e(y))};return{schedule:i.reduce((t,r)=>{let i=l[r];return t[r]=(t,r=!1,a=!1)=>(!n&&(n=!0,s=!0,o.isProcessing||e(y)),i.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<i.length;t++)l[i[t]].cancel(e)},state:o,steps:l}}},44807:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(37822),i=n(92419),s=n(9150),o=n(23919);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+i.KN.transform((0,s.a)(t))+", "+i.KN.transform((0,s.a)(n))+", "+(0,s.a)(r.X4.transform(o))+")"}},45242:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});let r=(e,t)=>t?1e3/t*e:0},45385:(e,t,n)=>{"use strict";n.d(t,{H:()=>u});var r=n(81666),i=n(92419);function s(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let o={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!i.px.test(e))return e;else e=parseFloat(e);let n=s(e,t.target.x),r=s(e,t.target.y);return`${n}% ${r}%`}};var a=n(24888),l=n(39361);let u={borderRadius:{...o,applyTo:[...r.S]},borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomLeftRadius:o,borderBottomRightRadius:o,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=a.f.parse(e);if(r.length>5)return e;let i=a.f.createTransformer(e),s=+("number"!=typeof r[0]),o=n.x.scale*t.x,u=n.y.scale*t.y;r[0+s]/=o,r[1+s]/=u;let c=(0,l.k)(o,u,.5);return"number"==typeof r[2+s]&&(r[2+s]/=c),"number"==typeof r[3+s]&&(r[3+s]/=c),i(r)}}}},46436:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(12115);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},46934:(e,t,n)=>{"use strict";function r(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}n.d(t,{e:()=>r})},48895:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});let r=(e,t,n)=>n>t?t:n<e?e:n},49095:(e,t,n)=>{var r=n(67367),i=n(13456),s=n(32438),o=n(3983);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)||[]}},50030:(e,t,n)=>{var r=n(73423),i=n(91426),s=n(25411),o=n(36702),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}},51118:(e,t,n)=>{"use strict";function r(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}n.d(t,{K:()=>r})}
13,51483:(e,t,n)=>{var r=n(24402),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||i||Function("return this")()},52036:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,_:()=>i});let r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...r]},53127:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(12115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},55389:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(68894),i=n(44807),s=n(31739);let o={test:e=>s.B.test(e)||r.u.test(e)||i.V.test(e),parse:e=>s.B.test(e)?s.B.parse(e):i.V.test(e)?i.V.parse(e):r.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?s.B.transform(e):i.V.transform(e),getAnimatableNone:e=>{let t=o.parse(e);return t.alpha=0,o.transform(t)}}},56555:(e,t,n)=>{"use strict";n.d(t,{B3:()=>ed,H0:()=>ec,JW:()=>E,Lh:()=>h,Ob:()=>el,lw:()=>en,me:()=>eS,nj:()=>er,sR:()=>eC});var r=n(15374);function i(e,t,n,r,i,s){return{enabled:e.selectable({base:t,dark:n,solid:r,muted:i,state:"enabled",tone:s}),hovered:e.selectable({base:t,dark:n,solid:r,muted:i,state:"hovered",tone:s}),pressed:e.selectable({base:t,dark:n,solid:r,muted:i,state:"pressed",tone:s}),selected:e.selectable({base:t,dark:n,solid:r,muted:i,state:"selected",tone:s}),disabled:e.selectable({base:t,dark:n,solid:r,muted:i,state:"disabled",tone:s})}}function s(e,t,n,r,i,s){return{default:e.button({base:t,dark:n,solid:r.default,muted:i.default,mode:s}),primary:e.button({base:t,dark:n,solid:r.primary,muted:i.primary,mode:s}),positive:e.button({base:t,dark:n,solid:r.positive,muted:i.positive,mode:s}),caution:e.button({base:t,dark:n,solid:r.caution,muted:i.caution,mode:s}),critical:e.button({base:t,dark:n,solid:r.critical,muted:i.critical,mode:s})}}let o="hsl(0, 0%, 0%)",a="hsl(0, 0%, 100%)",l={default:{lightest:"hsl(0, 0%, 95%)",lighter:"hsl(0, 0%, 70%)",light:"hsl(0, 0%, 65%)",base:"hsl(0, 0%, 50%)",dark:"hsl(0, 0%, 35%)",darker:"hsl(0, 0%, 20%)",darkest:"hsl(0, 0%, 5%)"},transparent:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},primary:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},positive:{lightest:"hsl(120, 100%, 95%)",lighter:"hsl(120, 100%, 70%)",light:"hsl(120, 100%, 65%)",base:"hsl(120, 100%, 50%)",dark:"hsl(120, 100%, 35%)",darker:"hsl(120, 100%, 20%)",darkest:"hsl(120, 100%, 5%)"},caution:{lightest:"hsl(60, 100%, 95%)",lighter:"hsl(60, 100%, 70%)",light:"hsl(60, 100%, 65%)",base:"hsl(60, 100%, 50%)",dark:"hsl(60, 100%, 35%)",darker:"hsl(60, 100%, 20%)",darkest:"hsl(60, 100%, 5%)"},critical:{lightest:"hsl(0, 100%, 95%)",lighter:"hsl(0, 100%, 70%)",light:"hsl(0, 100%, 65%)",base:"hsl(0, 100%, 50%)",dark:"hsl(0, 100%, 35%)",darker:"hsl(0, 100%, 20%)",darkest:"hsl(0, 100%, 5%)"}},u={gray:"hsl(0, 0%, 50%)",red:"hsl(0, 100%, 50%)",orange:"hsl(30, 100%, 50%)",yellow:"hsl(60, 100%, 50%)",green:"hsl(120, 100%, 50%)",cyan:"hsl(180, 100%, 50%)",blue:"hsl(240, 100%, 50%)",purple:"hsl(270, 100%, 50%)",magenta:"hsl(300, 100%, 50%)"},c={transparent:{bg:[l.transparent.darkest,l.transparent.lightest],fg:[l.transparent.lightest,l.transparent.darkest],border:[l.transparent.darker,l.transparent.lighter],focusRing:[l.transparent.base,l.transparent.base]},primary:{bg:[l.primary.darkest,l.primary.lightest],fg:[l.primary.lightest,l.primary.darkest],border:[l.primary.darker,l.primary.lighter],focusRing:[l.primary.base,l.primary.base]},positive:{bg:[l.positive.darkest,l.positive.lightest],fg:[l.positive.lightest,l.positive.darkest],border:[l.positive.darker,l.positive.lighter],focusRing:[l.positive.base,l.positive.base]},caution:{bg:[l.caution.darkest,l.caution.lightest],fg:[l.caution.lightest,l.caution.darkest],border:[l.caution.darker,l.caution.lighter],focusRing:[l.caution.base,l.caution.base]},critical:{bg:[l.critical.darkest,l.critical.lightest],fg:[l.critical.lightest,l.critical.darkest],border:[l.critical.darker,l.critical.lighter],focusRing:[l.critical.base,l.critical.base]}},d={base:({dark:e,name:t})=>"default"===t?{bg:e?o:a,fg:e?a:o,border:e?l.default.darkest:l.default.lightest,focusRing:l.primary.base,shadow:{outline:o,umbra:o,penumbra:o,ambient:o},skeleton:{from:e?a:o,to:e?a:o}}:{bg:c[t].bg[+!e],fg:c[t].fg[+!e],border:c[t].border[+!e],focusRing:c[t].focusRing[+!e],shadow:{outline:o,umbra:o,penumbra:o,ambient:o},skeleton:{from:e?a:o,to:e?a:o}},solid:({base:e,dark:t,state:n,tone:r})=>{let i=l[r];return"hovered"===n?{bg:t?i.light:i.dark,bg2:t?i.light:i.dark,border:t?i.lighter:i.darker,fg:t?i.darkest:i.lightest,icon:t?i.darkest:i.lightest,muted:{fg:o},accent:{fg:o},link:{fg:o},code:{bg:o,fg:o},skeleton:e.skeleton}:{bg:i.base,bg2:i.base,border:t?i.light:i.dark,fg:t?i.darkest:i.lightest,icon:t?i.darkest:i.lightest,muted:{fg:o},accent:{fg:o},link:{fg:o},code:{bg:o,fg:o},skeleton:e.skeleton}},muted:({base:e,dark:t,state:n,tone:r})=>{let i=l[r];return"hovered"===n?{bg:t?i.darker:i.lighter,bg2:t?i.darker:i.lighter,border:t?i.lighter:i.darker,fg:t?i.lightest:i.darkest,icon:t?i.lightest:i.darkest,muted:{fg:o},accent:{fg:o},link:{fg:o},code:{bg:o,fg:o},skeleton:e.skeleton}:{bg:t?i.darkest:i.lightest,bg2:t?i.darkest:i.lightest,border:t?i.darker:i.lighter,fg:t?i.lighter:i.darker,icon:t?i.lighter:i.darker,muted:{fg:o},accent:{fg:o},link:{fg:o},code:{bg:o,fg:o},skeleton:e.skeleton}},button:({base:e,mode:t,muted:n,solid:r})=>"bleed"===t?{...n,enabled:{bg:"transparent",bg2:"transparent",fg:n.enabled.fg,icon:n.enabled.fg,border:"transparent",muted:{fg:o},accent:{fg:o},link:{fg:o},code:{bg:o,fg:o},skeleton:e.skeleton},hovered:{bg:n.enabled.bg,bg2:n.enabled.bg,fg:n.hovered.fg,icon:n.hovered.fg,border:"transparent",muted:{fg:o},accent:{fg:o},link:{fg:o},code:{bg:o,fg:o},skeleton:e.skeleton}}:"ghost"===t?{...r,enabled:n.enabled}:r,card:({base:e})=>({bg:o,bg2:o,fg:o,icon:o,border:o,muted:{fg:o},accent:{fg:o},link:{fg:o},code:{bg:o,fg:o},skeleton:e.skeleton}
13),input:()=>({bg:o,bg2:o,fg:o,border:o,placeholder:o}),selectable:({muted:e,state:t,tone:n})=>e[n][t],spot:({key:e})=>u[e],syntax:()=>({atrule:o,attrName:o,attrValue:o,attribute:o,boolean:o,builtin:o,cdata:o,char:o,class:o,className:o,comment:o,constant:o,deleted:o,doctype:o,entity:o,function:o,hexcode:o,id:o,important:o,inserted:o,keyword:o,number:o,operator:o,prolog:o,property:o,pseudoClass:o,pseudoElement:o,punctuation:o,regex:o,selector:o,string:o,symbol:o,tag:o,unit:o,url:o,variable:o})};function h(e={}){let t={...d,...e};return{light:f(t,!1),dark:f(t,!0)}}function f(e,t){return{default:p(e,t,"default"),transparent:p(e,t,"transparent"),primary:p(e,t,"primary"),positive:p(e,t,"positive"),caution:p(e,t,"caution"),critical:p(e,t,"critical")}}function p(e,t,n){let r=e.base({dark:t,name:n}),o={default:{enabled:e.solid({base:r,dark:t,tone:"default",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"default",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"default",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"default",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"default",name:n,state:"selected"})},transparent:{enabled:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"selected"})},primary:{enabled:e.solid({base:r,dark:t,tone:"primary",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"primary",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"primary",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"primary",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"primary",name:n,state:"selected"})},positive:{enabled:e.solid({base:r,dark:t,tone:"positive",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"positive",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"positive",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"positive",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"positive",name:n,state:"selected"})},caution:{enabled:e.solid({base:r,dark:t,tone:"caution",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"caution",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"caution",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"caution",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"caution",name:n,state:"selected"})},critical:{enabled:e.solid({base:r,dark:t,tone:"critical",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"critical",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"critical",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"critical",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"critical",name:n,state:"selected"})}},a={default:{enabled:e.muted({base:r,dark:t,tone:"default",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"default",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"default",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"default",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"default",name:n,state:"selected"})},transparent:{enabled:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"selected"})},primary:{enabled:e.muted({base:r,dark:t,tone:"primary",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"primary",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"primary",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"primary",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"primary",name:n,state:"selected"})},positive:{enabled:e.muted({base:r,dark:t,tone:"positive",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"positive",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"positive",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"positive",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"positive",name:n,state:"selected"})},caution:{enabled:e.muted({base:r,dark:t,tone:"caution",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"caution",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"caution",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"caution",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"caution",name:n,state:"selected"})},critical:{enabled:e.muted({base:r,dark:t,tone:"critical",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"critical",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"critical",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"critical",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"critical",name:n,state:"selected"})}};return{base:r,button:{default:s(e,r,t,o,a,"default"),ghost:s(e,r,t,o,a,"ghost"),bleed:s(e,r,t,o,a,"bleed")},card:{enabled:e.card({base:r,dark:t,name:n,state:"enabled",solid:o,muted:a}),disabled:e.card({base:r,dark:t,name:n,state:"disabled",solid:o,muted:a}),hovered:e.card({base:r,dark:t,name:n,state:"hovered",solid:o,muted:a}),pressed:e.card({base:r,dark:t,name:n,state:"pressed",solid:o,muted:a}),selected:e.card({base:r,dark:t,name:n,state:"selected",solid:o,muted:a})},dark:t,input:{default:{enabled:e.input({base:r,dark:t,mode:"default",state:"enabled",solid:o.default,muted:a.default}),disabled:e.input({base:r,dark:t,mode:"default",state:"disabled",solid:o.default,muted:a.default}),hovered:e.input({base:r,dark:t,mode:"default",state:"hovered",solid:o.default,muted:a.default}),readOnly:e.input({base:r,dark:t,mode:"default",state:"readOnly",solid:o.default,muted:a.default})},invalid:{enabled:e.input({base:r,dark:t,mode:"invalid",state:"enabled",solid:o.default,muted:a.default}),disabled:e.input({base:r,dark:t,mode:"invalid",state:"disabled",solid:o.default,muted:a.default}),hovered:e.input({base:r,dark:t,mode:"invalid",state:"hovered",solid:o.default,muted:a.default}),readOnly:e.input({base:r,dark:t,mode:"invalid",state:"readOnly",solid:o.default,muted:a.default})}},selectable:{default:i(e,r,t,o,a,"default"),primary:i(e,r,t,o,a,"primary"),positive:i(e,r,t,o,a,"positive"),caution:i(e,r,t,o,a,"caution"),critical:i(e,r,t,o,a,"critical")},spot:{gray:e.spot({base:r,dark:t,key:"gray"}),blue:e.spot({base:r,dark:t,key:"blue"}),purple:e.spot({base:r,dark:t,key:"purple"}),magenta:e.spot({base:r,dark:t,key:"magenta"}),red:e.spot({base:r,dark:t,key:"red"}),orange:e.spot({base:r,dark:t,key:"orange"}),yellow:e.spot({base:r,dark:t,key:"yellow"}),green:e.spot({base:r,dark:t,key:"green"}),cyan:e.spot({base:r,dark:t,key:"cyan"})},syntax:e.syntax({base:r,dark:t}),solid:o,muted:a}}let g={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}}
13,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"}}}},m={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}]}},y=new WeakMap;function b(e){let t=y.get(e);if(t)return t;let n=x(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:v(e,e.button.default),ghost:v(e,e.button.ghost),bleed:v(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:w(e.input.default),invalid:w(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:v(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 y.set(e,r),r}function v(e,t){return{default:{enabled:x(e,t.default.enabled),hovered:x(e,t.default.hovered),pressed:x(e,t.default.pressed),selected:x(e,t.default.selected),disabled:x(e,t.default.disabled)},neutral:{enabled:x(e,t.default.enabled),hovered:x(e,t.default.hovered),pressed:x(e,t.default.pressed),selected:x(e,t.default.selected),disabled:x(e,t.default.disabled)},primary:{enabled:x(e,t.primary.enabled),hovered:x(e,t.primary.hovered),pressed:x(e,t.primary.pressed),selected:x(e,t.primary.selected),disabled:x(e,t.primary.disabled)},suggest:{enabled:x(e,t.primary.enabled),hovered:x(e,t.primary.hovered),pressed:x(e,t.primary.pressed),selected:x(e,t.primary.selected),disabled:x(e,t.primary.disabled)},positive:{enabled:x(e,t.positive.enabled),hovered:x(e,t.positive.hovered),pressed:x(e,t.positive.pressed),selected:x(e,t.positive.selected),disabled:x(e,t.positive.disabled)},caution:{enabled:x(e,t.caution.enabled),hovered:x(e,t.caution.hovered),pressed:x(e,t.caution.pressed),selected:x(e,t.caution.selected),disabled:x(e,t.caution.disabled)},critical:{enabled:x(e,t.critical.enabled),hovered:x(e,t.critical.hovered),pressed:x(e,t.critical.pressed),selected:x(e,t.critical.selected),disabled:x(e,t.critical.disabled)}}}function x(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}
13,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 w(e){return{enabled:k(e.enabled),disabled:k(e.disabled),readOnly:k(e.readOnly),hovered:k(e.hovered)}}function k(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let S=new WeakMap;function E(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=S.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...g.avatar,...e.sanity.avatar},button:{...g.button,...e.sanity.button},card:g.card,color:b(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...g.input,...e.sanity.input,checkbox:{...g.input.checkbox,...e.sanity.input.checkbox},radio:{...g.input.radio,...e.sanity.input.radio},switch:{...g.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??g.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return S.set(e,n),n}function C(e){return 2===e._version}let A=new WeakMap,P=new WeakMap;function T(e){let t=P.get(e);if(t)return t;
13let{avatar:n,button:r,color:i,container:s,font:o,input:a,media:l,radius:u,shadow:c,space:d,style:h}=e;return{_version:0,avatar:n,button:r,container:s,color:{light:{transparent:R(i.light.transparent),default:R(i.light.default),primary:R(i.light.primary),positive:R(i.light.positive),caution:R(i.light.caution),critical:R(i.light.critical)},dark:{transparent:R(i.dark.transparent),default:R(i.dark.default),primary:R(i.dark.primary),positive:R(i.dark.positive),caution:R(i.dark.caution),critical:R(i.dark.critical)}},focusRing:a.text.focusRing,fonts:o,input:a,media:l,radius:u,shadows:c,space:d,styles:h,v2:e}}function R(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:M(e.input.default),invalid:M(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 M(e){return{enabled:j(e.enabled),disabled:j(e.disabled),readOnly:j(e.readOnly),hovered:j(e.hovered)}}function j(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let O=["multiply","screen"],I=["transparent","default","neutral","primary","suggest","positive","caution","critical"],$=["default","neutral","primary","suggest","positive","caution","critical"],_=["enabled","hovered","pressed","selected","disabled"],D=["default","ghost","bleed"],V=["default","invali
13d"],L=["enabled","hovered","readOnly","disabled"];function N(e){return r.V0.includes(e)}function z(e){return/^\d+%$/.test(e)}function F(e){var t;let n=e.split("/"),i=n.shift()||"",[s,o]=i.split(" ");if(N(s)){let e=n.shift()||"";return z(o)?{type:"color",tint:s,mix:Number(o.slice(0,-1))/100}:B(e)?{type:"color",tint:s,opacity:Number(e)}:{type:"color",tint:s}}if("black"===(t=s)||"white"===t){let e=n.shift()||"";return z(o)?{type:"color",key:s,mix:Number(o.slice(0,-1))/100}:B(e)?{type:"color",key:s,opacity:Number(e)}:{type:"color",key:s}}if(r.Cv.includes(s)){let[e,t]=(i=n.shift()||"").split(" ");if(N(e)){let r=n.shift()||"";return z(t)?{type:"color",hue:s,tint:e,mix:Number(t.slice(0,-1))/100}:B(r)?{type:"color",hue:s,tint:e,opacity:Number(r)}:{type:"color",hue:s,tint:e}}return{type:"hue",value:s}}if(O.includes(s))return{type:"blendMode",value:s}}function B(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}[...r.Cv],[...I],[...$],[..._],[...V],[...L];let H=["500","500"];function W(e,t=H){var n;let r,{hue:i,scheme:s}=e,o=F(t[+("light"!==s)]);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 U={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"]}}
13,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
13data:["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 G(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function X(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(K,{})}function K(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];G(r)&&G(i)?e[n]=X(r,i):e[n]=i}return e}function Y(e,t){let{scheme:n}=e,r={};for(let e of I)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)],_dark:"dark"===n,accent:{fg:W(s,i?.accent?.fg)},avatar:q({scheme:n},i),backdrop:W(s,i?.backdrop),badge:Q(i?.badge,{scheme:n},t),bg:W(s,i?.bg),border:W(s,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of D)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,s={};for(let e of $)s[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:s}=e,o={};for(let e of _)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"],d={hue:u,scheme:s};return{_blend:c[+("light"!==s)],accent:{fg:W(d,l?.accent?.fg)},avatar:q({scheme:s},l),badge:Q(l?.badge,{scheme:s},t),bg:W(d,l?.bg),border:W(d,l?.border),code:{bg:W(d,l?.code?.bg),fg:W(d,l?.code?.fg)},fg:W(d,l?.fg),icon:W(d,l?.icon),muted:{bg:W(d,l?.muted?.bg),fg:W(d,l?.muted?.fg)},kbd:{bg:W(d,l?.kbd?.bg),fg:W(d,l?.kbd?.fg),border:W(d,l?.kbd?.border)},link:{fg:W(d,l?.link?.fg)},skeleton:{from:W(d,l?.skeleton?.from),to:W(d,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:W(s,i?.code?.bg),fg:W(s,i?.code?.fg)},fg:W(s,i?.fg),focusRing:W(s,i?.focusRing),icon:W(s,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:J({mode:"default",scheme:n,tone:r},t),invalid:J({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:W(s,i?.kbd?.bg),fg:W(s,i?.kbd?.fg),border:W(s,i?.kbd?.border)},link:{fg:W(s,i?.link?.fg)},muted:{bg:W(s,i?.muted?.bg),fg:W(s,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of $)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,s={};for(let e of _)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)],accent:{fg:W(c,a?.accent?.fg)},avatar:q({scheme:r},a),badge:Q(a?.badge,{scheme:r},t),bg:W(c,a?.bg),border:W(c,a?.border),code:{bg:W(c,a?.code?.bg),fg:W(c,a?.code?.fg)},fg:W(c,a?.fg),icon:W(c,a?.icon),muted:{bg:W(c,a?.muted?.bg),fg:W(c,a?.muted?.fg)},kbd:{bg:W(c,a?.kbd?.bg),fg:W(c,a?.kbd?.fg),border:W(c,a?.kbd?.border)},link:{fg:W(c,a?.link?.fg)},skeleton:{from:W(c,a?.skeleton?.from),to:W(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:W(s,i?.shadow?.outline),umbra:W(s,i?.shadow?.umbra),penumbra:W(s,i?.shadow?.penumbra),ambient:W(s,i?.shadow?.ambient)}}
13({scheme:n,tone:r},t),skeleton:{from:W(s,i?.skeleton?.from),to:W(s,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:W(i,r?.atrule),attrName:W(i,r?.attrName),attrValue:W(i,r?.attrValue),attribute:W(i,r?.attribute),boolean:W(i,r?.boolean),builtin:W(i,r?.builtin),cdata:W(i,r?.cdata),char:W(i,r?.char),class:W(i,r?.class),className:W(i,r?.className),comment:W(i,r?.comment),constant:W(i,r?.constant),deleted:W(i,r?.deleted),doctype:W(i,r?.doctype),entity:W(i,r?.entity),function:W(i,r?.function),hexcode:W(i,r?.hexcode),id:W(i,r?.id),important:W(i,r?.important),inserted:W(i,r?.inserted),keyword:W(i,r?.keyword),number:W(i,r?.number),operator:W(i,r?.operator),prolog:W(i,r?.prolog),property:W(i,r?.property),pseudoClass:W(i,r?.pseudoClass),pseudoElement:W(i,r?.pseudoElement),punctuation:W(i,r?.punctuation),regex:W(i,r?.regex),selector:W(i,r?.selector),string:W(i,r?.string),symbol:W(i,r?.symbol),tag:W(i,r?.tag),unit:W(i,r?.unit),url:W(i,r?.url),variable:W(i,r?.variable)}}({scheme:n},t)}}({scheme:n,tone:e},t);return r}function q(e,t){let{scheme:n}=e;return{gray:Z({color:"gray",scheme:n},t),blue:Z({color:"blue",scheme:n},t),purple:Z({color:"purple",scheme:n},t),magenta:Z({color:"magenta",scheme:n},t),red:Z({color:"red",scheme:n},t),orange:Z({color:"orange",scheme:n},t),yellow:Z({color:"yellow",scheme:n},t),green:Z({color:"green",scheme:n},t),cyan:Z({color:"cyan",scheme:n},t)}}function Z(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)],bg:W(s,i?.bg),fg:W(s,i?.fg)}}function Q(e,t,n){let{scheme:r}=t,i={};for(let t of $)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:W(o,s?.bg),fg:W(o,s?.fg),dot:W(o,s?.dot),icon:W(o,s?.icon)}}(e,{scheme:r,tone:t},n);return i}function J(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:ee({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:ee({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:ee({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:ee({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function ee(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)],bg:W(c,a?.bg),border:W(c,a?.border),fg:W(c,a?.fg),muted:{bg:W(c,a?.muted?.bg)},placeholder:W(c,a?.placeholder)}}let et=r.yW;function en(e,t){return{r:255*(e.r/255*(t.r/255)),g:255*(e.g/255*(t.g/255)),b:255*(e.b/255*(t.b/255))}}function er(e,t){var n,r,i,s,o,a;return{r:255*((n=e.r/255)+(r=t.r/255)-n*r),g:255*((i=e.g/255)+(s=t.g/255)-i*s),b:255*((o=e.b/255)+(a=t.b/255)-o*a)}}function ei(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function es(e,t,n,r,i){var s;return n*(1-(s=ei((i-e)/(t-e))))+r*s}function eo(e){return Math.round(e)}function ea(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 el(e){let t=eo(ei(Math.round(e.r),0,255)),n=eo(ei(Math.round(e.g),0,255)),r=eo(ei(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+r).toString(16).slice(1)}let eu=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function ec(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 ea(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=eu.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(")){let t=e.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(t[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}function ed(e,t){let n=ec(e);return`rgba(${n.r},${n.g},${n.b},${t})`}let eh=[0,255];function ef(e,t){let{bg:n,blendMode:r,colorPalette:i}=t;if("white"===n)throw Error("Cannot blend with white background");let s=F(e);if(!s||"color"!==s.type)throw Error(`Invalid color token value: ${e}`);let o="";if("black"===s.key&&(o=ep(i.black)),"white"===s.key&&(o=ep(i.white)),s.hue&&s.tint&&(o=ep(i[s.hue][s.tint])),!o)throw Error(`Invalid color token value: ${e}`);let a=o,l={blendMode:r,bg:n,black:ep(i.black),white:ep(i.white)};try{if(o=function(e,t){let{blendMode:n}=t,r=ec(e),i=ec(t.black),s=ec(t.white),o=t.bg?ec(t.bg):"multiply"===n?s:i,a={r:[i.r,s.r],g:[i.g,s.g],b:[i.b,s.b]},l={r:ei(es(...a.r,...eh,o.r),...eh),g:ei(es(...a.g,...eh,o.g),...eh),b:ei(es(...a.b,...eh,o.b),...eh)},u={r:ei(es(...a.r,...eh,r.r),...eh),g:ei(es(...a.g,...eh,r.g),...eh),b:ei(es(...a.b,...eh,r.b),...eh)},c="multiply"===n?en(l,u):er(l,u);return el({r:ei(es(...eh,...a.r,c.r),...a.r),g:ei(es(...eh,...a.g,c.g),...a.g),b:ei(es(...eh,...a.b,c.b),...a.b)}
13)}(o,l),n&&void 0!==s.mix){var u,c,d,h,f,p,g;let e=ea(n),t=ea(o);o=el((u=s.mix,{r:(c=e.r,d=t.r,c+(d-c)*u),g:(h=e.g,f=t.g,h+(f-h)*u),b:(p=e.b,g=t.b,p+(g-p)*u)}))}}catch(e){throw console.warn("could not blend",o,l),e}return"#aN"===o&&(console.warn(`invalid color token value: ${e}`),o=a),void 0!==s.opacity&&(o=ed(o,s.opacity)),o}function ep(e){return"string"==typeof e?e:e.hex}function eg(e,t){let n=Object.entries(t),[,r]=n.find(([e])=>"transparent"===e),[,i]=n.find(([e])=>"default"===e),s=em(r,{colorPalette:e}),o=em(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,em(n,{bg:a,colorPalette:e})])])}function em(e,t){var n,r,i,s;let{colorPalette:o,bg:a}=t,l=e._blend||"multiply",u=ef(e.bg,{colorPalette:o,bg:a,blendMode:l}),c={colorPalette:o,bg:u,blendMode:l},d=(n=e.button,r={baseBg:u,blendMode:l,colorPalette:o},{default:ev(n.default,r),ghost:ev(n.ghost,r),bleed:ev(n.bleed,r)}),h=function(e,t){let n={};for(let s of $){var r,i;n[s]=(r=e[s],i=t,{enabled:ex(r.enabled,i),hovered:ex(r.hovered,i),pressed:ex(r.pressed,i),selected:ex(r.selected,i),disabled:ex(r.disabled,i)})}return n}(e.selectable,{colorPalette:o,baseBg:u,blendMode:l}),f={outline:ef(e.shadow.outline,c),umbra:ef(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}}),penumbra:ef(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}}),ambient:ef(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:ef(e.accent.fg,c)},avatar:ey(e.avatar,{baseBg:u,colorPalette:o,blendMode:l}),backdrop:ef(e.backdrop,c),badge:eb(e.badge,{baseBg:u,colorPalette:o,blendMode:l}),bg:u,border:ef(e.border,c),button:d,code:{bg:ef(e.code.bg,c),fg:ef(e.code.fg,c)},fg:ef(e.fg,c),focusRing:ef(e.focusRing,c),icon:ef(e.icon,c),input:(i=e.input,s={baseBg:u,colorPalette:o,blendMode:l},{default:ew(i.default,s),invalid:ew(i.invalid,s)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=ef(e.bg,{bg:n,blendMode:r,colorPalette:i}),o={bg:s,blendMode:r,colorPalette:i};return{bg:s,fg:ef(e.fg,o),border:ef(e.border,o)}}(e.kbd,{baseBg:u,colorPalette:o,blendMode:l}),link:{fg:ef(e.link.fg,c)},muted:{bg:ef(e.muted.bg,c),fg:ef(e.muted.fg,c)},shadow:f,skeleton:{from:ef(e.skeleton.from,c),to:ef(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:ef(e.atrule,s),attrName:ef(e.attrName,s),attrValue:ef(e.attrValue,s),attribute:ef(e.attribute,s),boolean:ef(e.boolean,s),builtin:ef(e.builtin,s),cdata:ef(e.cdata,s),char:ef(e.char,s),class:ef(e.class,s),className:ef(e.className,s),comment:ef(e.comment,s),constant:ef(e.constant,s),deleted:ef(e.deleted,s),doctype:ef(e.doctype,s),entity:ef(e.entity,s),function:ef(e.function,s),hexcode:ef(e.hexcode,s),id:ef(e.id,s),important:ef(e.important,s),inserted:ef(e.inserted,s),keyword:ef(e.keyword,s),number:ef(e.number,s),operator:ef(e.operator,s),prolog:ef(e.prolog,s),property:ef(e.property,s),pseudoClass:ef(e.pseudoClass,s),pseudoElement:ef(e.pseudoElement,s),punctuation:ef(e.punctuation,s),regex:ef(e.regex,s),selector:ef(e.selector,s),string:ef(e.string,s),symbol:ef(e.symbol,s),tag:ef(e.tag,s),unit:ef(e.unit,s),url:ef(e.url,s),variable:ef(e.variable,s)}}(e.syntax,{baseBg:u,colorPalette:o,blendMode:l}),selectable:h}}function ey(e,t){let n={};for(let i of r.Cv)n[i]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",o=ef(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:s,bg:o,fg:ef(e.fg,{bg:o,blendMode:s,colorPalette:i})}}(e[i],t);return n}function eb(e,t){let n={};for(let r of $)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=ef(e.bg,{bg:n,blendMode:r,colorPalette:i}),o={bg:s,blendMode:r,colorPalette:i};return{bg:s,dot:ef(e.dot,o),fg:ef(e.fg,o),icon:ef(e.icon,o)}}(e[r],t);return n}function ev(e,t){let n={};for(let s of $){var r,i;n[s]=(r=e[s],i=t,{enabled:ex(r.enabled,i),hovered:ex(r.hovered,i),pressed:ex(r.pressed,i),selected:ex(r.selected,i),disabled:ex(r.disabled,i)})}return n}function ex(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",o=ef(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:o,blendMode:s,colorPalette:i};return{_blend:s,accent:{fg:ef(e.accent.fg,a)},avatar:ey(e.avatar,{baseBg:o,colorPalette:i,blendMode:s}),badge:eb(e.badge,{baseBg:o,colorPalette:i,blendMode:s}),bg:o,border:ef(e.border,a),code:{bg:ef(e.code.bg,a),fg:ef(e.code.fg,a)},fg:ef(e.fg,a),icon:ef(e.icon,a),link:{fg:ef(e.link.fg,a)},muted:{bg:ef(e.muted.bg,a),fg:ef(e.muted.fg,a)},kbd:{bg:ef(e.kbd.bg,a),fg:ef(e.kbd.fg,a),border:ef(e.kbd.border,a)},skeleton:{from:ef(e.skeleton?.from,a),to:ef(e.skeleton?.to,a)}}}function ew(e,t){return{enabled:ek(e.enabled,t),hovered:ek(e.hovered,t),readOnly:ek(e.readOnly,t),disabled:ek(e.disabled,t)}}function ek(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",o=ef(e.bg,{colorPalette:i,bg:n,blendMode:r}),a={colorPalette:i,bg:o,blendMode:s};return{_blend:s,bg:o,border:ef(e.border,a),fg:ef(e.fg,a),muted:{bg:ef(e.muted.bg,a)},placeholder:ef(e.placeholder,a)}}function eS(e){let t=function(e){let t={color:function(e){let t=X(U,e);return{base:function(e){let t={};for(let n of I)t[n]=function(e,t){let n=X(e?.base?.["*"],e?.base?.[t]),i=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:i,avatar:r.Cv.reduce((e,t)=>
13({...e,[t]:X({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:$.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 D)t[n]=function(e,t){let n={};for(let i of $)n[i]=function(e,t,n){let i={};for(let s of _)i[s]=function(e,t,n,i){let s=X(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.Cv.reduce((e,t)=>({...e,[t]:X({_hue:t},s.avatar?.["*"],s.avatar?.[t])}),{}),badge:$.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 V)t[n]=function(e,t){let n={};for(let r of L)n[r]=function(e,t,n){let r=X(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 $)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of _)n[i]=function(e,t,n){let i=X(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.Cv.reduce((e,t)=>({...e,[t]:X({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:$.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:Y({scheme:"light"},t),dark:Y({scheme:"dark"},t)}}(e);return T({_version:2,avatar:e?.avatar??g.avatar,button:e?.button??g.button,card:e?.card??g.card,color:function(e,t){let n=t?.palette??et;return{light:eg(n,e.light),dark:eg(n,e.dark)}}(t,e),container:e?.container??g.container,font:e?.font??m,input:e?.input??g.input,layer:e?.layer??g.layer,media:e?.media??g.media,radius:e?.radius??g.radius,shadow:e?.shadow??g.shadow,space:e?.space??g.space,style:e?.style??g.style})}let eE=new Map;function eC(e,t,n){var r;let i=function(e,t,n){let r=eE.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(i)return i;let s=C(e)?T(e):e,o=C(e)?e:function(e){if(e.v2)return e.v2;let t=A.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:s,fonts:o,input:a,layer:l,media:u,radius:c,shadows:d,space:h,styles:f}=e,p={_version:2,avatar:{...g.avatar,...n},button:{...g.button,...r},card:g.card,color:{light:{transparent:b(i.light.transparent),default:b(i.light.default),neutral:b(i.light.transparent),primary:b(i.light.primary),suggest: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),neutral:b(i.dark.transparent),primary:b(i.dark.primary),suggest:b(i.dark.primary),positive:b(i.dark.positive),caution:b(i.dark.caution),critical:b(i.dark.critical)}}
13,container:s,font:o,input:{...g.input,...a,checkbox:{...g.input.checkbox,...a.checkbox},radio:{...g.input.radio,...a.radio},switch:{...g.input.switch,...a.switch}},layer:l??g.layer,media:u,radius:c,shadow:d,space:h,style:f};return A.set(e,p),p}(e),a=s.color[t]||s.color.light,l=a[n]||a.default,u=s.layer||g.layer,c=o.color[t]||o.color.light,d="neutral"in(r=c[n]||c.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}},h=o.layer||g.layer,f={sanity:{...s,color:l,layer:u,v2:{...o,_resolved:!0,color:d,layer:h}}};return function(e,t,n,r){eE.has(t)||eE.set(t,new Map);let i=eE.get(t);i.has(n)||i.set(n,new WeakMap),i.get(n).set(e,r)}(e,t,n,f),f}},57716:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},58146:(e,t,n)=>{"use strict";let r;n.d(t,{UE:()=>eS,RK:()=>ev,ll:()=>em,rD:()=>eE,__:()=>ey,UU:()=>ew,jD:()=>ek,cY:()=>eb,BN:()=>ex});let i=["top","right","bottom","left"],s=i.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),o=Math.min,a=Math.max,l=Math.round,u=Math.floor,c=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function b(e,t,n){void 0===n&&(n=!1);let r=p(e),i=g(y(e)),s=m(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=E(o)),[o,E(o)]}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let x=["left","right"],w=["right","left"],k=["top","bottom"],S=["bottom","top"];function E(e){let t=f(e);return d[t]+e.slice(t.length)}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function P(e,t,n){let r,{reference:i,floating:s}=e,o=y(t),a=g(y(t)),l=m(a),u=f(t),c="y"===o,d=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,b=i[l]/2-s[l]/2;switch(u){case"top":r={x:d,y:i.y-s.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-s.width,y:h};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[a]-=b*(n&&c?-1:1);break;case"end":r[a]+=b*(n&&c?-1:1)}return r}async function T(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),g=C(p),m=a[f?"floating"===d?"reference":"floating":d],y=A(await s.getClippingRect({element:null==(n=await (null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await (null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),x=await (null==s.isElement?void 0:s.isElement(v))&&await (null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},w=A(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(y.top-w.top+g.top)/x.y,bottom:(w.bottom-y.bottom+g.bottom)/x.y,left:(y.left-w.left+g.left)/x.x,right:(w.right-y.right+g.right)/x.x}}let R=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:T},l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}
13),{x:c,y:d}=P(u,r,l),h=r,f=0,p={};for(let n=0;n<s.length;n++){let g=s[n];if(!g)continue;let{name:m,fn:y}=g,{x:b,y:v,data:x,reset:w}=await y({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=b?b:c,d=null!=v?v:d,p[m]={...p[m],...x},w&&f<50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(u=!0===w.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=P(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:p}};function M(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return i.some(t=>e[t]>=0)}let O=new Set(["left","top"]);async function I(e,t){let{placement:n,platform:r,elements:i}=e,s=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=f(n),a=p(n),l="y"===y(n),u=O.has(o)?-1:1,c=s&&l?-1:1,d=h(t,e),{mainAxis:g,crossAxis:m,alignmentAxis:b}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof b&&(m="end"===a?-1*b:b),l?{x:m*c,y:g*u}:{x:g*u,y:m*c}}function $(){return"undefined"!=typeof window}function _(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return!!$()&&(e instanceof Node||e instanceof D(e).Node)}function N(e){return!!$()&&(e instanceof Element||e instanceof D(e).Element)}function z(e){return!!$()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function F(e){return!!$()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function B(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function H(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let W=/transform|translate|scale|rotate|perspective|filter/,U=/paint|layout|strict|content/,G=e=>!!e&&"none"!==e;function X(e){let t=N(e)?q(e):e;return G(t.transform)||G(t.translate)||G(t.scale)||G(t.rotate)||G(t.perspective)||!K()&&(G(t.backdropFilter)||G(t.filter))||W.test(t.willChange||"")||U.test(t.contain||"")}function K(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Y(e){return/^(html|body|#document)$/.test(_(e))}function q(e){return D(e).getComputedStyle(e)}function Z(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if("html"===_(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||V(e);return F(t)?t.host:t}function J(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=Q(t);return Y(n)?t.ownerDocument?t.ownerDocument.body:t.body:z(n)&&B(n)?n:e(n)}(e),s=i===(null==(r=e.ownerDocument)?void 0:r.body),o=D(i);if(!s)return t.concat(i,J(i,[],n));{let e=ee(o);return t.concat(o,o.visualViewport||[],B(i)?i:[],e&&n?J(e):[])}}function ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function et(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=z(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=l(n)!==s||l(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function en(e){return N(e)?e:e.contextElement}function er(e){let t=en(e);if(!z(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:s}=et(t),o=(s?l(n.width):n.width)/r,a=(s?l(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let ei=c(0);function es(e){let t=D(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ei}function eo(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),o=en(e),a=c(1);t&&(r?N(r)&&(a=er(r)):a=er(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===D(o))&&i)?es(o):c(0),u=(s.left+l.x)/a.x,d=(s.top+l.y)/a.y,h=s.width/a.x,f=s.height/a.y;if(o){let e=D(o),t=r&&N(r)?D(r):r,n=e,i=ee(n);for(;i&&r&&t!==n;){let e=er(i),t=i.getBoundingClientRect(),r=q(i),s=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.to
13p+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,h*=e.x,f*=e.y,u+=s,d+=o,i=ee(n=D(i))}}return A({width:h,height:f,x:u,y:d})}function ea(e,t){let n=Z(e).scrollLeft;return t?t.left+n:eo(V(e)).left+n}function el(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ea(e,n),y:n.top+t.scrollTop}}function eu(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=D(e),r=V(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;let e=K();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}let u=ea(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(s-=o)}else u<=25&&(s+=u);return{width:s,height:o,x:a,y:l}}(e,n);else if("document"===t)r=function(e){let t=V(e),n=Z(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ea(e),l=-n.scrollTop;return"rtl"===q(r).direction&&(o+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:l}}(V(e));else if(N(t))r=function(e,t){let n=eo(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=z(e)?er(e):c(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y;return{width:o,height:a,x:i*s.x,y:r*s.y}}(t,n);else{let n=es(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(r)}function ec(e){return"static"===q(e).position}function ed(e,t){if(!z(e)||"fixed"===q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){var n;let r=D(e);if(H(e))return r;if(!z(e)){let t=Q(e);for(;t&&!Y(t);){if(N(t)&&!ec(t))return t;t=Q(t)}return r}let i=ed(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(_(n)))&&ec(i);)i=ed(i,t);return i&&Y(i)&&ec(i)&&!X(i)?r:i||function(e){let t=Q(e);for(;z(t)&&!Y(t);){if(X(t))return t;if(H(t))break;t=Q(t)}return null}(e)||r}let ef=async function(e){let t=this.getOffsetParent||eh,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=z(t),i=V(t),s="fixed"===n,o=eo(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=c(0);if(r||!r&&!s)if(("body"!==_(t)||B(i))&&(a=Z(t)),r){let e=eo(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ea(i));s&&!r&&i&&(l.x=ea(i));let u=!i||r||s?c(0):el(i,a);return{x:o.left+a.scrollLeft-l.x-u.x,y:o.top+a.scrollTop-l.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,s="fixed"===i,o=V(r),a=!!t&&H(t.floating);if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=c(1),d=c(0),h=z(r);if((h||!h&&!s)&&(("body"!==_(r)||B(o))&&(l=Z(r)),h)){let e=eo(r);u=er(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!o||h||s?c(0):el(o,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,s=[..."clippingAncestors"===n?H(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=J(e,[],!1).filter(e=>N(e)&&"body"!==_(e)),i=null,s="fixed"===q(e).position,o=s?Q(e):e;for(;N(o)&&!Y(o);){let t=q(o),n=X(o);n||"fixed"!==t.position||(i=null),(s?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||B(o)&&!n&&function e(t,n){let r=Q(t);return!(r===n||!N(r)||Y(r))&&("fixed"===q(r).position||e(r,n))}(e,o)))?i=t:r=r.filter(e=>e!==o),o=Q(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eu(t,s[0],i),u=l.top,c=l.right,d=l.bottom,h=l.left;for(let e=1;e<s.length;e++){let n=eu(t,s[e],i);u=a(n.top,u),c=o(n.right,c),d=o(n.bottom,d),h=a(n.left,h)}return{width:c-h,height:d-u,x:h,y:u}},getOffsetParent:eh,getElementRects:ef,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=et(e);return{width:t,height:n}},getScale:er,isElement:N,isRTL:function(e){return"rtl"===q(e).direction}};function eg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function em(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,f=en(e),p=s||l?[...f?J(f):[],...t?J(t):[]]:[];
13p.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let g=f&&d?function(e,t){let n,r=null,i=V(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let h=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=h;if(c||t(),!g||!m)return;let y=u(p),b=u(i.clientWidth-(f+g)),v={rootMargin:-y+"px "+-b+"px "+-u(i.clientHeight-(p+m))+"px "+-u(f)+"px",threshold:a(0,o(1,d))||1},x=!0;function w(t){let r=t[0].intersectionRatio;if(r!==d){if(!x)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eg(h,e.getBoundingClientRect())||l(),x=!1}try{r=new IntersectionObserver(w,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(w,v)}r.observe(e)}(!0),s}(f,n):null,m=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!h&&y.observe(f),t&&y.observe(t));let b=h?eo(e):null;return h&&function t(){let r=eo(e);b&&!eg(b,r)&&n(),b=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(i)}}let ey=T,eb=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:s,placement:o,middlewareData:a}=t,l=await I(t,e);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},ev=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i,o;let{rects:a,middlewareData:l,placement:u,platform:c,elements:d}=t,{crossAxis:g=!1,alignment:m,allowedPlacements:y=s,autoAlignment:x=!0,...w}=h(e,t),k=void 0!==m||y===s?((o=m||null)?[...y.filter(e=>p(e)===o),...y.filter(e=>p(e)!==o)]:y.filter(e=>f(e)===e)).filter(e=>!o||p(e)===o||!!x&&v(e)!==e):y,S=await c.detectOverflow(t,w),E=(null==(n=l.autoPlacement)?void 0:n.index)||0,C=k[E];if(null==C)return{};let A=b(C,a,await (null==c.isRTL?void 0:c.isRTL(d.floating)));if(u!==C)return{reset:{placement:k[0]}};let P=[S[f(C)],S[A[0]],S[A[1]]],T=[...(null==(r=l.autoPlacement)?void 0:r.overflows)||[],{placement:C,overflows:P}],R=k[E+1];if(R)return{data:{index:E+1,overflows:T},reset:{placement:R}};let M=T.map(e=>{let t=p(e.placement);return[e.placement,t&&g?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),j=(null==(i=M.filter(e=>e[2].slice(0,p(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||M[0][0];return j!==u?{data:{index:E+1,overflows:T},reset:{placement:j}}:{}}}},ex=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=h(e,t),p={x:n,y:r},m=await s.detectOverflow(t,d),b=y(f(i)),v=g(b),x=p[v],w=p[b];if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+m[e],r=x-m[t];x=a(n,o(x,r))}if(u){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",n=w+m[e],r=w-m[t];w=a(n,o(w,r))}let k=c.fn({...t,[v]:x,[b]:w});return{...k,data:{x:k.x-n,y:k.y-r,enabled:{[v]:l,[b]:u}}}}}},ew=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,s,o;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:g}=t,{mainAxis:m=!0,crossAxis:C=!0,fallbackPlacements:A,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:R=!0,...M}=h(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let j=f(a),O=y(c),I=f(c)===c,$=await (null==d.isRTL?void 0:d.isRTL(g.floating)),_=A||(I||!R?[E(c)]:function(e){let t=E(e);return[v(e),t,v(t)]}(c)),D="none"!==T;!A&&D&&_.push(...function(e,t,n,r){let i=p(e),s=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:x;return t?x:w;case"left":case"right":return t?k:S;default:return[]}}(f(e),"start"===n,r);return i&&(s=s.map(e=>e+"-"+i),t&&(s=s.concat(s.map(v)))),s}(c,R,T,$));let V=[c,..._],L=await d.detectOverflow(t,M),N=[],z=(null==(r=l.flip)?void 0:r.overflows)||[];if(m&&N.push(L[j]),C){let e=b(a,u,$);N.push(L[e[0]],L[e[1]])}if(z=[...z,{placement:a,overflows:N}],!N.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=V[e];if(t&&("alignment"!==C||O===y(t)||z.every(e=>y(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(s=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>
13e.overflows[1]-t.overflows[1])[0])?void 0:s.placement;if(!n)switch(P){case"bestFit":{let e=null==(o=z.filter(e=>{if(D){let t=y(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},ek=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=h(e,t);switch(i){case"referenceHidden":{let e=M(await r.detectOverflow(t,{...s,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:j(e)}}}case"escaped":{let e=M(await r.detectOverflow(t,{...s,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:j(e)}}}default:return{}}}}},eS=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=h(e,t)||{};if(null==d)return{};let b=C(f),v={x:n,y:r},x=g(y(i)),w=m(x),k=await l.getDimensions(d),S="y"===x,E=S?"clientHeight":"clientWidth",A=s.reference[w]+s.reference[x]-v[x]-s.floating[w],P=v[x]-s.reference[x],T=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),R=T?T[E]:0;R&&await (null==l.isElement?void 0:l.isElement(T))||(R=u.floating[E]||s.floating[w]);let M=R/2-k[w]/2-1,j=o(b[S?"top":"left"],M),O=o(b[S?"bottom":"right"],M),I=R-k[w]-O,$=R/2-k[w]/2+(A/2-P/2),_=a(j,o($,I)),D=!c.arrow&&null!=p(i)&&$!==_&&s.reference[w]/2-($<j?j:O)-k[w]/2<0,V=D?$<j?$-j:$-I:0;return{[x]:v[x]+V,data:{[x]:_,centerOffset:$-_-V,...D&&{alignmentOffset:V}},reset:D}}}),eE=(e,t,n)=>{let r=new Map,i={platform:ep,...n},s={...i.platform,_c:r};return R(e,t,{...i,platform:s})}},58496:(e,t,n)=>{"use strict";n.d(t,{X:()=>f,r:()=>d});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")}
13splitString(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 d=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),d=o(r),h=o(e);0<l&&a.stringAppendSlice(i,t,0,l),l<d-c&&a.stringAppendSlice(i,n,l,d-c),h-c<h&&a.stringAppendSlice(i,t,h-c,h);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 h{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 h,e,t).process()}},58840:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59132:(e,t,n)=>{"use strict";n.d(t,{J:()=>l,D:()=>a});var r=n(33182);let i=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 s(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||i.has(e)}let o=e=>!s(e);function a(e){"function"==typeof e&&(o=t=>t.startsWith("on")?!s(t):e(t))}try{a(require("@emotion/is-prop-valid").default)}catch{}function l(e,t,n){let i={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&!(0,r.S)(e[a])&&(o(a)||!0===n&&s(a)||!t&&!s(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}}
13,59452:(e,t,n)=>{"use strict";n.d(t,{BI:()=>I,Co:()=>U,EA:()=>Q,IU:()=>G,Ki:()=>m,Kp:()=>et,X:()=>f,dj:()=>eP,jT:()=>M,lG:()=>W,r5:()=>ee,s5:()=>g,sQ:()=>y,tE:()=>eC,tH:()=>b});var r=n(64509),i=n(95155),s=n(96241),o=n(12115),a=n(20031),l=n(68311),u=n(56555),c=n(61306),d=n(26497);function h(e){let t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function f(e){let t=null,n=h(()=>{t=h(e)});return()=>{t&&t(),n()}}function p(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||((0,r.nY)(e)?!!e.href&&"ignore"!==e.rel:(0,r.A3)(e)?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!((0,r.WE)(e)||(0,r.q4)(e)||(0,r.QY)(e))&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function g(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||g(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||m(n)))return!0}return!1}function y(e){return(0,r.cF)(e)?._contentRect||null}class b extends o.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch({error:e,info:t})}render(){let{error:e}=this.state;if(e){let t="string"==typeof e?.message?e.message:"Error";return(0,i.jsx)(r.Cy,{children:t})}return this.props.children}}let v=a.I4.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-1igauft-0"})`line-height:0;`,x=(0,a.I4)(r.az).withConfig({displayName:"ListBox",componentId:"sc-1igauft-1"})`& > ul{list-style:none;padding:0;margin:0;}`,w=(0,a.i7)` 14 from { 15 transform: rotate(0deg); 16 } 17 18 to { 19 transform: rotate(360deg); 20 } 21`,k=(0,a.I4)(s.Nl1).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${w} 500ms linear infinite;`;function S(e){let t,n,s,o=(0,l.c)(11),{children:a,id:u,onSelect:c,selected:d,value:h}=e;o[0]!==c||o[1]!==h?(t=()=>{setTimeout(()=>{c(h)},0)},o[0]=c,o[1]=h,o[2]=t):t=o[2];let f=t;o[3]!==f?(n=e=>{"Enter"!==e.key||(0,r.zd)(e.currentTarget)||f()},o[3]=f,o[4]=n):n=o[4];let p=n;return o[5]!==a||o[6]!==f||o[7]!==p||o[8]!==u||o[9]!==d?(s=(0,i.jsx)("li",{"aria-selected":d,"data-ui":"AutocompleteOption",id:u,role:"option",onClick:f,onKeyDown:p,children:a}),o[5]=a,o[6]=f,o[7]=p,o[8]=u,o[9]=d,o[10]=s):s=o[10],s}function E(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let C=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],A=["bottom-start","top-start"],P=(e,t)=>t?t.value:e,T=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,R=(0,o.forwardRef)(function(e,t){let{border:n=!0,customValidity:a,disabled:l,filterOption:u,fontSize:c=2,icon:d,id:f,listBox:p=r.sU,loading:m,onBlur:y,onChange:b,onFocus:w,onQueryChange:R,onSelect:M,openButton:j,openOnFocus:O,options:I,padding:$=3,popover:_=r.sU,prefix:D,radius:V=2,readOnly:L,relatedElements:N,renderOption:z,renderPopover:F,renderValue:B=P,suffix:H,value:W,...U}=e,[G,X]=(0,o.useReducer)(E,{activeValue:W||null,focused:!1,listFocused:!1,query:null,value:W||null}),{activeValue:K,focused:Y,listFocused:q,query:Z,value:Q}=G,J=(0,o.useCallback)(({value:e})=>(0,i.jsx)(r.Zp,{"data-as":"button",padding:$,radius:2,tone:"inherit",children:(0,i.jsx)(r.EY,{size:c,textOverflow:"ellipsis",children:e})}),[c,$]),ee="function"==typeof z?z:J,et="function"==typeof u?u:T,en=(0,o.useRef)(null),er=(0,o.useRef)(null),ei=(0,o.useRef)(null),es=(0,o.useRef)(null),eo=(0,o.useRef)(!1),ea=(0,o.useRef)(Q),el=(0,o.useRef)(W),eu=(0,o.useRef)(!1);(0,o.useImperativeHandle)(t,()=>ei.current);let ec=`${f}-listbox`,ed=Array.isArray(I)?I:r.Ml,eh=(0,r.KC)($),ef=(0,o.useMemo)(()=>null!==Q?ed.find(e=>e.value===Q):void 0,[ed,Q]),ep=(0,o.useMemo)(()=>ed.filter(e=>!Z||et(Z,e)),[et,ed,Z]),eg=ep.length,em=K?`${f}-option-${K}`:void 0,ey=null!==Z&&m||Y&&null!==Z,eb=(0,o.useCallback)(e=>{setTimeout(()=>{if(eu.current)return;let t=(N||[]).concat(en.current?[en.current]:[],er.current?[er.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(X({type:"root/blur"}),eu.current=!1,R&&R(null),y&&y(e))},0)},[y,R,N]),ev=(0,o.useCallback)(e=>{let t=es.current,n=e.target instanceof HTMLElement?e.target:null,r=t?.contains(n)||!1;r!==eo.current&&(eo.current=r,X({type:"root/setListFocused",listFocused:r}))},[]),ex=(0,o.useCallback)(e=>{X({type:"value/change",value:e}),eu.current=!1,M&&M(e),ea.current=e,b&&b(e),R&&R(null),ei.current?.focus()},[b,M,R]),ew=(0,o.useCallback)(e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===K),n=t?ep.indexOf(t):-1,r=ep[(n+1)%eg];r&&X({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===K),n=t?ep.indexOf(t):-1,r=ep[-1===n?eg-1:(eg+n-1)%eg];r&&X({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("Escape"===e.key){X({type:"root/escape"}),eu.current=!1,R&&R(null),ei.current?.focus();return}let t=e.target,n=es.current;
21if((n===t||n?.contains(t))&&!C.includes(e.key))return void ei.current?.focus()},[K,ep,eg,R]),ek=(0,o.useCallback)(e=>{let t=e.currentTarget.value;X({type:"input/change",query:t}),R&&R(t)},[R]),eS=(0,o.useCallback)(()=>{X({type:"root/open",query:Q?B(Q,ef):""})},[ef,B,Q]),eE=(0,o.useCallback)(e=>{Y||(X({type:"input/focus"}),w&&w(e),O&&eS())},[Y,w,O,eS]),eC=(0,o.useCallback)(()=>{eu.current=!0},[]),eA=(0,o.useCallback)(()=>{eu.current=!1},[]),eP=(0,o.useCallback)(()=>{X({type:"root/clear"}),ea.current="",b&&b(""),R&&R(null),ei.current?.focus()},[b,R]),eT=(0,o.useCallback)(()=>{X({type:"input/focus"})},[]);(0,o.useEffect)(()=>{if(W!==el.current){el.current=W,void 0!==W&&(X({type:"value/change",value:W}),ea.current=W);return}W!==ea.current&&(ea.current=W||null,X({type:"value/change",value:W||null}))},[W]),(0,o.useEffect)(()=>{!Y&&ea.current&&X({type:"root/setActiveValue",value:ea.current})},[Y]),(0,o.useEffect)(()=>{let e=es.current;if(!e)return;let t=ep.find(e=>e.value===K);if(t){let n=ep.indexOf(t),r=e.childNodes[n];if(r){if(document.activeElement&&r.contains(document.activeElement))return;g(r)}}},[K,ep]);let eR=(0,o.useMemo)(()=>{if(!m&&!l&&Q)return{"aria-label":"Clear",onFocus:eT}},[l,eT,m,Q]),eM=(0,o.useMemo)(()=>eh.map(e=>0===e?0:1===e||2===e?1:e-2),[eh]),ej=(0,o.useMemo)(()=>eh.map(e=>Math.max(e-1,0)),[eh]),eO=(0,o.useMemo)(()=>"object"==typeof j?j:r.sU,[j]),eI=(0,o.useCallback)(e=>{eS(),eO.onClick&&eO.onClick(e),h(()=>ei.current?.focus())},[eO,eS]),e$=(0,o.useMemo)(()=>l||L||!j?void 0:(0,i.jsx)(r.az,{"aria-hidden":ey,padding:eM,children:(0,i.jsx)(r.$n,{"aria-label":"Open",disabled:ey,fontSize:c,icon:s.D3D,mode:"bleed",padding:ej,...eO,onClick:eI})}),[l,ey,c,eI,j,eM,ej,eO,L]),e_=(0,o.useMemo)(()=>null===Z?null!==Q?B(Q,ef):"":Z,[ef,Z,B,Q]),eD=(0,i.jsx)(r.ks,{...U,"aria-activedescendant":em,"aria-autocomplete":"list","aria-expanded":ey,"aria-owns":ec,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:n,clearButton:eR,customValidity:a,disabled:l,fontSize:c,icon:d,iconRight:m&&k,id:f,inputMode:"search",onChange:ek,onClear:eP,onFocus:eE,padding:eh,prefix:D,radius:V,readOnly:L,ref:ei,role:"combobox",spellCheck:!1,suffix:H||e$,value:e_}),eV=(0,o.useCallback)(e=>{"Tab"===e.key&&q&&ei.current?.focus()},[q]),eL=(0,o.useMemo)(()=>0===ep.length?null:(0,i.jsx)(x,{"data-ui":"AutoComplete__results",onKeyDown:eV,padding:1,...p,tabIndex:-1,children:(0,i.jsx)(r.BJ,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:ec,ref:es,role:"listbox",space:1,children:ep.map(e=>{let t=null!==K?e.value===K:ef===e;return(0,i.jsx)(S,{id:`${f}-option-${e.value}`,onSelect:ex,selected:t,value:e.value,children:(0,o.cloneElement)(ee(e),{disabled:m,selected:t,tabIndex:q&&t?0:-1})},e.value)})})}),[K,ef,ep,ex,eV,f,p,ec,q,m,ee]),eN=(0,o.useMemo)(()=>F?F({content:eL,hidden:!ey,inputElement:ei.current,onMouseEnter:eC,onMouseLeave:eA},er):0===eg?null:(0,i.jsx)(r.AM,{arrow:!1,constrainSize:!0,content:eL,fallbackPlacements:A,matchReferenceWidth:!0,onMouseEnter:eC,onMouseLeave:eA,open:ey,overflow:"auto",placement:"bottom-start",portal:!0,radius:V,ref:er,referenceElement:ei.current,..._}),[eL,ey,eg,eC,eA,_,V,F]);return(0,i.jsxs)(v,{"data-ui":"Autocomplete",onBlur:eb,onFocus:ev,onKeyDown:ew,ref:en,children:[eD,eN]})});R.displayName="ForwardRef(Autocomplete)";let M=R,j=a.I4.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-1es8h8q-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,O=(0,a.I4)(r.$n).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`,I=(0,o.forwardRef)(function(e,t){let n,s,a,u,c,d,h,f,p,g,m,y,b=(0,l.c)(44);b[0]!==e?({children:n,maxLength:s,separator:u,space:c,...a}=e,b[0]=e,b[1]=n,b[2]=s,b[3]=a,b[4]=u,b[5]=c):(n=b[1],s=b[2],a=b[3],u=b[4],c=b[5]);let v=(0,r.KC)(void 0===c?2:c),[x,w]=(0,o.useState)(!1),k=(0,o.useRef)(null),S=(0,o.useRef)(null);b[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>w(!1),b[6]=d):d=b[6];let E=d;b[7]===Symbol.for("react.memo_cache_sentinel")?(h=()=>w(!0),b[7]=h):h=b[7];let C=h;b[8]===Symbol.for("react.memo_cache_sentinel")?(f=()=>[k.current,S.current],b[8]=f):f=b[8],(0,r.PR)(E,f),b[9]!==n?(p=o.Children.toArray(n).filter(o.isValidElement),b[9]=n,b[10]=p):p=b[10];let A=p;e:{let e=A.length;if(s&&e>s){let t,n=Math.ceil(s/2),o=Math.floor(s/2);if(b[11]!==o||b[12]!==n||b[13]!==e||b[14]!==x||b[15]!==A||b[16]!==v){let s,a,l,u,c=A.slice(0,n-1);b[18]!==o||b[19]!==n||b[20]!==e||b[21]!==A?(s=A.slice(n-1,e-o),b[18]=o,b[19]=n,b[20]=e,b[21]=A,b[22]=s):s=b[22],b[23]!==v||b[24]!==s?(a=(0,i.jsx)(r.BJ,{as:"ol",overflow:"auto",padding:v,space:v,children:s}),b[23]=v,b[24]=s,b[25]=a):a=b[25];let d=x?E:C;b[26]!==x||b[27]!==d?(l=(0,i.jsx)(O,{fontSize:1,mode:"bleed",onClick:d,padding:1,ref:k,selected:x,text:"â¦"}),b[26]=x,b[27]=d,b[28]=l):l=b[28],b[29]!==x||b[30]!==l||b[31]!==a?(u=(0,i.jsx)(r.AM,{constrainSize:!0,content:a,open:x,placement:"top",portal:!0,ref:S,children:l},"button"),b[29]=x,b[30]=l,b[31]=a,b[32]=u):u=b[32],t=[...c,u,...A.slice(e-o)],b[11]=o,b[12]=n,b[13]=e,b[14]=x,b[15]=A,b[16]=v,b[17]=t}else t=b[17];g=t;break e}g=A}let P=g;if(b[33]!==P||b[34]!==u||b[35]!==v){let e;
21b[37]!==u||b[38]!==v?(e=(e,t)=>(0,i.jsxs)(o.Fragment,{children:[t>0&&(0,i.jsx)(r.az,{"aria-hidden":!0,as:"li",paddingX:v,children:u||(0,i.jsx)(r.EY,{muted:!0,children:"/"})}),(0,i.jsx)(r.az,{as:"li",children:e})]},t),b[37]=u,b[38]=v,b[39]=e):e=b[39],m=P.map(e),b[33]=P,b[34]=u,b[35]=v,b[36]=m}else m=b[36];return b[40]!==t||b[41]!==a||b[42]!==m?(y=(0,i.jsx)(j,{"data-ui":"Breadcrumbs",...a,ref:t,children:m}),b[40]=t,b[41]=a,b[42]=m,b[43]=y):y=b[43],y});I.displayName="ForwardRef(Breadcrumbs)";let $=(0,r.bz)("@sanity/ui/context/dialog",{version:0});function _(e,t,n){return!e||!t||(0,r.Q3)(e,n)||(0,r.Q3)(t,n)}let D=(0,a.I4)(r.Wd).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(r.l_,function({theme:e}){let{color:t}=(0,u.JW)(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.backdrop}},function(e){let{media:t}=(0,u.JW)(e.theme);return(0,r.U1)(t,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?(0,a.AH)` 22 @keyframes zoomIn { 23 from { 24 opacity: 0; 25 transform: scale(0.95); 26 } 27 to { 28 opacity: 1; 29 transform: scale(1); 30 } 31 } 32 @keyframes fadeIn { 33 from { 34 opacity: 0; 35 } 36 to { 37 opacity: 1; 38 } 39 } 40 41 animation: fadeIn 200ms ease-out; 42 // Animates the dialog card. 43 & > [data-ui='DialogCard'] { 44 animation: zoomIn 200ms ease-out; 45 } 46 `:(0,a.AH)``}),V=(0,a.I4)(r.mc).withConfig({displayName:"DialogContainer",componentId:"sc-4n4xb3-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,L=(0,a.I4)(r.Zp).withConfig({displayName:"DialogCardRoot",componentId:"sc-4n4xb3-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,N=(0,a.I4)(r.so).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,z=(0,a.I4)(r.az).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,F=(0,a.I4)(r.az).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,B=(0,a.I4)(r.az).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,H=(0,o.forwardRef)(function(e,t){let n,a,u,c,d,h,f,p,m,y,b,v,x,w=(0,l.c)(38),{__unstable_autoFocus:k,__unstable_hideCloseButton:S,children:E,contentRef:C,footer:A,header:P,id:T,onClickOutside:R,onClose:M,portal:j,radius:O,scheme:I,shadow:$,width:D}=e,H=(0,r.WP)(),W=j?H.elements?.[j]||null:H.element,U=(0,r.$w)().element,G=(0,r.KC)(O),X=(0,r.KC)($),K=(0,r.KC)(D),Y=(0,o.useRef)(null),q=(0,o.useRef)(null),{isTopLayer:Z}=(0,r.Z4)(),Q=`${T}_label`,J=!!M&&!1===S,ee=!!P||J;return w[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>Y.current,w[0]=n):n=w[0],(0,o.useImperativeHandle)(t,n),w[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>q.current,w[1]=a):a=w[1],(0,o.useImperativeHandle)(C,a),w[2]!==k?(u=()=>{k&&Y.current&&g(Y.current)},c=[k,Y],w[2]=k,w[3]=u,w[4]=c):(u=w[3],c=w[4]),(0,o.useEffect)(u,c),w[5]!==U||w[6]!==Z||w[7]!==M||w[8]!==W?(d=e=>{if(!Z||!M)return;let t=document.activeElement;t&&!_(U,W,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),M())},w[5]=U,w[6]=Z,w[7]=M,w[8]=W,w[9]=d):d=w[9],(0,r.Pm)(d),w[10]!==U||w[11]!==Z||w[12]!==R||w[13]!==W?(h=Z&&R&&(e=>{let t=e.target;t&&!_(U,W,t)||R()}),w[10]=U,w[11]=Z,w[12]=R,w[13]=W,w[14]=h):h=w[14],w[15]===Symbol.for("react.memo_cache_sentinel")?(f=()=>[Y.current],w[15]=f):f=w[15],(0,r.PR)(h,f),w[16]!==P||w[17]!==Q||w[18]!==M||w[19]!==J||w[20]!==ee?(p=ee&&(0,i.jsx)(z,{children:(0,i.jsxs)(r.so,{align:"flex-start",padding:3,children:[(0,i.jsx)(r.az,{flex:1,padding:2,children:P&&(0,i.jsx)(r.EY,{id:Q,size:1,weight:"semibold",children:P})}),J&&(0,i.jsx)(r.az,{flex:"none",children:(0,i.jsx)(r.$n,{"aria-label":"Close dialog",disabled:!M,icon:s.USm,mode:"bleed",onClick:M,padding:2})})]})}),w[16]=P,w[17]=Q,w[18]=M,w[19]=J,w[20]=ee,w[21]=p):p=w[21],w[22]!==E?(m=(0,i.jsx)(F,{flex:1,ref:q,tabIndex:-1,
46children:E}),w[22]=E,w[23]=m):m=w[23],w[24]!==A?(y=A&&(0,i.jsx)(B,{children:A}),w[24]=A,w[25]=y):y=w[25],w[26]!==p||w[27]!==m||w[28]!==y?(b=(0,i.jsxs)(N,{direction:"column",children:[p,m,y]}),w[26]=p,w[27]=m,w[28]=y,w[29]=b):b=w[29],w[30]!==G||w[31]!==I||w[32]!==X||w[33]!==b?(v=(0,i.jsx)(L,{radius:G,ref:Y,scheme:I,shadow:X,children:b}),w[30]=G,w[31]=I,w[32]=X,w[33]=b,w[34]=v):v=w[34],w[35]!==v||w[36]!==K?(x=(0,i.jsx)(V,{"data-ui":"DialogCard",width:K,children:v}),w[35]=v,w[36]=K,w[37]=x):x=w[37],x});H.displayName="ForwardRef(DialogCard)";let W=(0,o.forwardRef)(function(e,t){let n,s,a,u,c,d,h,f,p,y,b,v,x,w,k,S,E,C,A,P,T,R,M,j,O,I,V,L,N=(0,l.c)(60),z=(0,o.useContext)($),{layer:F}=(0,r.M4)();N[0]!==e?({__unstable_autoFocus:k,__unstable_hideCloseButton:S,cardRadius:E,cardShadow:C,children:a,contentRef:u,footer:c,header:d,id:h,onActivate:f,onClickOutside:p,onClose:y,onFocus:b,padding:A,portal:v,position:n,scheme:w,width:P,zOffset:s,animate:T,...x}=e,N[0]=e,N[1]=n,N[2]=s,N[3]=a,N[4]=u,N[5]=c,N[6]=d,N[7]=h,N[8]=f,N[9]=p,N[10]=y,N[11]=b,N[12]=v,N[13]=x,N[14]=w,N[15]=k,N[16]=S,N[17]=E,N[18]=C,N[19]=A,N[20]=P,N[21]=T):(n=N[1],s=N[2],a=N[3],u=N[4],c=N[5],d=N[6],h=N[7],f=N[8],p=N[9],y=N[10],b=N[11],v=N[12],x=N[13],w=N[14],k=N[15],S=N[16],E=N[17],C=N[18],A=N[19],P=N[20],T=N[21]);let B=void 0===k||k,W=void 0!==S&&S,U=void 0===E?4:E,G=void 0===C?3:C,X=void 0===A?3:A,K=void 0===P?0:P,Y=void 0!==T&&T,q=n??(z.position||"fixed"),Z=s??(z.zOffset||F.dialog.zOffset),Q=!(0,r.jt)()&&Y,J=(0,r.WP)(),ee=v?J.elements?.[v]||null:J.element,et=(0,r.$w)().element,en=(0,r.KC)(U),er=(0,r.KC)(X),ei=(0,r.KC)(q),es=(0,r.KC)(K),eo=(0,r.KC)(Z),ea=(0,o.useRef)(null),el=(0,o.useRef)(null),eu=(0,o.useRef)(null),ec=(0,o.useRef)(null);N[22]!==b?(R=e=>{b?.(e);let t=e.target,n=eu.current;return n&&t===ea.current?void m(n):n&&t===el.current?void g(n):void((0,r.sb)(e.target)&&(ec.current=e.target))},N[22]=b,N[23]=R):R=N[23];let ed=R,eh=`${h}_label`,ef=(0,o.useRef)(void 0);N[24]!==et||N[25]!==ee?(M=()=>{ef.current&&clearTimeout(ef.current),ef.current=setTimeout(()=>{let e=document.activeElement;if(e&&!_(et,ee,e)){let e=ec.current;if(!e||!document.body.contains(e)){let e=eu.current;e&&g(e);return}
46e.focus()}},0)},N[24]=et,N[25]=ee,N[26]=M):M=N[26];let ep=M;return N[27]===Symbol.for("react.memo_cache_sentinel")?(j=(0,i.jsx)("div",{ref:ea,tabIndex:0}),N[27]=j):j=N[27],N[28]!==B||N[29]!==en||N[30]!==G||N[31]!==a||N[32]!==u||N[33]!==c||N[34]!==d||N[35]!==W||N[36]!==h||N[37]!==p||N[38]!==y||N[39]!==v||N[40]!==w||N[41]!==es?(O=(0,i.jsx)(H,{__unstable_autoFocus:B,__unstable_hideCloseButton:W,contentRef:u,footer:c,header:d,id:h,onClickOutside:p,onClose:y,portal:v,radius:en,ref:eu,scheme:w,shadow:G,width:es,children:a}),N[28]=B,N[29]=en,N[30]=G,N[31]=a,N[32]=u,N[33]=c,N[34]=d,N[35]=W,N[36]=h,N[37]=p,N[38]=y,N[39]=v,N[40]=w,N[41]=es,N[42]=O):O=N[42],N[43]===Symbol.for("react.memo_cache_sentinel")?(I=(0,i.jsx)("div",{ref:el,tabIndex:0}),N[43]=I):I=N[43],N[44]!==Q||N[45]!==ed||N[46]!==ep||N[47]!==h||N[48]!==eh||N[49]!==f||N[50]!==er||N[51]!==ei||N[52]!==t||N[53]!==x||N[54]!==O||N[55]!==eo?(V=(0,i.jsxs)(D,{...x,$animate:Q,$padding:er,$position:ei,"aria-labelledby":eh,"aria-modal":!0,"data-ui":"Dialog",id:h,onActivate:f,onClick:ep,onFocus:ed,ref:t,role:"dialog",zOffset:eo,children:[j,O,I]}),N[44]=Q,N[45]=ed,N[46]=ep,N[47]=h,N[48]=eh,N[49]=f,N[50]=er,N[51]=ei,N[52]=t,N[53]=x,N[54]=O,N[55]=eo,N[56]=V):V=N[56],N[57]!==v||N[58]!==V?(L=(0,i.jsx)(r.ZL,{__unstable_name:v,children:V}),N[57]=v,N[58]=V,N[59]=L):L=N[59],L});function U(e){let t,n,r=(0,l.c)(6),{children:s,position:o,zOffset:a}=e;r[0]!==o||r[1]!==a?(t={version:0,position:o,zOffset:a},r[0]=o,r[1]=a,r[2]=t):t=r[2];let u=t;return r[3]!==s||r[4]!==u?(n=(0,i.jsx)($.Provider,{value:u,children:s}),r[3]=s,r[4]=u,r[5]=n):n=r[5],n}W.displayName="ForwardRef(Dialog)",U.displayName="DialogProvider";let G=(0,o.forwardRef)(function(e,t){let n,s,a,u,c,d,h,f,p,g,m,y,b,v,x,w,k,S,E,C,A,P,T,R=(0,l.c)(62),{__unstable_disableRestoreFocusOnClose:M,boundaryElement:j,button:O,id:I,menu:$,onClose:_,onOpen:D,placement:V,popoverScheme:L,portal:N,popover:z,popoverRadius:F,preventOverflow:B}=e,H=void 0!==M&&M,W=void 0===N||N,[U,G]=(0,o.useState)(!1),[K,Y]=(0,o.useState)(null),[q,Z]=(0,o.useState)(null);R[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],R[0]=n):n=R[0];let[Q,J]=(0,o.useState)(n),ee=(0,o.useRef)(U);R[1]!==D||R[2]!==U?(s=()=>{D&&U&&!ee.current&&D()},a=[D,U],R[1]=D,R[2]=U,R[3]=s,R[4]=a):(s=R[3],a=R[4]),(0,o.useEffect)(s,a),R[5]!==_||R[6]!==U?(u=()=>{_&&!U&&ee.current&&_()},c=[_,U],R[5]=_,R[6]=U,R[7]=u,R[8]=c):(u=R[7],c=R[8]),(0,o.useEffect)(u,c),R[9]!==U?(d=()=>{ee.current=U},h=[U],R[9]=U,R[10]=d,R[11]=h):(d=R[10],h=R[11]),(0,o.useEffect)(d,h),R[12]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{G(X),Y(null)},R[12]=f):f=R[12];let et=f;R[13]!==U?(p=e=>{U&&e.preventDefault()},R[13]=U,R[14]=p):p=R[14];let en=p;R[15]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),G(!0),Y("first");return}if("ArrowUp"===e.key){e.preventDefault(),G(!0),Y("last");return}},R[15]=g):g=R[15];let er=g;R[16]!==q||R[17]!==Q?(m=e=>{let t=e.target;if(t instanceof Node&&!(q&&(t===q||q.contains(t)))){for(let e of Q)if(t===e||e.contains(t))return;G(!1)}},R[16]=q,R[17]=Q,R[18]=m):m=R[18];let ei=m;R[19]!==q||R[20]!==H?(y=()=>{G(!1),!H&&q&&q.focus()},R[19]=q,R[20]=H,R[21]=y):y=R[21];let es=y;R[22]!==Q?(b=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of Q)if(e===t||e.contains(t))return;G(!1)}},R[22]=Q,R[23]=b):b=R[23];let eo=b;R[24]!==q||R[25]!==H?(v=()=>{G(!1),!H&&q&&q.focus()},R[24]=q,R[25]=H,R[26]=v):v=R[26];let ea=v;R[27]===Symbol.for("react.memo_cache_sentinel")?(x=e=>(J(t=>t.concat([e])),()=>J(t=>t.filter(t=>t!==e))),R[27]=x):x=R[27];let el=x;R[28]!==q||R[29]!==eo||R[30]!==ea||R[31]!==ei||R[32]!==es||R[33]!==I||R[34]!==$||R[35]!==K?(w=$&&(0,o.cloneElement)($,{"aria-labelledby":I,onBlurCapture:eo,onClickOutside:ei,onEscape:es,onItemClick:ea,originElement:q,registerElement:el,shouldFocus:K}),R[28]=q,R[29]=eo,R[30]=ea,R[31]=ei,R[32]=es,R[33]=I,R[34]=$,R[35]=K,R[36]=w):w=R[36];let eu=w;R[37]!==O||R[38]!==en||R[39]!==I||R[40]!==U?(k=O&&(0,o.cloneElement)(O,{"data-ui":"MenuButton",id:I,onClick:et,onKeyDown:er,onMouseDown:en,"aria-haspopup":!0,"aria-expanded":U,ref:Z,selected:O.props.selected??U}),R[37]=O,R[38]=en,R[39]=I,R[40]=U,R[41]=k):k=R[41];let ec=k;R[42]!==q?(S=()=>q,E=[q],R[42]=q,R[43]=S,R[44]=E):(S=R[43],E=R[44]),(0,o.useImperativeHandle)(t,S,E),R[45]!==z?(C=z||{},R[45]=z,R[46]=C):C=R[46],R[47]!==j||R[48]!==V||R[49]!==F||R[50]!==L||R[51]!==W||R[52]!==B||R[53]!==C?(A={boun
46daryElement:j,overflow:"auto",placement:V,portal:W,preventOverflow:B,radius:F,scheme:L,...C},R[47]=j,R[48]=V,R[49]=F,R[50]=L,R[51]=W,R[52]=B,R[53]=C,R[54]=A):A=R[54];let ed=A;return R[55]!==ec?(P=ec||(0,i.jsx)(i.Fragment,{}),R[55]=ec,R[56]=P):P=R[56],R[57]!==eu||R[58]!==U||R[59]!==ed||R[60]!==P?(T=(0,i.jsx)(r.AM,{"data-ui":"MenuButton__popover",...ed,content:eu,open:U,children:P}),R[57]=eu,R[58]=U,R[59]=ed,R[60]=P,R[61]=T):T=R[61],T});function X(e){return!e}G.displayName="ForwardRef(MenuButton)";let K=(0,a.i7)` 47 0% { 48 background-position: 100%; 49 } 50 100% { 51 background-position: -100%; 52 } 53`,Y=(0,a.AH)` 54 background-image: linear-gradient( 55 to right, 56 var(--card-skeleton-color-from), 57 var(--card-skeleton-color-to), 58 var(--card-skeleton-color-from), 59 var(--card-skeleton-color-from), 60 var(--card-skeleton-color-from) 61 ); 62 background-position: 100%; 63 background-size: 200% 100%; 64 background-attachment: fixed; 65 animation-name: ${K}; 66 animation-timing-function: ease-in-out; 67 animation-iteration-count: infinite; 68 animation-duration: 2000ms; 69`,q=(0,a.AH)` 70 opacity: ${({$visible:e})=>+!!e}; 71 transition: opacity 200ms ease-in; 72 73 @media screen and (prefers-reduced-motion: no-preference) { 74 ${({$animated:e})=>e?Y:(0,a.AH)` 75 background-color: var(--card-skeleton-color-from); 76 `} 77 } 78 79 @media screen and (prefers-reduced-motion: reduce) { 80 background-color: var(--card-skeleton-color-from); 81 } 82`,Z=(0,a.I4)(r.az).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(r.gK,q),Q=(0,o.forwardRef)(function(e,t){let n,s,a,u,c,d,h,f=(0,l.c)(14);f[0]!==e?({animated:u,delay:n,radius:s,...a}=e,f[0]=e,f[1]=n,f[2]=s,f[3]=a,f[4]=u):(n=f[1],s=f[2],a=f[3],u=f[4]);let p=void 0!==u&&u,[g,m]=(0,o.useState)(!n);f[5]!==n?(c=()=>{if(!n)return m(!0);let e=setTimeout(()=>{m(!0)},n);return()=>{clearTimeout(e)}},d=[n],f[5]=n,f[6]=c,f[7]=d):(c=f[6],d=f[7]),(0,o.useEffect)(c,d);let y=(0,r.KC)(s);return f[8]!==p||f[9]!==t||f[10]!==a||f[11]!==y||f[12]!==g?(h=(0,i.jsx)(Z,{...a,$animated:p,$radius:y,$visible:g,ref:t}),f[8]=p,f[9]=t,f[10]=a,f[11]=y,f[12]=g,f[13]=h):h=f[13],h});Q.displayName="ForwardRef(Skeleton)";let J=(0,a.I4)(Q).withConfig({displayName:"StyledSkeleton",componentId:"sc-2p7a1v-0"})(e=>{let{$size:t,$style:n}=e,{font:i,media:s}=(0,u.JW)(e.theme),o=i[n];return(0,r.U1)(s,t,e=>{let t=o.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})}),ee=(0,o.forwardRef)(function(e,t){let n,s,o,a=(0,l.c)(7);a[0]!==e?({size:s,...n}=e,a[0]=e,a[1]=n,a[2]=s):(n=a[1],s=a[2]);let u=(0,r.KC)(void 0===s?2:s);return a[3]!==u||a[4]!==t||a[5]!==n?(o=(0,i.jsx)(J,{...n,$size:u,ref:t,$style:"text"}),a[3]=u,a[4]=t,a[5]=n,a[6]=o):o=a[6],o});ee.displayName="ForwardRef(TextSkeleton)",(0,o.forwardRef)(function(e,t){let n,s,o,a=(0,l.c)(7);a[0]!==e?({size:s,...n}=e,a[0]=e,a[1]=n,a[2]=s):(n=a[1],s=a[2]);let u=(0,r.KC)(void 0===s?2:s);return a[3]!==u||a[4]!==t||a[5]!==n?(o=(0,i.jsx)(J,{...n,$size:u,ref:t,$style:"label"}),a[3]=u,a[4]=t,a[5]=n,a[6]=o):o=a[6],o}).displayName="ForwardRef(LabelSkeleton)",(0,o.forwardRef)(function(e,t){let n,s,o,a=(0,l.c)(7);a[0]!==e?({size:s,...n}=e,a[0]=e,a[1]=n,a[2]=s):(n=a[1],s=a[2]);let u=(0,r.KC)(void 0===s?2:s);return a[3]!==u||a[4]!==t||a[5]!==n?(o=(0,i.jsx)(J,{...n,$size:u,ref:t,$style:"heading"}),a[3]=u,a[4]=t,a[5]=n,a[6]=o):o=a[6],o}).displayName="ForwardRef(HeadingSkeleton)",(0,o.forwardRef)(function(e,t){let n,s,o,a=(0,l.c)(7);a[0]!==e?({size:s,...n}=e,a[0]=e,a[1]=n,a[2]=s):(n=a[1],s=a[2]);let u=(0,r.KC)(void 0===s?2:s);return a[3]!==u||a[4]!==t||a[5]!==n?(o=(0,i.jsx)(J,{...n,$size:u,ref:t,$style:"code"}),a[3]=u,a[4]=t,a[5]=n,a[6]=o):o=a[6],o}).displayName="ForwardRef(CodeSkeleton)";let et=(0,o.forwardRef)(function(e,t){let n,s,o,a=(0,l.c)(9);a[0]!==e?({flex:n,...s}=e,a[0]=e,a[1]=n,a[2]=s):(n=a[1],s=a[2]);let u=void 0===e.tabIndex?0:e.tabIndex;return a[3]!==n||a[4]!==e.children||a[5]!==t||a[6]!==s||a[7]!==u?(o=(0,i.jsx)(r.az,{"data-ui":"TabPanel",...s,flex:n,ref:t,role:"tabpanel",tabIndex:u,children:e.children}),a[3]=n,a[4]=e.children,a[5]=t,a[6]=s,a[7]=u,a[8]=o):o=a[8],o});et.displayName="ForwardRef(TabPanel)";
82let en={error:"critical",warning:"caution",success:"positive",info:"neutral"},er={error:"critical",warning:"caution",success:"positive",info:"neutral"},ei=(0,a.I4)(r.so).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`,es=(0,a.I4)(r.Zp).withConfig({displayName:"StyledToast",componentId:"sc-1rr7rxo-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,eo=a.I4.div.withConfig({displayName:"LoadingBar",componentId:"sc-1rr7rxo-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`,ea=(0,a.I4)(r.Zp).withConfig({displayName:"LoadingBarMask",componentId:"sc-1rr7rxo-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`,el=(0,a.I4)(r.Zp).withConfig({displayName:"LoadingBarProgress",componentId:"sc-1rr7rxo-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:t}=(0,u.JW)(e.theme);return t.button.default[e.tone].enabled.bg}};`,eu={error:"alert",warning:"alert",success:"alert",info:"alert"};function ec(e){let t,n,o,a,u,c,d,h,f,p,g,m,y,b,v,x,w,k,S,E,C=(0,l.c)(50);C[0]!==e?({closable:t,description:n,duration:o,onClose:a,radius:d,title:h,status:c,updatedAt:f,...u}=e,C[0]=e,C[1]=t,C[2]=n,C[3]=o,C[4]=a,C[5]=u,C[6]=c,C[7]=d,C[8]=h,C[9]=f):(t=C[1],n=C[2],o=C[3],a=C[4],u=C[5],c=C[6],d=C[7],h=C[8],f=C[9]);let A=void 0===d?3:d,P=c?en[c]:"default",T=c?er[c]:"default",R=c?eu[c]:"status",M=.26*!(0,r.jt)();C[10]!==M?(p=M?{type:"spring",visualDuration:M,bounce:.25}:{duration:0},C[10]=M,C[11]=p):p=C[11];let j=p,O=o&&isFinite(o)&&o<20736e5;C[12]===Symbol.for("react.memo_cache_sentinel")?(g=["hidden","initial"],C[12]=g):g=C[12];let I=g;C[13]===Symbol.for("react.memo_cache_sentinel")?(m=["visible","slideIn"],C[13]=m):m=C[13];let $=m;C[14]===Symbol.for("react.memo_cache_sentinel")?(y=["hidden","slideOut"],C[14]=y):y=C[14];let _=y,D=O?"":void 0;return C[15]!==h?(b=h&&(0,i.jsx)(r.EY,{size:1,weight:"medium",children:h}),C[15]=h,C[16]=b):b=C[16],C[17]!==n||C[18]!==j?(v=n&&(0,i.jsx)(eg,{muted:!0,size:1,variants:eh,transition:j,children:n}),C[17]=n,C[18]=j,C[19]=v):v=C[19],C[20]!==b||C[21]!==v?(x=(0,i.jsx)(ei,{flex:1,padding:3,children:(0,i.jsxs)(r.BJ,{space:3,children:[b,v]})}),C[20]=b,C[21]=v,C[22]=x):x=C[22],C[23]!==T||C[24]!==t||C[25]!==a?(w=t&&(0,i.jsx)(r.az,{padding:1,children:(0,i.jsx)(r.$n,{as:"button",icon:s.USm,mode:"bleed",padding:2,tone:T,onClick:a,style:{verticalAlign:"top"}})}),C[23]=T,C[24]=t,C[25]=a,C[26]=w):w=C[26],C[27]!==x||C[28]!==w||C[29]!==j?(k=(0,i.jsxs)(ep,{align:"flex-start",variants:eh,transition:j,children:[x,w]}),C[27]=x,C[28]=w,C[29]=j,C[30]=k):k=C[30],C[31]!==P||C[32]!==o||C[33]!==O||C[34]!==a||C[35]!==A||C[36]!==j||C[37]!==f||C[38]!==M?(S=O&&(0,i.jsxs)(em,{variants:eh,transition:j,children:[(0,i.jsx)(ea,{tone:P,radius:A}),(0,i.jsx)(ey,{tone:P,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:M,duration:o/1e3,ease:"linear"},onAnimationComplete:a},`progress-${f}`)]}),C[31]=P,C[32]=o,C[33]=O,C[34]=a,C[35]=A,C[36]=j,C[37]=f,C[38]=M,C[39]=S):S=C[39],C[40]!==P||C[41]!==A||C[42]!==u||C[43]!==R||C[44]!==k||C[45]!==S||C[46]!==D||C[47]!==j||C[48]!==M?(E=(0,i.jsxs)(ef,{"data-ui":"Toast",role:R,...u,"data-has-duration":D,custom:M,radius:A,shadow:2,tone:P,forwardedAs:"li",layout:"position",variants:ed,initial:I,animate:$,exit:_,transition:j,children:[k,S]}),C[40]=P,C[41]=A,C[42]=u,C[43]=R,C[44]=k,C[45]=S,C[46]=D,C[47]=j,C[48]=M,C[49]=E):E=C[49],E}ec.displayName="Toast";let ed={initial:{y:32,scale:.5,zIndex:1},hidden:{opacity:0},visible:e=>e?{opacity:1,transition:{when:"beforeChildren",staggerChildren:e/3,duration:e/3}}:{opacity:1},slideIn:{y:0,scale:1},slideOut:{zIndex:0,scale:.75}},eh={initial:{willChange:"transform"},hidden:{opacity:0},visible:{opacity:1}},ef=c.PY1.create(es),ep=c.PY1.create(r.so),eg=c.PY1.create(r.EY),em=c.PY1.create(eo),ey=c.PY1.create(el);function eb(){return!1}function ev(){return!0}let ex=()=>()=>{},ew=(0,r.bz)("@sanity/ui/context/toast",null);function ek(e){let t,n,s=(0,l.c)(9),{children:o,padding:a,paddingX:u,paddingY:c,gap:d}=e,h=void 0===a?4:a,f=void 0===d?3:d,{zIndex:p}=(0,r.Z4)();return s[0]!==p?(t={zIndex:p},s[0]=p,s[1]=t):t=s[1],s[2]!==o||s[3]!==f||s[4]!==h||s[5]!==u||s[6]!==c||s[7]!==t?(n=(0,i.jsx)(eS,{forwardedAs:"ul","data-ui":"ToastProvider",padding:h,paddingX:u,paddingY:c,gap:f,columns:1,style:t,children:o}),s[2]=o,s[3]=f,s[4]=h,s[5]=u,s[6]=c,s[7]=t,s[8]=n):n=s[8],n}ek.displayName="ToastLayer";let eS=(0,a.I4)(r.xA).withConfig({displayName:"StyledLayer",componentId:"sc-1tbwn58-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`,eE=0;function eC(e){let t,n,s,a,u=(0,l.c)(13),{children:c,padding:h,paddingX:f,paddingY:p,gap:g,zOffset:m}=e,y=void 0===m?1:m;u[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],u[0]=t):t=u[0];let[b,v]=(0,o.useState)(t),x=(0,o.useSyncExternalStore)(ex,ev,eb);u[1]===Symbol.for("react.memo_cache_sentinel")?(n={version:0,push:e=>{let t=e.id||String(eE++),n=e.duration||5e3;return(0,o.startTransition)(()=>{v(r=>.01===n?r.filter(e=>e.id!==t):[...r.filter(e=>e.id!==t),{dismiss:()=>(0,o.startTransition)(()=>v(e=>e.filter(e=>e.id!==t))),id:t,updatedAt:Date.now(),params:{...e,duration:n}}])}),t}},u[1]=n):n=u[1];let w=n;return u[2]!==g||u[3]!==x||u[4]!==h||u[5]!==f||u[6]!==p||u[7]!==b||u[8]!==y?(s=x&&(0,i.jsx)(r.XS,{zOffset:y,children:(0,i.jsx)(ek,{padding:h,paddingX:f,paddingY:p,gap:g,children:(0,i.jsx)(d.N,{initial:!1,mode:"popLayout",children:b.map(eA)})})}),u[2]=g,u[3]=x,u[4]=h,u[5]=f,u[6]=p,u[7]=b,u[8]=y,u[9]=s):s=u[9],u[10]!==c||u[11]!==s?(a=(0,i.jsxs)(ew.Provider,{value:w,children:[c,s]}),u[10]=c,u[11]=s,u[12]=a):a=u[12],a}function eA(e){let{dismiss:t,id:n,params:r,updatedAt:s}=e;
82return(0,i.jsx)(ec,{closable:r.closable,description:r.description,onClose:t,status:r.status,title:r.title,duration:r.duration,updatedAt:s},n)}function eP(){let e=(0,o.useContext)(ew);if(!e)throw Error("useToast(): missing context value");if(!(0,r.u4)(e)||0!==e.version)throw Error("useToast(): the context value is not compatible");return e}function eT(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}eC.displayName="ToastProvider";let eR=(0,r.bz)("@sanity/ui/context/tree",null);function eM(){let e=(0,o.useContext)(eR);if(!e)throw Error("Tree: missing context value");return e}(0,o.memo)((0,o.forwardRef)(function(e,t){let n,s,a,u,c,d,h,f,p,g,m,y,b,v,x,w,k,S,E,C,A,P=(0,l.c)(37);P[0]!==e?({children:n,space:u,onFocus:s,...a}=e,P[0]=e,P[1]=n,P[2]=s,P[3]=a,P[4]=u):(n=P[1],s=P[2],a=P[3],u=P[4]);let T=void 0===u?1:u,R=(0,o.useRef)(null),[M,j]=(0,o.useState)(null),O=(0,o.useRef)(M);P[5]===Symbol.for("react.memo_cache_sentinel")?(c=[],P[5]=c):c=P[5];let I=c;P[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],P[6]=d):d=P[6];let[$,_]=(0,o.useState)(d);P[7]===Symbol.for("react.memo_cache_sentinel")?(h={},P[7]=h):h=P[7];let[D,V]=(0,o.useState)(h),L=(0,o.useRef)(D);P[8]===Symbol.for("react.memo_cache_sentinel")?(f=()=>R.current,P[8]=f):f=P[8],(0,o.useImperativeHandle)(t,f),P[9]!==M?(p=()=>{O.current=M},g=[M],P[9]=M,P[10]=p,P[11]=g):(p=P[10],g=P[11]),(0,o.useEffect)(p,g),P[12]!==D?(m=()=>{L.current=D},y=[D],P[12]=D,P[13]=m,P[14]=y):(m=P[13],y=P[14]),(0,o.useEffect)(m,y),P[15]===Symbol.for("react.memo_cache_sentinel")?(b=(e,t,n,r)=>(V(r=>({...r,[t]:{element:e,expanded:n}})),r&&j(e),()=>{V(e=>{let n={...e};return delete n[t],n})}),P[15]=b):b=P[15];let N=b;P[16]===Symbol.for("react.memo_cache_sentinel")?(v=(e,t)=>{V(n=>{let r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},P[16]=v):v=P[16];let z=v,F=M||$[0]||null;P[17]!==T||P[18]!==D||P[19]!==F?(x={version:0,focusedElement:F,level:0,path:I,registerItem:N,setExpanded:z,setFocusedElement:j,space:T,state:D},P[17]=T,P[18]=D,P[19]=F,P[20]=x):x=P[20];let B=x;P[21]!==$?(w=e=>{if(O.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(r),s=t.length;for(let t=1;t<s;t+=1){if(!i[t])continue;let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let s=[],o=!0;for(let t=0;t<r.length;t+=1){s.push(r[t]);let n=s.join("/");if(!e[n]?.expanded){o=!1;break}}if(o)return i[t]}return null}(L.current,$,O.current);t&&(eT(t),j(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(0,r),s=i.length;for(let t=s-1;t>=0;t-=1){let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let s=[],o=!0;for(let t=0;t<r.length;t+=1){s.push(r[t]);let n=s.join("/");if(!e[n]?.expanded){o=!1;break}}if(o)return i[t]}return null}(L.current,$,O.current);t&&(eT(t),j(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=O.current.getAttribute("data-tree-key");if(!t)return;let n=L.current[t];if(!n)return;if(n.expanded)V(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),r=n&&L.current[n];r&&(r.element.focus(),j(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=O.current.getAttribute("data-tree-key");if(!t)return;L.current[t]?.expanded||V(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},P[21]=$,P[22]=w):w=P[22];let H=w;P[23]!==s?(k=e=>{j(e.target),s?.(e)},P[23]=s,P[24]=k):k=P[24];let W=k;return P[25]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{R.current&&_(Array.from(R.current.querySelectorAll('[data-ui="TreeItem"]')))},P[25]=S):S=P[25],P[26]!==n?(E=[n],P[26]=n,P[27]=E):E=P[27],(0,o.useEffect)(S,E),P[28]!==n||P[29]!==W||P[30]!==H||P[31]!==a||P[32]!==T?(C=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"Tree",...a,onFocus:W,onKeyDown:H,ref:R,role:"tree",space:T,children:n}),P[28]=n,P[29]=W,P[30]=H,P[31]=a,P[32]=T,P[33]=C):C=P[33],P[34]!==B||P[35]!==C?(A=(0,i.jsx)(eR.Provider,{value:B,children:C}),P[34]=B,P[35]=C,P[36]=A):A=P[36],A})).displayName="Memo(ForwardRef(Tree))";let ej=(0,o.memo)(function(e){let t,n,s,o,a=(0,l.c)(9);a[0]!==e?({children:t,expanded:s,...n}=e,a[0]=e,a[1]=t,a[2]=n,a[3]=s):(t=a[1],n=a[2],s=a[3]);let u=void 0!==s&&s,c=eM(),d=!u;
82return a[4]!==t||a[5]!==n||a[6]!==d||a[7]!==c.space?(o=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"TreeGroup",...n,hidden:d,marginTop:c.space,role:"group",space:c.space,children:t}),a[4]=t,a[5]=n,a[6]=d,a[7]=c.space,a[8]=o):o=a[8],o}),eO=(0,o.memo)(a.I4.li.withConfig({displayName:"StyledTreeItem",componentId:"sc-iiskig-0"})(function(){return(0,a.AH)` 83 &[role='none'] > [role='treeitem'] { 84 outline: none; 85 cursor: default; 86 border-radius: 3px; 87 88 background-color: var(--card-bg-color); 89 color: var(--treeitem-fg-color); 90 91 &:focus { 92 position: relative; 93 } 94 } 95 96 &[role='treeitem'] { 97 outline: none; 98 99 & > div { 100 cursor: default; 101 border-radius: 3px; 102 103 background-color: var(--card-bg-color); 104 color: var(--treeitem-fg-color); 105 } 106 107 &:focus > div { 108 position: relative; 109 } 110 } 111 `},function(e){let{color:t}=(0,u.JW)(e.theme),n=t.selectable.default;return(0,a.AH)` 112 &[role='none'] { 113 & > [role='treeitem'] { 114 ${(0,r.g5)(t,n.enabled)} 115 } 116 117 &[data-selected] > [role='treeitem'] { 118 ${(0,r.g5)(t,n.pressed)} 119 } 120 121 @media (hover: hover) { 122 &:not([data-selected]) > [role='treeitem']:not(:focus):hover { 123 ${(0,r.g5)(t,n.hovered)} 124 } 125 126 & > [role='treeitem']:focus { 127 ${(0,r.g5)(t,n.selected)} 128 } 129 } 130 } 131 132 &[role='treeitem'] { 133 & > [data-ui='TreeItem__box'] { 134 ${(0,r.g5)(t,n.enabled)} 135 } 136 137 &[data-selected] > [data-ui='TreeItem__box'] { 138 ${(0,r.g5)(t,n.pressed)} 139 } 140 141 @media (hover: hover) { 142 &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover { 143 ${(0,r.g5)(t,n.hovered)} 144 } 145 146 &:focus > [data-ui='TreeItem__box'] { 147 ${(0,r.g5)(t,n.selected)} 148 } 149 } 150 } 151 `})),eI=(0,a.I4)(r.az).attrs({forwardedAs:"a"}).withConfig({displayName:"TreeItemBox",componentId:"sc-iiskig-1"})(function(e){let{$level:t}=e,{space:n}=(0,u.JW)(e.theme);return(0,a.AH)` 152 padding-left: ${(0,r.D0)(n[2]*t)}; 153 154 &[data-as='a'] { 155 text-decoration: none; 156 } 157 `}),e$=(0,a.I4)(r.EY).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;(0,o.memo)(function(e){let{children:t,expanded:n=!1,fontSize:a=1,href:l,icon:u,id:c,linkAs:d,muted:h,onClick:f,padding:p=2,selected:g=!1,space:m=2,text:y,weight:b,...v}=e,x=(0,o.useRef)(null),w=(0,o.useRef)(null),k=eM(),{path:S,registerItem:E,setExpanded:C,setFocusedElement:A}=k,P=(0,o.useId)(),T=c||P,R=(0,o.useMemo)(()=>S.concat([T||""]),[T,S]),M=R.join("/"),j=k.state[M],O=k.focusedElement===x.current,I=j?.expanded===void 0?n:j?.expanded||!1,$=k.focusedElement&&k.focusedElement===x.current?0:-1,_=(0,o.useMemo)(()=>({...k,level:k.level+1,path:R}),[R,k]),D=(0,o.useCallback)(e=>{f&&f(e);let t=e.target;t instanceof HTMLElement&&("TreeItem"===t.getAttribute("data-ui")||t.closest('[data-ui="TreeItem__box"]'))&&(e.stopPropagation(),C(M,!I),A(x.current))},[I,M,f,C,A]),V=(0,o.useCallback)(e=>{O&&"Enter"===e.key&&(w.current||x.current)?.click()},[O]);(0,o.useEffect)(()=>{if(x.current)return E(x.current,R.join("/"),I,g)},[I,R,E,g]);let L=(0,i.jsxs)(r.so,{padding:p,children:[(0,i.jsxs)(r.az,{marginRight:m,style:{visibility:u||t?"visible":"hidden",pointerEvents:"none"},children:[u&&(0,i.jsx)(r.EY,{muted:h,size:a,weight:b,children:(0,i.jsx)(u,{})}),!u&&(0,i.jsx)(e$,{muted:h,size:a,weight:b,children:(0,i.jsx)(s.nVd,{style:{transform:I?"rotate(90deg)":void 0}})})]}),(0,i.jsx)(r.az,{flex:1,children:(0,i.jsx)(r.EY,{muted:h,size:a,textOverflow:"ellipsis",weight:b,children:y})})]});return l?(0,i.jsxs)(eO,{"data-selected":g?"":void 0,"data-tree-id":T,"data-tree-key":M,"data-ui":"TreeItem",...v,onClick:D,ref:x,role:"none",children:[(0,i.jsx)(eI,{$level:k.level,"aria-expanded":I,as:d,"data-ui":"TreeItem__box",href:l,ref:w,role:"treeitem",tabIndex:$,children:L}),(0,i.jsx)(eR.Provider,{value:_,children:t&&(0,i.jsx)(ej,{hidden:!I,children:t})})]}):(0,i.jsxs)(eO,{"data-selected":g?"":void 0,"data-ui":"TreeItem","data-tree-id":T,"data-tree-key":M,...v,"aria-expanded":I,onClick:D,onKeyDown:V,ref:x,role:"treeitem",tabIndex:$,children:[(0,i.jsx)(eI,{$level:k.level,as:"div","data-ui":"TreeItem__box",children:L}),(0,i.jsx)(eR.Provider,{value:_,children:t&&(0,i.jsx)(ej,{expanded:I,children:t})})]})}).displayName="Memo(TreeItem)"},59686:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(12115).createContext)(null)},60178:(e,t,n)=>{"use strict";function r(e){let t;return()=>(void 0===t&&(t=e()),t)}n.d(t,{p:()=>r})},60296:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(12115).createContext)({})},61306:(e,t,n)=>{"use strict";n.d(t,{PY1:()=>i});var r=n(1206);n(11660);let i=r.P},63946:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,q:()=>d});var r=n(78617),i=n(73934);let s=new Set,o=!1,a=!1,l=!1;function u(){if(a){let e=Array.from(s).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
157t.forEach(e=>{let t=(0,r.W9)(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)})}a=!1,o=!1,s.forEach(e=>e.complete(l)),s.clear()}function c(){s.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(a=!0)})}function d(){l=!0,c(),u(),l=!1}class h{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?(s.add(this),o||(o=!0,i.Gt.read(c),i.Gt.resolveKeyframes(u))):(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])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),s.delete(this)}cancel(){"scheduled"===this.state&&(s.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},65181:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e&&"applyToOptions"in e}n.d(t,{W:()=>r})},65752:(e,t,n)=>{"use strict";n.d(t,{BX:()=>I,vK:()=>O,lr:()=>j});var r=n(27290),i=n(23863),s=n(15075),o=n(8453),a=n(63946),l=n(82617),u=n(87913),c=n(38358),d=n(27424),h=n(39622),f=n(22039),p=n(24888),g=n(82264),m=n(55389),y=n(20091),b=n(12205);let v=[...y.T,m.y,p.f];var x=n(33182);let w=new WeakMap;var k=n(28033),S=n(40479);let E={current:null},C={current:!1},A="undefined"!=typeof window;var P=n(10883),T=n(73934);let R=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],M={};function j(e){M=e}function O(){return M}class I{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:s,visualState:o},l={}){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=a.h,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=d.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,T.Gt.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=(0,k.e)(t),this.isVariantNode=(0,k.O)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:h,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in f){let t=f[e];void 0!==u[e]&&(0,x.S)(t)&&t.set(u[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,w.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.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(C.current||function(){if(C.current=!0,A)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>E.current=e.matches;e.addEventListener("change",t),t()}else E.current=!1}(),this.shouldReduceMotion=E.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(),(0,T.WG)(this.notifyUpdate),(0,T.WG)(this.render),this.valueSubscriptions.forEach(e
157=>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&&u.M.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:i,times:s,ease:o,duration:a}=t.accelerate,u=new l.m({element:this.current,name:e,keyframes:i,times:s,ease:o,duration:(0,r.f)(a)}),c=n(u);this.valueSubscriptions.set(e,()=>{c(),u.cancel()});return}let i=S.f.has(e);i&&this.onBindTransform&&this.onBindTransform();let s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&T.Gt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{s(),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 M){let t=M[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):(0,h.ge)()}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<R.length;t++){let n=R[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((0,x.S)(i))e.addValue(r,i);else if((0,x.S)(s))e.addValue(r,(0,f.OQ)(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,(0,f.OQ)(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=(0,f.OQ)(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];if(null!=n){if("string"==typeof n&&((0,i.i)(n)||(0,s.$)(n)))n=parseFloat(n);else{let r;r=n,!v.find((0,b.w)(r))&&p.f.test(t)&&(n=(0,g.J)(e,t))}this.setBaseTarget(e,(0,x.S)(n)?n.get():n)}return(0,x.S)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,P.a)(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||(0,x.S)(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 o.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){c.k.render(this.render)}}},67367:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},68311:(e,t,n)=>{"use strict";var r,i,s=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>
157{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{$dispatcherGuard:()=>E,$makeReadOnly:()=>A,$reset:()=>C,$structuralCheck:()=>j,c:()=>v,clearRenderCounterRegistry:()=>T,renderCounterRegistry:()=>P,useRenderCounter:()=>R}),e.exports=d(o({},"__esModule",{value:!0}),h);var f=((e,t,n)=>(n=null!=e?s(u(e)):{},d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(12115)),{useRef:p,useEffect:g,isValidElement:m}=f,y=null!=(r=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(i=f.__COMPILER_RUNTIME)?void 0:i.c)?f.__COMPILER_RUNTIME.c:function(e){return f.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=b;return t[b]=!0,t},[])},x={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{x[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 w=null;function k(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null!=w)return w.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var S=[];function E(e){let t=y.ReactCurrentDispatcher.current;if(0===e){if(S.push(t),1===S.length&&(w=t),t===x)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.");k(x)}else if(1===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===S.length&&(w=null),k(e)}else if(2===e)S.push(t),k(w);else if(3===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function C(e){for(let t=0;t<e.length;t++)e[t]=b}function A(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var P=new Map;function T(){for(let e of P.values())e.forEach(e=>{e.count=0})}function R(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=P.get(e))&&(n=new Set,P.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=P.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var M=new Set;function j(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}`;M.has(l)||(M.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)){if(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(m(t)||m(n))m(t)!==m(n)?o(`type ${m(t)?"React element":"object"}`,`type ${m(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}
157`,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)}},68381:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case s:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=s,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===s},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},68894:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(31739);let i={test:(0,n(23919).$)("#"),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:r.B.transform}},69096: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}},70189:(e,t,n)=>{"use strict";n.d(t,{tb:()=>U});var r,i,s=[],o="ResizeObserver loop completed with undelivered notifications.",a=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var l=function(e){return Object.freeze(e)},u=function(e,t){this.inlineSize=e,this.blockSize=t,l(this)},c=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,l(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},h=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)},f=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},p=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;
157case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g="undefined"!=typeof window?window:{},m=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,v=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),x=function(e){return parseFloat(e||"0")},w=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new u((n?t:e)||0,(n?e:t)||0)},k=l({devicePixelContentBoxSize:w(),borderBoxSize:w(),contentBoxSize:w(),contentRect:new c(0,0,0,0)}),S=function(e,t){if(void 0===t&&(t=!1),m.has(e)&&!t)return m.get(e);if(h(e))return m.set(e,k),k;var n=getComputedStyle(e),r=d(e)&&e.ownerSVGElement&&e.getBBox(),i=!v&&"border-box"===n.boxSizing,s=b.test(n.writingMode||""),o=!r&&y.test(n.overflowY||""),a=!r&&y.test(n.overflowX||""),u=r?0:x(n.paddingTop),f=r?0:x(n.paddingRight),p=r?0:x(n.paddingBottom),g=r?0:x(n.paddingLeft),S=r?0:x(n.borderTopWidth),E=r?0:x(n.borderRightWidth),C=r?0:x(n.borderBottomWidth),A=r?0:x(n.borderLeftWidth),P=g+f,T=u+p,R=A+E,M=S+C,j=a?e.offsetHeight-M-e.clientHeight:0,O=o?e.offsetWidth-R-e.clientWidth:0,I=r?r.width:x(n.width)-(i?P+R:0)-O,$=r?r.height:x(n.height)-(i?T+M:0)-j,_=I+P+O+R,D=$+T+j+M,V=l({devicePixelContentBoxSize:w(Math.round(I*devicePixelRatio),Math.round($*devicePixelRatio),s),borderBoxSize:w(_,D,s),contentBoxSize:w(I,$,s),contentRect:new c(g,u,I,$)});return m.set(e,V),V},E=function(e,t,n){var i=S(e,n),s=i.borderBoxSize,o=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return s;default:return o}},C=function(e){var t=S(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=l([t.borderBoxSize]),this.contentBoxSize=l([t.contentBoxSize]),this.devicePixelContentBoxSize=l([t.devicePixelContentBoxSize])},A=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},P=function(){var e=1/0,t=[];s.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new C(t.target),i=A(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},T=function(e){s.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(A(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},R=function(){var e=0;for(T(0);s.some(function(e){return e.activeTargets.length>0});)T(e=P());return s.some(function(e){return e.skippedTargets.length>0})&&a(),e>0},M=[],j=function(e){if(!i){var t=0,n=document.createTextNode("");new MutationObserver(function(){return M.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}M.push(e),i()},O=function(e){j(function(){requestAnimationFrame(e)})},I=0,$={attributes:!0,characterData:!0,childList:!0,subtree:!0},_=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],D=function(e){return void 0===e&&(e=0),Date.now()+e},V=!1,L=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),!V){V=!0;var n=D(e);O(function(){var r=!1;try{r=R()}finally{if(V=!1,e=n-D(),!I)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,$)};document.body?t():g.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),_.forEach(function(t){return g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),_.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),N=function(e){!I&&e>0&&L.start(),(I+=e)||L.stop()},z=function(){function e(e,t){this.target=e,this.observedBox=t||r.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)||p(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),F=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},B=new WeakMap,H=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},W=function(){function e(){}return e.connect=function(e,t){var n=new F(e,t);B.set(e,n)},e.observe=function(e,t,n){var r=B.get(e),i=0===r.observationTargets.length;0>H(r.observationTargets,t)&&(i&&s.push(r),r.observationTargets.push(new z(t,n&&n.box)),N(1),L.schedule())},e.unobserve=function(e,t){var n=B.get(e),r=H(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&s.splice(s.indexOf(n),1),n.observationTargets.splice(r,1),N(-1))},e.disconnect=function(e){var t=this,n=B.get(e);
157n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),U=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.");W.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(!f(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.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(!f(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},71624:(e,t,n)=>{var r=n(38208),i=n(57716),s=n(79608);e.exports=function(e){return i(e)?s(e):r(e)}},73142:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});let r=e=>"object"==typeof e&&null!==e},73423:(e,t,n)=>{e.exports=n(51483).Symbol},73934:(e,t,n)=>{"use strict";n.d(t,{Gt:()=>i,PP:()=>a,WG:()=>s,uv:()=>o});var r=n(6500);let{schedule:i,cancel:s,state:o,steps:a}=(0,n(44300).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},75601:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>s});var r=n(12115),i=n(59686);function s(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:o,register:a}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return a(l)},[e]);let u=(0,r.useCallback)(()=>e&&o&&o(l),[l,o,e]);return!n&&o?[!1,u]:[!0]}},76066:(e,t,n)=>{"use strict";n.d(t,{x:()=>s});var r=n(33182),i=n(93709);function s(e,t,n){let s=e.style,o=t?.style,a={};if(!s)return a;for(let t in s)((0,r.S)(s[t])||o&&(0,r.S)(o[t])||(0,i.zK)(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=s[t]);return a}},78041:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,V:()=>i}),n(87358);let r=()=>{},i=()=>{}},78617:(e,t,n)=>{"use strict";n.d(t,{E4:()=>a,Hr:()=>d,W9:()=>c});var r=n(37899),i=n(40479),s=n(37822),o=n(92419);let a=e=>e===s.ai||e===o.px,l=new Set(["x","y","z"]),u=i.U.filter(e=>!l.has(e));function c(e){let t=[];return u.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}let d={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})=>(0,r.ry)(t,"x"),y:(e,{transform:t})=>(0,r.ry)(t,"y")};d.translateX=d.x,d.translateY=d.y},79608: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)||[]}},80276:(e,t,n)=>{var r=n(85309),i=n(32438),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
1577f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(s,r).replace(o,"")}},80942:(e,t,n)=>{var r=n(73423),i=n(35443),s=n(58840),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)}},81288:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(24888),i=n(24531);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(i.S)||[];if(!r)return e;let o=n.replace(r,""),a=+!!s.has(t);return r!==n&&(a*=100),t+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...r.f,getAnimatableNone:e=>{let t=e.match(a);return t?t.map(o).join(" "):e}}},81402:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(73142);function i(e){return(0,r.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},81666:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});let r=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},82264:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(24888),i=n(81288),s=n(83370),o=n(98387);let a=new Set([i.p,s.d]);function l(e,t){let n=(0,o.D)(e);return a.has(n)||(n=r.f),n.getAnimatableNone?n.getAnimatableNone(t):void 0}},82617:(e,t,n)=>{"use strict";n.d(t,{m:()=>v});var r=n(78041),i=n(27290),s=n(6500),o=n(46934),a=n(60178);let l={};function u(e,t){let n=(0,a.p)(e);return()=>l[t]??n()}let c=u(()=>void 0!==window.ScrollTimeline,"scrollTimeline");var d=n(33855),h=n(87671),f=n(34324);let p=u(()=>{try{document.createElement("div").animate({opacity:0}
157,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var g=n(33754);let m=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,y={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:m([0,.65,.55,1]),circOut:m([.55,0,1,.45]),backIn:m([.31,.01,.66,-.59]),backOut:m([.33,1.53,.69,.99])};var b=n(65181);class v extends h.q{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:u}=e;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=e,(0,r.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let c=function({type:e,...t}){return(0,b.W)(e)&&p()?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 d=function e(t,n){if(t)return"function"==typeof t?p()?(0,g.K)(t,n):"ease-out":(0,f.D)(t)?m(t):Array.isArray(t)?t.map(t=>e(t,n)||y.easeOut):y[t]}(a,i);Array.isArray(d)&&(c.easing=d);let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}(t,n,i,c,s),!1===c.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let e=(0,d.X)(i,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(e),(0,o.e)(t,n,e),this.animation.cancel()}u?.(),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(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,i.X)(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,i.X)(e)}get time(){return(0,i.X)(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,i.f)(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&&c())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),s.l):r(this)}}},83370:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(24888);let i={...r.f,getAnimatableNone:e=>{let t=r.f.parse(e);return r.f.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}}},85309:(e,t,n)=>{e.exports=n(95142)({Ã:"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",Å¿:"s"})},87282:(e,t,n)=>{var r=n(88325),i=n(28568);e.exports=r(function(e,t,n){return e+(n?" ":"")+i(t)})},87671:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});
157class r{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)}}},87913:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});let r=new Set(["opacity","clipPath","filter","transform"])},88325:(e,t,n)=>{var r=n(94774),i=n(80276),s=n(49095),o=RegExp("['â]","g");e.exports=function(e){return function(t){return r(s(i(t).replace(o,"")),e,"")}}},88334:(e,t,n)=>{"use strict";n.d(t,{BN:()=>f,RK:()=>g,UE:()=>y,UU:()=>p,cY:()=>h,jD:()=>m,we:()=>d});var r=n(58146),i=n(12115),s=n(47650),o="undefined"!=typeof document?i.useLayoutEffect:function(){};function a(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=l(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return o(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:h,elements:{reference:f,floating:p}={},transform:g=!0,whileElementsMounted:m,open:y}=e,[b,v]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=i.useState(d);a(x,d)||w(d);let[k,S]=i.useState(null),[E,C]=i.useState(null),A=i.useCallback(e=>{e!==M.current&&(M.current=e,S(e))},[]),P=i.useCallback(e=>{e!==j.current&&(j.current=e,C(e))},[]),T=f||k,R=p||E,M=i.useRef(null),j=i.useRef(null),O=i.useRef(b),I=null!=m,$=c(m),_=c(h),D=c(y),V=i.useCallback(()=>{if(!M.current||!j.current)return;let e={placement:t,strategy:n,middleware:x};_.current&&(e.platform=_.current),(0,r.rD)(M.current,j.current,e).then(e=>{let t={...e,isPositioned:!1!==D.current};L.current&&!a(O.current,t)&&(O.current=t,s.flushSync(()=>{v(t)}))})},[x,t,n,_,D]);o(()=>{!1===y&&O.current.isPositioned&&(O.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[y]);let L=i.useRef(!1);o(()=>(L.current=!0,()=>{L.current=!1}),[]),o(()=>{if(T&&(M.current=T),R&&(j.current=R),T&&R){if($.current)return $.current(T,R,V);V()}},[T,R,V,$,I]);let N=i.useMemo(()=>({reference:M,floating:j,setReference:A,setFloating:P}),[A,P]),z=i.useMemo(()=>({reference:T,floating:R}),[T,R]),F=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=u(z.floating,b.x),r=u(z.floating,b.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...l(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,z.floating,b.x,b.y]);return i.useMemo(()=>({...b,update:V,refs:N,elements:z,floatingStyles:F}),[b,V,N,z,F])}let h=(e,t)=>{let n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},f=(e,t)=>{let n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},p=(e,t)=>{let n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},g=(e,t)=>{let n=(0,r.RK)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>{let n=(0,r.jD)(e);return{name:n.name,fn:n.fn,options:[e,t]}},y=(e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}}},91426: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}},92419:(e,t,n)=>{"use strict";n.d(t,{KN:()=>s,gQ:()=>u,px:()=>o,uj:()=>i,vh:()=>a,vw:()=>l});let r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=r("deg"),s=r("%"),o=r("px"),a=r("vh"),l=r("vw"),u={...s,parse:e=>s.parse(e)/100,transform:e=>s.transform(100*e)}},93709:(e,t,n)=>{"use strict";n.d(t,{zK:()=>s});var r=n(40479),i=n(45385);function s(e,{layout:t,layoutId:n}){return r.f.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!i.H[e]||"opacity"===e)}},94416:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(12115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},94774: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}},95142:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},95918:(e,t,n)=>{var r=n(69096);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)}},96344:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{X:()=>r})},96868:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var r=n(37822);let i={...r.ai,transform:Math.round};var s=n(92419);let o={rotate:s.uj,pathRotation:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:r.hs,scaleX:r.hs,scaleY:r.hs,scaleZ:r.hs,skew:s.uj,skewX:s.uj,skewY:s.uj,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:r.X4,originX:s.gQ,originY:s.gQ,originZ:s.px},a={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,inset:s.px,insetBlock:s.px,insetBlockStart:s.px,insetBlockEnd:s.px,insetInline:s.px,insetInlineStart:s.px,insetInlineEnd:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,paddingBlock:s.px,paddingBlockStart:s.px,paddingBlockEnd:s.px,paddingInline:s.px,paddingInlineStart:s.px,paddingInlineEnd:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,marginBlock:s.px,marginBlockStart:s.px,marginBlockEnd:s.px,marginInline:s.px,marginInlineStart:s.px,marginInlineEnd:s.px,fontSize:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,...o,zIndex:i,fillOpacity:r.X4,strokeOpacity:r.X4,numOctaves:i}},98387:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(55389),i=n(81288),s=n(83370);let o={...n(96868).W,color:r.y,backgroundColor:r.y,outlineColor:r.y,fill:r.y,stroke:r.y,borderColor:r.y,borderTopColor:r.y,borderRightColor:r.y,borderBottomColor:r.y,borderLeftColor:r.y,filter:i.p,WebkitFilter:i.p,mask:s.d,WebkitMask:s.d},a=e=>o[e]},98860:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});let r=(0,n(12115).createContext)({})},99256:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});let r="data-"+(0,n(32246).I)("framerAppearId")}}]);
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.