1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6271],{61032:function(t,n,r){let i,o,a,l,s,u,d,c,h,f,p,g,m,v,b,y,x,w,k,S,P,E,T,C,R,A,M,j,O,V,z,L,D;r.r(n),r.d(n,{Overlays:function(){return pb}});var B=r(27573),_=r(7653),$=r(16892),F=r(3458),I=r(37401),N=r(89364),H=r(68571);let W=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],U=["50","100","200","300","400","500","600","700","800","900","950"],Y={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}},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"}}}},G={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}
1,{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},X=new WeakMap;function q(t){var n,r,i;let o=X.get(t);if(o)return o;let a=Z(t,t.card.enabled),l={_blend:t._blend||(t.dark?"screen":"multiply"),_dark:t.dark,accent:a.accent,avatar:a.avatar,backdrop:t.base.shadow.ambient,badge:a.badge,bg:t.base.bg,border:t.base.border,button:{default:K(t,t.button.default),ghost:K(t,t.button.ghost),bleed:K(t,t.button.bleed)},code:a.code,fg:t.base.fg,focusRing:t.base.focusRing,icon:a.muted.fg,input:{default:J(t.input.default),invalid:J(t.input.invalid)},kbd:a.kbd,link:a.link,muted:{...a.muted,bg:(null==(n=t.selectable)?void 0:n.default.enabled.bg2)||t.base.bg},selectable:K(t,t.selectable||t.muted),shadow:t.base.shadow,skeleton:{from:(null==(r=t.skeleton)?void 0:r.from)||t.base.border,to:(null==(i=t.skeleton)?void 0:i.to)||t.base.border},syntax:t.syntax};return X.set(t,l),l}function K(t,n){return{default:{enabled:Z(t,n.default.enabled),hovered:Z(t,n.default.hovered),pressed:Z(t,n.default.pressed),selected:Z(t,n.default.selected),disabled:Z(t,n.default.disabled)},primary:{enabled:Z(t,n.primary.enabled),hovered:Z(t,n.primary.hovered),pressed:Z(t,n.primary.pressed),selected:Z(t,n.primary.selected),disabled:Z(t,n.primary.disabled)},positive:{enabled:Z(t,n.positive.enabled),hovered:Z(t,n.positive.hovered),pressed:Z(t,n.positive.pressed),selected:Z(t,n.positive.selected),disabled:Z(t,n.positive.disabled)},caution:{enabled:Z(t,n.caution.enabled),hovered:Z(t,n.caution.hovered),pressed:Z(t,n.caution.pressed),selected:Z(t,n.caution.selected),disabled:Z(t,n.caution.disabled)},critical:{enabled:Z(t,n.critical.enabled),hovered:Z(t,n.critical.hovered),pressed:Z(t,n.critical.pressed),selected:Z(t,n.critical.selected),disabled:Z(t,n.critical.disabled)}}}function Z(t,n){var r,i;return{...n,avatar:{gray:{bg:t.spot.gray,fg:t.base.bg},blue:{bg:t.spot.blue,fg:t.base.bg},purple:{bg:t.spot.purple,fg:t.base.bg},magenta:{bg:t.spot.magenta,fg:t.base.bg},red:{bg:t.spot.red,fg:t.base.bg},orange:{bg:t.spot.orange,fg:t.base.bg},yellow:{bg:t.spot.yellow,fg:t.base.bg},green:{bg:t.spot.green,fg:t.base.bg},cyan:{bg:t.spot.cyan,fg:t.base.bg}},badge:{default:{bg:t.muted.default.enabled.bg,fg:t.muted.default.enabled.fg,dot:t.muted.default.enabled.muted.fg,icon:t.muted.default.enabled.muted.fg},primary:{bg:t.muted.primary.enabled.bg,fg:t.muted.primary.enabled.fg,dot:t.muted.primary.enabled.muted.fg,icon:t.muted.primary.enabled.muted.fg},positive:{bg:t.muted.positive.enabled.bg,fg:t.muted.positive.enabled.fg,dot:t.muted.positive.enabled.muted.fg,icon:t.muted.positive.enabled.muted.fg},caution:{bg:t.muted.caution.enabled.bg,fg:t.muted.caution.enabled.fg,dot:t.muted.caution.enabled.muted.fg,icon:t.muted.caution.enabled.muted.fg},critical:{bg:t.muted.critical.enabled.bg,fg:t.muted.critical.enabled.fg,dot:t.muted.critical.enabled.muted.fg,icon:t.muted.critical.enabled.muted.fg}},kbd:{bg:t.muted.default.enabled.bg,fg:t.muted.default.enabled.fg,border:t.muted.default.enabled.border},muted:{...t.muted.default.enabled.muted,bg:n.bg2||n.bg},skeleton:{from:(null==(r=n.skeleton)?void 0:r.from)||n.border,to:(null==(i=n.skeleton)?void 0:i.to)||n.border}}}function J(t){return{enabled:Q(t.enabled),disabled:Q(t.disabled),readOnly:Q(t.readOnly),hovered:Q(t.hovered)}}function Q(t){return{bg:t.bg,border:t.border,fg:t.fg,muted:{bg:t.bg2},placeholder:t.placeholder}}let ee=new WeakMap;function et(t){var n,r;if(null==(n=t.sanity.v2)?void 0:n._resolved)return t.sanity.v2;let i=ee.get(t);if(i)return i;let o={_version:2,_resolved:!0,avatar:{...Y.avatar,...t.sanity.avatar},button:{...Y.button,...t.sanity.button},card:Y.card,color:q(t.sanity.color),container:t.sanity.container,font:t.sanity.fonts,input:{...Y.input,...t.sanity.input,checkbox:{...Y.input.checkbox,...t.sanity.input.checkbox},radio:{...Y.input.radio,...t.sanity.input.radio},switch:{...Y.input.switch,...t.sanity.input.switch}},layer:null!=(r=t.sanity.layer)?r:Y.layer,media:t.sanity.media,radius:t.sanity.radius,shadow:t.sanity.shadows,space:t.sanity.space,style:t.sanity.styles};return ee.set(t,o),o}function en(t){return 2===t._version}let er=new WeakMap,ei=new WeakMap;function eo(t){let n=ei.get(t);if(n)return n;let{avatar:r,button:i,color:o,container:a,font:l,input:s,media:u,radiu
1s:d,shadow:c,space:h,style:f}=t;return{_version:0,avatar:r,button:i,container:a,color:{light:{transparent:ea(o.light.transparent),default:ea(o.light.default),primary:ea(o.light.primary),positive:ea(o.light.positive),caution:ea(o.light.caution),critical:ea(o.light.critical)},dark:{transparent:ea(o.dark.transparent),default:ea(o.dark.default),primary:ea(o.dark.primary),positive:ea(o.dark.positive),caution:ea(o.dark.caution),critical:ea(o.dark.critical)}},focusRing:s.text.focusRing,fonts:l,input:s,media:u,radius:d,shadows:c,space:h,styles:f,v2:t}}function ea(t){return{base:{bg:t.bg,fg:t.fg,border:t.border,focusRing:t.focusRing,shadow:t.shadow},button:t.button,card:t.selectable.default,dark:t._dark,input:{default:el(t.input.default),invalid:el(t.input.invalid)},muted:{...t.button.ghost,transparent:t.button.ghost.default},solid:{...t.button.default,transparent:t.button.default.default},selectable:t.selectable,spot:{gray:t.avatar.gray.bg,blue:t.avatar.blue.bg,purple:t.avatar.purple.bg,magenta:t.avatar.magenta.bg,red:t.avatar.red.bg,orange:t.avatar.orange.bg,yellow:t.avatar.yellow.bg,green:t.avatar.green.bg,cyan:t.avatar.cyan.bg},syntax:t.syntax}}function el(t){return{enabled:es(t.enabled),disabled:es(t.disabled),readOnly:es(t.readOnly),hovered:es(t.hovered)}}function es(t){return{bg:t.bg,bg2:t.muted.bg,border:t.border,fg:t.fg,placeholder:t.placeholder}}let eu=["multiply","screen"],ed=["transparent","default","primary","positive","caution","critical"],ec=["default","primary","positive","caution","critical"],eh=["enabled","hovered","pressed","selected","disabled"],ef=["default","ghost","bleed"],ep=["default","invali
1d"],eg=["enabled","hovered","readOnly","disabled"];function em(t){return U.includes(t)}function ev(t){return/^\d+%$/.test(t)}function eb(t){let n=t.split("/"),r=n.shift()||"",[i,o]=r.split(" ");if(em(i)){let t=n.shift()||"";return ev(o)?{type:"color",tint:i,mix:Number(o.slice(0,-1))/100}:ey(t)?{type:"color",tint:i,opacity:Number(t)}:{type:"color",tint:i}}if("black"===i||"white"===i){let t=n.shift()||"";return ev(o)?{type:"color",key:i,mix:Number(o.slice(0,-1))/100}:ey(t)?{type:"color",key:i,opacity:Number(t)}:{type:"color",key:i}}if(W.includes(i)){let[t,o]=(r=n.shift()||"").split(" ");if(em(t)){let r=n.shift()||"";return ev(o)?{type:"color",hue:i,tint:t,mix:Number(o.slice(0,-1))/100}:ey(r)?{type:"color",hue:i,tint:t,opacity:Number(r)}:{type:"color",hue:i,tint:t}}return{type:"hue",value:i}}if(eu.includes(i))return{type:"blendMode",value:i}}function ey(t){return"0"===t||/^0\.[0-9]+$/.test(t)||"1"===t}let ex=["500","500"];function ew(t){var n;let r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ex,{hue:o,scheme:a}=t,l=eb(i["light"===a?0:1]);if(!l||"color"!==l.type)throw Error("Invalid color token: ".concat(i[0]));return n={...l,hue:l.hue||o},r="",r="black"===n.key||"white"===n.key?n.key:"".concat(n.hue,"/").concat(n.tint),void 0!==n.mix?"".concat(r," ").concat(100*n.mix,"%"):(void 0!==n.opacity&&(r+="/".concat(n.opacity)),r)}let ek={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"},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:["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/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:["700","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["200","800"],kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{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%"]},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:["100","900"],fg:["800","200"]},selected:{bg:["100","900"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]}
1,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:{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%"]},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","950"],icon:["700 70%","400 70%"]},pressed:{bg:["100","900"],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"]},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:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","800"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600 50%"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{fg:["200","800"],border:["100","900"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},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:["100","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:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},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:{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"],cdata:["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 eS(t){return!!(t&&"object"==typeof t&&!Array.isArray(t))}function eP(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];
1let i=n.filter(Boolean);return 0===i.length?{}:i.reduce(eE,{})}function eE(t,n){for(let r of Object.keys(n)){let i=t[r],o=n[r];eS(i)&&eS(o)?t[r]=eP(i,o):t[r]=o}return t}function eT(t,n){let{scheme:r}=t;return{transparent:eC({scheme:r,tone:"transparent"},n),default:eC({scheme:r,tone:"default"},n),primary:eC({scheme:r,tone:"primary"},n),positive:eC({scheme:r,tone:"positive"},n),caution:eC({scheme:r,tone:"caution"},n),critical:eC({scheme:r,tone:"critical"},n)}}function eC(t,n){var r,i,o,a,l,s,u,d,c,h,f,p,g;let{scheme:m,tone:v}=t,b=null==(i=null==(r=null==n?void 0:n.color)?void 0:r.base)?void 0:i[v],y={hue:(null==b?void 0:b._hue)||"gray",scheme:m};return{_blend:((null==b?void 0:b._blend)||["multiply","screen"])["light"===m?0:1],_dark:"dark"===m,accent:{fg:ew(y,null==(o=null==b?void 0:b.accent)?void 0:o.fg)},avatar:eR({scheme:m},b),backdrop:ew(y,null==b?void 0:b.backdrop),badge:eM(null==b?void 0:b.badge,{scheme:m},n),bg:ew(y,null==b?void 0:b.bg),border:ew(y,null==b?void 0:b.border),button:function(t,n){let{scheme:r}=t,i={};for(let t of ef)i[t]=function(t,n){let{mode:r,scheme:i}=t,o={};for(let t of ec)o[t]=function(t,n){let{mode:r,scheme:i,tone:o}=t,a={};for(let t of eh)a[t]=function(t,n){var r,i,o,a,l,s,u,d,c,h,f,p,g,m,v;let{mode:b,tone:y,scheme:x,state:w}=t,k=null==(a=null==(o=null==(i=null==(r=null==n?void 0:n.color)?void 0:r.button)?void 0:i[b])?void 0:o[y])?void 0:a[w],S={hue:(null==k?void 0:k._hue)||"gray",scheme:x};return{_blend:((null==k?void 0:k._blend)||["screen","multiply"])["light"===x?0:1],accent:{fg:ew(S,null==(l=null==k?void 0:k.accent)?void 0:l.fg)},avatar:eR({scheme:x},k),badge:eM(null==k?void 0:k.badge,{scheme:x},n),bg:ew(S,null==k?void 0:k.bg),border:ew(S,null==k?void 0:k.border),code:{bg:ew(S,null==(s=null==k?void 0:k.code)?void 0:s.bg),fg:ew(S,null==(u=null==k?void 0:k.code)?void 0:u.fg)},fg:ew(S,null==k?void 0:k.fg),icon:ew(S,null==k?void 0:k.icon),muted:{bg:ew(S,null==(d=null==k?void 0:k.muted)?void 0:d.bg),fg:ew(S,null==(c=null==k?void 0:k.muted)?void 0:c.fg)},kbd:{bg:ew(S,null==(h=null==k?void 0:k.kbd)?void 0:h.bg),fg:ew(S,null==(f=null==k?void 0:k.kbd)?void 0:f.fg),border:ew(S,null==(p=null==k?void 0:k.kbd)?void 0:p.border)},link:{fg:ew(S,null==(g=null==k?void 0:k.link)?void 0:g.fg)}
1,skeleton:{from:ew(S,null==(m=null==k?void 0:k.skeleton)?void 0:m.from),to:ew(S,null==(v=null==k?void 0:k.skeleton)?void 0:v.to)}}}({mode:r,tone:o,scheme:i,state:t},n);return a}({mode:r,scheme:i,tone:t},n);return o}({scheme:r,mode:t},n);return i}({scheme:m},n),code:{bg:ew(y,null==(a=null==b?void 0:b.code)?void 0:a.bg),fg:ew(y,null==(l=null==b?void 0:b.code)?void 0:l.fg)},fg:ew(y,null==b?void 0:b.fg),focusRing:ew(y,null==b?void 0:b.focusRing),icon:ew(y,null==b?void 0:b.icon),input:function(t,n){let{scheme:r,tone:i}=t;return{default:eO({mode:"default",scheme:r,tone:i},n),invalid:eO({mode:"invalid",scheme:r,tone:i},n)}}({scheme:m,tone:v},n),kbd:{bg:ew(y,null==(s=null==b?void 0:b.kbd)?void 0:s.bg),fg:ew(y,null==(u=null==b?void 0:b.kbd)?void 0:u.fg),border:ew(y,null==(d=null==b?void 0:b.kbd)?void 0:d.border)},link:{fg:ew(y,null==(c=null==b?void 0:b.link)?void 0:c.fg)},muted:{bg:ew(y,null==(h=null==b?void 0:b.muted)?void 0:h.bg),fg:ew(y,null==(f=null==b?void 0:b.muted)?void 0:f.fg)},selectable:function(t,n){let{scheme:r}=t,i={};for(let t of ec)i[t]=function(t,n){let{scheme:r,tone:i}=t,o={};for(let t of eh)o[t]=function(t,n){var r,i,o,a,l,s,u,d,c,h,f,p,g,m;let{scheme:v,state:b,tone:y}=t,x=null==(o=null==(i=null==(r=null==n?void 0:n.color)?void 0:r.selectable)?void 0:i[y])?void 0:o[b],w={hue:(null==x?void 0:x._hue)||"gray",scheme:v};return{_blend:((null==x?void 0:x._blend)||["screen","multiply"])["light"===v?0:1],accent:{fg:ew(w,null==(a=null==x?void 0:x.accent)?void 0:a.fg)},avatar:eR({scheme:v},x),badge:eM(null==x?void 0:x.badge,{scheme:v},n),bg:ew(w,null==x?void 0:x.bg),border:ew(w,null==x?void 0:x.border),code:{bg:ew(w,null==(l=null==x?void 0:x.code)?void 0:l.bg),fg:ew(w,null==(s=null==x?void 0:x.code)?void 0:s.fg)},fg:ew(w,null==x?void 0:x.fg),icon:ew(w,null==x?void 0:x.icon),muted:{bg:ew(w,null==(u=null==x?void 0:x.muted)?void 0:u.bg),fg:ew(w,null==(d=null==x?void 0:x.muted)?void 0:d.fg)},kbd:{bg:ew(w,null==(c=null==x?void 0:x.kbd)?void 0:c.bg),fg:ew(w,null==(h=null==x?void 0:x.kbd)?void 0:h.fg),border:ew(w,null==(f=null==x?void 0:x.kbd)?void 0:f.border)},link:{fg:ew(w,null==(p=null==x?void 0:x.link)?void 0:p.fg)},skeleton:{from:ew(w,null==(g=null==x?void 0:x.skeleton)?void 0:g.from),to:ew(w,null==(m=null==x?void 0:x.skeleton)?void 0:m.to)}}}({tone:i,scheme:r,state:t},n);return o}({scheme:r,tone:t},n);return i}({scheme:m},n),shadow:function(t,n){var r,i,o,a,l,s;let{scheme:u,tone:d}=t,c=null==(i=null==(r=null==n?void 0:n.color)?void 0:r.base)?void 0:i[d],h={hue:(null==c?void 0:c._hue)||"gray",scheme:u};return{outline:ew(h,null==(o=null==c?void 0:c.shadow)?void 0:o.outline),umbra:ew(h,null==(a=null==c?void 0:c.shadow)?void 0:a.umbra),penumbra:ew(h,null==(l=null==c?void 0:c.shadow)?void 0:l.penumbra),ambient:ew(h,null==(s=null==c?void 0:c.shadow)?void 0:s.ambient)}}({scheme:m,tone:v},n),skeleton:{from:ew(y,null==(p=null==b?void 0:b.skeleton)?void 0:p.from),to:ew(y,null==(g=null==b?void 0:b.skeleton)?void 0:g.to)},syntax:function(t,n){var r;let{scheme:i}=t,o=null==(r=null==n?void 0:n.color)?void 0:r.syntax,a={hue:"gray",scheme:i};return{atrule:ew(a,null==o?void 0:o.atrule),attrName:ew(a,null==o?void 0:o.attrName),attrValue:ew(a,null==o?void 0:o.attrValue),attribute:ew(a,null==o?void 0:o.attribute),boolean:ew(a,null==o?void 0:o.boolean),builtin:ew(a,null==o?void 0:o.builtin),cdata:ew(a,null==o?void 0:o.cdata),char:ew(a,null==o?void 0:o.char),class:ew(a,null==o?void 0:o.class),className:ew(a,null==o?void 0:o.className),comment:ew(a,null==o?void 0:o.comment),constant:ew(a,null==o?void 0:o.constant),deleted:ew(a,null==o?void 0:o.deleted),doctype:ew(a,null==o?void 0:o.doctype),entity:ew(a,null==o?void 0:o.entity),function:ew(a,null==o?void 0:o.function),hexcode:ew(a,null==o?void 0:o.hexcode),id:ew(a,null==o?void 0:o.id),important:ew(a,null==o?void 0:o.important),inserted:ew(a,null==o?void 0:o.inserted),keyword:ew(a,null==o?void 0:o.keyword),number:ew(a,null==o?void 0:o.number),operator:ew(a,null==o?void 0:o.operator),prolog:ew(a,null==o?void 0:o.prolog),property:ew(a,null==o?void 0:o.property),pseudoClass:ew(a,null==o?void 0:o.pseudoClass),pseudoElement:ew(a,null==o?void 0:o.pseudoElement),punctuation:ew(a,null==o?void 0:o.punctuation),regex:ew(a,null==o?void 0:o.regex),selector:ew(a,null==o?void 0:o.selector),string:ew(a,null==o?void 0:o.string),symbol:ew(a,null==o?void 0:o.symbol),tag:ew(a,null==o?void 0:o.tag),unit:ew(a,null==o?void 0:o.unit),url:ew(a,null==o?void 0:o.url),variable:ew(a,null==o?void 0:o.variable)}}
1({scheme:m},n)}}function eR(t,n){let{scheme:r}=t;return{gray:eA({color:"gray",scheme:r},n),blue:eA({color:"blue",scheme:r},n),purple:eA({color:"purple",scheme:r},n),magenta:eA({color:"magenta",scheme:r},n),red:eA({color:"red",scheme:r},n),orange:eA({color:"orange",scheme:r},n),yellow:eA({color:"yellow",scheme:r},n),green:eA({color:"green",scheme:r},n),cyan:eA({color:"cyan",scheme:r},n)}}function eA(t,n){var r;let{color:i,scheme:o}=t,a=null==(r=null==n?void 0:n.avatar)?void 0:r[i],l={hue:(null==a?void 0:a._hue)||"gray",scheme:o};return{_blend:((null==a?void 0:a._blend)||["screen","multiply"])["light"===o?0:1],bg:ew(l,null==a?void 0:a.bg),fg:ew(l,null==a?void 0:a.fg)}}function eM(t,n,r){let{scheme:i}=n;return{default:ej(t,{scheme:i,tone:"default"},r),primary:ej(t,{scheme:i,tone:"primary"},r),positive:ej(t,{scheme:i,tone:"positive"},r),caution:ej(t,{scheme:i,tone:"caution"},r),critical:ej(t,{scheme:i,tone:"critical"},r)}}function ej(t,n,r){var i,o,a;let{scheme:l,tone:s}=n,u=null==t?void 0:t[s],d={hue:(null==u?void 0:u._hue)||(null==(a=null==(o=null==(i=null==r?void 0:r.color)?void 0:i.base)?void 0:o[s])?void 0:a._hue)||"gray",scheme:l};return{bg:ew(d,null==u?void 0:u.bg),fg:ew(d,null==u?void 0:u.fg),dot:ew(d,null==u?void 0:u.dot),icon:ew(d,null==u?void 0:u.icon)}}function eO(t,n){let{mode:r,scheme:i,tone:o}=t;return{enabled:eV({mode:r,scheme:i,state:"enabled",tone:o},n),hovered:eV({mode:r,scheme:i,state:"hovered",tone:o},n),readOnly:eV({mode:r,scheme:i,state:"readOnly",tone:o},n),disabled:eV({mode:r,scheme:i,state:"disabled",tone:o},n)}}function eV(t,n){var r,i,o,a,l,s,u;let{mode:d,tone:c,scheme:h,state:f}=t,p=null==(o=null==(i=null==(r=null==n?void 0:n.color)?void 0:r.input)?void 0:i[d])?void 0:o[f],g={hue:(null==p?void 0:p._hue)||(null==(s=null==(l=null==(a=null==n?void 0:n.color)?void 0:a.base)?void 0:l[c])?void 0:s._hue)||"gray",scheme:h};return{_blend:((null==p?void 0:p._blend)||["screen","multiply"])["light"===h?0:1],bg:ew(g,null==p?void 0:p.bg),border:ew(g,null==p?void 0:p.border),fg:ew(g,null==p?void 0:p.fg),muted:{bg:ew(g,null==(u=null==p?void 0:p.muted)?void 0:u.bg)},placeholder:ew(g,null==p?void 0:p.placeholder)}}let ez={black:{title:"Black",hex:"#0d0e12"},white:{title:"White",hex:"#ffffff"},gray:{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"}},blue:{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"}},purple:{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"}},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:{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"}},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:{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"}},green:{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"}},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"}}};function eL(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(r,Math.max(n,t))}function eD(t,n,r,i,o){var a;return r*(1-(a=eL((o-t)/(n-t))))+i*a}function eB(t){return Math.round(t)}function e_(t){if(4===t.length){let n=t.slice(1,2),r=t.slice(2,3),i=t.slice(3,4);return{r:parseInt(n+n,16),g:parseInt(r+r,16),b:parseInt(i+i,16)}}return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}function e$(t){let n=eB(eL(Math.round(t.r),0,255)),r=eB(eL(Math.round(t.g),0,255)),i=eB(eL(Math.round(t.b),0,255));return"a"in t?"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(t.a,")"):"#"+(16777216+(n<<16)+(r
1<<8)+i).toString(16).slice(1)}let eF=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function eI(t){if(!t)return{r:0,g:0,b:0};if("string"!=typeof t)throw Error("parseColor: expected a string");if("#"===t[0]&&(4===t.length||7===t.length)&&function(t){for(let n of t)if(-1==="0123456789ABCDEFabcdef".indexOf(n))return!1;return!0}(t.slice(1)))return e_(t);if(t.startsWith("hsl("))return function(t){let n=t.s/100,r=t.l/100,i=(1-Math.abs(2*r-1))*n,o=i*(1-Math.abs(t.h/60%2-1)),a=r-i/2,l=0,s=0,u=0;return 0<=t.h&&t.h<60?(l=i,s=o,u=0):60<=t.h&&t.h<120?(l=o,s=i,u=0):120<=t.h&&t.h<180?(l=0,s=i,u=o):180<=t.h&&t.h<240?(l=0,s=o,u=i):240<=t.h&&t.h<300?(l=o,s=0,u=i):300<=t.h&&t.h<360&&(l=i,s=0,u=o),{r:Math.round(255*(l+a)),g:Math.round(255*(s+a)),b:Math.round(255*(u+a))}}(function(t){let n=eF.exec(t);if(!n)throw Error('parseHsl: string is not a HSL color: "'.concat(t,'"'));return{h:parseInt(n[1]),s:parseFloat(n[3]),l:parseFloat(n[5])}}(t));if(t.startsWith("rgba("))return function(t){let n=t.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(n[0]),g:parseInt(n[1]),b:parseInt(n[2]),a:parseFloat(n[3])}}(t);throw Error('parseColor: unexpected color format: "'.concat(t,'"'))}let eN=[0,255];function eH(t,n){var r,i,o,a,l,s,u;let{bg:d,blendMode:c,colorPalette:h}=n;if("white"===d)throw Error("Cannot blend with white background");let f=eb(t);if(!f||"color"!==f.type)throw Error("Invalid color token value: ".concat(t));let p="";if("black"===f.key&&(p=eW(h.black)),"white"===f.key&&(p=eW(h.white)),f.hue&&f.tint&&(p=eW(h[f.hue][f.tint])),!p)throw Error("Invalid color token value: ".concat(t));let g=p,m={blendMode:c,bg:d,black:eW(h.black),white:eW(h.white)};try{if(p=function(t,n){var r,i,o,a,l,s,u,d,c;let{blendMode:h}=n,f=eI(t),p=eI(n.black),g=eI(n.white),m=n.bg?eI(n.bg):"multiply"===h?g:p,v={r:[p.r,g.r],g:[p.g,g.g],b:[p.b,g.b]},b={r:eL(eD(...v.r,...eN,m.r),...eN),g:eL(eD(...v.g,...eN,m.g),...eN),b:eL(eD(...v.b,...eN,m.b),...eN)},y={r:eL(eD(...v.r,...eN,f.r),...eN),g:eL(eD(...v.g,...eN,f.g),...eN),b:eL(eD(...v.b,...eN,f.b),...eN)},x="multiply"===h?{r:255*(r=b.r/255,y.r/255*r),g:255*(i=b.g/255,y.g/255*i),b:255*(o=b.b/255,y.b/255*o)}:{r:255*((a=b.r/255)+(l=y.r/255)-a*l),g:255*((s=b.g/255)+(u=y.g/255)-s*u),b:255*((d=b.b/255)+(c=y.b/255)-d*c)};return e$({r:eL(eD(...eN,...v.r,x.r),...v.r),g:eL(eD(...eN,...v.g,x.g),...v.g),b:eL(eD(...eN,...v.b,x.b),...v.b)})}(p,m),d&&void 0!==f.mix){let t=e_(d),n=e_(p);p=e$((r=f.mix,{r:(i=t.r,o=n.r,i+(o-i)*r),g:(a=t.g,l=n.g,a+(l-a)*r),b:(s=t.b,u=n.b,s+(u-s)*r)}))}}catch(t){throw console.warn("could not blend",p,m),t}return"#aN"===p&&(console.warn("invalid color token value: ".concat(t)),p=g),void 0!==f.opacity&&(p=function(t,n){let r=eI(t);return"rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(n,")")}(p,f.opacity)),p}function eW(t){return"string"==typeof t?t:t.hex}function eU(t,n){let r=Object.entries(n),[,i]=r.find(t=>{let[n]=t;return"transparent"===n}),[,o]=r.find(t=>{let[n]=t;return"default"===n}),a=eY(i,{colorPalette:t}),l=eY(o,{colorPalette:t}),s=l.bg;if("white"===s)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",a],["default",l],...r.filter(t=>{let[n]=t;return"default"!==n&&"transparent"!==n}).map(n=>{let[r,i]=n;return[r,eY(i,{bg:s,colorPalette:t})]})])}function eY(t,n){var r,i,o,a,l,s;let{colorPalette:u,bg:d}=n,c=t._blend||"multiply",h=eH(t.bg,{colorPalette:u,bg:d,blendMode:c}),f={colorPalette:u,bg:h,blendMode:c},p=(r=t.button,i={baseBg:h,blendMode:c,colorPalette:u},{default:eZ(r.default,i),ghost:eZ(r.ghost,i),bleed:eZ(r.bleed,i)}),g=(o=t.selectable,a={colorPalette:u,baseBg:h,blendMode:c},{default:e5(o.default,a),primary:e5(o.primary,a),positive:e5(o.positive,a),caution:e5(o.caution,a),critical:e5(o.critical,a)}),m={outline:eH(t.shadow.outline,f),umbra:eH(t.shadow.umbra,{...f,bg:void 0,colorPalette:{...u,black:"#000000"}}),penumbra:eH(t.shadow.penumbra,{...f,bg:void 0,colorPalette:{...u,black:"#000000"}}),ambient:eH(t.shadow.ambient,{...f,bg:void 0,colorPalette:{...u,black:"#000000"}})};return{_blend:c,_dark:t._dark,accent:{fg:eH(t.accent.fg,f)},avatar:eG(t.avatar,{baseBg:h,colorPalette:u,blendMode:c}),backdrop:eH(t.backdrop,f),badge:eq(t.badge,{baseBg:h,colorPalette:u,blendMode:c}),bg:h,border:eH(t.border,f),button:p,code:{bg:eH(t.code.bg,f),fg:eH(t.code.fg,f)},fg:eH(t.fg,f),focusRing:eH(t.focusRing,f),icon:eH(t.icon,f),input:(l=t.input,s={baseBg:h,colorPalette:u,blendMode:c},{default:e0(l.default,s),invalid:e0(l.invalid,s)}),kbd:function(t,n){let{baseBg:r,blendMode:i,colorPalette:o}=n,a=eH(t.bg,{bg:r,blendMode:i,colorPalette:o}),l={bg:a,blendMode:i,colorPalette:o};return{bg:a,fg:eH(t.fg,l),border:eH(t.border,l)}}(t.kbd,{baseBg:h,colorPalette:u,blendMode:c}),link:{fg:eH(t.link.fg,f)},muted:{bg:eH(t.muted.bg,f),fg:eH(t.muted.fg,f)},shadow:m,skeleton:{from:eH(t.skeleton.from,f),to:eH(t.skeleton.to,f)},syntax:function(t,n){let{colorPalette:r,baseBg:i,blendMode:o}=n,a={colorPalette:r,bg:i,blendMode:o};return{atrule:eH(t.atrule,a),attrName:eH(t.attrName,a),attrValue:eH(t.attrValue,a),attribute:eH(t.attribute,a),boolean:eH(t.boolean,a),builtin:eH(t.builtin,a),cdata:eH(t.cdata,a),char:eH(t.char,a),class:eH(t.class,a),className:eH(t.className,a),comment:eH(t.comment,a),constant:eH(t.constant,a),deleted:eH(t.deleted,a),doctype:eH(t.doctype,a),entity:eH(t.entity,a),function:eH(t.function,a),hexcode:eH(t.hexcode,a),id:eH(t.id,a),important:eH(t.important,a),inserted:eH(t.inserted,a),keyword:eH(t.keyword,a),number:eH(t.number,a),operator:eH(t.operator,a),prolog:eH(t.prolog,a),property:eH(t.property,a),pseudoClass:eH(t.pseudoClass,a),pseudoElement:eH(t.pseudoElement,a),punctuation:eH(t.punctuation,a),regex:eH(t.regex,a),selector:eH(t.selector,a),string:eH(t.string,a),symbol:eH(t.symbol,a),tag:eH(t.tag,a),unit:eH(t.unit,a),url:eH(t.url,a),variable:eH(t.variable,a)}}(t.syntax,{baseBg:h,colorPalette:u,blendMode:c}),selectable:g}}function eG(t,n){return{gray:eX(t.gray,n),blue:eX(t.blue,n),purple:eX(t.purple,n),magenta:eX(t.magenta,n),red:eX(t.red,n),orange:eX(t.orange,n),yellow:eX(t.yellow,n),green:eX(t.green,n),cyan:eX(t.cyan,n)}}function eX(t,n){let{baseBg:r,blendMode:i,colorPalette:o}=n,a=t._blend||"multiply",l=eH(t.bg,{bg:r,blendMode:i,colorPalette:o});return{_blend:a,bg:l,fg:eH(t.fg,{bg:l,blendMode:a,colorPalette:o})}}function eq(t,n){return{default:eK(t.default,n),primary:eK(t.primary,n),positive:eK(t.positive,n),caution:eK(t.caution,n),critical:eK(t.critical,n)}}function eK(t,n){let{baseBg:r,blendMode:i,colorPalette:o}=n,a=eH(t.bg,{bg:r,blendMode:i,colorPalette:o}),l={bg:a,blendMode:i,colorPalette:o};return{bg:a,dot:eH(t.dot,l),fg:eH(t.fg,l),icon:eH(t.icon,l)}}function eZ(t,n){return{default:eJ(t.default,n),primary:eJ(t.primary,n),positive:eJ(t.positive,n),caution:eJ(t.caution,n),critical:eJ(t.critical,n)}}function eJ(t,n){return{enabled:eQ(t.enabled,n),hovered:eQ(t.hovered,n),pressed:eQ(t.pressed,n),selected:eQ(t.selected,n),disabled:eQ(t.disabled,n)}}function eQ(t,n){var r,i;let{baseBg:o,blendMode:a,colorPalette:l}=n,s=t._blend||"multiply",u=eH(t.bg,{bg:o,blendMode:a,colorPalette:l}),d={bg:u,blendMode:s,colorPalette:l};return{_blend:s,accent:{fg:eH(t.accent.fg,d)},avatar:eG(t.avatar,{baseBg:o,colorPalette:l,blendMode:s}),badge:eq(t.badge,{baseBg:u,colorPalette:l,blendMode:s}),bg:u,border:eH(t.border,d),code:{bg:eH(t.code.bg,d),fg:eH(t.code.fg,d)},fg:eH(t.fg,d),icon:eH(t.icon,d),link:{fg:eH(t.link.fg,d)},muted:{bg:eH(t.muted.bg,d),fg:eH(t.muted.fg,d)},kbd:{bg:eH(t.kbd.bg,d),fg:eH(t.kbd.fg,d),border:eH(t.kbd.border,d)},skeleton:{from:eH(null==(r=t.skeleton)?void 0:r.from,d),to:eH(null==(i=t.skeleton)?void 0:i.to,d)}}}function e0(t,n){return{enabled:e1(t.enabled,n),hovered:e1(t.hovered,n),readOnly:e1(t.readOnly,n),disabled:e1(t.disabled,n)}}function e1(t,n){let{baseBg:r,blendMode:i,colorPalette:o}=n,a=t._blend||"multiply",l=eH(t.bg,{colorPalette:o,bg:r,blendMode:i}
1),s={colorPalette:o,bg:l,blendMode:a};return{_blend:a,bg:l,border:eH(t.border,s),fg:eH(t.fg,s),muted:{bg:eH(t.muted.bg,s)},placeholder:eH(t.placeholder,s)}}function e5(t,n){return{enabled:eQ(t.enabled,n),hovered:eQ(t.hovered,n),pressed:eQ(t.pressed,n),selected:eQ(t.selected,n),disabled:eQ(t.disabled,n)}}let e2=new Map;var e3=function(){return(e3=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function e4(t,n,r){if(r||2==arguments.length)for(var i,o=0,a=n.length;o<a;o++)!i&&o in n||(i||(i=Array.prototype.slice.call(n,0,o)),i[o]=n[o]);return t.concat(i||Array.prototype.slice.call(n))}var e9="-ms-",e6="-moz-",e7="-webkit-",e8="comm",te="rule",tt="decl",tn="@keyframes",tr=Math.abs,ti=String.fromCharCode,to=Object.assign;function ta(t,n){return(t=n.exec(t))?t[0]:t}function tl(t,n,r){return t.replace(n,r)}function ts(t,n,r){return t.indexOf(n,r)}function tu(t,n){return 0|t.charCodeAt(n)}function td(t,n,r){return t.slice(n,r)}function tc(t){return t.length}function th(t,n){return n.push(t),t}function tf(t,n){return t.filter(function(t){return!ta(t,n)})}var tp=1,tg=1,tm=0,tv=0,tb=0,ty="";function tx(t,n,r,i,o,a,l,s){return{value:t,root:n,parent:r,type:i,props:o,children:a,line:tp,column:tg,length:l,return:"",siblings:s}}function tw(t,n){return to(tx("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},n)}function tk(t){for(;t.root;)t=tw(t.root,{children:[t]});th(t,t.siblings)}function tS(){return tb=tv<tm?tu(ty,tv++):0,tg++,10===tb&&(tg=1,tp++),tb}function tP(){return tu(ty,tv)}function tE(t){switch(t){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 tT(t){var n,r;return(n=tv-1,r=function t(n){for(;tS();)switch(tb){case n:return tv;case 34:case 39:34!==n&&39!==n&&t(tb);break;case 40:41===n&&t(n);break;case 92:tS()}return tv}(91===t?t+2:40===t?t+1:t),td(ty,n,r)).trim()}function tC(t,n,r,i,o,a,l,s,u,d,c,h){for(var f=o-1,p=0===o?a:[""],g=p.length,m=0,v=0,b=0;m<i;++m)for(var y=0,x=td(t,f+1,f=tr(v=l[m])),w=t;y<g;++y)(w=(v>0?p[y]+" "+x:tl(x,/&\f/g,p[y])).trim())&&(u[b++]=w);return tx(t,n,r,0===o?te:s,u,d,c,h)}function tR(t,n,r,i,o){return tx(t,n,r,tt,td(t,0,i),td(t,i+1,-1),i,o)}function tA(t,n){for(var r="",i=0;i<t.length;i++)r+=n(t[i],i,t,n)||"";return r}var tM={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans: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},tj=void 0!==H&&void 0!==H.env&&(H.env.REACT_APP_SC_ATTR||H.env.SC_ATTR)||"data-styled",tO="active",tV="data-styled-version",tz="6.1.8",tL="/*!sc*/\n",tD="undefined"!=typeof window&&"HTMLElement"in window,tB=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==H&&void 0!==H.env&&void 0!==H.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==H.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==H.env.REACT_APP_SC_DISABLE_SPEEDY&&H.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==H&&void 0!==H.env&&void 0!==H.env.SC_DISABLE_SPEEDY&&""!==H.env.SC_DISABLE_SPEEDY&&"false"!==H.env.SC_DISABLE_SPEEDY&&H.env.SC_DISABLE_SPEEDY),t_=Object.freeze([]),t$=Object.freeze({}),tF=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),tI=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tN=/(^-|-$)/g;function tH(t){return t.replace(tI,"-").replace(tN,"")}var tW=/(a)(d)/gi,tU=function(t){return String.fromCharCode(t+(t>25?39:97))};function tY(t){var n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=tU(n%52)+r;return(tU(n%52)+r).replace(tW,"$1-$2")}var tG,tX=function(t,n){for(var r=n.length;r;
vendor: 5,337 bytes, line 1
1)t=33*t^n.charCodeAt(--r);return t},tq=function(t){return tX(5381,t)};function tK(t){return"string"==typeof t}var tZ="function"==typeof Symbol&&Symbol.for,tJ=tZ?Symbol.for("react.memo"):60115,tQ=tZ?Symbol.for("react.forward_ref"):60112,t0={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},t2=((tG={})[tQ]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tG[tJ]=t5,tG);function t3(t){return("type"in t&&t.type.$$typeof)===tJ?t5:"$$typeof"in t?t2[t.$$typeof]:t0}var t4=Object.defineProperty,t9=Object.getOwnPropertyNames,t6=Object.getOwnPropertySymbols,t7=Object.getOwnPropertyDescriptor,t8=Object.getPrototypeOf,ne=Object.prototype;function nt(t){return"function"==typeof t}function nn(t){return"object"==typeof t&&"styledComponentId"in t}function nr(t,n){return t&&n?"".concat(t," ").concat(n):t||n||""}function ni(t,n){if(0===t.length)return"";for(var r=t[0],i=1;i<t.length;i++)r+=n?n+t[i]:t[i];return r}function no(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function na(t,n){Object.defineProperty(t,"toString",{value:n})}function nl(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):""))}var ns=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},t.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw nl(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(t+1),s=(a=0,n.length);a<s;a++)this.tag.insertRule(l,n[a])&&(this.groupSizes[t]++,l++)},t.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},t.prototype.getGroup=function(t){var n="";if(t>=this.length||0===this.groupSizes[t])return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(tL);return n},t}(),nu=new Map,nd=new Map,nc=1,nh=function(t){if(nu.has(t))return nu.get(t);for(;nd.has(nc);)nc++;var n=nc++;return nu.set(t,n),nd.set(n,t),n},nf=function(t,n){nc=n+1,nu.set(t,n),nd.set(n,t)},np="style[".concat(tj,"][").concat(tV,'="').concat(tz,'"]'),ng=new RegExp("^".concat(tj,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),nm=function(t,n,r){for(var i,o=r.split(","),a=0,l=o.length;a<l;a++)(i=o[a])&&t.registerName(n,i)},nv=function(t,n){for(var r,i=(null!==(r=n.textContent)&&void 0!==r?r:"").split(tL),o=[],a=0,l=i.length;a<l;a++){var s=i[a].trim();if(s){var u=s.match(ng);if(u){var d=0|parseInt(u[1],10),c=u[2];0!==d&&(nf(c,d),nm(t,c,u[3]),t.getTag().insertRules(d,o)),o.length=0}else o.push(s)}}},nb=function(t){var n,i=document.head,o=t||i,a=document.createElement("style"),l=(n=Array.from(o.querySelectorAll("style[".concat(tj,"]"))))[n.length-1],s=void 0!==l?l.nextSibling:null;a.setAttribute(tj,tO),a.setAttribute(tV,tz);var u=r.nc;return u&&a.setAttribute("nonce",u),o.insertBefore(a,s),a},ny=function(){function t(t){this.element=nb(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var n=document.styleSheets,r=0,i=n.length;r<i;r++){var o=n[r];if(o.ownerNode===t)return o}throw nl(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},t}(),nx=function(){function t(t){this.element=nb(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),nw=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),nk=tD,nS={isServer:!tD,useCSSOMInjection:!tB},nP=function(){function t(t,n,r){void 0===t&&(t=t$),void 0===n&&(n={});var i=this;this.options=e3(e3({},nS),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&tD&&nk&&(nk=!1,function(t){for(var n=document.querySelectorAll(np
1),r=0,i=n.length;r<i;r++){var o=n[r];o&&o.getAttribute(tj)!==tO&&(nv(t,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),na(this,function(){return function(t){for(var n=t.getTag(),r=n.length,i="",o=0;o<r;o++)(function(r){var o=nd.get(r);if(void 0!==o){var a=t.names.get(o),l=n.getGroup(r);if(void 0!==a&&0!==l.length){var s="".concat(tj,".g").concat(r,'[id="').concat(o,'"]'),u="";void 0!==a&&a.forEach(function(t){t.length>0&&(u+="".concat(t,","))}),i+="".concat(l).concat(s,'{content:"').concat(u,'"}').concat(tL)}}})(o);return i}(i)})}return t.registerId=function(t){return nh(t)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e3(e3({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){var t,n,r;return this.tag||(this.tag=(n=(t=this.options).useCSSOMInjection,r=t.target,new ns(t.isServer?new nw(r):n?new ny(r):new nx(r))))},t.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},t.prototype.registerName=function(t,n){if(nh(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},t.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(nh(t),r)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(nh(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),nE=/&/g,nT=/^\s*\/\/.*$/gm,nC=new nP,nR=(uh=void 0===(uc=t$.options)?t$:uc,up=void 0===(uf=t$.plugins)?t_:uf,ug=function(t,n,r){return r.startsWith(uu)&&r.endsWith(uu)&&r.replaceAll(uu,"").length>0?".".concat(us):t},(um=up.slice()).push(function(t){t.type===te&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(nE,uu).replace(ud,ug))}),uh.prefix&&um.push(function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case tt:return void(t.return=function t(n,r,i){var o;switch(o=r,45^tu(n,0)?(((o<<2^tu(n,0))<<2^tu(n,1))<<2^tu(n,2))<<2^tu(n,3):0){case 5103:return e7+"print-"+n+n;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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return e7+n+n;case 4789:return e6+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return e7+n+e6+n+e9+n+n;case 5936:switch(tu(n,r+11)){case 114:return e7+n+e9+tl(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return e7+n+e9+tl(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return e7+n+e9+tl(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return e7+n+e9+n+n;case 6165:return e7+n+e9+"flex-"+n+n;case 5187:return e7+n+tl(n,/(\w+).+(:[^]+)/,e7+"box-$1$2"+e9+"flex-$1$2")+n;case 5443:return e7+n+e9+"flex-item-"+tl(n,/flex-|-self/g,"")+(ta(n,/flex-|baseline/)?"":e9+"grid-row-"+tl(n,/flex-|-self/g,""))+n;case 4675:return e7+n+e9+"flex-line-pack"+tl(n,/align-content|flex-|-self/g,"")+n;case 5548:return e7+n+e9+tl(n,"shrink","negative")+n;case 5292:return e7+n+e9+tl(n,"basis","preferred-size")+n;case 6060:return e7+"box-"+tl(n,"-grow","")+e7+n+e9+tl(n,"grow","positive")+n;case 4554:return e7+tl(n,/([^-])(transform)/g,"$1"+e7+"$2")+n;case 6187:return tl(tl(tl(n,/(zoom-|grab)/,e7+"$1"),/(image-set)/,e7+"$1"),n,"")+n;case 5495:case 3959:return tl(n,/(image-set\([^]*)/,e7+"$1$`$1");case 4968:return tl(tl(n,/(.+:)(flex-)?(.*)/,e7+"box-pack:$3"+e9+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+e7+n+n;case 4200:if(!ta(n,/flex-|baseline/))return e9+"grid-column-align"+td(n,r)+n;break;case 2592:case 3360:return e9+tl(n,"template-","")+n;case 4384:case 3616:return i&&i.some(function(t,n){return r=n,ta(t.props,/grid-\w+-end/)})?~ts(n+(i=i[r].value),"span",0)?n:e9+tl(n,"-start","")+n+e9+"grid-row-span:"+(~ts(i,"span",0)?ta(i,/\d+/):+ta(i,/\d+/)-+ta(n,/\d+/))+";":e9+tl(n,"-start","")+n;case 4896:case 4128:return i&&i.some(function(t){return ta(t.props,/grid-\w+-start/)})?n:e9+tl(tl(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return tl(n,/(.+)-inline(.+)/,e7+"$1$2")+n;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(tc(n)-1-r>6)switch(tu(n,r+1)){case 109:if(45!==tu(n,r+4))break;case 102:return tl(n,/(.+:)(.+)-([^]+)/,"$1"+e7+"$2-$3$1"+e6+(108==tu(n,r+3)?"$3":"$2-$3"))+n;case 115:return~ts(n,"stretch",0)?t(tl(n,"stretch","fill-available"),r,i)+n:n}break;case 5152:case 5920:return tl(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,i,o,a,l,s){return e9+r+":"+i+s+(o?e9+r+"-span:"+(a?l:+l-+i)+s:"")+n});case 4949:if(121===tu(n,r+6))return tl(n,":",":"+e7)+n;break;case 6444:switch(tu(n,45===tu(n,14)?18:11)){case 120:return tl(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+e7+(45===tu(n,14)?"inline-":"")+"box$3$1"+e7+"$2$3$1"+e9+"$2box$3")+n;case 100:return tl(n,":",":"+e9)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return tl(n,"scroll-","scroll-snap-")+n}return n}(t.value,t.length,r));case tn:return tA([tw(t,{value:tl(t.value,"@","@"+e7)})],i);case te:if(t.length){var o,a;return o=r=t.props,a=function(n){switch(ta(n,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":tk(tw(t,{props:[tl(n,/:(read-\w+)/,":"+e6+"$1")]})),tk(tw(t,{props:[n]})),to(t,{props:tf(r,i)});break;case"::placeholder":tk(tw(t,{props:[tl(n,/:(plac\w+)/,":"+e7+"input-$1")]})),tk(tw(t,{props:[tl(n,/:(plac\w+)/,":"+e6+"$1")]})),tk(tw(t,{props:[tl(n,/:(plac\w+)/,e9+"input-$1")]})),tk(tw(t,{props:[n]})),to(t,{props:tf(r,i)})}return""},o.map(a).join("")}}}),um.push(function(t,n,r,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case tt:return t.return=t.return||t.value;case e8:return"";case tn:return t.return=t.value+"{"+tA(t.children,i)+"}";case te:if(!tc(t.value=t.props.join(",")))return""}return tc(r=tA(t.children,i))?t.return=t.value+"{"+r+"}":""}),(uv=function(t,n,r,i){void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i="&"),us=i,uu=n,ud=RegExp("\\".concat(uu,"\\b"),"g");var o,a,l=t.replace(nT,""),s=(c=function t(n,r,i,o,a,l,s,u,d){for(var c,h=0,f=0,p=s,g=0,m=0,v=0,b=1,y=1,x=1,w=0,k="",S=a,P=l,E=o,T=k;y;)switch(v=w,w=tS()){case 40:if(108!=v&&58==tu(T,p-1)){-1!=ts(T+=tl(tT(w),"&","&\f"),"&\f",tr(h?u[h-1]:0))&&(x=-1);break}case 34:case 39:case 91:T+=tT(w);break;case 9:case 10:case 13:case 32:T+=function(t){for(;(tb=tP())&&tb<33;)tS();return tE(t)>2||tE(tb)>3?"":" "}(v);break;case 92:T+=function(t,n){for(var r;--n&&tS()&&!(tb<48||tb>102||tb>57&&tb<65||tb>70&&tb<97););return r=tv+(n<6&&32==tP()&&32==tS()),td(ty,t,r)}(tv-1,7);continue;case 47:switch(tP()){case 42:case 47:th(tx(c=function(t,n){for(;tS()&&t+tb!==57&&(t+tb!==84||47!==tP()););return"/*"+td(ty,n,tv-1)+"*"+ti(47===t?t:tS())}(tS(),tv),r,i,e8,ti(tb),td(c,2,-2),0,d),d);break;default:T+="/"}break;case 123*b:u[h++]=tc(T)*x;case 125*b:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+f:-1==x&&(T=tl(T,/\f/g,"")),m>0&&tc(T)-p&&th(m>32?tR(T+";",o,i,p-1,d):tR(tl(T," ","")+";",o,i,p-2,d),d);break;case 59:T+=";";default:if(th(E=tC(T,r,i,h,f,a,u,k,S=[],P=[],p,l),l),123===w){if(0===f)t(T,r,E,E,S,l,p,u,P);else switch(99===g&&110===tu(T,3)?100:g){case 100:case 108:case 109:case 115:t(n,E,E,o&&th(tC(n,E,E,0,0,a,u,k,a,S=[],p,P),P),a,P,p,u,o?S:P);break;default:t(T,E,E,E,[""],P,0,u,P)}}}h=f=m=0,b=x=1,k=T="",p=s;break;case 58:p=1+tc(T),m=v;default:if(b<1){if(123==w)--b;else if(125==w&&0==b++&&125==(tb=tv>0?tu(ty,--tv):0,tg--,10===tb&&(tg=1,tp--),tb))continue}switch(T+=ti(w),w*b){case 38:x=f>0?1:(T+="\f",-1);break;case 44:u[h++]=(tc(T)-1)*x,x=1;break;case 64:45===tP()&&(T+=tT(tS())),g=tP(),f=p=tc(k=T+=function(t){for(;!tE(tP());)tS();return td(ty,t,tv)}(tv)),w++;break;case 45:45===v&&2==tc(T)&&(b=0)}}return l}("",null,null,null,[""],(d=u=r||n?"".concat(r," ").concat(n," { ").concat(l," }"):l,tp=tg=1,tm=tc(ty=d),tv=0,u=[]),0,[0],u),ty="",c);uh.namespace&&(s=function t(n,r){return n.map(function(n){return"rule"===n.type&&(n.value="".concat(r," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(r," ")),n.props=n.props.map(function(t){return"".concat(r," ").concat(t)})),Array.isArray(n.children)&&"@keyframes"!==n.type&&(n.children=t(n.children,r)),n})}(s,uh.namespace));var u,d,c,h,f=[];return tA(s,(a=(o=um.concat((h=function(t){return f.push(t)},function(t){t.root||(t=t.return)&&h(t)}))).length,function(t,n,r,i){for(var l="",s=0;s<a;s++)l+=o[s](t,n,r,i)||"";return l})),f}).hash=up.length?up.reduce(function(t,n){return n.name||nl(15),tX(t,n.name)},5381).toString():"",uv),nA=_.createContext({shouldForwardProp:void 0,styleSheet:nC,stylis:nR});function nM(){return(0,_.useContext)(nA)}_.createContext(void 0);var nj=function(){function t(t,n){var r=this;this.inject=function(t,n){void 0===n&&(n=nR);var i=r.name+n.hash;
1t.hasNameForId(r.id,i)||t.insertRules(r.id,i,n(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,na(this,function(){throw nl(12,String(r.name))})}return t.prototype.getName=function(t){return void 0===t&&(t=nR),this.name+t.hash},t}();function nO(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(1===r&&"-"===i&&"-"===t[0])return t;i>="A"&&i<="Z"?n+="-"+i.toLowerCase():n+=i}return n.startsWith("ms-")?"-"+n:n}var nV=function(t){return null==t||!1===t||""===t},nz=function(t){var n=[];for(var r in t){var i=t[r];t.hasOwnProperty(r)&&!nV(i)&&(Array.isArray(i)&&i.isCss||nt(i)?n.push("".concat(nO(r),":"),i,";"):no(i)?n.push.apply(n,e4(e4(["".concat(r," {")],nz(i),!1),["}"],!1)):n.push("".concat(nO(r),": ").concat(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in tM||r.startsWith("--")?String(i).trim():"".concat(i,"px"),";")))}return n};function nL(t,n,r,i){return nV(t)?[]:nn(t)?[".".concat(t.styledComponentId)]:nt(t)?!nt(t)||t.prototype&&t.prototype.isReactComponent||!n?[t]:nL(t(n),n,r,i):t instanceof nj?r?(t.inject(r,i),[t.getName(i)]):[t]:no(t)?nz(t):Array.isArray(t)?Array.prototype.concat.apply(t_,t.map(function(t){return nL(t,n,r,i)})):[t.toString()]}var nD=tq(tz),nB=function(){function t(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&function(t){for(var n=0;n<t.length;n+=1){var r=t[n];if(nt(r)&&!nn(r))return!1}return!0}(t),this.componentId=n,this.baseHash=tX(nD,n),this.baseStyle=r,nP.registerId(n)}return t.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash){if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=nr(i,this.staticRulesId);else{var o=ni(nL(this.rules,t,n,r)),a=tY(tX(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var l=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,l)}i=nr(i,a),this.staticRulesId=a}}else{for(var s=tX(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var c=this.rules[d];if("string"==typeof c)u+=c;else if(c){var h=ni(nL(c,t,n,r));s=tX(s,h+d),u+=h}}if(u){var f=tY(s>>>0);n.hasNameForId(this.componentId,f)||n.insertRules(this.componentId,f,r(u,".".concat(f),void 0,this.componentId)),i=nr(i,f)}}return i},t}(),n_=_.createContext(void 0);function n$(t){var n=_.useContext(n_),r=(0,_.useMemo)(function(){return function(t,n){if(!t)throw nl(14);if(nt(t))return t(n);if(Array.isArray(t)||"object"!=typeof t)throw nl(8);return n?e3(e3({},n),t):t}(t.theme,n)},[t.theme,n]);return t.children?_.createElement(n_.Provider,{value:r},t.children):null}var nF={};function nI(t,n,r){var i,o,a,l,s=nn(t),u=!tK(t),d=n.attrs,c=void 0===d?t_:d,h=n.componentId,f=void 0===h?(i=n.displayName,o=n.parentComponentId,nF[a="string"!=typeof i?"sc":tH(i)]=(nF[a]||0)+1,l="".concat(a,"-").concat(tY(tq(tz+a+nF[a])>>>0)),o?"".concat(o,"-").concat(l):l):h,p=n.displayName,g=void 0===p?tK(t)?"styled.".concat(t):"Styled(".concat(t.displayName||t.name||"Component",")"):p,m=n.displayName&&n.componentId?"".concat(tH(n.displayName),"-").concat(n.componentId):n.componentId||f,v=s&&t.attrs?t.attrs.concat(c).filter(Boolean):c,b=n.shouldForwardProp;if(s&&t.shouldForwardProp){var y=t.shouldForwardProp;if(n.shouldForwardProp){var x=n.shouldForwardProp;b=function(t,n){return y(t,n)&&x(t,n)}}else b=y}var w=new nB(r,m,s?t.componentStyle:void 0);function k(t,n){return function(t,n,r){var i,o,a=t.attrs,l=t.componentStyle,s=t.defaultProps,u=t.foldedComponentIds,d=t.styledComponentId,c=t.target,h=_.useContext(n_),f=nM(),p=t.shouldForwardProp||f.shouldForwardProp,g=(void 0===(i=s)&&(i=t$),n.theme!==i.theme&&n.theme||h||i.theme||t$),m=function(t,n,r){for(var i,o=e3(e3({},n),{className:void 0,theme:r}),a=0;a<t.length;a+=1){var l=nt(i=t[a])?i(o):i;for(var s in l)o[s]="className"===s?nr(o[s],l[s]):"style"===s?e3(e3({},o[s]),l[s]):l[s]}return n.className&&(o.className=nr(o.className,n.className)),o}(a,n,g),v=m.as||c,b={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===g||("forwardedAs"===y?b.as=m.forwardedAs:p&&!p(y,v)||(b[y]=m[y]));var x=(o=nM(),l.generateAndInjectStyles(m,o.styleSheet,o.stylis)),w=nr(u,d);return x&&(w+=" "+x),m.className&&(w+=" "+m.className),b[tK(v)&&!tF.has(v)?"class":"className"]=w,b.ref=r,(0,_.createElement)(v,b)}(S,t,n)}k.displayName=g;var S=_.forwardRef(k);return S.attrs=v,S.componentStyle=w,S.displayName=g,S.shouldForwardProp=b,S.foldedComponentIds=s?nr(t.foldedComponentIds,t.styledComponentId):"",S.styledComponentId=m,S.target=s?t.target:t,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(n){this._foldedDefaultProps=s?function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var i=0;i<n.length;i++)(function t(n,r,i){if(void 0===i&&(i=!1),!i&&!no(n)&&!Array.isArray(n))return r;if(Array.isArray(r))for(var o=0;o<r.length;o++)n[o]=t(n[o],r[o]);else if(no(r))for(var o in r)n[o]=t(n[o],r[o]);return n})(t,n[i],!0);return t}({},t.defaultProps,n):n}}),na(S,function(){return".".concat(S.styledComponentId)}),u&&function t(n,r,i){if("string"!=typeof r){if(ne){var o=t8(r);o&&o!==ne&&t(n,o,i)}var a=t9(r);t6&&(a=a.concat(t6(r)));for(var l=t3(n),s=t3(r),u=0;u<a.length;++u){var d=a[u];
1if(!(d in t1||i&&i[d]||s&&d in s||l&&d in l)){var c=t7(r,d);try{t4(n,d,c)}catch(t){}}}}return n}(S,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function nN(t,n){for(var r=[t[0]],i=0,o=n.length;i<o;i+=1)r.push(n[i],t[i+1]);return r}var nH=function(t){return Object.assign(t,{isCss:!0})};function nW(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return nt(t)||no(t)?nH(nL(nN(t_,e4([t],n,!0)))):0===n.length&&1===t.length&&"string"==typeof t[0]?nL(t):nH(nL(nN(t,n)))}var nU=function(t){return function t(n,r,i){if(void 0===i&&(i=t$),!r)throw nl(1,r);var o=function(t){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return n(r,i,nW.apply(void 0,e4([t],o,!1)))};return o.attrs=function(o){return t(n,r,e3(e3({},i),{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return t(n,r,e3(e3({},i),o))},o}(nI,t)};function nY(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=ni(nW.apply(void 0,e4([t],n,!1)));return new nj(tY(tq(i)>>>0),i)}tF.forEach(function(t){nU[t]=nU(t)});let nG=(0,_.forwardRef)(function(t,n){return(0,B.jsx)("svg",{"data-sanity-icon":"spinner",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...t,children:(0,B.jsx)("path",{d:"M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),nX=["top","right","bottom","left"],nq=Math.min,nK=Math.max,nZ=Math.round,nJ=Math.floor,nQ=t=>({x:t,y:t}),n0={left:"right",right:"left",bottom:"top",top:"bottom"},n1={start:"end",end:"start"};function n5(t,n){return"function"==typeof t?t(n):t}function n2(t){return t.split("-")[0]}function n3(t){return t.split("-")[1]}function n4(t){return"x"===t?"y":"x"}function n9(t){return"y"===t?"height":"width"}function n6(t){return["top","bottom"].includes(n2(t))?"y":"x"}function n7(t){return t.replace(/start|end/g,t=>n1[t])}function n8(t){return t.replace(/left|right|bottom|top/g,t=>n0[t])}function re(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function rt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function rn(t,n,r){let i,{reference:o,floating:a}=t,l=n6(n),s=n4(n6(n)),u=n9(s),d=n2(n),c="y"===l,h=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,p=o[u]/2-a[u]/2;switch(d){case"top":i={x:h,y:o.y-a.height};break;case"bottom":i={x:h,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:f};break;case"left":i={x:o.x-a.width,y:f};break;default:i={x:o.x,y:o.y}}switch(n3(n)){case"start":i[s]-=p*(r&&c?-1:1);break;case"end":i[s]+=p*(r&&c?-1:1)}return i}async function rr(t,n){var r;void 0===n&&(n={});let{x:i,y:o,platform:a,rects:l,elements:s,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=n5(n,t),g=re(p),m=s[f?"floating"===h?"reference":"floating":h],v=rt(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:u})),b="floating"===h?{...l.floating,x:i,y:o}:l.reference,y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),x=await (null==a.isElement?void 0:a.isElement(y))&&await (null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:u}):b);return{top:(v.top-w.top+g.top)/x.y,bottom:(w.bottom-v.bottom+g.bottom)/x.y,left:(v.left-w.left+g.left)/x.x,right:(w.right-v.right+g.right)/x.x}}function ri(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function ro(t){return nX.some(n=>t[n]>=0)}function ra(t){return ru(t)?(t.nodeName||"").toLowerCase():"#document"}function rl(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function rs(t){var n;return null==(n=(ru(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function ru(t){return t instanceof Node||t instanceof rl(t).Node}function rd(t){return t instanceof Element||t instanceof rl(t).Element}function rc(t){return t instanceof HTMLElement||t instanceof rl(t).HTMLElement}function rh(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof rl(t).ShadowRoot)}function rf(t){let{overflow:n,overflowX:r,overflowY:i,display:o}=rb(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!["inline","contents"].includes(o)}function rp(t){let n=rm(),r=rb(t);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!n&&!!r.backdropFilter&&"none"!==r.backdropFilter||!n&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(t=>(r.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(r.contain||"").includes(t))}function rg(t){let n=rx(t);for(;rc(n)&&!rv(n);){if(rp(n))return n;n=rx(n)}return null}function rm(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function rv(t){return["html","body","#document"].includes(ra(t))}function rb(t){return rl(t).getComputedStyle(t)}function ry(t){return rd(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rx(t){if("html"===ra(t))return t;let n=t.assignedSlot||t.parentNode||rh(t)&&t.host||rs(t);return rh(n)?n.host:n}function rw(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let o=function t(n){let r=rx(n);return rv(r)?n.ownerDocument?n.ownerDocument.body:n.body:rc(r)&&rf(r)?r:t(r)}(t),a=o===(null==(i=t.ownerDocument)?void 0:i.body),l=rl(o);
1return a?n.concat(l,l.visualViewport||[],rf(o)?o:[],l.frameElement&&r?rw(l.frameElement):[]):n.concat(o,rw(o,[],r))}function rk(t){let n=rb(t),r=parseFloat(n.width)||0,i=parseFloat(n.height)||0,o=rc(t),a=o?t.offsetWidth:r,l=o?t.offsetHeight:i,s=nZ(r)!==a||nZ(i)!==l;return s&&(r=a,i=l),{width:r,height:i,$:s}}function rS(t){return rd(t)?t:t.contextElement}function rP(t){let n=rS(t);if(!rc(n))return nQ(1);let r=n.getBoundingClientRect(),{width:i,height:o,$:a}=rk(n),l=(a?nZ(r.width):r.width)/i,s=(a?nZ(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let rE=nQ(0);function rT(t){let n=rl(t);return rm()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:rE}function rC(t,n,r,i){var o;void 0===n&&(n=!1),void 0===r&&(r=!1);let a=t.getBoundingClientRect(),l=rS(t),s=nQ(1);n&&(i?rd(i)&&(s=rP(i)):s=rP(t));let u=(void 0===(o=r)&&(o=!1),!(!i||o&&i!==rl(l))&&o)?rT(l):nQ(0),d=(a.left+u.x)/s.x,c=(a.top+u.y)/s.y,h=a.width/s.x,f=a.height/s.y;if(l){let t=rl(l),n=i&&rd(i)?rl(i):i,r=t.frameElement;for(;r&&i&&n!==t;){let t=rP(r),n=r.getBoundingClientRect(),i=rb(r),o=n.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,a=n.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;d*=t.x,c*=t.y,h*=t.x,f*=t.y,d+=o,c+=a,r=rl(r).frameElement}}return rt({width:h,height:f,x:d,y:c})}let rR=[":popover-open",":modal"];function rA(t){let n=!1,r=0,i=0;if(rR.forEach(r=>{!function(r){try{n=n||t.matches(r)}catch(t){}}(r)}),n){let n=rg(t);if(n){let t=n.getBoundingClientRect();r=t.x,i=t.y}}return[n,r,i]}function rM(t){return rC(rs(t)).left+ry(t).scrollLeft}function rj(t,n,r){let i;if("viewport"===n)i=function(t,n){let r=rl(t),i=rs(t),o=r.visualViewport,a=i.clientWidth,l=i.clientHeight,s=0,u=0;if(o){a=o.width,l=o.height;let t=rm();(!t||t&&"fixed"===n)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:l,x:s,y:u}}(t,r);else if("document"===n)i=function(t){let n=rs(t),r=ry(t),i=t.ownerDocument.body,o=nK(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),a=nK(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight),l=-r.scrollLeft+rM(t),s=-r.scrollTop;return"rtl"===rb(i).direction&&(l+=nK(n.clientWidth,i.clientWidth)-o),{width:o,height:a,x:l,y:s}}(rs(t));else if(rd(n))i=function(t,n){let r=rC(t,!0,"fixed"===n),i=r.top+t.clientTop,o=r.left+t.clientLeft,a=rc(t)?rP(t):nQ(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:o*a.x,y:i*a.y}}(n,r);else{let r=rT(t);i={...n,x:n.x-r.x,y:n.y-r.y}}return rt(i)}function rO(t,n){return rc(t)&&"fixed"!==rb(t).position?n?n(t):t.offsetParent:null}function rV(t,n){let r=rl(t);if(!rc(t))return r;let i=rO(t,n);for(;i&&["table","td","th"].includes(ra(i))&&"static"===rb(i).position;)i=rO(i,n);return i&&("html"===ra(i)||"body"===ra(i)&&"static"===rb(i).position&&!rp(i))?r:i||rg(t)||r}let rz={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:r,offsetParent:i,strategy:o}=t,a=rs(i),[l]=n?rA(n.floating):[!1];if(i===a||l)return r;let s={scrollLeft:0,scrollTop:0},u=nQ(1),d=nQ(0),c=rc(i);if((c||!c&&"fixed"!==o)&&(("body"!==ra(i)||rf(a))&&(s=ry(i)),rc(i))){let t=rC(i);u=rP(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+d.x,y:r.y*u.y-s.scrollTop*u.y+d.y}},getDocumentElement:rs,getClippingRect:function(t){let{element:n,boundary:r,rootBoundary:i,strategy:o}=t,a=[..."clippingAncestors"===r?function(t,n){let r=n.get(t);if(r)return r;let i=rw(t,[],!1).filter(t=>rd(t)&&"body"!==ra(t)),o=null,a="fixed"===rb(t).position,l=a?rx(t):t;for(;rd(l)&&!rv(l);){let n=rb(l),r=rp(l);r||"fixed"!==n.position||(o=null),(a?!r&&!o:!r&&"static"===n.position&&o&&["absolute","fixed"].includes(o.position)||rf(l)&&!r&&function t(n,r){let i=rx(n);return!(i===r||!rd(i)||rv(i))&&("fixed"===rb(i).position||t(i,r))}(t,l))?i=i.filter(t=>t!==l):o=n,l=rx(l)}return n.set(t,i),i}(n,this._c):[].concat(r),i],l=a[0],s=a.reduce((t,r)=>{let i=rj(n,r,o);return t.top=nK(i.top,t.top),t.right=nq(i.right,t.right),t.bottom=nq(i.bottom,t.bottom),t.left=nK(i.left,t.left),t},rj(n,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rV,getElementRects:async function(t){let n=this.getOffsetParent||rV,r=this.getDimensions;return{reference:function(t,n,r,i){let o=rc(n),a=rs(n),l="fixed"===r,s=rC(t,!0,l,n),u={scrollLeft:0,scrollTop:0},d=nQ(0);
1if(o||!o&&!l){if(("body"!==ra(n)||rf(a))&&(u=ry(n)),o){let t=rC(n,!0,l,n);d.x=t.x+n.clientLeft,d.y=t.y+n.clientTop}else a&&(d.x=rM(a))}let c=s.left+u.scrollLeft-d.x,h=s.top+u.scrollTop-d.y,[f,p,g]=rA(i);return f&&(c+=p,h+=g,o&&(c+=n.clientLeft,h+=n.clientTop)),{x:c,y:h,width:s.width,height:s.height}}(t.reference,await n(t.floating),t.strategy,t.floating),floating:{x:0,y:0,...await r(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:n,height:r}=rk(t);return{width:n,height:r}},getScale:rP,isElement:rd,isRTL:function(t){return"rtl"===rb(t).direction}};function rL(t,n,r,i){void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,d=rS(t),c=o||a?[...d?rw(d):[],...rw(n)]:[];c.forEach(t=>{o&&t.addEventListener("scroll",r,{passive:!0}),a&&t.addEventListener("resize",r)});let h=d&&s?function(t,n){let r,i=null,o=rs(t);function a(){var t;clearTimeout(r),null==(t=i)||t.disconnect(),i=null}return function l(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),a();let{left:d,top:c,width:h,height:f}=t.getBoundingClientRect();if(s||n(),!h||!f)return;let p={rootMargin:-nJ(c)+"px "+-nJ(o.clientWidth-(d+h))+"px "+-nJ(o.clientHeight-(c+f))+"px "+-nJ(d)+"px",threshold:nK(0,nq(1,u))||1},g=!0;function m(t){let n=t[0].intersectionRatio;if(n!==u){if(!g)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},100)}g=!1}try{i=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(m,p)}i.observe(t)}(!0),a}(d,r):null,f,p=-1,g=null;l&&(g=new ResizeObserver(t=>{let[i]=t;i&&i.target===d&&g&&(g.unobserve(n),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=g)||t.observe(n)})),r()}),d&&!u&&g.observe(d),g.observe(n));let m=u?rC(t):null;return u&&function n(){let i=rC(t);m&&(i.x!==m.x||i.y!==m.y||i.width!==m.width||i.height!==m.height)&&r(),m=i,f=requestAnimationFrame(n)}(),r(),()=>{var t;c.forEach(t=>{o&&t.removeEventListener("scroll",r),a&&t.removeEventListener("resize",r)}),null==h||h(),null==(t=g)||t.disconnect(),g=null,u&&cancelAnimationFrame(f)}}let rD=t=>({name:"arrow",options:t,async fn(n){let{x:r,y:i,placement:o,rects:a,platform:l,elements:s,middlewareData:u}=n,{element:d,padding:c=0}=n5(t,n)||{};if(null==d)return{};let h=re(c),f={x:r,y:i},p=n4(n6(o)),g=n9(p),m=await l.getDimensions(d),v="y"===p,b=v?"clientHeight":"clientWidth",y=a.reference[g]+a.reference[p]-f[p]-a.floating[g],x=f[p]-a.reference[p],w=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),k=w?w[b]:0;k&&await (null==l.isElement?void 0:l.isElement(w))||(k=s.floating[b]||a.floating[g]);let S=k/2-m[g]/2-1,P=nq(h[v?"top":"left"],S),E=nq(h[v?"bottom":"right"],S),T=k-m[g]-E,C=k/2-m[g]/2+(y/2-x/2),R=nK(P,nq(C,T)),A=!u.arrow&&null!=n3(o)&&C!==R&&a.reference[g]/2-(C<P?P:E)-m[g]/2<0,M=A?C<P?C-P:C-T:0;return{[p]:f[p]+M,data:{[p]:R,centerOffset:C-R-M,...A&&{alignmentOffset:M}},reset:A}}}),rB=(t,n,r)=>{let i=new Map,o={platform:rz,...r},a={...o.platform,_c:i};return(async(t,n,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:a=[],platform:l}=r,s=a.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(n)),d=await l.getElementRects({reference:t,floating:n,strategy:o}),{x:c,y:h}=rn(d,i,u),f=i,p={},g=0;for(let r=0;r<s.length;r++){let{name:a,fn:m}=s[r],{x:v,y:b,data:y,reset:x}=await m({x:c,y:h,initialPlacement:i,placement:f,strategy:o,middlewareData:p,rects:d,platform:l,elements:{reference:t,floating:n}});c=null!=v?v:c,h=null!=b?b:h,p={...p,[a]:{...p[a],...y}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(d=!0===x.rects?await l.getElementRects({reference:t,floating:n,strategy:o}):x.rects),{x:c,y:h}=rn(d,f,u)),r=-1)}return{x:c,y:h,placement:f,strategy:o,middlewareData:p}})(t,n,{...o,platform:a})};var r_="undefined"!=typeof document?_.useLayoutEffect:_.useEffect;function r$(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!==n.length)return!1;for(i=r;0!=i--;)if(!r$(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!({}).hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!r$(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}function rF(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function rI(t,n){let r=rF(t);return Math.round(n*r)/r}function rN(t){let n=_.useRef(t);return r_(()=>{n.current=t}),n}let rH=(0,_.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}
1),rW=(0,_.createContext)({}),rU=(0,_.createContext)(null),rY="undefined"!=typeof document,rG=rY?_.useLayoutEffect:_.useEffect,rX=(0,_.createContext)({strict:!1}),rq=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),rK="data-"+rq("framerAppearId");class rZ{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let n=this.order.indexOf(t);-1!==n&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let rJ=["prepare","read","update","preRender","render","postRender"];function rQ(t,n){let r=!1,i=!0,o={delta:0,timestamp:0,isProcessing:!1},a=rJ.reduce((t,n)=>(t[n]=function(t){let n=new rZ,r=new rZ,i=0,o=!1,a=!1,l=new WeakSet,s={schedule:(t,a=!1,s=!1)=>{let u=s&&o,d=u?n:r;return a&&l.add(t),d.add(t)&&u&&o&&(i=n.order.length),t},cancel:t=>{r.remove(t),l.delete(t)},process:u=>{if(o)a=!0;else{if(o=!0,[n,r]=[r,n],r.clear(),i=n.order.length)for(let r=0;r<i;r++){let i=n.order[r];l.has(i)&&(s.schedule(i),t()),i(u)}o=!1,a&&(a=!1,s.process(u))}}};return s}(()=>r=!0),t),{}),l=t=>{a[t].process(o)},s=()=>{let a=performance.now();r=!1,o.delta=i?1e3/60:Math.max(Math.min(a-o.timestamp,40),1),o.timestamp=a,o.isProcessing=!0,rJ.forEach(l),o.isProcessing=!1,r&&n&&(i=!1,t(s))};return{schedule:rJ.reduce((n,l)=>{let u=a[l];return n[l]=(n,a=!1,l=!1)=>(r||(r=!0,i=!0,o.isProcessing||t(s)),u.schedule(n,a,l)),n},{}),cancel:t=>rJ.forEach(n=>a[n].cancel(t)),state:o,steps:a}}let{schedule:r0,cancel:r1}=rQ(queueMicrotask,!1);function r5(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function r2(t){return"string"==typeof t||Array.isArray(t)}function r3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let r4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r9=["initial",...r4];function r6(t){return r3(t.animate)||r9.some(n=>r2(t[n]))}function r7(t){return!!(r6(t)||t.variants)}function r8(t){return Array.isArray(t)?t.join(" "):t}let ie={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"]},it={};for(let t in ie)it[t]={isEnabled:n=>ie[t].some(t=>!!n[t])};let ir=(0,_.createContext)({}),ii=(0,_.createContext)({}),io=Symbol.for("motionComponentSymbol"),ia=["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 il(t){return"string"==typeof t&&!t.includes("-")&&!!(ia.indexOf(t)>-1||/[A-Z]/.test(t))}let is={},iu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],id=new Set(iu);function ic(t,{layout:n,layoutId:r}){return id.has(t)||t.startsWith("origin")||(n||void 0!==r)&&(!!is[t]||"opacity"===t)}let ih=t=>!!(t&&t.getVelocity),ip={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ig=iu.length,im=t=>n=>"string"==typeof n&&n.startsWith(t),iv=im("--"),ib=im("var(--"),iy=(t,n)=>n&&"number"==typeof t?n.transform(t):t,ix=(t,n,r)=>Math.min(Math.max(r,t),n),iw={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},ik={...iw,transform:t=>ix(0,1,t)},iS={...iw,default:1},iP=t=>Math.round(1e5*t)/1e5,iE=/(-)?([\d]*\.?[\d])+/g,iT=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,iC=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function iR(t){return"string"==typeof t}let iA=t=>({test:n=>iR(n)&&n.endsWith(t)&&1===n.split(" ").length,parse:parseFloat,transform:n=>`${n}${t}`}),iM=iA("deg"),ij=iA("%"),iO=iA("px"),iV=iA("vh"),iz=iA("vw"),iL={...ij,parse:t=>ij.parse(t)/100,transform:t=>ij.transform(100*t)},iD={...iw,transform:Math.round}
1,iB={borderWidth:iO,borderTopWidth:iO,borderRightWidth:iO,borderBottomWidth:iO,borderLeftWidth:iO,borderRadius:iO,radius:iO,borderTopLeftRadius:iO,borderTopRightRadius:iO,borderBottomRightRadius:iO,borderBottomLeftRadius:iO,width:iO,maxWidth:iO,height:iO,maxHeight:iO,size:iO,top:iO,right:iO,bottom:iO,left:iO,padding:iO,paddingTop:iO,paddingRight:iO,paddingBottom:iO,paddingLeft:iO,margin:iO,marginTop:iO,marginRight:iO,marginBottom:iO,marginLeft:iO,rotate:iM,rotateX:iM,rotateY:iM,rotateZ:iM,scale:iS,scaleX:iS,scaleY:iS,scaleZ:iS,skew:iM,skewX:iM,skewY:iM,distance:iO,translateX:iO,translateY:iO,translateZ:iO,x:iO,y:iO,z:iO,perspective:iO,transformPerspective:iO,opacity:ik,originX:iL,originY:iL,originZ:iO,zIndex:iD,fillOpacity:ik,strokeOpacity:ik,numOctaves:iD};function i_(t,n,r,i){let{style:o,vars:a,transform:l,transformOrigin:s}=t,u=!1,d=!1,c=!0;for(let t in n){let r=n[t];if(iv(t)){a[t]=r;continue}let i=iB[t],h=iy(r,i);if(id.has(t)){if(u=!0,l[t]=h,!c)continue;r!==(i.default||0)&&(c=!1)}else t.startsWith("origin")?(d=!0,s[t]=h):o[t]=h}if(n.transform||(u||i?o.transform=function(t,{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n=0;n<ig;n++){let r=iu[n];void 0!==t[r]&&(a+=`${ip[r]||r}(${t[r]}) `)}return n&&!t.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(t,i?"":a):r&&i&&(a="none"),a}(t.transform,r,c,i):o.transform&&(o.transform="none")),d){let{originX:t="50%",originY:n="50%",originZ:r=0}=s;o.transformOrigin=`${t} ${n} ${r}`}}let i$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iF(t,n,r){for(let i in n)ih(n[i])||ic(i,r)||(t[i]=n[i])}let iI=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","ignoreStrict","viewport"]);function iN(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iI.has(t)}let iH=t=>!iN(t);try{(ub=require("@emotion/is-prop-valid").default)&&(iH=t=>t.startsWith("on")?!iN(t):ub(t))}catch(t){}function iW(t,n,r){return"string"==typeof t?t:iO.transform(n+r*t)}let iU={offset:"stroke-dashoffset",array:"stroke-dasharray"},iY={offset:"strokeDashoffset",array:"strokeDasharray"};function iG(t,{attrX:n,attrY:r,attrScale:i,originX:o,originY:a,pathLength:l,pathSpacing:s=1,pathOffset:u=0,...d},c,h,f){var p,g;if(i_(t,d,c,f),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};let{attrs:m,style:v,dimensions:b}=t;m.transform&&(b&&(v.transform=m.transform),delete m.transform),b&&(void 0!==o||void 0!==a||v.transform)&&(v.transformOrigin=(p=void 0!==o?o:.5,g=void 0!==a?a:.5,`${iW(p,b.x,b.width)} ${iW(g,b.y,b.height)}`)),void 0!==n&&(m.x=n),void 0!==r&&(m.y=r),void 0!==i&&(m.scale=i),void 0!==l&&function(t,n,r=1,i=0,o=!0){t.pathLength=1;let a=o?iU:iY;t[a.offset]=iO.transform(-i);let l=iO.transform(n),s=iO.transform(r);t[a.array]=`${l} ${s}`}(m,l,s,u,!1)}let iX=()=>({...i$(),attrs:{}}),iq=t=>"string"==typeof t&&"svg"===t.toLowerCase();function iK(t,{style:n,vars:r},i,o){for(let a in Object.assign(t.style,n,o&&o.getProjectionStyles(i)),r)t.style.setProperty(a,r[a])}let iZ=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"]);function iJ(t,n,r,i){for(let r in iK(t,n,void 0,i),n.attrs)t.setAttribute(iZ.has(r)?r:rq(r),n.attrs[r])}function iQ(t,n){let{style:r}=t,i={};for(let o in r)(ih(r[o])||n.style&&ih(n.style[o])||ic(o,t))&&(i[o]=r[o]);return i}function i0(t,n){let r=iQ(t,n);for(let i in t)(ih(t[i])||ih(n[i]))&&(r[-1!==iu.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}function i1(t,n,r,i={},o={}){return"function"==typeof n&&(n=n(void 0!==r?r:t.custom,i,o)),"string"==typeof n&&(n=t.variants&&t.variants[n]),"function"==typeof n&&(n=n(void 0!==r?r:t.custom,i,o)),n}function i5(t){let n=(0,_.useRef)(null);return null===n.current&&(n.current=t()),n.current}let i2=t=>Array.isArray(t),i3=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),i4=t=>i2(t)?t[t.length-1]||0:t;function i9(t){let n=ih(t)?t.get():t;return i3(n)?n.toValue():n}let i6=t=>(n,r)=>{let i=(0,_.useContext)(rW),o=(0,_.useContext)(rU),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,a){let l={latestValues:function(t,n,r,i){let o={},a=i(t,{});for(let t in a)o[t]=i9(a[t]);let{initial:l,animate:s}=t,u=r6(t),d=r7(t);n&&d&&!u&&!1!==t.inherit&&(void 0===l&&(l=n.initial),void 0===s&&(s=n.animate));let c=!!r&&!1===r.initial,h=(c=c||!1===l)?s:l;return h&&"boolean"!=typeof h&&!r3(h)&&(Array.isArray(h)?h:[h]).forEac
1h(n=>{let r=i1(t,n);if(!r)return;let{transitionEnd:i,transition:a,...l}=r;for(let t in l){let n=l[t];Array.isArray(n)&&(n=n[c?n.length-1:0]),null!==n&&(o[t]=n)}for(let t in i)o[t]=i[t]}),o}(i,o,a,t),renderState:n()};return r&&(l.mount=t=>r(i,t,l)),l})(t,n,i,o);return r?a():i5(a)},i7=t=>t,{schedule:i8,cancel:oe,state:ot,steps:on}=rQ("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i7,!0),or={useVisualState:i6({scrapeMotionValuesFromProps:i0,createRenderState:iX,onMount:(t,n,{renderState:r,latestValues:i})=>{i8.read(()=>{try{r.dimensions="function"==typeof n.getBBox?n.getBBox():n.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}}),i8.render(()=>{iG(r,i,{enableHardwareAcceleration:!1},iq(n.tagName),t.transformTemplate),iJ(n,r)})}})},oi={useVisualState:i6({scrapeMotionValuesFromProps:iQ,createRenderState:i$})};function oo(t,n,r,i={passive:!0}){return t.addEventListener(n,r,i),()=>t.removeEventListener(n,r)}let oa=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ol(t,n="page"){return{point:{x:t[n+"X"],y:t[n+"Y"]}}}let os=t=>n=>oa(n)&&t(n,ol(n));function ou(t,n,r,i){return oo(t,n,os(r),i)}let od=(t,n)=>r=>n(t(r)),oc=(...t)=>t.reduce(od);function oh(t){let n=null;return()=>null===n&&(n=t,()=>{n=null})}let of=oh("dragHorizontal"),op=oh("dragVertical");function og(t){let n=!1;if("y"===t)n=op();else if("x"===t)n=of();else{let t=of(),r=op();t&&r?n=()=>{t(),r()}:(t&&t(),r&&r())}return n}function om(){let t=og(!0);return!t||(t(),!1)}class ov{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ob(t,n){let r="onHover"+(n?"Start":"End");return ou(t.current,"pointer"+(n?"enter":"leave"),(i,o)=>{if("touch"===i.pointerType||om())return;let a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",n),a[r]&&i8.update(()=>a[r](i,o))},{passive:!t.getProps()[r]})}let oy=(t,n)=>!!n&&(t===n||oy(t,n.parentElement));function ox(t,n){if(!n)return;let r=new PointerEvent("pointer"+t);n(r,ol(r))}let ow=new WeakMap,ok=new WeakMap,oS=t=>{let n=ow.get(t.target);n&&n(t)},oP=t=>{t.forEach(oS)},oE={some:0,all:1};function oT(t,n){if(!Array.isArray(n))return!1;let r=n.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function oC(t,n,r){let i=t.getProps();return i1(i,n,void 0!==r?r:i.custom,function(t){let n={};return t.values.forEach((t,r)=>n[r]=t.get()),n}(t),function(t){let n={};return t.values.forEach((t,r)=>n[r]=t.getVelocity()),n}(t))}let oR=t=>1e3*t,oA=t=>t/1e3,oM=(t,n,r)=>(((1-3*r+3*n)*t+(3*r-6*n))*t+3*n)*t;function oj(t,n,r,i){if(t===n&&r===i)return i7;let o=n=>(function(t,n,r,i,o){let a,l,s=0;do(a=oM(l=n+(r-n)/2,i,o)-t)>0?r=l:n=l;while(Math.abs(a)>1e-7&&++s<12);return l})(n,0,1,t,r);return t=>0===t||1===t?t:oM(o(t),n,i)}let oO=oj(.42,0,1,1),oV=oj(0,0,.58,1),oz=oj(.42,0,.58,1),oL=t=>Array.isArray(t)&&"number"!=typeof t[0],oD=t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2,oB=t=>n=>1-t(1-n),o_=t=>1-Math.sin(Math.acos(t)),o$=oB(o_),oF=oD(o_),oI=oj(.33,1.53,.69,.99),oN=oB(oI),oH=oD(oN),oW={linear:i7,easeIn:oO,easeInOut:oz,easeOut:oV,circIn:o_,circInOut:oF,circOut:o$,backIn:oN,backInOut:oH,backOut:oI,anticipate:t=>(t*=2)<1?.5*oN(t):.5*(2-Math.pow(2,-10*(t-1)))},oU=t=>{if(Array.isArray(t)){let[n,r,i,o]=t;return oj(n,r,i,o)}return"string"==typeof t?oW[t]:t},oY=(t,n)=>r=>!!(iR(r)&&iC.test(r)&&r.startsWith(t)||n&&Object.prototype.hasOwnProperty.call(r,n)),oG=(t,n,r)=>i=>{if(!iR(i))return i;let[o,a,l,s]=i.match(iE);return{[t]:parseFloat(o),[n]:parseFloat(a),[r]:parseFloat(l),alpha:void 0!==s?parseFloat(s):1}},oX={...iw,transform:t=>Math.round(ix(0,255,t))},oq={test:oY("rgb","red"),parse:oG("red","green","blue"),transform:({red:t,green:n,blue:r,alpha:i=1})=>"rgba("+oX.transform(t)+", "+oX.transform(n)+", "+oX.transform(r)+", "+iP(ik.transform(i))+")"},oK={test:oY("#"),parse:function(t){let n="",r="",i="",o="";return t.length>5?(n=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(n=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),n+=n,r+=r,i+=i,o+=o),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(i,16),alph
1a:o?parseInt(o,16)/255:1}},transform:oq.transform},oZ={test:oY("hsl","hue"),parse:oG("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+ij.transform(iP(n))+", "+ij.transform(iP(r))+", "+iP(ik.transform(i))+")"},oJ={test:t=>oq.test(t)||oK.test(t)||oZ.test(t),parse:t=>oq.test(t)?oq.parse(t):oZ.test(t)?oZ.parse(t):oK.parse(t),transform:t=>iR(t)?t:t.hasOwnProperty("red")?oq.transform(t):oZ.transform(t)},oQ=(t,n,r)=>-r*t+r*n+t;function o0(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(n-t)*r:r<.5?n:r<2/3?t+(n-t)*(2/3-r)*6:t}let o1=(t,n,r)=>{let i=t*t;return Math.sqrt(Math.max(0,r*(n*n-i)+i))},o5=[oK,oq,oZ];function o2(t){let n=o5.find(n=>n.test(t)),r=n.parse(t);return n===oZ&&(r=function({hue:t,saturation:n,lightness:r,alpha:i}){t/=360,r/=100;let o=0,a=0,l=0;if(n/=100){let i=r<.5?r*(1+n):r+n-r*n,s=2*r-i;o=o0(s,i,t+1/3),a=o0(s,i,t),l=o0(s,i,t-1/3)}else o=a=l=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*l),alpha:i}}(r)),r}let o3=(t,n)=>{let r=o2(t),i=o2(n),o={...r};return t=>(o.red=o1(r.red,i.red,t),o.green=o1(r.green,i.green,t),o.blue=o1(r.blue,i.blue,t),o.alpha=oQ(r.alpha,i.alpha,t),oq.transform(o))}
1,o4={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:i7},o9={regex:iT,countKey:"Colors",token:"${c}",parse:oJ.parse},o6={regex:iE,countKey:"Numbers",token:"${n}",parse:iw.parse};function o7(t,{regex:n,countKey:r,token:i,parse:o}){let a=t.tokenised.match(n);a&&(t["num"+r]=a.length,t.tokenised=t.tokenised.replace(n,i),t.values.push(...a.map(o)))}function o8(t){let n=t.toString(),r={value:n,tokenised:n,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&o7(r,o4),o7(r,o9),o7(r,o6),r}function ae(t){return o8(t).values}function at(t){let{values:n,numColors:r,numVars:i,tokenised:o}=o8(t),a=n.length;return t=>{let n=o;for(let o=0;o<a;o++)n=o<i?n.replace(o4.token,t[o]):o<i+r?n.replace(o9.token,oJ.transform(t[o])):n.replace(o6.token,iP(t[o]));return n}}let an=t=>"number"==typeof t?0:t,ar={test:function(t){var n,r;return isNaN(t)&&iR(t)&&((null===(n=t.match(iE))||void 0===n?void 0:n.length)||0)+((null===(r=t.match(iT))||void 0===r?void 0:r.length)||0)>0},parse:ae,createTransformer:at,getAnimatableNone:function(t){let n=ae(t);return at(t)(n.map(an))}},ai=(t,n)=>r=>`${r>0?n:t}`;function ao(t,n){return"number"==typeof t?r=>oQ(t,n,r):oJ.test(t)?o3(t,n):t.startsWith("var(")?ai(t,n):as(t,n)}let aa=(t,n)=>{let r=[...t],i=r.length,o=t.map((t,r)=>ao(t,n[r]));return t=>{for(let n=0;n<i;n++)r[n]=o[n](t);return r}},al=(t,n)=>{let r={...t,...n},i={};for(let o in r)void 0!==t[o]&&void 0!==n[o]&&(i[o]=ao(t[o],n[o]));return t=>{for(let n in i)r[n]=i[n](t);return r}},as=(t,n)=>{let r=ar.createTransformer(n),i=o8(t),o=o8(n);return i.numVars===o.numVars&&i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?oc(aa(i.values,o.values),r):ai(t,n)},au=(t,n,r)=>{let i=n-t;return 0===i?1:(r-t)/i},ad=(t,n)=>r=>oQ(t,n,r);function ac(t,n,{clamp:r=!0,ease:i,mixer:o}={}){let a=t.length;if(1===a)return()=>n[0];t[0]>t[a-1]&&(t=[...t].reverse(),n=[...n].reverse());let l=function(t,n,r){var i;let o=[],a=r||("number"==typeof(i=t[0])?ad:"string"==typeof i?oJ.test(i)?o3:as:Array.isArray(i)?aa:"object"==typeof i?al:ad),l=t.length-1;for(let r=0;r<l;r++){let i=a(t[r],t[r+1]);n&&(i=oc(Array.isArray(n)?n[r]||i7:n,i)),o.push(i)}return o}(n,i,o),s=l.length,u=n=>{let r=0;if(s>1)for(;r<t.length-2&&!(n<t[r+1]);r++);let i=au(t[r],t[r+1],n);return l[r](i)};return r?n=>u(ix(t[0],t[a-1],n)):u}function ah({duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}){let o=oL(i)?i.map(oU):oU(i),a={done:!1,value:n[0]},l=ac((r&&r.length===n.length?r:function(t){let n=[0];return function(t,n){let r=t[t.length-1];for(let i=1;i<=n;i++){let o=au(0,n,i);t.push(oQ(r,1,o))}}(n,t.length-1),n}(n)).map(n=>n*t),n,{ease:Array.isArray(o)?o:n.map(()=>o||oz).splice(0,n.length-1)});return{calculatedDuration:t,next:n=>(a.value=l(n),a.done=n>=t,a)}}function af(t,n,r){var i,o;let a=Math.max(n-5,0);return i=r-t(a),(o=n-a)?1e3/o*i:0}function ap(t,n){return t*Math.sqrt(1-n*n)}let ag=["duration","bounce"],am=["stiffness","damping","mass"];function av(t,n){return n.some(n=>void 0!==t[n])}function ab({keyframes:t,restDelta:n,restSpeed:r,...i}){let o;let a=t[0],l=t[t.length-1],s={done:!1,value:a},{stiffness:u,damping:d,mass:c,duration:h,velocity:f,isResolvedFromDuration:p}=function(t){let n={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!av(t,am)&&av(t,ag)){let r=function({duration:t=800,bounce:n=.25,velocity:r=0,mass:i=1}){let o,a,l=1-n;l=ix(.05,1,l),t=ix(.01,10,oA(t)),l<1?(o=n=>{let i=n*l,o=i*t;return .001-(i-r)/ap(n,l)*Math.exp(-o)},a=n=>{let i=n*l*t,a=Math.pow(l,2)*Math.pow(n,2)*t,s=ap(Math.pow(n,2),l);return(-o(n)+.001>0?-1:1)*((i*r+r-a)*Math.exp(-i))/s}):(o=n=>Math.exp(-n*t)*((n-r)*t+1)-.001,a=n=>t*t*(r-n)*Math.exp(-n*t));let s=function(t,n,r){let i=r;for(let r=1;r<12;r++)i-=t(i)/n(i);return i}(o,a,5/t);if(t=oR(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{let n=Math.pow(s,2)*i;return{stiffness:n,damping:2*l*Math.sqrt(i*n),duration:t}}}(t);(n={...n,...r,mass:1}).isResolvedFromDuration=!0}return n}({...i,velocity:-oA(i.velocity||0)}),g=f||0,m=d/(2*Math.sqrt(u*c)),v=l-a,b=oA(Math.sqrt(u/c)),y=5>Math.abs(v);if(r||(r=y?.01:2),n||(n=y?.005:.5),m<1){let t=ap(b,m);o=n=>l-Math.exp(-m*b*n)*((g+m*b*v)/t*Math.sin(t*n)+v*Math.cos(t*n))}else if(1===m)o=t=>l-Math.exp(-b*t)*(v+(g+b*v)*t);else{let t=b*Math.sqrt(m*m-1);o=n=>{let r=Math.exp(-m*b*n),i=Math.min(t*n,300);return l-r*((g+m*b*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}
1return{calculatedDuration:p&&h||null,next:t=>{let i=o(t);if(p)s.done=t>=h;else{let a=g;0!==t&&(a=m<1?af(o,t,i):0);let u=Math.abs(a)<=r,d=Math.abs(l-i)<=n;s.done=u&&d}return s.value=s.done?l:i,s}}}function ay({keyframes:t,velocity:n=0,power:r=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:s,max:u,restDelta:d=.5,restSpeed:c}){let h,f;let p=t[0],g={done:!1,value:p},m=t=>void 0===s?u:void 0===u||Math.abs(s-t)<Math.abs(u-t)?s:u,v=r*n,b=p+v,y=void 0===l?b:l(b);y!==b&&(v=y-p);let x=t=>-v*Math.exp(-t/i),w=t=>y+x(t),k=t=>{let n=x(t),r=w(t);g.done=Math.abs(n)<=d,g.value=g.done?y:r},S=t=>{let n;n=g.value,(void 0!==s&&n<s||void 0!==u&&n>u)&&(h=t,f=ab({keyframes:[g.value,m(g.value)],velocity:af(w,t,g.value),damping:o,stiffness:a,restDelta:d,restSpeed:c}))};return S(0),{calculatedDuration:null,next:t=>{let n=!1;return f||void 0!==h||(n=!0,k(t),S(t)),void 0!==h&&t>h?f.next(t-h):(n||k(t),g)}}}function ax(){i=void 0}let aw={now:()=>(void 0===i&&aw.set(ot.isProcessing?ot.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(ax)}},ak=t=>{let n=({timestamp:n})=>t(n);return{start:()=>i8.update(n,!0),stop:()=>oe(n),now:()=>ot.isProcessing?ot.timestamp:aw.now()}};function aS(t){let n=0,r=t.next(n);for(;!r.done&&n<2e4;)n+=50,r=t.next(n);return n>=2e4?1/0:n}let aP={decay:ay,inertia:ay,tween:ah,keyframes:ah,spring:ab};function aE({autoplay:t=!0,delay:n=0,driver:r=ak,keyframes:i,type:o="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:s="loop",onPlay:u,onStop:d,onComplete:c,onUpdate:h,...f}){let p,g,m,v,b,y=1,x=!1,w=()=>{b=new Promise(t=>{v=t})};w();let k=aP[o]||ah;k!==ah&&"number"!=typeof i[0]&&(g=ac([0,100],i,{clamp:!1}),i=[0,100]);let S=k({...f,keyframes:i});"mirror"===s&&(m=k({...f,keyframes:[...i].reverse(),velocity:-(f.velocity||0)}));let P="idle",E=null,T=null,C=null;null===S.calculatedDuration&&a&&(S.calculatedDuration=aS(S));let{calculatedDuration:R}=S,A=1/0,M=1/0;null!==R&&(M=(A=R+l)*(a+1)-l);let j=0,O=t=>{if(null===T)return;y>0&&(T=Math.min(T,t)),y<0&&(T=Math.min(t-M/y,T));let r=(j=null!==E?E:Math.round(t-T)*y)-n*(y>=0?1:-1),o=y>=0?r<0:r>M;j=Math.max(r,0),"finished"===P&&null===E&&(j=M);let u=j,d=S;if(a){let t=Math.min(j,M)/A,n=Math.floor(t),r=t%1;!r&&t>=1&&(r=1),1===r&&n--,(n=Math.min(n,a+1))%2&&("reverse"===s?(r=1-r,l&&(r-=l/A)):"mirror"===s&&(d=m)),u=ix(0,1,r)*A}let c=o?{done:!1,value:i[0]}:d.next(u);g&&(c.value=g(c.value));let{done:f}=c;o||null===R||(f=y>=0?j>=M:j<=0);let p=null===E&&("finished"===P||"running"===P&&f);return h&&h(c.value),p&&L(),c},V=()=>{p&&p.stop(),p=void 0},z=()=>{P="idle",V(),v(),w(),T=C=null},L=()=>{P="finished",c&&c(),V(),v()},D=()=>{if(x)return;p||(p=r(O));let t=p.now();u&&u(),null!==E?T=t-E:T&&"finished"!==P||(T=t),"finished"===P&&w(),C=T,E=null,P="running",p.start()};t&&D();let B={then:(t,n)=>b.then(t,n),get time(){return oA(j)},set time(e){j=e=oR(e),null===E&&p&&0!==y?T=p.now()-e/y:E=e},get duration(){return oA(null===S.calculatedDuration?aS(S):S.calculatedDuration)},get speed(){return y},set speed(e){e!==y&&p&&(y=e,B.time=oA(j))},get state(){return P},play:D,pause:()=>{P="paused",E=j},stop:()=>{x=!0,"idle"!==P&&(P="idle",d&&d(),z())},cancel:()=>{null!==C&&O(C),z()},complete:()=>{P="finished"},sample:t=>(T=0,O(t))};return B}let aT={type:"spring",stiffness:500,damping:25,restSpeed:10},aC={type:"keyframes",duration:.8},aR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aA=(t,{keyframes:n})=>n.length>2?aC:id.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:aT:aR,aM=(t,n)=>"zIndex"!==t&&(!("number"!=typeof n&&!Array.isArray(n))||!("string"!=typeof n||!ar.test(n)&&"0"!==n||n.startsWith("url("))),aj=new Set(["brightness","contrast","saturate","opacity"]);function aO(t){let[n,r]=t.slice(0,-1).split("(");if("drop-shadow"===n)return t;let[i]=r.match(iE)||[];if(!i)return t;let o=r.replace(i,""),a=aj.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+o+")"}let aV=/([a-z-]*)\(.*?\)/g,az={...ar,getAnimatableNone:t=>{let n=t.match(aV);return n?n.map(aO).join(" "):t}},aL={...iB,color:oJ,backgroundColor:oJ,outlineColor:oJ,fill:oJ,stroke:oJ,borderColor:oJ,borderTopColor:oJ,borderRightColor:oJ,borderBottomColor:oJ,borderLeftColor:oJ,filter:az,WebkitFilter:az},aD=t=>aL[t];function aB(t,n){let r=aD(t);return r!==az&&(r=ar),r.getAnimatableNone?r.getAnimatableNone(n):void 0}let a_=t=>/^0[^.\s]+$/.test(t);function a$(t,n){return t[n]||t.default||t}
1let aF=(t,n,r,i={})=>o=>{let a=a$(i,t)||{},l=a.delay||i.delay||0,{elapsed:s=0}=i;s-=oR(l);let u=function(t,n,r,i){let o,a;let l=aM(n,r);o=Array.isArray(r)?[...r]:[null,r];let s=void 0!==i.from?i.from:t.get(),u=[];for(let t=0;t<o.length;t++){var d;null===o[t]&&(o[t]=0===t?s:o[t-1]),("number"==typeof(d=o[t])?0===d:null!==d?"none"===d||"0"===d||a_(d):void 0)&&u.push(t),"string"==typeof o[t]&&"none"!==o[t]&&"0"!==o[t]&&(a=o[t])}if(l&&u.length&&a)for(let t=0;t<u.length;t++)o[u[t]]=aB(n,a);return o}(n,t,r,a),d=u[0],c=u[u.length-1],h=aM(t,d),f=aM(t,c),p={keyframes:u,velocity:n.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:t=>{n.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()}};return(function({when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:o,repeat:a,repeatType:l,repeatDelay:s,from:u,elapsed:d,...c}){return!!Object.keys(c).length}(a)||(p={...p,...aA(t,p)}),p.duration&&(p.duration=oR(p.duration)),p.repeatDelay&&(p.repeatDelay=oR(p.repeatDelay)),h&&f&&!1!==a.type)?(!i.isHandoff&&n.owner&&n.owner.current instanceof HTMLElement&&n.owner.getProps().onUpdate,aE(p)):function({keyframes:t,delay:n,onUpdate:r,onComplete:i}){let o=()=>(r&&r(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:i7,pause:i7,stop:i7,then:t=>(t(),Promise.resolve()),cancel:i7,complete:i7});return n?aE({keyframes:[0,1],duration:0,delay:n,onComplete:o}):o()}(p)};function aI(t){return!!(ih(t)&&t.add)}let aN=t=>/^\-?\d*\.?\d+$/.test(t);function aH(t,n){-1===t.indexOf(n)&&t.push(n)}function aW(t,n){let r=t.indexOf(n);r>-1&&t.splice(r,1)}class aU{constructor(){this.subscriptions=[]}add(t){return aH(this.subscriptions,t),()=>aW(this.subscriptions,t)}notify(t,n,r){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){let i=this.subscriptions[o];i&&i(t,n,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class aY{constructor(t,n={}){this.version="11.0.3",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,n=!0)=>{let r=aw.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=!isNaN(parseFloat(this.current)),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=aw.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new aU);let r=this.events[t].add(n);return"change"===t?()=>{r(),i8.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){n&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,n)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var t;let n=aw.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||n-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*t:0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function aG(t,n){return new aY(t,n)}let aX=t=>n=>n.test(t),aq=[iw,iO,ij,iM,iz,iV,{test:t=>"auto"===t,parse:t=>t}],aK=t=>aq.find(aX(t)),aZ=[...aq,oJ,ar],aJ=t=>aZ.find(aX(t));function aQ(t,n,{delay:r=0,transitionOverride:i,type:o}={}){let{transition:a=t.getDefaultTransition(),transitionEnd:l,...s}=t.makeTargetAnimatable(n),u=t.getValue("willChange");i&&(a=i);let d=[],c=o&&t.animationState&&t.animationState.getState()[o];for(let n in s){let i=t.getValue(n),o=s[n];if(!i||void 0===o||c&&function({protectedKeys:t,needsAnimating:n},r){let i=t.hasOwnProperty(r)&&!0!==n[r];return n[r]=!1,i}(c,n))continue;let l={delay:r,elapsed:0,...a$(a||{},n)};if(window.HandoffAppearAnimations){let r=t.getProps()[rK];if(r){let t=window.HandoffAppearAnimations(r,n,i,i8);null!==t&&(l.elapsed=t,l.isHandoff=!0)}}let h=!l.isHandoff&&!function(t,n){let r=t.get();if(!Array.isArray(n))return r!==n;for(let t=0;t<n.length;t++)if(n[t]!==r)return!0}(i,o);if("spring"===l.type&&(i.getVelocity()||l.velocity)&&(h=!1),i.animation&&(h=!1),h)continue;i.start(aF(n,i,o,t.shouldReduceMotion&&id.has(n)?{type:!1}:l));let f=i.animation;aI(u)&&(u.add(n),f.then(()=>u.remove(n))),d.push(f)}return l&&Promise.all(d).then(()=>{l&&function(t,n){let r=oC(t,n),{transitionEnd:i={},transition:o={},...a}=r?t.makeTargetAnimatable(r,!1):{};for(let n in a={...a,...i}){var l;l=i4(a[n]),t.hasValue(n)?t.getValue(n).set(l):t.addValue(n,aG(l))}}(t,l)}),d}function a0(t,n,r={}){let i=oC(t,n,r.custom),{transition:o=t.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let a=i?()=>Promise.all(aQ(t,i,r)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:a=0,staggerChildren:l,staggerDirection:s}=o;return function(t,n,r=0,i=0,o=1,a){let l=[],s=(t.variantChildren.size-1)*i,u=1===o?(t=0)=>t*i:(t=0)=>s-t*i;
1return Array.from(t.variantChildren).sort(a1).forEach((t,i)=>{t.notify("AnimationStart",n),l.push(a0(t,n,{...a,delay:r+u(i)}).then(()=>t.notify("AnimationComplete",n)))}),Promise.all(l)}(t,n,a+i,l,s,r)}:()=>Promise.resolve(),{when:s}=o;if(s){let[t,n]="beforeChildren"===s?[a,l]:[l,a];return t().then(()=>n())}return Promise.all([a(),l(r.delay)])}function a1(t,n){return t.sortNodePosition(n)}let a5=[...r4].reverse(),a2=r4.length;function a3(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let a4=0,a9=(t,n)=>Math.abs(t-n);class a6{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,n;if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;let r=le(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,o=(t=r.offset,n={x:0,y:0},Math.sqrt(a9(t.x,n.x)**2+a9(t.y,n.y)**2)>=3);if(!i&&!o)return;let{point:a}=r,{timestamp:l}=ot;this.history.push({...a,timestamp:l});let{onStart:s,onMove:u}=this.handlers;
1i||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,r)},this.handlePointerMove=(t,n)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=a7(n,this.transformPagePoint),i8.update(this.updatePoint,!0)},this.handlePointerUp=(t,n)=>{this.end();let{onEnd:r,onSessionEnd:i,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;let a=le("pointercancel"===t.type?this.lastMoveEventInfo:a7(n,this.transformPagePoint),this.history);this.startEvent&&r&&r(t,a),i&&i(t,a)},!oa(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;let a=a7(ol(t),this.transformPagePoint),{point:l}=a,{timestamp:s}=ot;this.history=[{...l,timestamp:s}];let{onSessionStart:u}=n;u&&u(t,le(a,this.history)),this.removeListeners=oc(ou(this.contextWindow,"pointermove",this.handlePointerMove),ou(this.contextWindow,"pointerup",this.handlePointerUp),ou(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oe(this.updatePoint)}}function a7(t,n){return n?{point:n(t.point)}:t}function a8(t,n){return{x:t.x-n.x,y:t.y-n.y}}function le({point:t},n){return{point:t,delta:a8(t,lt(n)),offset:a8(t,n[0]),velocity:function(t,n){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null,o=lt(t);for(;r>=0&&(i=t[r],!(o.timestamp-i.timestamp>oR(.1)));)r--;if(!i)return{x:0,y:0};let a=oA(o.timestamp-i.timestamp);if(0===a)return{x:0,y:0};let l={x:(o.x-i.x)/a,y:(o.y-i.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}(n,0)}}function lt(t){return t[t.length-1]}function ln(t){return t.max-t.min}function lr(t,n=0,r=.01){return Math.abs(t-n)<=r}function li(t,n,r,i=.5){t.origin=i,t.originPoint=oQ(n.min,n.max,t.origin),t.scale=ln(r)/ln(n),(lr(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=oQ(r.min,r.max,t.origin)-t.originPoint,(lr(t.translate)||isNaN(t.translate))&&(t.translate=0)}function lo(t,n,r,i){li(t.x,n.x,r.x,i?i.originX:void 0),li(t.y,n.y,r.y,i?i.originY:void 0)}function la(t,n,r){t.min=r.min+n.min,t.max=t.min+ln(n)}function ll(t,n,r){t.min=n.min-r.min,t.max=t.min+ln(n)}function ls(t,n,r){ll(t.x,n.x,r.x),ll(t.y,n.y,r.y)}function lu(t,n,r){return{min:void 0!==n?t.min+n:void 0,max:void 0!==r?t.max+r-(t.max-t.min):void 0}}function ld(t,n){let r=n.min-t.min,i=n.max-t.max;return n.max-n.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function lc(t,n,r){return{min:lh(t,n),max:lh(t,r)}}function lh(t,n){return"number"==typeof t?t:t[n]||0}let lf=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),lp=()=>({x:{min:0,max:0},y:{min:0,max:0}});function lg(t){return[t("x"),t("y")]}function lm({top:t,left:n,right:r,bottom:i}){return{x:{min:n,max:r},y:{min:t,max:i}}}function lv(t){return void 0===t||1===t}function lb({scale:t,scaleX:n,scaleY:r}){return!lv(t)||!lv(n)||!lv(r)}function ly(t){return lb(t)||lx(t)||t.z||t.rotate||t.rotateX||t.rotateY}function lx(t){var n,r;return(n=t.x)&&"0%"!==n||(r=t.y)&&"0%"!==r}function lw(t,n,r,i,o){return void 0!==o&&(t=i+o*(t-i)),i+r*(t-i)+n}function lk(t,n=0,r=1,i,o){t.min=lw(t.min,n,r,i,o),t.max=lw(t.max,n,r,i,o)}function lS(t,{x:n,y:r}){lk(t.x,n.translate,n.scale,n.originPoint),lk(t.y,r.translate,r.scale,r.originPoint)}function lP(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function lE(t,n){t.min=t.min+n,t.max=t.max+n}function lT(t,n,[r,i,o]){let a=void 0!==n[o]?n[o]:.5,l=oQ(t.min,t.max,a);lk(t,n[r],n[i],l,n.scale)}let lC=["x","scaleX","originX"],lR=["y","scaleY","originY"];function lA(t,n){lT(t.x,n,lC),lT(t.y,n,lR)}function lM(t,n){return lm(function(t,n){if(!n)return t;let r=n({x:t.left,y:t.top}),i=n({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),n))}let lj=({current:t})=>t?t.ownerDocument.defaultView:null,lO=new WeakMap;class lV{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lp(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new a6(t,{onSessionStart:t=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ol(t,"page").point)},onStart:(t,n)=>{let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();if(r&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=og(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lg(t=>{let n=this.getAxisMotionValue(t).get()||0;if(ij.test(n)){let{projection:r}=this.visualElement;if(r&&r.layout){let i=r.layout.layoutBox[t];i&&(n=ln(i)*(parseFloat(n)/100))}}this.originPoint[t]=n}),o&&i8.update(()=>o(t,n),!1,!0);let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(t,n)=>{let{dragPropagation:r,dragDirectionLock:i,onDirectionLock:o,onDrag:a}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:l}=n;if(i&&null===this.currentDirection)return this.currentDirection=function(t,n=10){let r=null;return Math.abs(t.y)>n?r="y":Math.abs(t.x)>n&&(r="x"),r}(l),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",n.point,l),this.updateAxis("y",n.point,l),this.visualElement.render(),a&&a(t,n)},onSessionEnd:(t,n)=>this.stop(t,n),resumeAnimation:()=>lg(t=>{var n;return"paused"===this.getAnimationState(t)&&(null===(n=this.getAxisMotionValue(t).animation)||void 0===n?void 0:n.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:lj(this.visualElement)})}stop(t,n){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:i}=n;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o&&i8.update(()=>o(t,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){let{drag:i}=this.getProps();
1if(!r||!lz(t,i,this.currentDirection))return;let o=this.getAxisMotionValue(t),a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=function(t,{min:n,max:r},i){return void 0!==n&&t<n?t=i?oQ(n,t,i.min):Math.max(t,n):void 0!==r&&t>r&&(t=i?oQ(r,t,i.max):Math.min(t,r)),t}(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;let{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,o=this.constraints;n&&r5(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(t,{top:n,left:r,bottom:i,right:o}){return{x:lu(t.x,r,o),y:lu(t.y,n,i)}}(i.layoutBox,n),this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:lc(t,"left","right"),y:lc(t,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&lg(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,n){let r={};return void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:n,onMeasureDragConstraints:r}=this.getProps();if(!n||!r5(n))return!1;let i=n.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let a=function(t,n,r){let i=lM(t,r),{scroll:o}=n;return o&&(lE(i.x,o.offset.x),lE(i.y,o.offset.y)),i}(i,o.root,this.visualElement.getTransformPagePoint()),l={x:ld((t=o.layout.layoutBox).x,a.x),y:ld(t.y,a.y)};if(r){let t=r(function({x:t,y:n}){return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(l));this.hasMutatedConstraints=!!t,t&&(l=lm(t))}return l}startAnimation(t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),s=this.constraints||{};return Promise.all(lg(l=>{if(!lz(l,n,this.currentDirection))return;let u=s&&s[l]||{};a&&(u={min:0,max:0});let d={type:"inertia",velocity:r?t[l]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(l,d)})).then(l)}startAxisValueAnimation(t,n){let r=this.getAxisMotionValue(t);return r.start(aF(t,r,0,n))}stopAnimation(){lg(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){lg(t=>{var n;return null===(n=this.getAxisMotionValue(t).animation)||void 0===n?void 0:n.pause()})}getAnimationState(t){var n;return null===(n=this.getAxisMotionValue(t).animation)||void 0===n?void 0:n.state}getAxisMotionValue(t){let n="_drag"+t.toUpperCase(),r=this.visualElement.getProps();return r[n]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){lg(n=>{let{drag:r}=this.getProps();if(!lz(n,r,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){let{min:r,max:a}=i.layout.layoutBox[n];o.set(t[n]-oQ(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!r5(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};lg(t=>{let n=this.getAxisMotionValue(t);if(n){let r=n.get();i[t]=function(t,n){let r=.5,i=ln(t),o=ln(n);return o>i?r=au(n.min,n.max-i,t.min):i>o&&(r=au(t.min,t.max-o,n.min)),ix(0,1,r)}({min:r,max:r},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),lg(n=>{if(!lz(n,t,null))return;let r=this.getAxisMotionValue(n),{min:o,max:a}=this.constraints[n];r.set(oQ(o,a,i[n]))})}addListeners(){if(!this.visualElement.current)return;lO.set(this.visualElement,this);let t=ou(this.visualElement.current,"pointerdown",t=>{let{drag:n,dragListener:r=!0}=this.getProps();n&&r&&this.start(t)}),n=()=>{let{dragConstraints:t}=this.getProps();r5(t)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),n();let o=oo(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:n})=>{this.isDragging&&n&&(lg(n=>{let r=this.getAxisMotionValue(n);r&&(this.originPoint[n]+=t[n].translate,r.set(r.get()+t[n].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=.35,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function lz(t,n,r){return!(!0!==n&&n!==t||null!==r&&r!==t)}let lL=t=>(n,r)=>{t&&i8.update(()=>t(n,r))},lD={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lB(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}let l_={correct:(t,n)=>{if(!n.target)return t;if("string"==typeof t){if(!iO.test(t))return t;t=parseFloat(t)}return`${lB(t,n.target.x)}% ${lB(t,n.target.y)}%`}};class l$ extends _.Component{componentDidMount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Object.assign(is,lI),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),lD.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||void 0===n?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||i8.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),r0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function lF(t){let[n,r]=function(){let t=(0,_.useContext)(rU);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,o=(0,_.useId)();return(0,_.useEffect)(()=>i(o),[]),!n&&r?[!1,()=>r&&r(o)]:[!0]}(),i=(0,_.useContext)(ir);return _.createElement(l$,{...t,layoutGroup:i,switchLayoutGroup:(0,_.useContext)(ii),isPresent:n,safeToRemove:r})}let lI={borderRadius:{...l_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:l_,borderTopRightRadius:l_,borderBottomLeftRadius:l_,borderBottomRightRadius:l_,boxShadow:{correct:(t,{treeScale:n,projectionDelta:r})=>{let i=ar.parse(t);if(i.length>5)return t;let o=ar.createTransformer(t),a="number"!=typeof i[0]?1:0,l=r.x.scale*n.x,s=r.y.scale*n.y;i[0+a]/=l,i[1+a]/=s;let u=oQ(l,s,.5);return"number"==typeof i[2+a]&&(i[2+a]/=u),"number"==typeof i[3+a]&&(i[3+a]/=u),o(i)}}},lN=["TopLeft","TopRight","BottomLeft","BottomRight"],lH=lN.length,lW=t=>"string"==typeof t?parseFloat(t):t,lU=t=>"number"==typeof t||iO.test(t);function lY(t,n){return void 0!==t[n]?t[n]:t.borderRadius}let lG=lq(0,.5,o$),lX=lq(.5,.95,i7);function lq(t,n,r){return i=>i<t?0:i>n?1:r(au(t,n,i))}function lK(t,n){t.min=n.min,t.max=n.max}function lZ(t,n){lK(t.x,n.x),lK(t.y,n.y)}function lJ(t,n,r,i,o){return t=i+1/r*((t-=n)-i),void 0!==o&&(t=i+1/o*(t-i)),t}function lQ(t,n,[r,i,o],a,l){!function(t,n=0,r=1,i=.5,o,a=t,l=t){if(ij.test(n)&&(n=parseFloat(n),n=oQ(l.min,l.max,n/100)-l.min),"number"!=typeof n)return;let s=oQ(a.min,a.max,i);t===a&&(s-=n),t.min=lJ(t.min,n,r,s,o),t.max=lJ(t.max,n,r,s,o)}(t,n[r],n[i],n[o],n.scale,a,l)}
1let l0=["x","scaleX","originX"],l1=["y","scaleY","originY"];function l5(t,n,r,i){lQ(t.x,n,l0,r?r.x:void 0,i?i.x:void 0),lQ(t.y,n,l1,r?r.y:void 0,i?i.y:void 0)}function l2(t){return 0===t.translate&&1===t.scale}function l3(t){return l2(t.x)&&l2(t.y)}function l4(t,n){return Math.round(t.x.min)===Math.round(n.x.min)&&Math.round(t.x.max)===Math.round(n.x.max)&&Math.round(t.y.min)===Math.round(n.y.min)&&Math.round(t.y.max)===Math.round(n.y.max)}function l9(t){return ln(t.x)/ln(t.y)}class l6{constructor(){this.members=[]}add(t){aH(this.members,t),t.scheduleRender()}remove(t){if(aW(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let n;let r=this.members.findIndex(n=>t===n);if(0===r)return!1;for(let t=r;t>=0;t--){let r=this.members[t];if(!1!==r.isPresent){n=r;break}}return!!n&&(this.promote(n),!0)}promote(t,n){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function l7(t,n,r){let i="",o=t.x.translate/n.x,a=t.y.translate/n.y;if((o||a)&&(i=`translate3d(${o}px, ${a}px, 0) `),1===n.x&&1===n.y||(i+=`scale(${1/n.x}, ${1/n.y}) `),r){let{rotate:t,rotateX:n,rotateY:o}=r;t&&(i+=`rotate(${t}deg) `),n&&(i+=`rotateX(${n}deg) `),o&&(i+=`rotateY(${o}deg) `)}let l=t.x.scale*n.x,s=t.y.scale*n.y;return 1===l&&1===s||(i+=`scale(${l}, ${s})`),i||"none"}let l8=(t,n)=>t.depth-n.depth;class se{constructor(){this.children=[],this.isDirty=!1}add(t){aH(this.children,t),this.isDirty=!0}remove(t){aW(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(l8),this.isDirty=!1,this.children.forEach(t)}}let st=["","X","Y","Z"],sn={visibility:"hidden"},sr=0,si={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function so({attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t={},r=null==n?void 0:n()){this.id=sr++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,si.totalNodes=si.resolvedTargetDeltas=si.recalculatedProjection=0,this.nodes.forEach(ss),this.nodes.forEach(sg),this.nodes.forEach(sm),this.nodes.forEach(su),window.MotionDebug&&window.MotionDebug.record(si)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new se)}addEventListener(t,n){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new aU),this.eventHandlers.get(t).add(n)}notifyListeners(t,...n){let r=this.eventHandlers.get(t);r&&r.notify(...n)}hasListeners(t){return this.eventHandlers.has(t)}mount(n,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=n instanceof SVGElement&&"svg"!==n.tagName,this.instance=n;let{layoutId:i,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(n),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(o||i)&&(this.isLayoutDirty=!0),t){let r;let i=()=>this.root.updateBlockedByResize=!1;t(n,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(t,n){let r=aw.now(),i=({timestamp:n})=>{let o=n-r;o>=250&&(oe(i),t(o-250))};return i8.read(i,!0),()=>oe(i)}(i,0),lD.hasAnimatedSinceResize&&(lD.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(sp))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:n,hasRelativeTargetChanged:r,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);let o=this.options.transition||a.getDefaultTransition()||sk,{onLayoutAnimationStart:l,onLayoutAnimationComplete:s}=a.getProps(),u=!this.targetLayout||!l4(this.targetLayout,i)||r,d=!n&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||d||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,d);let n={...a$(o,"layout"),onPlay:l,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(n.delay=0,n.type=!1),this.startAnimation(n)}else n||sp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,oe(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sv),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let n=this.path[t];n.shouldResetTransform=!0,n.updateScroll("snapshot"),n.options.layoutRoot&&n.willUpdate(!1)}let{layoutId:n,layout:r}=this.options;if(void 0===n&&!r)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(sc);this.isUpdating||this.nodes.forEach(sh),this.isUpdating=!1,this.nodes.forEach(sf),this.nodes.forEach(sa),this.nodes.forEach(sl),this.clearAllSnapshots();let t=aw.now();ot.delta=ix(0,1e3/60,t-ot.timestamp),ot.timestamp=t,ot.isProcessing=!0,on.update.process(ot),on.preRender.process(ot),on.render.process(ot),ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,r0.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(sd),this.sharedNodes.forEach(sb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,i8.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){i8.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lp(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:n}=this.options;n&&n.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let n=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(n=!1),n&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!l3(this.projectionDelta),r=this.getTransformTemplate(),i=r?r(this.latestValues,""):void 0,a=i!==this.prevTransformTemplateValue;t&&(n||ly(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var n;let r=this.measurePageBox(),i=this.removeElementScroll(r);return t&&(i=this.removeTransform(i)),sE((n=i).x),sE(n.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return lp();let n=t.measureViewportBox(),{scroll:r}=this.root;return r&&(lE(n.x,r.offset.x),lE(n.y,r.offset.y)),n}removeElementScroll(t){let n=lp();lZ(n,t);for(let r=0;r<this.path.length;r++){let i=this.path[r],{scroll:o,options:a}=i;if(i!==this.root&&o&&a.layoutScroll){if(o.isRoot){lZ(n,t);let{scroll:r}=this.root;r&&(lE(n.x,-r.offset.x),lE(n.y,-r.offset.y))}lE(n.x,o.offset.x),lE(n.y,o.offset.y)}}return n}applyTransform(t,n=!1){let r=lp();lZ(r,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&lA(r,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),ly(i.latestValues)&&lA(r,i.latestValues)}return ly(this.latestValues)&&lA(r,this.latestValues),r}removeTransform(t){let n=lp();lZ(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];if(!r.instance||!ly(r.latestValues))continue;lb(r.latestValues)&&r.updateSnapshot();let i=lp();lZ(i,r.measurePageBox()),l5(n,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,i)}return ly(this.latestValues)&&l5(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var n,r,i,o;let a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==a;if(!(t||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(n=this.parent)||void 0===n?void 0:n.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:s,layoutId:u}=this.options;if(this.layout&&(s||u)){if(this.resolvedRelativeTargetAt=ot.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lp(),this.relativeTargetOrigin=lp(),ls(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),lZ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=lp(),this.targetWithTransforms=lp()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,i=this.relativeTarget,o=this.relativeParent.target,la(r.x,i.x,o.x),la(r.y,i.y,o.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):lZ(this.target,this.layout.layoutBox),lS(this.target,this.targetDelta)):lZ(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lp(),this.relativeTargetOrigin=lp(),ls(this.relativeTargetOrigin,this.target,t.target),lZ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}si.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!lb(this.parent.latestValues)&&!lx(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let n=this.getLead(),r=!!this.resumingFrom||this!==n,i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===ot.timestamp&&(i=!1),i)return;let{layout:o,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!a)return;lZ(this.layoutCorrected,this.layout.layoutBox);let l=this.treeScale.x,s=this.treeScale.y;!function(t,n,r,i=!1){let o,a;let l=r.length;if(l){n.x=n.y=1;for(let s=0;s<l;s++){a=(o=r[s]).projectionDelta;let l=o.instance;l&&l.style&&"contents"===l.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&lA(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(n.x*=a.x.scale,n.y*=a.y.scale,lS(t,a)),i&&ly(o.latestValues)&&lA(t,o.latestValues))}n.x=lP(n.x),n.y=lP(n.y)}}(this.layoutCorrected,this.treeScale,this.path,r),!n.layout||n.target||1===this.treeScale.x&&1===this.treeScale.y||(n.target=n.layout.layoutBox,n.targetWithTransforms=lp());let{target:u}=n;if(!u)return void(this.projectionTransform&&(this.projectionDelta=lf(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=lf(),this.projectionDeltaWithTransform=lf());let d=this.projectionTransform;lo(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=l7(this.projectionDelta,this.treeScale),this.projectionTransform===d&&this.treeScale.x===l&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),si.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,n=!1){let r;let i=this.snapshot,o=i?i.latestValues:{},a={...this.latestValues},l=lf();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!n;let s=lp(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),c=!d||d.members.length<=1,h=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(sw));this.animationProgress=0,this.mixTargetDelta=n=>{var i,d,f,p;let g=n/1e3;sy(l.x,t.x,g),sy(l.y,t.y,g),this.setTargetDelta(l),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ls(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,sx(f.x,p.x,s.x,g),sx(f.y,p.y,s.y,g),r&&(i=this.relativeTarget,d=r,i.x.min===d.x.min&&i.x.max===d.x.max&&i.y.min===d.y.min&&i.y.max===d.y.max)&&(this.isProjectionDirty=!1),r||(r=lp()),lZ(r,this.relativeTarget)),u&&(this.animationValues=a,function(t,n,r,i,o,a){o?(t.opacity=oQ(0,void 0!==r.opacity?r.opacity:1,lG(i)),t.opacityExit=oQ(void 0!==n.opacity?n.opacity:1,0,lX(i))):a&&(t.opacity=oQ(void 0!==n.opacity?n.opacity:1,void 0!==r.opacity?r.opacity:1,i));for(let o=0;o<lH;o++){let a=`border${lN[o]}Radius`,l=lY(n,a),s=lY(r,a);void 0===l&&void 0===s||(l||(l=0),s||(s=0),0===l||0===s||lU(l)===lU(s)?(t[a]=Math.max(oQ(lW(l),lW(s),i),0),(ij.test(s)||ij.test(l))&&(t[a]+="%")):t[a]=s)}(n.rotate||r.rotate)&&(t.rotate=oQ(n.rotate||0,r.rotate||0,i))}
1(a,o,this.latestValues,g,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=g},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(oe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=i8.update(()=>{lD.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,n,r){let i=ih(0)?0:aG(0);return i.start(aF("",i,1e3,r)),i.animation}(0,0,{...t,onUpdate:n=>{this.mixTargetDelta(n),t.onUpdate&&t.onUpdate(n)},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.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 t=this.getLead(),{targetWithTransforms:n,target:r,layout:i,latestValues:o}=t;if(n&&r&&i){if(this!==t&&this.layout&&i&&sT(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||lp();let n=ln(this.layout.layoutBox.x);r.x.min=t.target.x.min,r.x.max=r.x.min+n;let i=ln(this.layout.layoutBox.y);r.y.min=t.target.y.min,r.y.max=r.y.min+i}lZ(n,r),lA(n,o),lo(this.projectionDeltaWithTransform,this.layoutCorrected,n,o)}}registerSharedNode(t,n){this.sharedNodes.has(t)||this.sharedNodes.set(t,new l6),this.sharedNodes.get(t).add(n);let r=n.options.initialPromotionConfig;n.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(n):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:n}=this.options;return n&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:n}=this.options;return n?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:n,preserveFollowOpacity:r}={}){let i=this.getStack();i&&i.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let n=!1,{latestValues:r}=t;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(n=!0),!n)return;let i={};for(let n=0;n<st.length;n++){let o="rotate"+st[n];r[o]&&(i[o]=r[o],t.setStaticValue(o,0))}for(let n in t.render(),i)t.setStaticValue(n,i[n]);t.scheduleRender()}getProjectionStyles(t){var n,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sn;let i={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=i9(null==t?void 0:t.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none",i;let a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){let n={};
1return this.options.layoutId&&(n.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,n.pointerEvents=i9(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ly(this.latestValues)&&(n.transform=o?o({},""):"none",this.hasProjected=!1),n}let l=a.animationValues||a.latestValues;this.applyTransformsToTarget(),i.transform=l7(this.projectionDeltaWithTransform,this.treeScale,l),o&&(i.transform=o(l,i.transform));let{x:s,y:u}=this.projectionDelta;for(let t in i.transformOrigin=`${100*s.origin}% ${100*u.origin}% 0`,a.animationValues?i.opacity=a===this?null!==(r=null!==(n=l.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:i.opacity=a===this?void 0!==l.opacity?l.opacity:"":void 0!==l.opacityExit?l.opacityExit:0,is){if(void 0===l[t])continue;let{correct:n,applyTo:r}=is[t],o="none"===i.transform?l[t]:n(l[t],a);if(r){let t=r.length;for(let n=0;n<t;n++)i[r[n]]=o}else i[t]=o}return this.options.layoutId&&(i.pointerEvents=a===this?i9(null==t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var n;return null===(n=t.currentAnimation)||void 0===n?void 0:n.stop()}),this.root.nodes.forEach(sc),this.root.sharedNodes.clear()}}}function sa(t){t.updateLayout()}function sl(t){var n;let r=(null===(n=t.resumeFrom)||void 0===n?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,a=r.source!==t.layout.source;"size"===o?lg(t=>{let i=a?r.measuredBox[t]:r.layoutBox[t],o=ln(i);i.min=n[t].min,i.max=i.min+o}):sT(o,r.layoutBox,n)&&lg(i=>{let o=a?r.measuredBox[i]:r.layoutBox[i],l=ln(n[i]);o.max=o.min+l,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+l)});let l=lf();lo(l,n,r.layoutBox);let s=lf();a?lo(s,t.applyTransform(i,!0),r.measuredBox):lo(s,n,r.layoutBox);let u=!l3(l),d=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:o,layout:a}=i;if(o&&a){let l=lp();ls(l,r.layoutBox,o.layoutBox);let s=lp();ls(s,n,a.layoutBox),l4(l,s)||(d=!0),i.options.layoutRoot&&(t.relativeTarget=s,t.relativeTargetOrigin=l,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:s,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(t.isLead()){let{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function ss(t){si.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function su(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sd(t){t.clearSnapshot()}function sc(t){t.clearMeasurements()}function sh(t){t.isLayoutDirty=!1}function sf(t){let{visualElement:n}=t.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),t.resetTransform()}function sp(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sg(t){t.resolveTargetDelta()}function sm(t){t.calcProjection()}function sv(t){t.resetRotation()}function sb(t){t.removeLeadSnapshot()}function sy(t,n,r){t.translate=oQ(n.translate,0,r),t.scale=oQ(n.scale,1,r),t.origin=n.origin,t.originPoint=n.originPoint}function sx(t,n,r,i){t.min=oQ(n.min,r.min,i),t.max=oQ(n.max,r.max,i)}function sw(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sk={duration:.45,ease:[.4,0,.1,1]},sS=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),sP=sS("applewebkit/")&&!sS("chrome/")?Math.round:i7;function sE(t){t.min=sP(t.min),t.max=sP(t.max)}function sT(t,n,r){return"position"===t||"preserve-aspect"===t&&!lr(l9(n),l9(r),.2)}let sC=so({attachResizeListener:(t,n)=>oo(t,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sR={current:void 0},sA=so({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sR.current){let t=new sC({});t.mount(window),t.setOptions({layoutScroll:!0}),sR.current=t}return sR.current},resetTransform:(t,n)=>{t.style.transform=void 0!==n?n:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),sM=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sj(t,n,r=1){let[i,o]=function(t){let n=sM.exec(t);if(!n)return[,];let[,r,i]=n;return[r,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let t=a.trim();return aN(t)?parseFloat(t):t}return ib(o)?sj(o,n,r+1):o}let sO=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),sV=t=>sO.has(t),sz=t=>t===iw||t===iO,sL=(t,n)=>parseFloat(t.split(", ")[n]),sD=(t,n)=>(r,{transform:i})=>{if("none"===i||!i)return 0;let o=i.match(/^matrix3d\((.+)\)$/);if(o)return sL(o[1],n);{let n=i.match(/^matrix\((.+)\)$/);return n?sL(n[1],t):0}},sB=new Set(["x","y","z"]),s_=iu.filter(t=>!sB.has(t)),s$={width:({x:t},{paddingLeft:n="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),height:({y:t},{paddingTop:n="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),top:(t,{top:n})=>parseFloat(n),left:(t,{left:n})=>parseFloat(n),bottom:({y:t},{top:n})=>parseFloat(n)+(t.max-t.min),right:({x:t},{left:n})=>parseFloat(n)+(t.max-t.min),x:sD(4,13),y:sD(5,14)};s$.translateX=s$.x,s$.translateY=s$.y;let sF=(t,n,r={},i={})=>{n={...n},i={...i};let o=Object.keys(n).filter(sV),a=[],l=!1,s=[];
1if(o.forEach(o=>{let u;let d=t.getValue(o);if(!t.hasValue(o))return;let c=r[o],h=aK(c),f=n[o];if(i2(f)){let t=f.length,n=null===f[0]?1:0;h=aK(c=f[n]);for(let r=n;r<t&&null!==f[r];r++)u?i7(aK(f[r])===u):u=aK(f[r])}else u=aK(f);if(h!==u){if(sz(h)&&sz(u)){let t=d.get();"string"==typeof t&&d.set(parseFloat(t)),"string"==typeof f?n[o]=parseFloat(f):Array.isArray(f)&&u===iO&&(n[o]=f.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?d.set(u.transform(c)):n[o]=h.transform(f):(l||(a=function(t){let n=[];return s_.forEach(r=>{let i=t.getValue(r);void 0!==i&&(n.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),n.length&&t.render(),n}(t),l=!0),s.push(o),i[o]=void 0!==i[o]?i[o]:n[o],d.jump(f))}}),s.length){let r=s.indexOf("height")>=0?window.pageYOffset:null,o=((t,n,r)=>{let i=n.measureViewportBox(),o=getComputedStyle(n.current),{display:a}=o,l={};"none"===a&&n.setStaticValue("display",t.display||"block"),r.forEach(t=>{l[t]=s$[t](i,o)}),n.render();let s=n.measureViewportBox();return r.forEach(r=>{let i=n.getValue(r);i&&i.jump(l[r]),t[r]=s$[r](s,o)}),t})(n,t,s);return a.length&&a.forEach(([n,r])=>{t.getValue(n).set(r)}),t.render(),rY&&null!==r&&window.scrollTo({top:r}),{target:o,transitionEnd:i}}return{target:n,transitionEnd:i}},sI=(t,n,r,i)=>{var o,a;let l=function(t,{...n},r){let i=t.current;if(!(i instanceof Element))return{target:n,transitionEnd:r};for(let o in r&&(r={...r}),t.values.forEach(t=>{let n=t.get();if(!ib(n))return;let r=sj(n,i);r&&t.set(r)}),n){let t=n[o];if(!ib(t))continue;let a=sj(t,i);a&&(n[o]=a,r||(r={}),void 0===r[o]&&(r[o]=t))}return{target:n,transitionEnd:r}}(t,n,i);return o=n=l.target,a=i=l.transitionEnd,Object.keys(o).some(sV)?sF(t,o,r,a):{target:o,transitionEnd:a}},sN={current:null},sH={current:!1},sW=new WeakMap,sU=Object.keys(it),sY=sU.length,sG=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sX=r9.length;class sq{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>i8.render(this.render,!1,!0);let{latestValues:l,renderState:s}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=s,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=r6(n),this.isVariantNode=r7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(let t in d){let n=d[t];void 0!==l[t]&&ih(n)&&(n.set(l[t],!1),aI(u)&&u.add(t))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,sW.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),sH.current||function(){if(sH.current=!0,rY){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),n=()=>sN.current=t.matches;t.addListener(n),n()}else sN.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sN.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in sW.delete(this.current),this.projection&&this.projection.unmount(),oe(this.notifyUpdate),oe(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){let r=id.has(t),i=n.on("change",n=>{this.latestValues[t]=n,this.props.onUpdate&&i8.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...n},r,i,o){let a,l;for(let t=0;t<sY;t++){let r=sU[t],{isEnabled:i,Feature:o,ProjectionNode:s,MeasureLayout:u}=it[r];s&&(a=s),i(n)&&(!this.features[r]&&o&&(this.features[r]=new o(this)),u&&(l=u))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:r,drag:i,dragConstraints:l,layoutScroll:s,layoutRoot:u}=n;this.projection.setOptions({layoutId:t,layout:r,alwaysMeasureLayout:!!i||l&&r5(l),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:u})}return l}updateFeatures(){for(let t in this.features){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lp()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let n=0;n<sG.length;n++){let r=sG[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i=t["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(t,n,r){let{willChange:i}=n;for(let o in n){let a=n[o],l=r[o];if(ih(a))t.addValue(o,a),aI(i)&&i.add(o);else if(ih(l))t.addValue(o,aG(a,{owner:t})),aI(i)&&i.remove(o);else if(l!==a){if(t.hasValue(o)){let n=t.getValue(o);n.hasAnimated||n.set(a)}else{let n=t.getStaticValue(o);t.addValue(o,aG(void 0!==n?n:a,{owner:t}))}}}for(let i in r)void 0===n[i]&&t.removeValue(i);return n}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let n={};for(let t=0;t<sX;t++){let r=r9[t],i=this.props[r];(r2(i)||!1===i)&&(n[r]=i)}return n}addVariantChild(t){let n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);let n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return void 0===r&&void 0!==n&&(r=aG(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;let{initial:r}=this.props,i="string"==typeof r||"object"==typeof r?null===(n=i1(this.props,r))||void 0===n?void 0:n[t]:void 0;if(r&&void 0!==i)return i;let o=this.getBaseTargetFromProps(this.props,t);return void 0===o||ih(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,n){return this.events[t]||(this.events[t]=new aU),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class sK extends sq{sortInstanceNodePosition(t,n){return 2&t.compareDocumentPosition(n)?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},i){let o=function(t,n,r){let i={};for(let o in t){let t=function(t,n){if(n)return(n[t]||n.default||n).from}(o,n);if(void 0!==t)i[o]=t;else{let t=r.getValue(o);t&&(i[o]=t.get())}}return i}(r,t||{},this);if(i){!function(t,n,r){var i,o;let a=Object.keys(n).filter(n=>!t.hasValue(n)),l=a.length;if(l)for(let s=0;s<l;s++){let l=a[s],u=n[l],d=null;Array.isArray(u)&&(d=u[0]),null===d&&(d=null!==(o=null!==(i=r[l])&&void 0!==i?i:t.readValue(l))&&void 0!==o?o:n[l]),null!=d&&("string"==typeof d&&(aN(d)||a_(d))?d=parseFloat(d):!aJ(d)&&ar.test(u)&&(d=aB(l,u)),t.addValue(l,aG(d,{owner:t})),void 0===r[l]&&(r[l]=d),null!==d&&t.setBaseTarget(l,d))}}(this,r,o);let t=sI(this,r,o,n);n=t.transitionEnd,r=t.target}return{transition:t,transitionEnd:n,...r}}}class sZ extends sK{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(id.has(n)){let t=aD(n);return t&&t.default||0}{let r=window.getComputedStyle(t),i=(iv(n)?r.getPropertyValue(n):r[n])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lM(t,n)}build(t,n,r,i){i_(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return iQ(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ih(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,n,r,i){iK(t,n,r,i)}}class sJ extends sK{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(id.has(n)){let t=aD(n);return t&&t.default||0}return n=iZ.has(n)?n:rq(n),t.getAttribute(n)}measureInstanceViewportBox(){return lp()}scrapeMotionValuesFromProps(t,n){return i0(t,n)}build(t,n,r,i){iG(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){iJ(t,n,0,i)}mount(t){this.isSVGTag=iq(t.tagName),super.mount(t)}}let sQ=(t,n)=>il(t)?new sJ(n,{enableHardwareAcceleration:!1}):new sZ(n,{enableHardwareAcceleration:!0}),s0={animation:{Feature:class extends ov{constructor(t){super(t),t.animationState||(t.animationState=function(t){let n=n=>Promise.all(n.map(({animation:n,options:r})=>(function(t,n,r={}){let i;
1if(t.notify("AnimationStart",n),Array.isArray(n))i=Promise.all(n.map(n=>a0(t,n,r)));else if("string"==typeof n)i=a0(t,n,r);else{let o="function"==typeof n?oC(t,n,r.custom):n;i=Promise.all(aQ(t,o,r))}return i.then(()=>t.notify("AnimationComplete",n))})(t,n,r))),r={animate:a3(!0),whileInView:a3(),whileHover:a3(),whileTap:a3(),whileDrag:a3(),whileFocus:a3(),exit:a3()},i=!0,o=(n,r)=>{let i=oC(t,r);if(i){let{transition:t,transitionEnd:r,...o}=i;n={...n,...o,...r}}return n};function a(a,l){let s=t.getProps(),u=t.getVariantContext(!0)||{},d=[],c=new Set,h={},f=1/0;for(let n=0;n<a2;n++){var p;let g=a5[n],m=r[g],v=void 0!==s[g]?s[g]:u[g],b=r2(v),y=g===l?m.isActive:null;!1===y&&(f=n);let x=v===u[g]&&v!==s[g]&&b;if(x&&i&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...h},!m.isActive&&null===y||!v&&!m.prevProp||r3(v)||"boolean"==typeof v)continue;let w=(p=m.prevProp,("string"==typeof v?v!==p:!!Array.isArray(v)&&!oT(v,p))||g===l&&m.isActive&&!x&&b||n>f&&b),k=!1,S=Array.isArray(v)?v:[v],P=S.reduce(o,{});!1===y&&(P={});let{prevResolvedValues:E={}}=m,T={...E,...P},C=t=>{w=!0,c.has(t)&&(k=!0,c.delete(t)),m.needsAnimating[t]=!0};for(let t in T){let n=P[t],r=E[t];if(!h.hasOwnProperty(t))(i2(n)&&i2(r)?oT(n,r):n===r)?void 0!==n&&c.has(t)?C(t):m.protectedKeys[t]=!0:void 0!==n?C(t):c.add(t)}m.prevProp=v,m.prevResolvedValues=P,m.isActive&&(h={...h,...P}),i&&t.blockInitialAnimation&&(w=!1),w&&(!x||k)&&d.push(...S.map(t=>({animation:t,options:{type:g,...a}})))}if(c.size){let n={};c.forEach(r=>{let i=t.getBaseTarget(r);void 0!==i&&(n[r]=i)}),d.push({animation:n})}let g=!!d.length;return!i||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(g=!1),i=!1,g?n(d):Promise.resolve()}return{animateChanges:a,setActive:function(n,i,o){var l;if(r[n].isActive===i)return Promise.resolve();null===(l=t.variantChildren)||void 0===l||l.forEach(t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(n,i)}),r[n].isActive=i;let s=a(o,n);for(let t in r)r[t].protectedKeys={};return s},setAnimateFunction:function(r){n=r(t)},getState:()=>r}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),r3(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends ov{constructor(){super(...arguments),this.id=a4++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let o=this.node.animationState.setActive("exit",!t,{custom:null!=r?r:this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ov{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof i?i:oE[i]};return function(t,n,r){let i=function({root:t,...n}){let r=t||document;ok.has(r)||ok.set(r,{});let i=ok.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(oP,{root:t,...n})),i[o]}(n);return ow.set(t,r),i.observe(t),()=>{ow.delete(t),i.unobserve(t)}}(this.node.current,a,t=>{let{isIntersecting:n}=t;if(this.isInView===n||(this.isInView=n,o&&!n&&this.hasEnteredView))return;n&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",n);let{onViewportEnter:r,onViewportLeave:i}=this.node.getProps(),a=n?r:i;a&&a(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:n}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:n={}}={}){return r=>t[r]!==n[r]}(t,n))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ov{constructor(){super(...arguments),this.removeStartListeners=i7,this.removeEndListeners=i7,this.removeAccessibleListeners=i7,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),i=ou(window,"pointerup",(t,n)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:i,globalTapTarget:o}=this.node.getProps();i8.update(()=>{o||oy(this.node.current,t.target)?r&&r(t,n):i&&i(t,n)})},{passive:!(r.onTap||r.onPointerUp)}),o=ou(window,"pointercancel",(t,n)=>this.cancelPress(t,n),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=oc(i,o),this.startPress(t,n)},this.startAccessiblePress=()=>
1{let t=oo(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=oo(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&ox("up",(t,n)=>{let{onTap:r}=this.node.getProps();r&&i8.update(()=>r(t,n))})}),ox("down",(t,n)=>{this.startPress(t,n)}))}),n=oo(this.node.current,"blur",()=>{this.isPressing&&ox("cancel",(t,n)=>this.cancelPress(t,n))});this.removeAccessibleListeners=oc(t,n)}}startPress(t,n){this.isPressing=!0;let{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&i8.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!om()}cancelPress(t,n){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&i8.update(()=>r(t,n))}mount(){let t=this.node.getProps(),n=ou(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=oo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=oc(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ov{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(n){t=!0}t&&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=oc(oo(this.node.current,"focus",()=>this.onFocus()),oo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ov{mount(){this.unmount=oc(ob(this.node,!0),ob(this.node,!1))}unmount(){}}},pan:{Feature:class extends ov{constructor(){super(...arguments),this.removePointerDownListener=i7}onPointerDown(t){this.session=new a6(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lj(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:lL(t),onStart:lL(n),onMove:r,onEnd:(t,n)=>{delete this.session,i&&i8.update(()=>i(t,n))}}}mount(){this.removePointerDownListener=ou(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ov{constructor(t){super(t),this.removeGroupControls=i7,this.removeListeners=i7,this.controls=new lV(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||i7}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:sA,MeasureLayout:lF},layout:{ProjectionNode:sA,MeasureLayout:lF}},s1=function(t){function n(n,r={}){return function({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:o}){t&&function(t){for(let n in t)it[n]={...it[n],...t[n]}}(t);let a=(0,_.forwardRef)(function(a,l){var s;let u;let d={...(0,_.useContext)(rH),...a,layoutId:function({layoutId:t}){let n=(0,_.useContext)(ir).id;return n&&void 0!==t?n+"-"+t:t}(a)},{isStatic:c}=d,h=function(t){let{initial:n,animate:r}=function(t,n){if(r6(t)){let{initial:n,animate:r}=t;return{initial:!1===n||r2(n)?n:void 0,animate:r2(r)?r:void 0}}return!1!==t.inherit?n:{}}(t,(0,_.useContext)(rW));return(0,_.useMemo)(()=>({initial:n,animate:r}),[r8(n),r8(r)])}(a),f=i(a,c);if(!c&&rY){h.visualElement=function(t,n,r,i){let{visualElement:o}=(0,_.useContext)(rW),a=(0,_.useContext)(rX),l=(0,_.useContext)(rU),s=(0,_.useContext)(rH).reducedMotion,u=(0,_.useRef)();i=i||a.renderer,!u.current&&i&&(u.current=i(t,{visualState:n,parent:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:s}));let d=u.current;(0,_.useInsertionEffect)(()=>{d&&d.update(r,l)});
1let c=(0,_.useRef)(!!(r[rK]&&!window.HandoffComplete));return rG(()=>{d&&(r0.postRender(d.render),c.current&&d.animationState&&d.animationState.animateChanges())}),(0,_.useEffect)(()=>{d&&(d.updateFeatures(),!c.current&&d.animationState&&d.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),d}(o,f,d,n);let r=(0,_.useContext)(ii),i=(0,_.useContext)(rX).strict;h.visualElement&&(u=h.visualElement.loadFeatures(d,i,t,r))}return _.createElement(rW.Provider,{value:h},u&&h.visualElement?_.createElement(u,{visualElement:h.visualElement,...d}):null,r(o,a,(s=h.visualElement,(0,_.useCallback)(t=>{t&&f.mount&&f.mount(t),s&&(t?s.mount(t):s.unmount()),l&&("function"==typeof l?l(t):r5(l)&&(l.current=t))},[s])),f,c,h.visualElement))});return a[io]=o,a}(t(n,r))}if("undefined"==typeof Proxy)return n;let r=new Map;return new Proxy(n,{get:(t,i)=>(r.has(i)||r.set(i,n(i)),r.get(i))})}((t,n)=>(function(t,{forwardMotionProps:n=!1},r,i){return{...il(t)?or:oi,preloadedFeatures:r,useRender:function(t=!1){return(n,r,i,{latestValues:o},a)=>{let l=(il(n)?function(t,n,r,i){let o=(0,_.useMemo)(()=>{let r=iX();return iG(r,n,{enableHardwareAcceleration:!1},iq(i),t.transformTemplate),{...r.attrs,style:{...r.style}}},[n]);if(t.style){let n={};iF(n,t.style,t),o.style={...n,...o.style}}return o}:function(t,n,r){let i={},o=function(t,n,r){let i={};return iF(i,t.style||{},t),Object.assign(i,function({transformTemplate:t},n,r){return(0,_.useMemo)(()=>{let i=i$();return i_(i,n,{enableHardwareAcceleration:!r},t),Object.assign({},i.vars,i.style)},[n])}(t,n,r)),i}(t,n,r);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=o,i})(r,o,a,n),s={...function(t,n,r){let i={};for(let o in t)"values"===o&&"object"==typeof t.values||(iH(o)||!0===r&&iN(o)||!n&&!iN(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}(r,"string"==typeof n,t),...l,ref:i},{children:u}=r,d=(0,_.useMemo)(()=>ih(u)?u.get():u,[u]);return(0,_.createElement)(n,{...s,children:d})}}(n),createVisualElement:i,Component:t}})(t,n,s0,sQ));function s5(){let t=(0,_.useRef)(!1);return rG(()=>(t.current=!0,()=>{t.current=!1}),[]),t}class s2 extends _.Component{getSnapshotBeforeUpdate(t){let n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=n.offsetHeight||0,t.width=n.offsetWidth||0,t.top=n.offsetTop,t.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function s3({children:t,isPresent:n}){let r=(0,_.useId)(),i=(0,_.useRef)(null),o=(0,_.useRef)({width:0,height:0,top:0,left:0});return(0,_.useInsertionEffect)(()=>{let{width:t,height:a,top:l,left:s}=o.current;if(n||!i.current||!t||!a)return;i.current.dataset.motionPopId=r;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 2 [data-motion-pop-id="${r}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${a}px !important; 6 top: ${l}px !important; 7 left: ${s}px !important; 8 } 9 `),()=>{document.head.removeChild(u)}},[n]),_.createElement(s2,{isPresent:n,childRef:i,sizeRef:o},_.cloneElement(t,{ref:i}))}let s4=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:l})=>{let s=i5(s9),u=(0,_.useId)(),d=(0,_.useMemo)(()=>({id:u,initial:n,isPresent:r,custom:o,onExitComplete:t=>{for(let n of(s.set(t,!0),s.values()))if(!n)return;i&&i()},register:t=>(s.set(t,!1),()=>s.delete(t))}),a?void 0:[r]);return(0,_.useMemo)(()=>{s.forEach((t,n)=>s.set(n,!1))},[r]),_.useEffect(()=>{r||s.size||!i||i()},[r]),"popLayout"===l&&(t=_.createElement(s3,{isPresent:r},t)),_.createElement(rU.Provider,{value:d},t)};function s9(){return new Map}let s6=t=>t.key||"",s7=({children:t,custom:n,initial:r=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:l="sync"})=>{var s;let u=(0,_.useContext)(ir).forceRender||function(){let t=s5(),[n,r]=(0,_.useState)(0),i=(0,_.useCallback)(()=>{t.current&&r(n+1)},[n]);return[(0,_.useCallback)(()=>i8.postRender(i),[i]),n]}()[0],d=s5(),c=function(t){let n=[];
9return _.Children.forEach(t,t=>{(0,_.isValidElement)(t)&&n.push(t)}),n}(t),h=c,f=(0,_.useRef)(new Map).current,p=(0,_.useRef)(h),g=(0,_.useRef)(new Map).current,m=(0,_.useRef)(!0);if(rG(()=>{m.current=!1,function(t,n){t.forEach(t=>{let r=s6(t);n.set(r,t)})}(c,g),p.current=h}),s=()=>{m.current=!0,g.clear(),f.clear()},(0,_.useEffect)(()=>()=>s(),[]),m.current)return _.createElement(_.Fragment,null,h.map(t=>_.createElement(s4,{key:s6(t),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:l},t)));h=[...h];let v=p.current.map(s6),b=c.map(s6),y=v.length;for(let t=0;t<y;t++){let n=v[t];-1!==b.indexOf(n)||f.has(n)||f.set(n,void 0)}return"wait"===l&&f.size&&(h=[]),f.forEach((t,r)=>{if(-1!==b.indexOf(r))return;let o=g.get(r);if(!o)return;let s=v.indexOf(r),m=t;m||(m=_.createElement(s4,{key:s6(o),isPresent:!1,onExitComplete:()=>{f.delete(r);let t=Array.from(g.keys()).filter(t=>!b.includes(t));if(t.forEach(t=>g.delete(t)),p.current=c.filter(n=>{let i=s6(n);return i===r||t.includes(i)}),!f.size){if(!1===d.current)return;u(),i&&i()}},custom:n,presenceAffectsLayout:a,mode:l},o),f.set(r,m)),h.splice(s,0,m)}),h=h.map(t=>{let n=t.key;return f.has(n)?t:_.createElement(s4,{key:s6(t),isPresent:!0,presenceAffectsLayout:a,mode:l},t)}),_.createElement(_.Fragment,null,f.size?h:h.map(t=>(0,_.cloneElement)(t)))},s8=function(t){var n,r,i,o,a,l,s,u,d,c,h;let f=function(t){let n={...t,color:function(t){let n=eP(ek,t);return{base:function(t){let n={};for(let r of ed)n[r]=function(t,n){var r,i,o,a,l,s,u,d,c,h,f,p,g,m,v,b,y,x,w,k,S,P,E,T,C,R,A,M,j,O,V,z,L,D,B,_,$,F,I,N,H,W;let U=eP(null==(r=null==t?void 0:t.base)?void 0:r["*"],null==(i=null==t?void 0:t.base)?void 0:i[n]),Y=U._hue||(null==(a=null==(o=null==t?void 0:t.base)?void 0:o[n])?void 0:a._hue)||"gray";return{...U,_hue:Y,avatar:{gray:eP({_hue:"gray"},null==(l=U.avatar)?void 0:l["*"],null==(s=U.avatar)?void 0:s.gray),blue:eP({_hue:"blue"},null==(u=U.avatar)?void 0:u["*"],null==(d=U.avatar)?void 0:d.blue),purple:eP({_hue:"purple"},null==(c=U.avatar)?void 0:c["*"],null==(h=U.avatar)?void 0:h.purple),magenta:eP({_hue:"magenta"},null==(f=U.avatar)?void 0:f["*"],null==(p=U.avatar)?void 0:p.magenta),red:eP({_hue:"red"},null==(g=U.avatar)?void 0:g["*"],null==(m=U.avatar)?void 0:m.red),orange:eP({_hue:"orange"},null==(v=U.avatar)?void 0:v["*"],null==(b=U.avatar)?void 0:b.orange),yellow:eP({_hue:"yellow"},null==(y=U.avatar)?void 0:y["*"],null==(x=U.avatar)?void 0:x.yellow),green:eP({_hue:"green"},null==(w=U.avatar)?void 0:w["*"],null==(k=U.avatar)?void 0:k.green),cyan:eP({_hue:"cyan"},null==(S=U.avatar)?void 0:S["*"],null==(P=U.avatar)?void 0:P.cyan)},badge:{default:{_hue:(null==(T=null==(E=null==t?void 0:t.base)?void 0:E.default)?void 0:T._hue)||Y,...null==(C=U.badge)?void 0:C["*"],...null==(R=U.badge)?void 0:R.default},primary:{_hue:(null==(M=null==(A=null==t?void 0:t.base)?void 0:A.primary)?void 0:M._hue)||Y,...null==(j=U.badge)?void 0:j["*"],...null==(O=U.badge)?void 0:O.primary},positive:{_hue:(null==(z=null==(V=null==t?void 0:t.base)?void 0:V.positive)?void 0:z._hue)||Y,...null==(L=U.badge)?void 0:L["*"],...null==(D=U.badge)?void 0:D.positive},caution:{_hue:(null==(_=null==(B=null==t?void 0:t.base)?void 0:B.caution)?void 0:_._hue)||Y,...null==($=U.badge)?void 0:$["*"],...null==(F=U.badge)?void 0:F.caution},critical:{_hue:(null==(N=null==(I=null==t?void 0:t.base)?void 0:I.critical)?void 0:N._hue)||Y,...null==(H=U.badge)?void 0:H["*"],...null==(W=U.badge)?void 0:W.critical}}}}(t,r);return n}(n),button:function(t){let n={};for(let r of ef)n[r]=function(t,n){let r={};for(let i of ec)r[i]=function(t,n,r){let i={};for(let o of eh)i[o]=function(t,n,r,i){var o,a,l,s,u,d,c,h,f,p,g,m,v,b,y,x,w,k,S,P,E,T,C,R,A,M,j,O,V,z,L,D,B,_,$,F,I,N,H,W,U,Y,G,X,q,K,Z,J,Q,ee,et,en;let er=eP(null==(l=null==(a=null==(o=null==t?void 0:t.button)?void 0:o[r])?void 0:a["*"])?void 0:l["*"],null==(d=null==(u=null==(s=null==t?void 0:t.button)?void 0:s[r])?void 0:u[n])?void 0:d["*"],null==(f=null==(h=null==(c=null==t?void 0:t.button)?void 0:c[r])?void 0:h["*"])?void 0:f[i],null==(m=null==(g=null==(p=null==t?void 0:t.button)?void 0:p[r])?void 0:g[n])?void 0:m[i]),ei=er._hue||(null==(b=null==(v=null==t?void 0:t.base)?void 0:v[n])?void 0:b._hue);return{...er,_hue:ei,avatar:{gray:eP({_hue:"gray"},null==(y=er.avatar)?void 0:y["*"],null==(x=er.avatar)?void 0:x.gray),blue:eP({_hue:"blue"},null==(w=er.avatar)?void 0:w["*"],null==(k=er.avatar)?void 0:k.blue),purple:eP({_hue:"purple"},null==(S=er.avatar)?void 0:S["*"],null==(P=er.avatar)?void 0:P.purple),magenta:eP({_hue:"magenta"},null==(E=er.avatar)?void 0:E["*"],null==(T=er.avatar)?void 0:T.magenta),red:eP({_hue:"red"},null==(C=er.avatar)?void 0:C["*"],null==(R=er.avatar)?void 0:R.red),orange:eP({_hue:"orange"},null==(A=er.avatar)?void 0:A["*"],null==(M=er.avatar)?void 0:M.orange),yellow:eP({_hue:"yellow"},null==(j=er.avatar)?void 0:j["*"],null==(O=er.avatar)?void 0:O.yellow),green:eP({_hue:"green"},null==(V=er.avatar)?void 0:V["*"],null==(z=er.avatar)?void 0:z.green),cyan:eP({_hue:"cyan"},null==(L=er.avatar)?void 0:L["*"],null==(D=er.avatar)?void 0:D.cyan)},badge:{default:{_hue:null==(_=null==(B=null==t?void 0:t.base)?void 0:B.default)?void 0:_._hue,...null==($=er.badge)?void 0:$["*"],...null==(F=er.badge)?void 0:F.default},primary:{_hue:null==(N=null==(I=null==t?void 0:t.base)?void 0:I.primary)?void 0:N._hue,...null==(H=er.badge)?void 0:H["*"],...null==(W=er.badge)?void 0:W.primary},positive:{_hue:null==(Y=null==(U=null==t?void 0:t.base)?void 0:U.positive)?void 0:Y._hue,...null==(G=er.badge)?void 0:G["*"],...null==(X=er.badge)?void 0:X.positive},caution:{_hue:null==(K=null==(q=null==t?void 0:t.base)?void 0:q.caution)?void 0:K._hue,...null==(Z=er.badge)?void 0:Z["*"],...null==(J=er.badge)?void 0:J.caution},critical:{_hue:null==(ee=null==(Q=null==t?void 0:t.base)?void 0:Q.critical)?void 0:ee._hue,...null==(et=er.badge)?void 0:et["*"],...null==(en=er.badge)?void 0:en.critical}}}}(t,r,n,o);return i}
9(t,n,i);return r}(t,r);return n}(n),input:function(t){let n={};for(let r of ep)n[r]=function(t,n){let r={};for(let i of eg)r[i]=function(t,n,r){var i,o,a,l,s,u,d,c,h,f;let p=eP(null==(o=null==(i=null==t?void 0:t.input)?void 0:i["*"])?void 0:o["*"],null==(l=null==(a=null==t?void 0:t.input)?void 0:a[n])?void 0:l["*"],null==(u=null==(s=null==t?void 0:t.input)?void 0:s["*"])?void 0:u[r],null==(c=null==(d=null==t?void 0:t.input)?void 0:d[n])?void 0:c[r]),g=p._hue||(null==(f=null==(h=null==t?void 0:t.input)?void 0:h[n])?void 0:f._hue);return{...p,_hue:g}}(t,n,i);return r}(t,r);return n}(n),selectable:function(t){let n={};for(let r of ec)n[r]=function(t,n){var r,i,o,a;let l={_hue:(null==(i=null==(r=null==t?void 0:t.selectable)?void 0:r[n])?void 0:i._hue)||(null==(a=null==(o=null==t?void 0:t.base)?void 0:o[n])?void 0:a._hue)};for(let r of eh)l[r]=function(t,n,r){var i,o,a,l,s,u,d,c,h,f,p,g,m,v,b,y,x,w,k,S,P,E,T,C,R,A,M,j,O,V,z,L,D,B,_,$,F,I,N,H,W,U,Y,G,X,q,K,Z;let J=eP(null==(o=null==(i=null==t?void 0:t.selectable)?void 0:i["*"])?void 0:o["*"],null==(l=null==(a=null==t?void 0:t.selectable)?void 0:a[n])?void 0:l["*"],null==(u=null==(s=null==t?void 0:t.selectable)?void 0:s["*"])?void 0:u[r],null==(c=null==(d=null==t?void 0:t.selectable)?void 0:d[n])?void 0:c[r]),Q=J._hue||(null==(f=null==(h=null==t?void 0:t.base)?void 0:h[n])?void 0:f._hue);return{...J,_hue:Q,avatar:{gray:eP({_hue:"gray"},null==(p=J.avatar)?void 0:p["*"],null==(g=J.avatar)?void 0:g.gray),blue:eP({_hue:"blue"},null==(m=J.avatar)?void 0:m["*"],null==(v=J.avatar)?void 0:v.blue),purple:eP({_hue:"purple"},null==(b=J.avatar)?void 0:b["*"],null==(y=J.avatar)?void 0:y.purple),magenta:eP({_hue:"magenta"},null==(x=J.avatar)?void 0:x["*"],null==(w=J.avatar)?void 0:w.magenta),red:eP({_hue:"red"},null==(k=J.avatar)?void 0:k["*"],null==(S=J.avatar)?void 0:S.red),orange:eP({_hue:"orange"},null==(P=J.avatar)?void 0:P["*"],null==(E=J.avatar)?void 0:E.orange),yellow:eP({_hue:"yellow"},null==(T=J.avatar)?void 0:T["*"],null==(C=J.avatar)?void 0:C.yellow),green:eP({_hue:"green"},null==(R=J.avatar)?void 0:R["*"],null==(A=J.avatar)?void 0:A.green),cyan:eP({_hue:"cyan"},null==(M=J.avatar)?void 0:M["*"],null==(j=J.avatar)?void 0:j.cyan)},badge:{default:{_hue:null==(V=null==(O=null==t?void 0:t.base)?void 0:O.default)?void 0:V._hue,...null==(z=J.badge)?void 0:z["*"],...null==(L=J.badge)?void 0:L.default},primary:{_hue:null==(B=null==(D=null==t?void 0:t.base)?void 0:D.primary)?void 0:B._hue,...null==(_=J.badge)?void 0:_["*"],...null==($=J.badge)?void 0:$.primary},positive:{_hue:null==(I=null==(F=null==t?void 0:t.base)?void 0:F.positive)?void 0:I._hue,...null==(N=J.badge)?void 0:N["*"],...null==(H=J.badge)?void 0:H.positive},caution:{_hue:null==(U=null==(W=null==t?void 0:t.base)?void 0:W.caution)?void 0:U._hue,...null==(Y=J.badge)?void 0:Y["*"],...null==(G=J.badge)?void 0:G.caution},critical:{_hue:null==(q=null==(X=null==t?void 0:t.base)?void 0:X.critical)?void 0:q._hue,...null==(K=J.badge)?void 0:K["*"],...null==(Z=J.badge)?void 0:Z.critical}}}}(t,n,r);return l}(t,r);return n}(n),syntax:n.syntax}}(null==t?void 0:t.color)};return{light:eT({scheme:"light"},n),dark:eT({scheme:"dark"},n)}}(void 0);return eo({_version:2,avatar:Y.avatar,button:(n=void 0,Y.button),card:null!=(r=null==t?void 0:t.card)?r:Y.card,color:function(t,n){var r;let i=null!=(r=null==n?void 0:n.palette)?r:ez;return{light:eU(i,t.light),dark:eU(i,t.dark)}}(f,t),container:null!=(i=null==t?void 0:t.container)?i:Y.container,font:null!=(o=null==t?void 0:t.font)?o:G,input:null!=(a=null==t?void 0:t.input)?a:Y.input,layer:null!=(l=null==t?void 0:t.layer)?l:Y.layer,media:null!=(s=null==t?void 0:t.media)?s:Y.media,radius:null!=(u=null==t?void 0:t.radius)?u:Y.radius,shadow:null!=(d=null==t?void 0:t.shadow)?d:Y.shadow,space:null!=(c=null==t?void 0:t.space)?c:Y.space,style:null!=(h=null==t?void 0:t.style)?h:Y.style})}(),ue=[],ut={},un="--motion-content-opacity",ur={initial:{opacity:.5,[un]:0,scale:.97,willChange:"transform"},animate:{opacity:[null,1,1],[un]:[null,null,1],scale:1},exit:{opacity:[null,null,0],[un]:[null,0,0],scale:.97},transition:{duration:.4,type:"spring"}};function ui(t){return 0===t?0:"".concat(t/16,"rem")}function uo(t,n,r){return((null==n?void 0:n.map(r))||[]).map((n,r)=>0===r?n:{["@media screen and (min-width: ".concat(t[r-1],"px)")]:n})}function ua(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue;if(!Array.isArray(r))throw Error("the property must be array of numbers");if(0===r.length)return null;let{media:i,space:o}=et(t);return uo(i,r,t=>{var r;return r=ui(o[t]),n.reduce((t,n)=>(t[n]=r,t),{})})}function ul(t,n){let r=(0,_.useMemo)(()=>JSON.stringify(null!=t?t:n),[n,t]);return(0,_.useMemo)(()=>void 0===t?n||ue:Array.isArray(t)?t:[t],[r])}var us,uu,ud,uc,uh,uf,up,ug,um,uv,ub,uy,ux=[],uw="ResizeObserver loop completed with undelivered notifications.";(uk=uy||(uy={})).BORDER_BOX="border-box",uk.CONTENT_BOX="content-box",uk.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var uk,uS,uP=function(t){return Object.freeze(t)},uE=function(t,n){this.inlineSize=t,this.blockSize=n,uP(this)},uT=function(){function t(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,uP(this)}return t.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}},t.fromRect=function(n){return new t(n.x,n.y,n.width,n.height)},t}(),uC=function(t){return t instanceof SVGElement&&"getBBox"in t},uR=function(t){if(uC(t)){var n=t.getBBox(),r=n.width,i=n.height;return!r&&!i}var o=t.offsetWidth,a=t.offsetHeight;return!(o||a||t.getClientRects().length)},uA=function(t){if(t instanceof Element)return!0;var n,r=null===(n=null==t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&t instanceof r.Element)},uM="undefined"!=typeof window?window:{},uj=new WeakMap,uO=/auto|scroll/,uV=/^tb|vertical/,uz=/msie|trident/i.test(uM.navigator&&uM.navigator.userAgent),uL=function(t){return parseFloat(t||"0")},uD=function(t,n,r){return void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=!1),new uE((r?n:t)||0,(r?t:n)||0)},uB=uP({devicePixelContentBoxSize:uD(),borderBoxSize:uD(),contentBoxSize:uD(),contentRect:new uT(0,0,0,0)}),u_=function(t,n){if(void 0===n&&(n=!1),uj.has(t)&&!n)return uj.get(t);if(uR(t))return uj.set(t,uB),uB;var r=getComputedStyle(t),i=uC(t)&&t.ownerSVGElement&&t.getBBox(),o=!uz&&"border-box"===r.boxSizing,a=uV.test(r.writingMode||""),l=!i&&uO.test(r.overflowY||""),s=!i&&uO.test(r.overflowX||""),u=i?0:uL(r.paddingTop),d=i?0:uL(r.paddingRight),c=i?0:uL(r.paddingBottom),h=i?0:uL(r.paddingLeft),f=i?0:uL(r.borderTopWidth),p=i?0:uL(r.borderRightWidth),g=i?0:uL(r.borderBottomWidth),m=h+d,v=u+c,b=(i?0:uL(r.borderLeftWidth))+p,y=f+g,x=s?t.offsetHeight-y-t.clientHeight:0,w=l?t.offsetWidth-b-t.clientWidth:0,k=i?i.width:uL(r.width)-(o?m+b:0)-w,S=i?i.height:uL(r.height)-(o?v+y:0)-x,P=k+m+w+b,E=S+v+x+y,T=uP({devicePixelContentBoxSize:uD(Math.round(k*devicePixelRatio),Math.round(S*devicePixelRatio),a),borderBoxSize:uD(P,E,a),contentBoxSize:uD(k,S,a),contentRect:new uT(h,u,k,S)});return uj.set(t,T),T},u$=function(t,n,r){var i=u_(t,r),o=i.borderBoxSize,a=i.contentBoxSize,l=i.devicePixelContentBoxSize;switch(n){case uy.DEVICE_PIXEL_CONTENT_BOX:return l;case uy.BORDER_BOX:return o;default:return a}},uF=function(t){var n=u_(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=uP([n.borderBoxSize]),this.contentBoxSize=uP([n.contentBoxSize]),this.devicePixelContentBoxSize=uP([n.devicePixelContentBoxSize])},uI=function(t){if(uR(t))return 1/0;for(var n=0,r=t.parentNode;r;)n+=1,r=r.parentNode;return n},uN=function(){var t=1/0,n=[];ux.forEach(function(r){if(0!==r.activeTargets.length){var i=[];
9r.activeTargets.forEach(function(n){var r=new uF(n.target),o=uI(n.target);i.push(r),n.lastReportedSize=u$(n.target,n.observedBox),o<t&&(t=o)}),n.push(function(){r.callback.call(r.observer,i,r.observer)}),r.activeTargets.splice(0,r.activeTargets.length)}});for(var r=0;r<n.length;r++)(0,n[r])();return t},uH=function(t){ux.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(uI(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},uW=function(){var t,n=0;for(uH(0);ux.some(function(t){return t.activeTargets.length>0});)uH(n=uN());return ux.some(function(t){return t.skippedTargets.length>0})&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:uw}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=uw),window.dispatchEvent(t)),n>0},uU=[],uY=function(t){if(!uS){var n=0,r=document.createTextNode("");new MutationObserver(function(){return uU.splice(0).forEach(function(t){return t()})}).observe(r,{characterData:!0}),uS=function(){r.textContent="".concat(n?n--:n++)}}uU.push(t),uS()},uG=0,uX={attributes:!0,characterData:!0,childList:!0,subtree:!0},uq=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],uK=function(t){return void 0===t&&(t=0),Date.now()+t},uZ=!1,uJ=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var n=this;if(void 0===t&&(t=250),!uZ){uZ=!0;var r,i=uK(t);r=function(){var r=!1;try{r=uW()}finally{if(uZ=!1,t=i-uK(),!uG)return;r?n.run(1e3):t>0?n.run(t):n.start()}},uY(function(){requestAnimationFrame(r)})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,uX)};document.body?n():uM.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),uq.forEach(function(n){return uM.addEventListener(n,t.listener,!0)}))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),uq.forEach(function(n){return uM.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},t}()),uQ=function(t){!uG&&t>0&&uJ.start(),(uG+=t)||uJ.stop()},u0=function(){function t(t,n){this.target=t,this.observedBox=n||uy.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,n=u$(this.target,this.observedBox,!0);return uC(t=this.target)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},t}(),u1=function(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n},u5=new WeakMap,u2=function(t,n){for(var r=0;r<t.length;r+=1)if(t[r].target===n)return r;return -1},u3=function(){function t(){}return t.connect=function(t,n){var r=new u1(t,n);u5.set(t,r)},t.observe=function(t,n,r){var i=u5.get(t),o=0===i.observationTargets.length;0>u2(i.observationTargets,n)&&(o&&ux.push(i),i.observationTargets.push(new u0(n,r&&r.box)),uQ(1),uJ.schedule())},t.unobserve=function(t,n){var r=u5.get(t),i=u2(r.observationTargets,n),o=1===r.observationTargets.length;i>=0&&(o&&ux.splice(ux.indexOf(r),1),r.observationTargets.splice(i,1),uQ(-1))},t.disconnect=function(t){var n=this,r=u5.get(t);r.observationTargets.slice().forEach(function(r){return n.unobserve(t,r.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),u4=function(){function t(t){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");u3.connect(this,t)}return t.prototype.observe=function(t,n){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!uA(t))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");u3.observe(this,t,n)},t.prototype.unobserve=function(t){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!uA(t))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");u3.unobserve(this,t)},t.prototype.disconnect=function(){u3.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();let u9="undefined"!=typeof document&&"undefined"!=typeof window&&window.ResizeObserver?window.ResizeObserver:u4,u6=function(){let t=new WeakMap,n=new WeakMap;return{subscribe(r,i){let o=n.get(r)||[],a=t.get(r);return n.has(r)||(n.set(r,o),a=({subscribe(t,n){let r=new u9(t=>{let[r]=t;n({_contentRect:r.contentRect,border:{width:r.borderBoxSize[0].inlineSize,height:r.borderBoxSize[0].blockSize},content:{width:r.contentRect.width,height:r.contentRect.height}})});return r.observe(t),()=>{r.unobserve(t),r.disconnect()}}}).subscribe(r,t=>{for(let n of o)n(t)})),o.push(i),()=>
9{let t=o.indexOf(i);t>-1&&o.splice(t,1),0===o.length&&a&&a()}}}}(),u7=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof window)return window;if("undefined"!=typeof self)return self;if("undefined"!=typeof global)return global;throw Error("@sanity/ui: could not locate global scope")}(),u8=Symbol.for("@sanity/ui/context/theme");u7[u8]=u7[u8]||(0,_.createContext)(null);let de=u7[u8];function dt(t){let n=(0,_.useContext)(de),{children:r,scheme:i=(null==n?void 0:n.scheme)||"light",theme:o=(null==n?void 0:n.theme)||null,tone:a=(null==n?void 0:n.tone)||"default"}=t,l=(0,_.useMemo)(()=>o?{version:0,theme:o,scheme:i,tone:a}:null,[o,i,a]),s=(0,_.useMemo)(()=>o?function(t,n,r){let i=function(t,n,r){let i=e2.get(n);if(!i)return;let o=i.get(r);return o?o.get(t):void 0}(t,n,r);if(i)return i;let o=en(t)?eo(t):t,a=en(t)?t:function(t){if(t.v2)return t.v2;let n=er.get(t);if(n)return n;let{avatar:r,button:i,color:o,container:a,focusRing:l,fonts:s,input:u,layer:d,media:c,radius:h,shadows:f,space:p,styles:g}=t,m={_version:2,avatar:{...Y.avatar,...r},button:{...Y.button,...i},card:Y.card,color:{light:{transparent:q(o.light.transparent),default:q(o.light.default),primary:q(o.light.primary),positive:q(o.light.positive),caution:q(o.light.caution),critical:q(o.light.critical)},dark:{transparent:q(o.dark.transparent),default:q(o.dark.default),primary:q(o.dark.primary),positive:q(o.dark.positive),caution:q(o.dark.caution),critical:q(o.dark.critical)}},container:a,font:s,input:{...Y.input,...u,checkbox:{...Y.input.checkbox,...u.checkbox},radio:{...Y.input.radio,...u.radio},switch:{...Y.input.switch,...u.switch}},layer:null!=d?d:Y.layer,media:c,radius:h,shadow:f,space:p,style:g};return er.set(t,m),m}(t),l=o.color[n]||o.color.light,s=l[r]||l.default,u=o.layer||Y.layer,d=a.color[n]||a.color.light,c=d[r]||d.default,h=a.layer||Y.layer,f={sanity:{...o,color:s,layer:u,v2:{...a,_resolved:!0,color:c,layer:h}}};return function(t,n,r,i){e2.has(n)||e2.set(n,new Map);let o=e2.get(n);o.has(r)||o.set(r,new WeakMap),o.get(r).set(t,i)}(t,n,r,f),f}(o,i,a):null,[i,o,a]);return s?(0,B.jsx)(de.Provider,{value:l,children:(0,B.jsx)(n$,{theme:s,children:r})}):(0,B.jsx)("pre",{children:'ThemeProvider: no "theme" property provided'})}function dn(){let t=(0,_.useContext)(de);if(!t)throw Error("useRootTheme(): missing context value");return t}function dr(t){let{children:n,scheme:r,tone:i}=t,o=dn();return(0,B.jsx)(dt,{scheme:r||o.scheme,theme:o.theme,tone:i,children:n})}function di(){return et(function(){var t=(0,_.useContext)(n_);if(!t)throw nl(18);return t}())}let da=new WeakMap;function dl(){return 0}function ds(){let{media:t}=di(),n=da.get(t);return n||(n=function(t){let n;let r=t.length,i=()=>{if(!n){n=[];for(let o=r;o>-1;o-=1){var i;let r=0===(i=o)?"screen and (max-width: ".concat(t[i]-1,"px)"):i===t.length?"screen and (min-width: ".concat(t[i-1],"px)"):"screen and (min-width: ".concat(t[i-1],"px) and (max-width: ").concat(t[i]-1,"px)");n.push({index:o,mq:window.matchMedia(r)})}}return n};return{getSnapshot:()=>{for(let{index:t,mq:n}of i())if(n.matches)return t;return 0},subscribe:t=>{let n=[];for(let{mq:r}of i()){let i=()=>{r.matches&&t()};r.addEventListener("change",i),n.push(()=>r.removeEventListener("change",i))}return()=>{for(let t of n)t()}}}}(t),da.set(t,n)),(0,_.useSyncExternalStore)(n.subscribe,n.getSnapshot,dl)}let du="undefined"!=typeof window?_.useLayoutEffect:_.useEffect;function dd(t){let n=(0,_.useRef)(null);return du(()=>{t&&("function"==typeof t?t(n.current):t.current=n.current)}),n}function dc(t){var n,r;let{card:i,media:o}=et(t.theme),a="".concat(null!=(r=null==(n=i.border)?void 0:n.width)?r:1,"px solid var(--card-border-color)");return uo(o,t.$border,t=>t?{"&&":{border:a}}:{"&&":{border:0}})}function dh(t){var n,r;let{card:i,media:o}=et(t.theme),a="".concat(null!=(r=null==(n=i.border)?void 0:n.width)?r:1,"px solid var(--card-border-color)");return uo(o,t.$borderTop,t=>t?{"&&":{borderTop:a}}:{"&&":{borderTop:0}})}function df(t){var n,r;let{card:i,media:o}=et(t.theme),a="".concat(null!=(r=null==(n=i.border)?void 0:n.width)?r:1,"px solid var(--card-border-color)");return uo(o,t.$borderRight,t=>t?{"&&":{borderRight:a}}:{"&&":{borderRight:0}})}function dp(t){var n,r;let{card:i,media:o}=et(t.theme),a="".concat(null!=(r=null==(n=i.border)?void 0:n.width)?r:1,"px solid var(--card-border-color)");return uo(o,t.$borderBottom,t=>t?{"&&":{borderBottom:a}}:{"&&":{borderBottom:0}})}function dg(t){var n,r;let{card:i,media:o}=et(t.theme),a="".concat(null!=(r=null==(n=i.border)?void 0:n.width)?r:1,"px solid var(--card-border-color)");return uo(o,t.$borderLeft,t=>t?{"&&":{borderLeft:a}}:{"&&":{borderLeft:0}})}let dm={'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},dv={content:"content-box",border:"border-box"},db={stretch:"stretch",fill:"100%"};function dy(t){let{media:n}=et(t.theme);return uo(n,t.$display,t=>({"&:not([hidden])":{display:t}}))}function dx(t){let{media:n}=et(t.theme);return uo(n,t.$sizing,t=>({boxSizing:dv[t]}))}function dw(t){let{media:n}=et(t.theme);return uo(n,t.$height,t=>({height:db[t]}))}function dk(t){let{media:n}=et(t.theme);return uo(n,t.$overflow,t=>({overflow:t}))}let dS={"&&:not([hidden])":{display:"flex"}};function dP(t){let{media:n}=et(t.theme);return uo(n,t.$align,t=>({alignItems:t}))}function dE(t){let{media:n,space:r}=et(t.theme);return uo(n,t.$gap,t=>({gap:t?ui(r[t]):void 0}))}function dT(t){let{media:n}=et(t.theme);return uo(n,t.$wrap,t=>({flexWrap:t}))}function dC(t){let{media:n}=et(t.theme);return uo(n,t.$justify,t=>({justifyContent:t}))}function dR(t){let{media:n}=et(t.theme);return uo(n,t.$direction,t=>({flexDirection:t}))}let dA={minWidth:0,minHeight:0};function dM(){return[dA,dj]}function dj(t){let{media:n}=et(t.theme);return t.$flex?uo(n,t.$flex,t=>({flex:t})):ue}function dO(t){return"inset 0 0 0 ".concat(t.width,"px ").concat(t.color)}function dV(t){let{base:n,border:r,focusRing:i}=t,o=i.offset+i.width,a=0-i.offset,l=n?n.bg:"var(--card-bg-color)";return[a>0&&"inset 0 0 0 ".concat(a,"px var(--card-focus-ring-color)"),r&&dO(r),a<0&&"0 0 0 ".concat(0-a,"px ").concat(l),o>0&&"0 0 0 ".concat(o,"px var(--card-focus-ring-color)")].filter(
9Boolean).join(",")}let dz={auto:"auto",full:"1 / -1"},dL={auto:"auto",full:"1 / -1"};function dD(t){let{media:n}=et(t.theme);return uo(n,t.$row,t=>"number"==typeof t?{gridRow:"span ".concat(t," / span ").concat(t)}:{gridRow:dz[t]})}function dB(t){let{media:n}=et(t.theme);return uo(n,t.$rowStart,t=>({gridRowStart:t}))}function d_(t){let{media:n}=et(t.theme);return uo(n,t.$rowEnd,t=>({gridRowEnd:t}))}function d$(t){let{media:n}=et(t.theme);return uo(n,t.$column,t=>"number"==typeof t?{gridColumn:"span ".concat(t," / span ").concat(t)}:{gridColumn:dL[t]})}function dF(t){let{media:n}=et(t.theme);return uo(n,t.$columnStart,t=>({gridColumnStart:t}))}function dI(t){let{media:n}=et(t.theme);return uo(n,t.$columnEnd,t=>({gridColumnEnd:t}))}var dN,dH,dW,dU=Object.freeze,dY=Object.defineProperty;function dG(t){let{media:n,radius:r}=et(t.theme);return uo(n,t.$radius,t=>{let n=0;return"number"==typeof t&&(n=ui(r[t])),"full"===t&&(n="9999px"),{borderRadius:n}})}function dX(t,n){return"".concat(t.map(ui).join(" ")," ").concat(n)}nW(dN||(dN=dU(dY(dH=["\n &:not([hidden]) {\n display: flex;\n }\n\n align-items: center;\n"],"raw",{value:dU(dW||dH.slice())}))));var dq,dK=Object.freeze,dZ=Object.defineProperty;nU.span(dq||(dq=dK(dZ(o=["\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n overflow: clip;\n"],"raw",{value:dK(a||o.slice())}))));var dJ,dQ=Object.freeze,d0=Object.defineProperty;nW(dJ||(dJ=dQ(d0(l=["\n white-space: nowrap;\n\n & > div {\n vertical-align: top;\n\n &:not([hidden]) {\n display: inline-block;\n }\n }\n"],"raw",{value:dQ(s||l.slice())}))));let d1=nU.div(function(){return dm},dM,function(){return[dx,dw,dk,dy]},function(){return[dD,dB,d_,d$,dF,dI]},function(t){let{theme:n}=t;return[ua(n,["margin"],t.$margin),ua(n,["marginLeft","marginRight"],t.$marginX),ua(n,["marginTop","marginBottom"],t.$marginY),ua(n,["marginTop"],t.$marginTop),ua(n,["marginRight"],t.$marginRight),ua(n,["marginBottom"],t.$marginBottom),ua(n,["marginLeft"],t.$marginLeft)].filter(Boolean)},function(t){let{theme:n}=t;return[ua(n,["padding"],t.$padding),ua(n,["paddingLeft","paddingRight"],t.$paddingX),ua(n,["paddingTop","paddingBottom"],t.$paddingY),ua(n,["paddingTop"],t.$paddingTop),ua(n,["paddingRight"],t.$paddingRight),ua(n,["paddingBottom"],t.$paddingBottom),ua(n,["paddingLeft"],t.$paddingLeft)].filter(Boolean)}),d5=(0,_.forwardRef)(function(t,n){let{as:r="div",column:i,columnStart:o,columnEnd:a,display:l="block",flex:s,height:u,margin:d=0,marginX:c,marginY:h,marginTop:f,marginRight:p,marginBottom:g,marginLeft:m,overflow:v,padding:b=0,paddingX:y,paddingY:x,paddingTop:w,paddingRight:k,paddingBottom:S,paddingLeft:P,row:E,rowStart:T,rowEnd:C,sizing:R,...A}=t;return(0,B.jsx)(d1,{"data-as":"string"==typeof r?r:void 0,"data-ui":"Box",...A,$column:ul(i),$columnStart:ul(o),$columnEnd:ul(a),$display:ul(l),$flex:ul(s),$height:ul(u),$margin:ul(d),$marginX:ul(c),$marginY:ul(h),$marginTop:ul(f),$marginRight:ul(p),$marginBottom:ul(g),$marginLeft:ul(m),$overflow:ul(v),$padding:ul(b),$paddingX:ul(y),$paddingY:ul(x),$paddingTop:ul(w),$paddingRight:ul(k),$paddingBottom:ul(S),$paddingLeft:ul(P),$row:ul(E),$rowStart:ul(T),$rowEnd:ul(C),$sizing:ul(R),as:r,ref:n,children:t.children})});var d2,d3,d4,d9,d6=Object.freeze,d7=Object.defineProperty,d8=(t,n)=>d6(d7(t,"raw",{value:d6(n||t.slice())})),ce=Object.freeze,ct=Object.defineProperty;let cn=nU.div(function(t){return function t(n,r){let{$size:i,$weight:o}=r,{font:a,media:l}=et(r.theme),{family:s,sizes:u,weights:d}=a[n],c=o&&d[o]||d.regular,h=u[2],f={position:"relative",fontFamily:s,fontWeight:c,padding:"1px 0",margin:0,"&:before":{content:'""',display:"block",height:0},"&:after":{content:'""',display:"block",height:0},"& > code, & > span":{display:"block"},"&:not([hidden])":{display:"block"}};return i?[f,...uo(l,i,t=>(function(t){let{ascenderHeight:n,descenderHeight:r,fontSize:i,iconSize:o,letterSpacing:a,lineHeight:l}=t,s=n+r,u=l-s,d=2*Math.floor(1.125*i/2)+1;return{fontSize:ui(i),lineHeight:"calc(".concat(l," / ").concat(i,")"),letterSpacing:ui(a),transform:"translateY(".concat(ui(r),")"),"&:before":{marginTop:"calc(".concat(ui(0-s)," - 1px)")},"&:after":{marginBottom:"-1px"},"& svg:not([data-sanity-icon])":{fontSize:"calc(".concat(d," / 16 * 1rem)"),margin:ui((u-d)/2)},"& [data-sanity-icon]":{fontSize:"calc(".concat(o," / 16 * 1rem)"),margin:ui((u-o)/2)}}})(u[t]||h))]:(t.warned||(console.warn("No size specified for responsive font",{fontKey:n,$size:i,props:r,base:f}),t.warned=!0),[f])}("text",t)},function(t){let{media:n}=et(t.theme);return uo(n,t.$align,t=>({textAlign:t}))},function(t){let{$accent:n,$muted:r}=t,{font:i}=et(t.theme);return nW(d4||(d4=d8(["\n color: var(--card-fg-color);\n\n ","\n\n ","\n\n & code {\n font-family: ",";\n border-radius: 1px;\n background-color: var(--card-code-bg-color);\n color: var(--card-code-fg-color);\n }\n\n & a {\n text-decoration: none;\n border-radius: 1px;\n color: var(--card-link-color);\n outline: none;\n\n @media (hover: hover) {\n &:hover {\n text-decoration: underline;\n }\n }\n\n &:focus {\n box-shadow:\n 0 0 0 1px var(--card-bg-color),\n 0 0 0 3px var(--card-focus-ring-color);\n }\n\n &:focus:not(:focus-visible) {\n box-shadow: none;\n }\n }\n\n & strong {\n font-weight: ",";\n }\n\n & svg {\n /* Certain popular CSS libraries changes the defaults for SVG display */\n /* Make sure SVGs are rendered as inline elements */\n display: inline;\n }\n\n & [data-sanity-icon] {\n vertical-align: baseline;\n color: var(--card-icon-color);\n\n & path {\n vector-effect: non-scaling-stroke !important;\n }\n }\n "])),n&&nW(d2||(d2=d8(["\n color: var(--card-accent-fg-color);\n "]))),r&&nW(d3||(d3=d8(["\n color: var(--card-muted-fg-color);
9\n "]))),i.code.family,i.text.weights.bold)}),cr=nU.span(d9||(d9=ce(ct(u=["\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n overflow: clip;\n"],"raw",{value:ce(d||u.slice())})))),ci=(0,_.forwardRef)(function(t,n){let{accent:r=!1,align:i,children:o,muted:a=!1,size:l=2,textOverflow:s,weight:u,...d}=t,c=o;return"ellipsis"===s&&(c=(0,B.jsx)(cr,{children:c})),(0,B.jsx)(cn,{"data-ui":"Text",...d,$accent:r,$align:ul(i),$muted:a,ref:n,$size:ul(l),$weight:u,children:(0,B.jsx)("span",{children:c})})}),co=nU(d5)(dM,function(){return[dS,dP,dE,dT,dC,dR]}),ca=(0,_.forwardRef)(function(t,n){let{align:r,as:i,direction:o="row",gap:a,justify:l,wrap:s,...u}=t;return(0,B.jsx)(co,{"data-ui":"Flex",...u,$align:ul(r),$direction:ul(o),$gap:ul(a),$justify:ul(l),$wrap:ul(s),forwardedAs:i,ref:n})});var cl,cs,cu=Object.freeze,cd=Object.defineProperty,cc=(t,n)=>cu(cd(t,"raw",{value:cu(n||t.slice())}));let ch=nY(cl||(cl=cc(["\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n"]))),cf=nU(ci)(cs||(cs=cc(["\n & > span > svg {\n animation: "," 500ms linear infinite;\n }\n"])),ch),cp=(0,_.forwardRef)(function(t,n){return(0,B.jsx)(cf,{"data-ui":"Spinner",...t,ref:n,children:(0,B.jsx)(nG,{})})});function cg(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{"--card-backdrop-color":t.backdrop,"--card-focus-ring-color":t.focusRing,"--card-shadow-outline-color":t.shadow.outline,"--card-shadow-umbra-color":t.shadow.umbra,"--card-shadow-penumbra-color":t.shadow.penumbra,"--card-shadow-ambient-color":t.shadow.ambient,"--card-accent-fg-color":n.accent.fg,"--card-avatar-gray-bg-color":n.avatar.gray.bg,"--card-avatar-gray-fg-color":n.avatar.gray.fg,"--card-avatar-blue-bg-color":n.avatar.blue.bg,"--card-avatar-blue-fg-color":n.avatar.blue.fg,"--card-avatar-purple-bg-color":n.avatar.purple.bg,"--card-avatar-purple-fg-color":n.avatar.purple.fg,"--card-avatar-magenta-bg-color":n.avatar.magenta.bg,"--card-avatar-magenta-fg-color":n.avatar.magenta.fg,"--card-avatar-red-bg-color":n.avatar.red.bg,"--card-avatar-red-fg-color":n.avatar.red.fg,"--card-avatar-orange-bg-color":n.avatar.orange.bg,"--card-avatar-orange-fg-color":n.avatar.orange.fg,"--card-avatar-yellow-bg-color":n.avatar.yellow.bg,"--card-avatar-yellow-fg-color":n.avatar.yellow.fg,"--card-avatar-green-bg-color":n.avatar.green.bg,"--card-avatar-green-fg-color":n.avatar.green.fg,"--card-avatar-cyan-bg-color":n.avatar.cyan.bg,"--card-avatar-cyan-fg-color":n.avatar.cyan.fg,"--card-bg-color":n.bg,"--card-bg-image":r?"repeating-conic-gradient(".concat(n.bg," 0% 25%, ").concat(n.muted.bg," 0% 50%)"):void 0,"--card-border-color":n.border,"--card-badge-default-bg-color":n.badge.default.bg,"--card-badge-default-dot-color":n.badge.default.dot,"--card-badge-default-fg-color":n.badge.default.fg,"--card-badge-default-icon-color":n.badge.default.icon,"--card-badge-primary-bg-color":n.badge.primary.bg,"--card-badge-primary-dot-color":n.badge.primary.dot,"--card-badge-primary-fg-color":n.badge.primary.fg,"--card-badge-primary-icon-color":n.badge.primary.icon,"--card-badge-positive-bg-color":n.badge.positive.bg,"--card-badge-positive-dot-color":n.badge.positive.dot,"--card-badge-positive-fg-color":n.badge.positive.fg,"--card-badge-positive-icon-color":n.badge.positive.icon,"--card-badge-caution-bg-color":n.badge.caution.bg,"--card-badge-caution-dot-color":n.badge.caution.dot,"--card-badge-caution-fg-color":n.badge.caution.fg,"--card-badge-caution-icon-color":n.badge.caution.icon,"--card-badge-critical-bg-color":n.badge.critical.bg,"--card-badge-critical-dot-color":n.badge.critical.dot,"--card-badge-critical-fg-color":n.badge.critical.fg,"--card-badge-critical-icon-color":n.badge.critical.icon,"--card-code-bg-color":n.code.bg,"--card-code-fg-color":n.code.fg,"--card-fg-color":n.fg,"--card-icon-color":n.icon,"--card-kbd-bg-color":n.kbd.bg,"--card-kbd-border-color":n.kbd.border,"--card-kbd-fg-color":n.kbd.fg,"--card-link-fg-color":n.link.fg,"--card-muted-bg-color":n.muted.bg,"--card-muted-fg-color":n.muted.fg,"--card-skeleton-color-from":n.skeleton.from,"--card-skeleton-color-to":n.skeleton.to,"--card-bg2-color":n.muted.bg,"--card-link-color":n.link.fg,"--card-hairline-soft-color":n.border,"--card-hairline-hard-color":n.border}}var cm,cv,cb=Object.freeze,cy=Object.defineProperty,cx=(t,n)=>cb(cy(t,"raw",{value:cb(n||t.slice())}));function cw(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];
9return n.filter(Boolean).join(",")}var ck,cS=Object.freeze,cP=Object.defineProperty;let cE=nU.button(dG,function(t){let{$width:n}=t,{style:r}=et(t.theme);return nW(cv||(cv=cx(["\n ",";\n\n -webkit-font-smoothing: inherit;\n appearance: none;\n display: inline-flex;\n align-items: center;\n font: inherit;\n border: 0;\n outline: none;\n user-select: none;\n text-decoration: none;\n border: 0;\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n white-space: nowrap;\n text-align: left;\n position: relative;\n vertical-align: top;\n\n ","\n\n & > span {\n display: block;\n flex: 1;\n min-width: 0;\n border-radius: inherit;\n }\n\n &::-moz-focus-inner {\n border: 0;\n padding: 0;\n }\n "])),null==r?void 0:r.button,"fill"===n&&nW(cm||(cm=cx(["\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n "]))))},function(t){var n;let{$mode:r}=t,{button:i,color:o,style:a}=et(t.theme),l="ghost"===t.$mode,s=o.button[r]||o.button.default,u=s[t.$tone]||s.default,d={width:i.border.width,color:"var(--card-border-color)"},c=void 0;return[cg(o,u.enabled),{backgroundColor:"var(--card-bg-color)",color:"var(--card-fg-color)",boxShadow:dO(d),'&:disabled, &[data-disabled="true"]':cg(o,u.disabled),"&:not([data-disabled='true'])":{boxShadow:cw(dO(d),l?c:void 0),"&:focus":{boxShadow:dV({base:o,border:{width:2,color:o.bg},focusRing:i.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:cw(dO(d),l?c:void 0)},"@media (hover: hover)":{"&:hover":cg(o,u.hovered),"&:active":cg(o,u.pressed),"&[data-hovered]":cg(o,u.hovered)},"&[data-selected]":cg(o,u.pressed)}}
9,null==(n=null==a?void 0:a.button)?void 0:n.root].filter(Boolean)}),cT=nU.div(ck||(ck=cS(cP(c=["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--card-bg-color);\n border-radius: inherit;\n z-index: 1;\n box-shadow: inherit;\n"],"raw",{value:cS(h||c.slice())})))),cC=(0,_.forwardRef)(function(t,n){let{children:r,disabled:i,fontSize:o=1,icon:a,iconRight:l,justify:s="center",loading:u,mode:d="default",padding:c=3,paddingX:h,paddingY:f,paddingTop:p,paddingBottom:g,paddingLeft:m,paddingRight:v,radius:b=2,selected:y,space:x=3,text:w,textAlign:k,tone:S="default",type:P="button",muted:E=!1,width:T,...C}=t,{button:R}=di(),A=ul(s),M=ul(c),j=ul(h),O=ul(f),V=ul(p),z=ul(g),L=ul(m),D=ul(v),F=ul(b),I=ul(x),N=(0,_.useMemo)(()=>({padding:M,paddingX:j,paddingY:O,paddingTop:V,paddingBottom:z,paddingLeft:L,paddingRight:D}),[M,j,O,V,z,L,D]);return(0,B.jsxs)(cE,{"data-ui":"Button",...C,$mode:d,$radius:F,$tone:S,"data-disabled":!!(u||i),"data-selected":y?"":void 0,disabled:!!(u||i),ref:n,type:P,$width:T,children:[!!u&&(0,B.jsx)(cT,{children:(0,B.jsx)(cp,{})}),(a||w||l)&&(0,B.jsx)(d5,{as:"span",...N,children:(0,B.jsxs)(ca,{as:"span",justify:A,gap:I,children:[a&&(0,B.jsxs)(ci,{size:o,children:[(0,_.isValidElement)(a)&&a,(0,$.isValidElementType)(a)&&(0,_.createElement)(a)]}),w&&(0,B.jsx)(ci,{muted:E,align:k,size:o,textOverflow:"ellipsis",weight:R.textWeight,children:w}),l&&(0,B.jsxs)(ci,{size:o,children:[(0,_.isValidElement)(l)&&l,(0,$.isValidElementType)(l)&&(0,_.createElement)(l)]})]})}),r&&(0,B.jsx)(d5,{as:"span",...N,children:r})]})});var cR,cA,cM,cj=Object.freeze,cO=Object.defineProperty,cV=(t,n)=>cj(cO(t,"raw",{value:cj(n||t.slice())}));let cz=nU(d5)(function(){return[dc,dh,df,dp,dg]},dG,function(t){let{card:n,media:r,shadow:i}=et(t.theme);return uo(r,t.$shadow,t=>(function(t){if(!t)return ut;let n="0 0 0 ".concat(ui(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)," var(--card-shadow-outline-color)"),r=dX(t.umbra,"var(--card-shadow-umbra-color)"),i=dX(t.penumbra,"var(--card-shadow-penumbra-color)"),o=dX(t.ambient,"var(--card-shadow-ambient-color)");return{boxShadow:"".concat(n,", ").concat(r,", ").concat(i,", ").concat(o)}})(i[t],n.shadow.outline))},function(t){return[function(t){let{$checkered:n}=t,{space:r}=et(t.theme);return nW(cA||(cA=cV(["\n ","\n\n &[data-as='button'] {\n -webkit-font-smoothing: inherit;\n appearance: none;\n outline: none;\n font: inherit;\n text-align: inherit;\n border: 0;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n }\n\n /* &:is(a) */\n &[data-as='a'] {\n outline: none;\n text-decoration: none;\n }\n\n /* &:is(pre) */\n &[data-as='pre'] {\n font: inherit;\n }\n "])),n&&nW(cR||(cR=cV(["\n background-size: ","px ","px;\n background-position: 50% 50%;\n background-image: var(--card-bg-image);\n "])),r[3],r[3]))}(t),function(t){var n;let{$checkered:r,$focusRing:i}=t,{card:o,color:a,style:l}=et(t.theme),s={width:o.border.width,color:"var(--card-border-color)"};return nW(cM||(cM=cV(["\n color-scheme: ",";\n\n ","\n\n background-color: var(--card-bg-color);\n color: var(--card-fg-color);\n\n /* &:is(button) */\n &[data-as='button'] {\n --card-focus-ring-box-shadow: none;\n\n cursor: default;\n box-shadow: var(--card-focus-ring-box-shadow);\n\n &:disabled {\n ","\n }\n\n &:not(:disabled) {\n &[data-pressed] {\n ","\n }\n\n &[data-selected] {\n ","\n }\n\n @media (hover: hover) {\n &:not([data-pressed]):not([data-selected]) {\n &[data-hovered],\n &:hover {\n ","\n }\n\n &:active {\n ","\n }\n }\n }\n\n &:focus-visible {\n --card-focus-ring-box-shadow: ",";\n }\n }\n }\n\n /* &:is(a) */\n &[data-as='a'] {\n cursor: pointer;\n box-shadow: var(--card-focus-ring-box-shadow);\n\n &[data-disabled] {\n ","\n }\n\n &:not([data-disabled]) {\n &[data-pressed] {\n ","\n }\n\n &[data-selected] {\n ","\n }\n\n @media (hover: hover) {\n &:not([data-pressed]):not
9([data-selected]) {\n &[data-hovered],\n &:hover {\n ","\n }\n\n &:active {\n ","\n }\n }\n }\n\n &:focus-visible {\n --card-focus-ring-box-shadow: ",";\n }\n }\n }\n\n ","\n "])),a._dark?"dark":"light",cg(a,a,r),cg(a,a.selectable.default.disabled,r),cg(a,a.selectable.default.pressed,r),cg(a,a.selectable.default.selected,r),cg(a,a.selectable.default.hovered,r),cg(a,a.selectable.default.pressed,r),i?dV({base:a,border:s,focusRing:o.focusRing}):void 0,cg(a,a.selectable.default.disabled,r),cg(a,a.selectable.default.pressed,r),cg(a,a.selectable.default.selected,r),cg(a,a.selectable.default.hovered,r),cg(a,a.selectable.default.pressed,r),i?dV({base:a,border:s,focusRing:o.focusRing}):void 0,null==(n=null==l?void 0:l.card)?void 0:n.root)}(t)]}),cL=(0,_.forwardRef)(function(t,n){let{__unstable_checkered:r=!1,__unstable_focusRing:i=!1,as:o,border:a,borderTop:l,borderRight:s,borderBottom:u,borderLeft:d,pressed:c,radius:h=0,scheme:f,selected:p,shadow:g,tone:m="default",...v}=t,b=(0,$.isValidElementType)(o)?o:"div",y=dn(),x="inherit"===m?y.tone:m;return(0,B.jsx)(dr,{scheme:f,tone:x,children:(0,B.jsx)(cz,{"data-as":"string"==typeof b?b:void 0,"data-scheme":y.scheme,"data-ui":"Card","data-tone":x,...v,$border:ul(a),$borderTop:ul(l),$borderRight:ul(s),$borderBottom:ul(u),$borderLeft:ul(d),$checkered:r,$focusRing:i,$radius:ul(h),$shadow:ul(g),$tone:x,"data-checkered":r?"":void 0,"data-pressed":c?""
9:void 0,"data-selected":p?"":void 0,forwardedAs:b,ref:n,selected:p})})}),cD={width:"100%",margin:"0 auto"},cB=nU(d5)(function(){return cD},function(t){let{container:n,media:r}=et(t.theme);return uo(r,t.$width,t=>({maxWidth:"auto"===t?"none":ui(n[t])}))}),c_=(0,_.forwardRef)(function(t,n){let{as:r,width:i=2,...o}=t;return(0,B.jsx)(cB,{"data-ui":"Container",...o,$width:ul(i),forwardedAs:r,ref:n})});var c$,cF=Object.freeze,cI=Object.defineProperty;nU.span(c$||(c$=cF(cI(f=["\n display: block;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n overflow: clip;\n"],"raw",{value:cF(p||f.slice())}))));let cN=nU(d5)(function(){return{lineHeight:0,"&&:not([hidden])":{display:"block"},"& > div":{display:"inline-block",verticalAlign:"middle"}}},function(t){let{media:n,space:r}=et(t.theme);return uo(n,t.$space,t=>{let n=ui(.5===t?r[1]/2:r[t]);return{margin:"-".concat(n," 0 0 -").concat(n),"& > div":{padding:"".concat(n," 0 0 ").concat(n)}}})}),cH=(0,_.forwardRef)(function(t,n){let{as:r,children:i,space:o,...a}=t,l=(0,_.useMemo)(()=>(Array.isArray(i)?i:[i]).filter(t=>(0,$.isElement)(t)||(0,$.isFragment)(t)||"string"==typeof t).filter(
9Boolean).map((t,n)=>(0,B.jsx)("div",{children:t},n)),[i]);return(0,B.jsx)(cN,{"data-ui":"Inline",...a,$space:ul(o),forwardedAs:r,ref:n,children:l})});var cW,cU=Object.freeze,cY=Object.defineProperty;let cG=nU.kbd(dG,function(){let t,n;return nW(cW||(cW=cU(cY(t=["\n --card-bg-color: var(--card-kbd-bg-color);\n --card-border-color: var(--card-kbd-border-color);\n --card-fg-color: var(--card-kbd-fg-color);\n\n box-shadow: inset 0 0 0 1px var(--card-border-color);\n background: var(--card-bg-color);\n font: inherit;\n\n vertical-align: top;\n\n &:not([hidden]) {\n display: inline-block;\n }\n "],"raw",{value:cU(n||t.slice())}))))}),cX=(0,_.forwardRef)(function(t,n){let{children:r,fontSize:i=0,padding:o=1,radius:a=2,...l}=t;return(0,B.jsx)(cG,{"data-ui":"KBD",...l,$radius:ul(a),ref:n,children:(0,B.jsx)(d5,{as:"span",padding:o,children:(0,B.jsx)(ci,{as:"span",size:i,weight:"semibold",children:r})})})}),cq={name:"@sanity/ui/origin",fn(t){var n,r;let{middlewareData:i,placement:o,rects:a}=t,[l]=o.split("-"),s=a.floating.width,u=a.floating.height,d=(null==(n=i.shift)?void 0:n.x)||0,c=(null==(r=i.shift)?void 0:r.y)||0;if(s<=0||u<=0)return{};let{originX:h,originY:f}=["bottom","top"].includes(l)?{originX:cK(.5-d/s,0,1),originY:"bottom"===l?0:1}:{originX:"left"===l?1:0,originY:cK(.5-c/u,0,1)};return{data:{originX:h,originY:f}}}};function cK(t,n,r){return Math.min(Math.max(t,n),r)}function cZ(t,n,r){let i=n.x-t.x,o=n.y-t.y;return cJ(t,n,Math.min(1,r/Math.sqrt(i*i+o*o)))}function cJ(t,n,r){return{x:t.x+(n.x-t.x)*r,y:t.y+(n.y-t.y)*r}}var cQ,c0,c1,c5=Object.freeze,c2=Object.defineProperty,c3=(t,n)=>c5(c2(t,"raw",{value:c5(n||t.slice())}));let c4=nU.div(t=>{let{$w:n}=t;return nW(cQ||(cQ=c3(["\n position: absolute;\n width: ","px;\n height: ","px;\n\n :empty + & {\n display: none;\n }\n\n & > svg {\n display: block;\n line-height: 0;\n transform-origin: ","px ","px;\n }\n\n [data-placement^='top'] > & {\n bottom: -","px;\n\n & > svg {\n transform: rotate(0);\n }\n }\n\n [data-placement^='right'] > & {\n left: -","px;\n\n & > svg {\n transform: rotate(90deg);\n }\n }\n\n [data-placement^='left'] > & {\n right: -","px;\n\n & > svg {\n transform: rotate(-90deg);\n }\n }\n\n [data-placement^='bottom'] > & {\n top: -","px;\n\n & > svg {\n transform: rotate(180deg);\n }\n }\n "])),n,n,n/2,n/2,n,n,n,n)}),c9=nU.path(c0||(c0=c3(["\n stroke: var(--card-shadow-outline-color);\n"]))),c6=nU.path(c1||(c1=c3(["\n fill: var(--card-bg-color);\n"]))),c7=(0,_.forwardRef)(function(t,n){let{width:r,height:i,radius:o=0,...a}=t,{card:l}=di(),s=l.shadow.outline,u=(function(t){let n=t.length,r=[];for(let i=0;i<n;i+=1){let n=t[i],o=t[i-1],a=t[i+1];if(o&&n.radius){let t=cZ(n,o,n.radius),i=cZ(n,a,n.radius),l=cJ(t,n,.5),s=cJ(n,i,.5);r.push({type:"point",...t}),r.push({type:"curve",curveEnd:i,startControl:l,endControl:s})}else r.push({type:"point",...n})}return r})([{x:0,y:0},{x:o,y:0,radius:o},{x:r/2,y:i-1,radius:o},{x:r-o,y:0,radius:o},{x:r,y:0}]).map((t,n)=>"point"===t.type?"".concat(0===n?"M":"L"," ").concat(t.x," ").concat(t.y):"curve"===t.type?"C ".concat(t.startControl.x," ").concat(t.startControl.y," ").concat(t.endControl.x," ").concat(t.endControl.y," ").concat(t.curveEnd.x," ").concat(t.curveEnd.y):"").join(" "),d="".concat(u," M ").concat(r," -1 M 0 -1 Z");return(0,B.jsx)(c4,{...a,$w:r,ref:n,children:(0,B.jsxs)("svg",{width:r,height:r,viewBox:"0 0 ".concat(r," ").concat(r),children:[(0,B.jsx)("mask",{id:"stroke-mask",children:(0,B.jsx)("rect",{x:0,y:s,width:r,height:r,fill:"white"})}),(0,B.jsx)(c9,{d:"".concat(u),mask:"url(#stroke-mask)",strokeWidth:2*s}),(0,B.jsx)(c6,{d:d})]})})}),c8=Symbol.for("@sanity/ui/context/boundaryElement");u7[c8]=u7[c8]||(0,_.createContext)(null);let he=u7[c8];function ht(t){return!!(t&&"object"==typeof t&&!Array.isArray(t))}let hn={version:0,element:null};function hr(t){let{children:n,condition:r,wrapper:i}=t;return r?i(n):n}function hi(t){if(!ht(t)||0!==t.version)throw Error("the context value is not compatible");if(!t)throw Error("components using `useLayer()` should be wrapped in a <LayerProvider>.");
9if(0===t.version)return t;throw Error("could not get layer context")}let ho=Symbol.for("@sanity/ui/context/layer");u7[ho]=u7[ho]||(0,_.createContext)(null);let ha=u7[ho];function hl(){let t=(0,_.useContext)(ha);if(!t)throw Error("useLayer(): missing context value");try{return hi(t)}catch(t){throw t instanceof Error?Error("useLayer(): ".concat(t.message)):Error("useLayer(): ".concat(t))}}function hs(t){return t instanceof Node&&t.nodeType===Node.ELEMENT_NODE}function hu(t){var n;let{children:r,zOffset:i=0}=t,o=(0,_.useContext)(ha),a=o&&hi(o),l=null==a?void 0:a.registerChild,s=(null!=(n=null==a?void 0:a.level)?n:0)+1,u=ul(i),d=u.length-1,c=Math.min(ds(),d),h=a?a.zIndex+u[c]:u[c],[,f]=(0,_.useState)({}),[p,g]=(0,_.useState)(0),m=0===p,v=(0,_.useCallback)(t=>{let n=null==l?void 0:l(t);return void 0!==t?f(n=>{var r;let i=null!=(r=n[t])?r:0,o={...n,[t]:i+1};return g(Object.keys(o).length),o}):g(t=>t+1),()=>{void 0!==t?f(n=>{let r={...n};return 1===r[t]?(delete r[t],g(Object.keys(r).length)):r[t]-=1,r}):g(t=>t-1),null==n||n()}},[l]);(0,_.useEffect)(()=>null==l?void 0:l(s),[s,l]);let b=(0,_.useMemo)(()=>({version:0,isTopLayer:m,level:s,registerChild:v,size:p,zIndex:h}),[m,s,v,p,h]);return(0,B.jsx)(ha.Provider,{value:b,children:r})}let hd=nU.div({position:"relative"}),hc=(0,_.forwardRef)(function(t,n){let{children:r,onActivate:i,onFocus:o,style:a=ut,...l}=t,{zIndex:s,isTopLayer:u}=hl(),d=(0,_.useRef)(null),c=dd(n),h=(0,_.useRef)(u);(0,_.useEffect)(()=>{h.current!==u&&u&&(null==i||i({activeElement:d.current})),h.current=u},[u,i]);let f=(0,_.useCallback)(t=>{null==o||o(t);let n=c.current,r=document.activeElement;u&&n&&r&&hs(r)&&(n.contains(r)||n===r)&&(d.current=r)},[c,u,o]);return(0,B.jsx)(hd,{...l,"data-ui":"Layer",onFocus:f,ref:c,style:{...a,zIndex:s},children:r})}),hh=(0,_.forwardRef)(function(t,n){let{children:r,zOffset:i=1,...o}=t;return(0,B.jsx)(hu,{zOffset:i,children:(0,B.jsx)(hc,{...o,ref:n,children:r})})}),hf=Symbol.for("@sanity/ui/context/portal"),hp=Symbol.for("@sanity/ui/context/portal/element");u7[hp]=null,u7[hf]=u7[hf]||(0,_.createContext)({version:0,boundaryElement:null,get element(){return"undefined"==typeof document?null:(u7[hp]||(u7[hp]=document.createElement("div"),u7[hp].setAttribute("data-portal",""),document.body.appendChild(u7[hp])),u7[hp])}});let hg=u7[hf];function hm(t){var n;let{children:r,__unstable_name:i}=t,o=function(){let t=(0,_.useContext)(hg);if(!t)throw Error("usePortal(): missing context value");if(!ht(t)||0!==t.version)throw Error("usePortal(): the context value is not compatible");return t}(),a=(i?o.elements&&o.elements[i]:o.element)||(null==(n=o.elements)?void 0:n.default);return a?(0,F.createPortal)(r,a):null}var hv,hb=Object.freeze,hy=Object.defineProperty;nU.div(hv||(hv=hb(hy(g=["\n display: block;\n width: 0;\n height: 0;\n position: absolute;\n overflow: hidden;\n overflow: clip;\n"],"raw",{value:hb(m||g.slice())}))));var hx,hw,hk=Object.freeze,hS=Object.defineProperty,hP=(t,n)=>hk(hS(t,"raw",{value:hk(n||t.slice())}));nU.div(hx||(hx=hP(["\n position: relative;\n"]))),nU.div(hw||(hw=hP(["\n position: absolute;\n left: 0;\n right: 0;\n"])));let hE=[0,0,0,0],hT={top:["bottom","left","right"],"top-start":["bottom-start","left-start","right-start"],"top-end":["bottom-end","left-end","right-end"],bottom:["top","left","right"],"bottom-start":["top-start","left-start","right-start"],"bottom-end":["top-end","left-end","right-end"],left:["right","top","bottom"],"left-start":["right-start","top-start","bottom-start"],"left-end":["right-end","top-end","bottom-end"],right:["left","top","bottom"],"right-start":["left-start","top-start","bottom-start"],"right-end":["left-end","top-end","bottom-end"]};var hC,hR=Object.freeze,hA=Object.defineProperty;let hM=nU(s1(cL))(hC||(hC=hR(hA(v=["\n &:not([hidden]) {\n display: flex;\n }\n flex-direction: column;\n width: max-content;\n min-width: min-content;\n & > * {\n opacity: var(",", 1);\n will-change: opacity;\n }\n"],"raw",{value:hR(b||v.slice())}))),un),hj=(0,_.memo)((0,_.forwardRef)(function(t,n){let{__unstable_margins:r,animate:i,arrow:o,arrowRef:a,arrowX:l,arrowY:s,children:u,padding:d,placement:c,originX:h,originY:f,overflow:p,radius:g,scheme:m,shadow:v,strategy:b,style:y,tone:x,width:w,x:k,y:S,...P}=t,{zIndex:E}=hl(),T=(0,_.useMemo)(()=>r||hE,[r]),C=(null!=k?k:0)+T[3],R=(null!=S?S:0)+T[0],A=(0,_.useMemo)(()=>({left:C,originX:h,originY:f,position:b,top:R,width:w,zIndex:E,willChange:i?"transform":void 0,...y}),[i,h,f,b,y,w,C,R,E]),M=(0,_.useMemo)(()=>({left:null!==l?l:void 0,top:null!==s?s:void 0,right:void 0,bottom:void 0}),[l,s]);return(0,B.jsxs)(hM,{"data-ui":"Popover",...P,"data-placement":c,radius:g,ref:n,scheme:m,shadow:v,sizing:"border",style:A,tone:x,...i?ur:{},children:[(0,B.jsx)(ca,{"data-ui":"Popover__wrapper",direction:"column",flex:1,overflow:p,children:(0,B.jsx)(ca,{direction:"column",flex:1,padding:d,children:u})}),o&&(0,B.jsx)(c7,{ref:a,style:M,width:19,height:8,radius:2})]})}));hj.displayName="PopoverCard",(0,_.memo)((0,_.forwardRef)(function(t,n){var r,i,o,a,l,s,u,d,c,h;let{container:f,layer:p}=di(),g=function(){let t=(0,_.useContext)(he);if(t&&(!ht(t)||0!==t.version))throw Error("useBoundaryElement(): the context value is not compatible");return t||hn}(),{__unstable_margins:m=hE,animate:v=!1,arrow:b=!1,boundaryElement:y=g.element,children:x,constrainSize:w=!1,content:k,disabled:S,fallbackPlacements:P=null!=(i=t.fallbackPlacements)?i:hT[null!=(r=t.placement)?r:"bottom"],matchReferenceWidth:E,floatingBoundary:T=null!=(o=t.boundaryElement)?o:g.element,onActivate:C,open:R,overflow:A="hidden",padding:M,placement:j="bottom",portal:O,preventOverflow:V=!0,radius:z=3,referenceBoundary:L=null!=(a=t.boundaryElement)?a:g.element,referenceElement:D,scheme:$,shadow:I=3,tone:N="inherit",width:H="auto",zOffset:W=p.popover.zOffset,updateRef:U,...Y}=t,G=null==(l=function(t){let[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>
9{if(t)return u6.subscribe(t,r)},[t]),n}(y))?void 0:l.border,X=ul(M),q=ul(z),K=ul(I),Z=ul(H),J=ul(W),Q=dd(n),ee=(0,_.useRef)(null),et="viewport",en=ds(),er=w||V?null==G?void 0:G.width:void 0,ei=function(t){let{container:n,mediaIndex:r,width:i}=t,o=i[r],a=void 0===o?i[i.length-1]:o;return"number"==typeof a?n[a]:void 0}({container:f,mediaIndex:en,width:Z}),eo=(0,_.useRef)(ei);(0,_.useEffect)(()=>{eo.current=ei},[ei]);let ea=function(t){let{boundaryWidth:n,currentWidth:r}=t;if(void 0!==r||void 0!==n)return Math.min(null!=r?r:1/0,(n||1/0)-8)}({boundaryWidth:er,currentWidth:ei}),el=(0,_.useRef)(ea);(0,_.useEffect)(()=>{el.current=ea},[ea]);let es=(0,_.useRef)();(0,_.useEffect)(()=>{let t=Q.current;if(!R||!t)return;let n=es.current;E?void 0!==n&&(t.style.width="".concat(n,"px")):void 0!==ei&&(t.style.width="".concat(ei,"px")),"number"==typeof ea&&(t.style.maxWidth="".concat(ea,"px"))},[ei,Q,E,ea,R]);let{x:eu,y:ed,middlewareData:ec,placement:eh,refs:ef,strategy:ep,update:eg}=function(t){void 0===t&&(t={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:u,open:d}=t,[c,h]=_.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[f,p]=_.useState(i);r$(f,i)||p(i);let[g,m]=_.useState(null),[v,b]=_.useState(null),y=_.useCallback(t=>{t!==S.current&&(S.current=t,m(t))},[]),x=_.useCallback(t=>{t!==P.current&&(P.current=t,b(t))},[]),w=a||g,k=l||v,S=_.useRef(null),P=_.useRef(null),E=_.useRef(c),T=null!=u,C=rN(u),R=rN(o),A=_.useCallback(()=>{if(!S.current||!P.current)return;let t={placement:n,strategy:r,middleware:f};R.current&&(t.platform=R.current),rB(S.current,P.current,t).then(t=>{let n={...t,isPositioned:!0};M.current&&!r$(E.current,n)&&(E.current=n,F.flushSync(()=>{h(n)}))})},[f,n,r,R]);r_(()=>{!1===d&&E.current.isPositioned&&(E.current.isPositioned=!1,h(t=>({...t,isPositioned:!1})))},[d]);let M=_.useRef(!1);r_(()=>(M.current=!0,()=>{M.current=!1}),[]),r_(()=>{if(w&&(S.current=w),k&&(P.current=k),w&&k){if(C.current)return C.current(w,k,A);A()}},[w,k,A,C,T]);let j=_.useMemo(()=>({reference:S,floating:P,setReference:y,setFloating:x}),[y,x]),O=_.useMemo(()=>({reference:w,floating:k}),[w,k]),V=_.useMemo(()=>{let t={position:r,left:0,top:0};if(!O.floating)return t;let n=rI(O.floating,c.x),i=rI(O.floating,c.y);return s?{...t,transform:"translate("+n+"px, "+i+"px)",...rF(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:n,top:i}},[r,s,O.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:A,refs:j,elements:O,floatingStyles:V}),[c,A,j,O,V])}({middleware:(0,_.useMemo)(()=>{var t,n,r,i,o;let a=[];return(w||V)&&a.push({name:"flip",options:n={boundary:T||void 0,fallbackPlacements:P,padding:4,rootBoundary:et},async fn(t){var r,i,o,a,l;let{placement:s,middlewareData:u,rects:d,initialPlacement:c,platform:h,elements:f}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...x}=n5(n,t);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let w=n2(s),k=n2(c)===c,S=await (null==h.isRTL?void 0:h.isRTL(f.floating)),P=m||(k||!y?[n8(c)]:function(t){let n=n8(t);return[n7(t),n,n7(n)]}(c));m||"none"===b||P.push(...function(t,n,r,i){let o=n3(t),a=function(t,n,r){let i=["left","right"],o=["right","left"];switch(t){case"top":case"bottom":return r?n?o:i:n?i:o;case"left":case"right":return n?["top","bottom"]:["bottom","top"];default:return[]}}(n2(t),"start"===r,i);return o&&(a=a.map(t=>t+"-"+o),n&&(a=a.concat(a.map(n7)))),a}(c,y,b,S));let E=[c,...P],T=await rr(t,x),C=[],R=(null==(i=u.flip)?void 0:i.overflows)||[];if(p&&C.push(T[w]),g){let t=function(t,n,r){void 0===r&&(r=!1);let i=n3(t),o=n4(n6(t)),a=n9(o),l="x"===o?i===(r?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[a]>n.floating[a]&&(l=n8(l)),[l,n8(l)]}(s,d,S);C.push(T[t[0]],T[t[1]])}if(R=[...R,{placement:s,overflows:C}],!C.every(t=>t<=0)){let t=((null==(o=u.flip)?void 0:o.index)||0)+1,n=E[t];if(n)return{data:{index:t,overflows:R},reset:{placement:n}};let r=null==(a=R.filter(t=>t.overflows[0]<=0).sort((t,n)=>t.overflows[1]-n.overflows[1])[0])?void 0:a.placement;
9if(!r)switch(v){case"bestFit":{let t=null==(l=R.map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,n)=>t+n,0)]).sort((t,n)=>t[1]-n[1])[0])?void 0:l[0];t&&(r=t);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}),a.push({name:"offset",options:r={mainAxis:4},async fn(t){var n,i;let{x:o,y:a,placement:l,middlewareData:s}=t,u=await async function(t,n){let{placement:r,platform:i,elements:o}=t,a=await (null==i.isRTL?void 0:i.isRTL(o.floating)),l=n2(r),s=n3(r),u="y"===n6(r),d=["left","top"].includes(l)?-1:1,c=a&&u?-1:1,h=n5(n,t),{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&"number"==typeof g&&(p="end"===s?-1*g:g),u?{x:p*c,y:f*d}:{x:f*d,y:p*c}}(t,r);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:l}}}}),(w||E)&&a.push(function(t){let{apply:n,margins:r,padding:i=0}=t;return{name:"@sanity/ui/size",async fn(o){let{elements:a,placement:l,platform:s,rects:u}=o,{floating:d,reference:c}=u,h=await rr(o,{altBoundary:!0,boundary:t.boundaryElement||void 0,elementContext:"floating",padding:i,rootBoundary:"viewport"}),f=1/0,p=1/0,g=d.width,m=d.height;l.includes("top")&&(f=g-(h.left+h.right),p=m-h.top),l.includes("right")&&(f=g-h.right,p=m-(h.top+h.bottom)),l.includes("bottom")&&(f=g-(h.left+h.right),p=m-h.bottom),l.includes("left")&&(f=g-h.left,p=m-(h.top+h.bottom)),n({availableWidth:f-r[1]-r[3],availableHeight:p-r[0]-r[2],elements:a,referenceWidth:c.width-r[1]-r[3]});let v=await s.getDimensions(a.floating),b=v.height;return g!==v.width||m!==b?{reset:{rects:!0}}:{}}}}({apply(t){let{availableWidth:n,availableHeight:r,elements:i,referenceWidth:o}=t;es.current=o;let a=eo.current,l=el.current;E?i.floating.style.width="".concat(o,"px"):void 0!==a&&(i.floating.style.width="".concat(a,"px")),w&&(i.floating.style.maxWidth="".concat(Math.min(n,null!=l?l:1/0),"px"),i.floating.style.maxHeight="".concat(r,"px"))},boundaryElement:T||void 0,constrainSize:w,margins:m,matchReferenceWidth:E,padding:4})),V&&a.push({name:"shift",options:i={boundary:T||void 0,rootBoundary:et,padding:4},async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:t=>{let{x:n,y:r}=t;return{x:n,y:r}}},...u}=n5(i,t),d={x:n,y:r},c=await rr(t,u),h=n6(n2(o)),f=n4(h),p=d[f],g=d[h];if(a){let t="y"===f?"bottom":"right";p=nK(p+c["y"===f?"top":"left"],nq(p,p-c[t]))}if(l){let t="y"===h?"bottom":"right";g=nK(g+c["y"===h?"top":"left"],nq(g,g-c[t]))}let m=s.fn({...t,[f]:p,[h]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}),b&&a.push({name:"arrow",options:t={element:ee,padding:4},fn(n){let{element:r,padding:i}="function"==typeof t?t(n):t;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?rD({element:r.current,padding:i}).fn(n):{}:r?rD({element:r,padding:i}).fn(n):{}}}),v&&a.push(cq),a.push({name:"hide",options:o={boundary:L||void 0,padding:4,strategy:"referenceHidden"},async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=n5(o,t);switch(r){case"referenceHidden":{let r=ri(await rr(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:ro(r)}}}case"escaped":{let r=ri(await rr(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:r,escaped:ro(r)}}}default:return{}}}}),a},[v,b,w,P,T,m,E,V,L]),placement:j,whileElementsMounted:rL}),em=null==(s=ec.hide)?void 0:s.referenceHidden,ev=null==(u=ec.arrow)?void 0:u.x,eb=null==(d=ec.arrow)?void 0:d.y,ey=null==(c=ec["@sanity/ui/origin"])?void 0:c.originX,ex=null==(h=ec["@sanity/ui/origin"])?void 0:h.originY,ew=(0,_.useCallback)(t=>{ee.current=t},[]),ek=(0,_.useCallback)(t=>{Q.current=t,ef.setFloating(t)},[Q,ef]),eS=(0,_.useCallback)(t=>{ef.setReference(t);let n=null==x?void 0:x.ref;"function"==typeof n?n(t):n&&(n.current=t)},[x,ef]),eP=(0,_.useMemo)(()=>!x||D?null:(0,_.cloneElement)(x,{ref:eS}),[x,D,eS]);if((0,_.useEffect)(()=>{U&&("function"==typeof U?U(eg):U&&(U.current=eg))},[eg,U]),(0,_.useEffect)(()=>{eP||ef.setReference(D||null)},[D,ef,eP]),S)return x||(0,B.jsx)(B.Fragment,{});let eE=(0,B.jsx)(hu,{zOffset:J,children:(0,B.jsx)(hj,{...Y,__unstable_margins:m,animate:v,arrow:b,arrowRef:ew,arrowX:ev,arrowY:eb,hidden:em,overflow:A,padding:X,placement:eh,radius:q,ref:ek,scheme:$,shadow:K,originX:ey,originY:ex,strategy:ep,tone:N,width:E?es.current:ei,x:eu,y:ed,children:k})});return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(hr,{condition:v,wrapper:t=>(0,B.jsx)(s7,{children:t}),children:R&&(0,B.jsx)(hr,{condition:!!O,wrapper:t=>(0,B.jsx)(hm,{__unstable_name:"string"==typeof O?O:void 0,children:t}),children:eE})}),eP]})}
9)).displayName="Popover";let hO={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"},gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"min-content"},hV=nU(d5)(function(){return hO},function(t){let{media:n,space:r}=et(t.theme);return uo(n,t.$space,t=>({gridGap:ui(r[t])}))}),hz=(0,_.forwardRef)(function(t,n){let{as:r,space:i,...o}=t;return(0,B.jsx)(hV,{"data-as":"string"==typeof r?r:void 0,"data-ui":"Stack",...o,$space:ul(i),forwardedAs:r,ref:n})});var hL,hD=Object.freeze,hB=Object.defineProperty;nU.span(hL||(hL=hD(hB(y=["\n flex: 1;\n min-width: 0;\n display: block;\n position: relative;\n"],"raw",{value:hD(x||y.slice())}))));var h_,h$,hF,hI,hN,hH,hW=Object.freeze,hU=Object.defineProperty,hY=(t,n)=>hW(hU(t,"raw",{value:hW(n||t.slice())}));nU.span(h_||(h_=hY(["\n flex: 1;\n min-width: 0;\n display: block;\n position: relative;\n"]))),nU(cL).attrs({forwardedAs:"span"})(h$||(h$=hY(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\n & > span {\n display: block;\n margin: -1px;\n }\n"]))),nU(cL).attrs({forwardedAs:"span"})(hF||(hF=hY(["\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n\n & > span {\n display: block;\n margin: -1px;\n }\n"]))),nU(d5)(hI||(hI=hY(["\n position: absolute;\n top: 0;\n left: 0;\n"]))),nU(d5)(hN||(hN=hY(["\n position: absolute;\n top: 0;\n right: 0;\n"]))),nU(cL)(hH||(hH=hY(["\n background-color: transparent;\n position: absolute;\n top: 0;\n right: 0;\n"])));var hG,hX=Object.freeze,hq=Object.defineProperty;let hK=nU(s1(cL))(hG||(hG=hX(hq(w=["\n & > * {\n opacity: var(",", 1);\n will-change: opacity;\n }\n"],"raw",{value:hX(k||w.slice())}))),un);(0,_.memo)((0,_.forwardRef)(function(t,n){let{animate:r,arrow:i,arrowRef:o,arrowX:a,arrowY:l,children:s,originX:u,originY:d,padding:c,placement:h,radius:f,scheme:p,shadow:g,style:m,...v}=t,b=(0,_.useMemo)(()=>({originX:u,originY:d,willChange:r?"transform":void 0,...m}),[r,u,d,m]),y=(0,_.useMemo)(()=>({left:null!==a?a:void 0,top:null!==l?l:void 0,right:void 0,bottom:void 0}),[a,l]);return(0,B.jsxs)(hK,{"data-ui":"Tooltip__card",...v,"data-placement":h,padding:c,radius:f,ref:n,scheme:p,shadow:g,style:b,...r?ur:{},children:[s,i&&(0,B.jsx)(c7,{ref:o,style:y,width:15,height:6,radius:2})]})})).displayName="TooltipCard";let hZ=Symbol.for("@sanity/ui/context/tooltipDelayGroup");u7[hZ]=u7[hZ]||(0,_.createContext)(null);var hJ,hQ=Object.freeze,h0=Object.defineProperty;nU(hh)(hJ||(hJ=hQ(h0(S=["\n pointer-events: none;\n max-width: ","px;\n"],"raw",{value:hQ(P||S.slice())}))),t=>{let{$maxWidth:n}=t;return n});var h1,h5,h2,h3,h4=Object.freeze,h9=Object.defineProperty,h6=(t,n)=>h4(h9(t,"raw",{value:h4(n||t.slice())}));nU.div(h1||(h1=h6(["\n line-height: 0;\n"]))),nU(d5)(h5||(h5=h6(["\n & > ul {\n list-style: none;\n padding: 0;\n margin: 0;\n }\n"])));let h7=nY(h2||(h2=h6(["\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n"])));nU(nG)(h3||(h3=h6(["\n animation: "," 500ms linear infinite;\n"])),h7);var h8,fe,ft=Object.freeze,fn=Object.defineProperty,fr=(t,n)=>ft(fn(t,"raw",{value:ft(n||t.slice())}));nU.ol(h8||(h8=fr(["\n margin: 0;\n padding: 0;\n display: flex;\n list-style: none;\n align-items: center;\n white-space: nowrap;\n line-height: 0;\n"]))),nU(cC)(fe||(fe=fr(["\n appearance: none;\n margin: -4px;\n"])));let fi=Symbol.for("@sanity/ui/context/dialog");u7[fi]=u7[fi]||(0,_.createContext)({version:0});var fo,fa,fl,fs,fu,fd,fc=Object.freeze,fh=Object.defineProperty,ff=(t,n)=>fc(fh(t,"raw",{value:fc(n||t.slice())}));nU(c_)(fo||(fo=ff(["\n &:not([hidden]) {\n display: flex;\n }\n width: 100%;\n height: 100%;\n flex-direction: column;\n align-items: center;\n justify-content: center;
9\n"]))),nU(cL)(fa||(fa=ff(["\n &:not([hidden]) {\n display: flex;\n }\n width: 100%;\n min-height: 0;\n max-height: 100%;\n overflow: hidden;\n overflow: clip;\n"]))),nU(ca)(fl||(fl=ff(["\n flex: 1;\n min-height: 0;\n width: 100%;\n"]))),nU(d5)(fs||(fs=ff(["\n position: relative;\n z-index: 2;\n"]))),nU(d5)(fu||(fu=ff(["\n position: relative;\n z-index: 1;\n overflow: auto;\n outline: none;\n"]))),nU(d5)(fd||(fd=ff(["\n position: relative;\n z-index: 3;\n"])));var fp,fg,fm=Object.freeze,fv=Object.defineProperty,fb=(t,n)=>fm(fv(t,"raw",{value:fm(n||t.slice())}));nU.kbd(fp||(fp=fb(["\n font: inherit;\n padding: 1px;\n\n &:not([hidden]) {\n display: block;\n }\n"]))),nU(cX)(fg||(fg=fb(["\n &:not([hidden]) {\n display: block;\n }\n"])));let fy=Symbol.for("@sanity/ui/context/menu");u7[fy]=u7[fy]||(0,_.createContext)(null);var fx,fw=Object.freeze,fk=Object.defineProperty;nU(d5)(fx||(fx=fw(fk(E=["\n outline: none;\n overflow: auto;\n"],"raw",{value:fw(T||E.slice())}))));var fS,fP=Object.freeze,fE=Object.defineProperty;nU.hr(fS||(fS=fP(fE(C=["\n height: 1px;\n border: 0;\n background: var(--card-hairline-soft-color);\n margin: 0;\n"],"raw",{value:fP(R||C.slice())}))));var fT,fC,fR,fA,fM=Object.freeze,fj=Object.defineProperty,fO=(t,n)=>fM(fj(t,"raw",{value:fM(n||t.slice())}));let fV=nY(fT||(fT=fO(["\n 0% {\n background-position: 100%;\n }\n 100% {\n background-position: -100%;\n }\n"]))),fz=nW(fC||(fC=fO(["\n background-image: linear-gradient(\n to right,\n var(--card-skeleton-color-from),\n var(--card-skeleton-color-to),\n var(--card-skeleton-color-from),\n var(--card-skeleton-color-from),\n var(--card-skeleton-color-from)\n );\n background-position: 100%;\n background-size: 200% 100%;\n background-attachment: fixed;\n animation-name: ",";\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n animation-duration: 2000ms;\n"])),fV);nW(fA||(fA=fO(["\n opacity: ",";\n transition: opacity 200ms ease-in;\n\n @media screen and (prefers-reduced-motion: no-preference) {\n ","\n }\n\n @media screen and (prefers-reduced-motion: reduce) {\n background-color: var(--card-skeleton-color-from);\n }\n"])),t=>{let{$visible:n}=t;return n?1:0},t=>{let{$animated:n}=t;return n?fz:nW(fR||(fR=fO(["\n background-color: var(--card-skeleton-color-from);\n "])))});var fL,fD=Object.freeze,fB=Object.defineProperty;nU(cC)(fL||(fL=fD(fB(A=["\n max-width: 100%;\n"],"raw",{value:fD(M||A.slice())}))));var f_,f$=Object.freeze,fF=Object.defineProperty;nU(cH)(f_||(f_=f$(fF(j=["\n & > div {\n display: inline-block;\n vertical-align: middle;\n max-width: 100%;\n box-sizing: border-box;\n }\n"],"raw",{value:f$(O||j.slice())}))));var fI,fN,fH=Object.freeze,fW=Object.defineProperty,fU=(t,n)=>fH(fW(t,"raw",{value:fH(n||t.slice())}));nU(cL)(fI||(fI=fU(["\n pointer-events: all;\n & > * {\n opacity: var(",", 1);\n will-change: opacity;\n }\n"])),un),nU(ca)(fN||(fN=fU(["\n overflow-x: auto;\n"])));let fY=Symbol.for("@sanity/ui/context/toast");u7[fY]=u7[fY]||(0,_.createContext)(null);var fG,fX,fq=Object.freeze,fK=Object.defineProperty,fZ=(t,n)=>fq(fK(t,"raw",{value:fq(n||t.slice())}));function fJ(t){if("treeitem"===t.getAttribute("role")&&t.focus(),"none"===t.getAttribute("role")){let n=t.firstChild;n&&n instanceof HTMLElement&&n.focus()}}nU(hh)(fG||(fG=fZ(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n"]))),nU.div(fX||(fX=fZ(["\n box-sizing: border-box;\n position: absolute;\n right: 0;\n bottom: 0;\n max-width: 420px;\n width: 100%;\n"])));let fQ=Symbol.for("@sanity/ui/context/tree");u7[fQ]=u7[fQ]||(0,_.createContext)(null);let f0=u7[fQ];(0,_.memo)((0,_.forwardRef)(function(t,n){let{children:r,space:i=1,onFocus:o,...a}=t,l=dd(n),[s,u]=(0,_.useState)(null),d=(0,_.useRef)(s),c=(0,_.useMemo)(()=>[],[]),[h,f]=(0,_.useState)([]),[p,g]=(0,_.useState)({}),m=(0,_.useRef)(p);(0,_.useEffect)(()=>{d.current=s},[s]),(0,_.useEffect)(()=>{m.current=p},[p]);let v=(0,_.useCallback)((t,n,r,i)=>(g(i=>({...i,[n]:{element:t,expanded:r}})),i&&u(t),()=>{g(t=>{let r={...t};return delete r[n],r})}),[]),b=(0,_.useCallback)((t,n)=>{g(r=>{let i=r[t];return i?{...r,[t]:{...i,expanded:n}}:r})},[]),y=(0,_.useMemo)(()=>({version:0,focusedElement:s||h[0]||null,level:0,path:c,registerItem:v,setExpanded:b,setFocusedElement:u,space:i,state:p}),[s,h,c,v,b,i,p]),x=(0,_.useCallback)(t=>{var n;if(d.current){if("ArrowDown"!==t.key){if("ArrowUp"!==t.key){if("ArrowLeft"!==t.key){if("ArrowRight"!==t.key);else{t.preventDefault();let r=d.current.getAttribute("data-tree-key");if(!r)return;(null==(n=m.current[r])?void 0:n.expanded)||g(t=>{let n=t[r];return n?{...t,[r]:{...n,expanded:!0}}:t})}}else{t.preventDefault();let n=d.current.getAttribute("data-tree-key");if(!n)return;let r=m.current[n];if(!r)return;if(r.expanded)g(t=>{let r=t[n];return r?{...t,[n]:{...r,expanded:!1}}:t});else{let t=n.split("/");t.pop();let r=t.join("/"),i=r&&m.current[r];i&&(i.element.focus(),u(i.element))}}}else{t.preventDefault();let n=function(t,n,r){var i;let o=n.indexOf(r),a=n.slice(0,o);for(let n=a.length-1;n>=0;n-=1){let r=a[n].getAttribute("data-tree-key");if(!r)continue;let o=r.split("/");o.pop();let l=[],s=!0;for(let n=0;n<o.length;n+=1)if(l.push(o[n]),!(null==(i=t[l.join("/")])?void 0:i.expanded)){s=!1;break}if(s)return a[n]}return null}(m.current,h,d.current);n&&(fJ(n),u(n))}}else{t.preventDefault();let n=function(t,n,r){var i;let o=n.indexOf(r),a=n.slice(o),l=n.length;for(let n=1;n<l;n+=1){if(!a[n])continue;let r=a[n].getAttribute("data-tree-key");if(!r)continue;let o=r.split("/");o.pop();let l=[],s=!0;for(let n=0;n<o.length;n+=1)if(l.push(o[n]),!(null==(i=t[l.join("/")])?void 0:i.expanded)){s=!1;break}if(s)return a[n]}return null}(m.current,h,d.current);n&&(fJ(n),u(n))}}}
9,[h]),w=(0,_.useCallback)(t=>{u(t.target),null==o||o(t)},[o]);return(0,_.useEffect)(()=>{l.current&&f(Array.from(l.current.querySelectorAll('[data-ui="TreeItem"]')))},[r,l]),(0,B.jsx)(f0.Provider,{value:y,children:(0,B.jsx)(hz,{as:"ul","data-ui":"Tree",...a,onFocus:w,onKeyDown:x,ref:l,role:"tree",space:i,children:r})})})).displayName="Tree";var f1,f5=Object.freeze,f2=Object.defineProperty;nU(ci)(f1||(f1=f5(f2(V=["\n & > svg {\n transition: transform 100ms;\n }\n"],"raw",{value:f5(z||V.slice())}))));let f3={alt:"altKey",ctrl:"ctrlKey",mod:"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"metaKey":"ctrlKey",shift:"shiftKey"};function f4(t){return"Alt"===t.key}var f9,f6,f7,f8=Object.freeze,pe=Object.defineProperty,pt=(t,n)=>f8(pe(t,"raw",{value:f8(n||t.slice())}));let pn=nU(cL)(f9||(f9=pt(["\n background-color: var(--overlay-bg);\n border-radius: 3px;\n pointer-events: none;\n position: absolute;\n will-change: transform;\n box-shadow: var(--overlay-box-shadow);\n transition: none;\n\n --overlay-bg: transparent;\n --overlay-box-shadow: inset 0 0 0 1px transparent;\n\n [data-overlays] & {\n --overlay-bg: color-mix(\n in srgb,\n transparent 95%,\n var(--card-focus-ring-color)\n );\n --overlay-box-shadow: inset 0 0 0 2px\n color-mix(in srgb, transparent 50%, var(--card-focus-ring-color));\n }\n\n [data-fading-out] & {\n transition:\n box-shadow 1550ms,\n background-color 1550ms;\n\n --overlay-bg: rgba(0, 0, 255, 0);\n --overlay-box-shadow: inset 0 0 0 1px transparent;\n }\n\n &[data-focused] {\n --overlay-box-shadow: inset 0 0 0 1px var(--card-focus-ring-color);\n }\n\n &[data-hovered]:not([data-focused]) {\n transition: none;\n --overlay-box-shadow: inset 0 0 0 2px var(--card-focus-ring-color);\n }\n\n /* [data-unmounted] & {\n --overlay-box-shadow: inset 0 0 0 1px var(--card-focus-ring-color);\n } */\n\n :link {\n text-decoration: none;\n }\n"]))),pr=nU(ca)(f6||(f6=pt(["\n bottom: 100%;\n cursor: pointer;\n pointer-events: none;\n position: absolute;\n right: 0;\n\n [data-hovered] & {\n pointer-events: all;\n }\n"]))),pi=nU(cL)(f7||(f7=pt(["\n background-color: var(--card-focus-ring-color);\n right: 0;\n border-radius: 3px;\n\n & [data-ui='Text'] {\n color: var(--card-bg-color);\n white-space: nowrap;\n }\n"]))),po=(0,_.memo)(function(t){let{focused:n,hovered:r,rect:i,showActions:o,sanity:a,wasMaybeCollapsed:l}=t,s=(0,_.useRef)(null),u=(0,_.useRef)(!1);(0,_.useEffect)(()=>{u.current||l||!0!==n||!s.current||(0,N.Z)(s.current,{behavior:"smooth",scrollMode:"if-needed",block:"center",inline:"nearest"}),u.current=!0===n},[n,l]);let d=(0,_.useMemo)(()=>({width:"".concat(i.w,"px"),height:"".concat(i.h,"px"),transform:"translate(".concat(i.x,"px, ").concat(i.y,"px)")}),[i]),c="path"in a?function(t){let{id:n,type:r,path:i,baseUrl:o,tool:a,workspace:l}=t;return(0,I.c)({baseUrl:o,workspace:l,tool:a,type:r,id:n,path:(0,I.o)(I.s.fromString(i))})}(a):a.href;return(0,B.jsx)(pn,{"data-focused":n?"":void 0,"data-hovered":r?"":void 0,ref:s,style:d,children:o&&r?(0,B.jsx)(pr,{gap:1,paddingBottom:1,children:(0,B.jsx)(d5,{as:"a",href:c,target:"_blank",rel:"noopener",referrerPolicy:"no-referrer-when-downgrade",children:(0,B.jsx)(pi,{padding:2,children:(0,B.jsx)(ci,{size:1,weight:"medium",children:"Open in Studio"})})})}):null})}),pa=(t,n)=>{let{type:r}=n;switch(r){case"element/register":return t.find(t=>t.id===n.id)?t:[...t,{id:n.id,activated:!1,focused:!1,hovered:!1,rect:n.rect,sanity:n.sanity}];case"element/activate":return t.map(t=>t.id===n.id?{...t,activated:!0}:t);case"element/unregister":return t.filter(t=>t.id!==n.id);case"element/deactivate":return t.map(t=>t.id===n.id?{...t,activated:!1,hovered:!1}:t);case"element/mouseenter":return t.map(t=>t.id===n.id?{...t,rect:n.rect,hovered:!0}:{...t,hovered:!1});case"element/mouseleave":return t.map(t=>t.id===n.id?{...t,hovered:!1}:t);case"element/updateRect":return t.map(t=>t.id===n.id?{...t,rect:n.rect}:t);case"element/click":return t.map(t=>({...t,focused:t.id===n.id&&"clicked"}));case"overlay/blur":case"presentation/blur":return t.map(t=>
9({...t,focused:!1}));case"presentation/focus":{let r=t.find(t=>"clicked"===t.focused);return t.map(t=>{if(t===r)return t;let i="path"in t.sanity&&t.sanity.id===n.data.id&&t.sanity.path===n.data.path;return{...t,focused:i&&r?"duplicate":i}})}default:return t}};function pl(t,n){let r=t.focusPath,i=!1;if("presentation/focus"===n.type){let o=t.focusPath;o!==(r=n.data.path)&&(i=o.slice(r.length).startsWith("["))}return{...t,focusPath:r,elements:pa(t.elements,n),wasMaybeCollapsed:i}}let ps=["channel/disconnect","channel/response","channel/heartbeat"],pu=["handshake/syn","handshake/syn-ack","handshake/ack"],pd=t=>ps.some(n=>n===t),pc=t=>pu.some(n=>n===t),ph=({data:t={}})=>"object"==typeof t&&null!==t&&!Array.isArray(t)&&!("domain"in t)&&["id","type","from","to"].every(n=>n in t)&&t.type.startsWith("handshake/");var pf,pp=Object.freeze,pg=Object.defineProperty;let pm=nU.div(pf||(pf=pp(pg(L=["\n background-color: transparent;\n direction: ltr;\n inset: 0;\n pointer-events: none;\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: ",";\n"],"raw",{value:pp(D||L.slice())}))),({$zIndex:t})=>null!=t?t:"9999999");function pv(t){let n,r;return n=requestAnimationFrame(()=>{r=requestAnimationFrame(t)}),()=>{void 0!==n&&cancelAnimationFrame(n),void 0!==r&&cancelAnimationFrame(r)}}let pb=function(t){let{history:n,zIndex:r}=t,[{elements:i,wasMaybeCollapsed:o},a]=(0,_.useReducer)(pl,void 0,()=>({elements:[],focusPath:"",wasMaybeCollapsed:!1})),[l,s]=(0,_.useState)(null),[u,d]=(0,_.useState)(!0),{channel:c,status:h}=function(t){let n=(0,_.useRef)(),[r,i]=(0,_.useState)();return(0,_.useEffect)(()=>{let r=function(t){let n=window.self!==window.top||window.opener,r={buffer:[],id:null,origin:null,source:null,status:"connecting"};function i(n,i){if(pc(n)||pd(n)||"connecting"!==r.status&&"reconnecting"!==r.status){if(r.id&&r.origin&&r.source){let o={connectionId:r.id,data:i,domain:"sanity/channels",from:t.id,id:(0,I.v)(),to:t.connectTo,type:n};try{r.source.postMessage(o,{targetOrigin:r.origin})}catch(n){throw Error("Failed to postMessage '".concat(o.id,"' on '").concat(t.id,"'"))}}}else r.buffer.push({type:n,data:i})}function o(n){var o;if(ph(n))console.error("Visual editing package mismatch detected! Please ensure you are using the latest version of Sanity Studio and any packages listed here:\nhttps://github.com/sanity-io/visual-editing");else if(function(n){let{data:r}=n;return"sanity/channels"===r.domain&&r.to===t.id&&r.from===t.connectTo&&"channel/response"!==r.type}(n)){let{data:l}=n;if(r.origin&&n.origin!==r.origin)return;if(n.source&&r.source!==n.source&&(r.source=n.source),pc(l.type)&&l.data){if("handshake/syn"===l.type)return r.origin=n.origin,r.id=l.data.id,a("connecting"),void i("handshake/syn-ack",{id:r.id});if("handshake/ack"===l.type&&l.data.id===r.id)return void a("connected")}else if(l.connectionId===r.id&&n.origin===r.origin){if("channel/disconnect"===l.type)return void a("disconnected");{let n=[l.type,l.data];null==(o=t.onEvent)||o.call(t,...n),i("channel/response",{responseTo:l.id})}return}}}function a(n){var o;r.status=n,null==(o=null==t?void 0:t.onStatusUpdate)||o.call(t,n),"connected"===n&&function(){let t=[...r.buffer];r.buffer.splice(0,r.buffer.length),t.forEach(({type:t,data:n})=>{i(t,n)})}()}return window.addEventListener("message",o,!1),a("connecting"),{destroy:function(){["disconnected"].includes(r.status)||a("disconnected"),window.removeEventListener("message",o,!1)},inFrame:n,send:function(t,n){i(t,n)}}}({id:"overlays",connectTo:"presentation",onEvent:t,onStatusUpdate:i});return n.current=r,()=>{r.destroy(),n.current=void 0}},[t]),{channel:n.current,status:r}}((0,_.useCallback)((t,r)=>{var i;"presentation/focus"===t&&(null==(i=r.path)?void 0:i.length)&&a({type:t,data:r}),"presentation/blur"===t&&a({type:t,data:r}),"presentation/navigate"===t&&(null==n||n.update(r)),"presentation/toggleOverlay"===t&&d(t=>!t)},[n])),f=function(t,n,r){let i=(0,_.useRef)();return(0,_.useEffect)(()=>{if(t)return i.current=(0,I.a)({handler:n,overlayElement:t,preventDefault:r}),()=>{var t;null==(t=i.current)||t.deactivate(),i.current=void 0}},[t,n,r]),i}(l,(0,_.useCallback)(t=>{"element/click"===t.type?null==c||c.send("overlay/focus",t.sanity):"overlay/activate"===t.type?null==c||c.send("overlay/toggle",{enabled:!0}):"overlay/deactivate"===t.type&&(null==c||c.send("overlay/toggle",{enabled:!1})),a(t)},[c]),!!(null==c?void 0:c.inFrame));(0,_.useEffect)(()=>{var t,n;u?null==(t=f.current)||t.activate():null==(n=f.current)||n.deactivate()},[c,f,u]),(0,_.useEffect)(()=>{let t=t=>{var n;let r=t.target;if((hs(r)&&"A"===r.nodeName||hs(r)&&r.closest("a"))&&t.altKey){t.preventDefault(),t.stopPropagation();let r=new MouseEvent(t.type,{...t,altKey:!1,bubbles:!0,cancelable:!0});null==(n=t.target)||n.dispatchEvent(r)}},n=t=>{f4(t)&&d(t=>!t)},r=t=>{f4(t)&&d(t=>!t),["mod","\\"].every(n=>f3[n]?t[f3[n]]:t.key===n.toUpperCase())&&d(t=>!t)};return window.addEventListener("click",t),window.addEventListener("keydown",r),window.addEventListener("keyup",n),()=>{window.removeEventListener("click",t),window.removeEventListener("keydown",r),window.removeEventListener("keyup",n)}},[d]),(0,_.useEffect)(()=>
9{if(c&&n)return n.subscribe(t=>{c.send("overlay/navigate",t)})},[c,n]);let[p,g]=(0,_.useState)(!1),[m,v]=(0,_.useState)(!1),b=(0,_.useRef)(void 0);(0,_.useEffect)(()=>{if(u)return pv(()=>{g(!0),pv(()=>{v(!0),b.current=setTimeout(()=>{v(!1),g(!1)},1500)})});b.current&&(clearTimeout(b.current),g(!1),v(!1))},[u]);let y=(0,_.useMemo)(()=>!c||c.inFrame&&"connected"!==h?[]:i.filter(t=>t.activated||t.focused),[c,i,h]);return(0,B.jsx)(dt,{theme:s8,tone:"transparent",children:(0,B.jsx)(pm,{"data-fading-out":m?"":void 0,"data-overlays":p?"":void 0,ref:s,$zIndex:r,children:y.map(({id:t,focused:n,hovered:r,rect:i,sanity:a})=>(0,B.jsx)(po,{rect:i,focused:n,hovered:r,showActions:!(null==c?void 0:c.inFrame),sanity:a,wasMaybeCollapsed:n&&o},t))})})}}}]);
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.