PageSourceSearch

https://www.bitx.hr/_next/static/chunks/9254-ac888a5f38aea8b3.js

js bitx.hr collected 2026-10-07 00:08:33 UTC 297,880 bytes, 149 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9254],{1072:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var u=s[l];if(!o(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},1083:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},6983:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{G:()=>r})},7021:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(95155),i=n(43377),s=n(90330),a=n(83060),o=n(8561),l=n(12115),u=n(50330);function c(e){let t=function e(t){var n;return!!(n=t)&&("object"==typeof n||"function"==typeof n)&&("reference"===t.name||e(t.type))}(e)&&1===(e.to??[]).length?e.to[0].icon:void 0;return e.icon??e.type?.icon??t}function d(e,t){return{query:"change query"===t.type?t.query:e.query,groups:"select group"===t.type?e.groups.map(e=>({...e,selected:t.name===e.name})):e.groups,views:"toggle view"===t.type?e.views.map(e=>({...e,selected:t.name===e.name})):e.views}}let h="all-items",f={gridTemplateColumns:"repeat(auto-fill, minmax(118px, 1fr))"};function p(e){let t,n,u,p,y,v,w,S,E,A,C,P,T,M,j,R,I=(0,i.c)(54),O=void 0===e.showIcons||e.showIcons,_=void 0===e.filter||"auto"===e.filter?e.schemaTypes.length>5:e.filter;I[0]!==e.groups||I[1]!==e.labels?(t=e.groups?[{name:h,title:e.labels["insert-menu.filter.all-items"],selected:!0},...e.groups.map(b)]:[],I[0]=e.groups,I[1]=e.labels,I[2]=t):t=I[2],I[3]!==e.views?(n=e.views??[{name:"list"}],I[3]=e.views,I[4]=n):n=I[4],I[5]!==n?(u=n.map(m),I[5]=n,I[6]=u):u=I[6],I[7]!==t||I[8]!==u?(p={query:"",groups:t,views:u},I[7]=t,I[8]=u,I[9]=p):p=I[9];let[D,V]=(0,l.useReducer)(d,p);if(I[10]!==e||I[11]!==_||I[12]!==O||I[13]!==D.groups||I[14]!==D.query||I[15]!==D.views){var $,z,L;let t,n,i,l=($=e.schemaTypes,z=D.query,L=D.groups,$.filter(e=>(function(e,t){let n=t.find(e=>e.selected);return!n||n.name===h||n.of?.includes(e.name)})(e,L)&&function(e,t){let n=t.trim().toLowerCase();return e.title?e.title?.toLowerCase().includes(n):e.name.includes(n)}(e,z))),u=D.views.find(g),d=_||D.views.length>1,p=D.groups&&D.groups.length>0,m=d||p;w=a.W1,T=0,v=a.so,A="column",C="fill",I[25]!==m?(t=m?{style:{borderBottom:"1px solid var(--card-border-color)"},paddingBottom:1}:{},I[25]=m,I[26]=t):t=I[26],I[27]!==e.labels||I[28]!==_||I[29]!==d||I[30]!==D.query||I[31]!==D.views?(n=d?(0,r.jsxs)(a.so,{flex:"none",align:"center",paddingTop:1,paddingX:1,gap:1,children:[_?(0,r.jsx)(a.az,{flex:1,children:(0,r.jsx)(a.ks,{autoFocus:!0,border:!1,fontSize:1,icon:s.WIv,onChange:e=>{V({type:"change query",query:e.target.value})},placeholder:e.labels["insert-menu.search.placeholder"],value:D.query})}):null,D.views.length>1?(0,r.jsx)(a.az,{flex:"none",children:(0,r.jsx)(x,{views:D.views,onToggle:e=>{V({type:"toggle view",name:e})},labels:e.labels})}):null]}):null,I[27]=e.labels,I[28]=_,I[29]=d,I[30]=D.query,I[31]=D.views,I[32]=n):n=I[32],I[33]!==p||I[34]!==D.groups?(i=p?(0,r.jsx)(a.az,{paddingTop:1,paddingX:1,children:(0,r.jsx)(a.wb,{space:1,children:D.groups.map(e=>(0,r.jsx)(a.oz,{id:`${e.name}-tab`,"aria-controls":`${e.name}-panel`,label:e.title??o(e.name),selected:e.selected,onClick:()=>{V({type:"select group",name:e.name})}},e.name))})}):null,I[33]=p,I[34]=D.groups,I[35]=i):i=I[35],I[36]!==t||I[37]!==n||I[38]!==i?(P=(0,r.jsxs)(a.az,{...t,children:[n,i]}),I[36]=t,I[37]=n,I[38]=i,I[39]=P):P=I[39],y=a.az,S=1,E=0===l.length?(0,r.jsx)(a.az,{padding:2,children:(0,r.jsx)(a.EY,{muted:!0,size:1,children:e.labels["insert-menu.search.no-results"]})}):u?"grid"===u.name?(0,r.jsx)(a.xA,{autoRows:"auto",flex:1,gap:1,style:f,children:l.map(t=>(0,r.jsx)(k,{icon:O?c(t):void 0,onClick:()=>{e.onSelect(t)},previewImageUrl:u.previewImageUrl?.(t.name),schemaType:t},t.name))}):(0,r.jsx)(a.BJ,{flex:1,space:1,children:l.map(t=>(0,r.jsx)(a.Dr,{icon:O?c(t):void 0,onClick:()=>{e.onSelect(t)},text:t.title??o(t.name)},t.name))}):null,I[10]=e,I[11]=_,I[12]=O,I[13]=D.groups,I[14]=D.query,I[15]=D.views,I[16]=y,I[17]=v,I[18]=w,I[19]=S,I[20]=E,I[21]=A,I[22]=C,I[23]=P,I[24]=T}else y=I[16],v=I[17],w=I[18],S=I[19],E=I[20],A=I[21],C=I[22],P=I[23],T=I[24];return I[40]!==y||I[41]!==S||I[42]!==E?(M=(0,r.jsx)(y,{padding:S,children:E}),I[40]=y,I[41]=S,I[42]=E,I[43]=M):M=I[43],I[44]!==v||I[45]!==M||I[46]!==A||I[47]!==C||I[48]!==P?(j=(0,r.jsxs)(v,{direction:A,height:C,children:[P,M]}),I[44]=v,I[45]=M,I[46]=A,I[47]=C,I[48]=P,I[49]=j):j=I[49],I[50]!==w||I[51]!==j||I[52]!==T?(R=(0,r.jsx)(w,{padding:T,children:j}),I[50]=w,I[51]=j,I[52]=T,I[53]=R):R=I[53],R}function g(e){return e.selected}function m(e,t){return{...e,selected:0===t}}function b(e){return{...e,selected:!1}}let y={grid:s.jxC,list:s.r$9},v={grid:"insert-menu.toggle-grid-view.tooltip",list:"insert-menu.toggle-list-view.tooltip"};function x(e){let t,n,s,o,l=(0,i.c)(11),u=e.views.findIndex(w),c=e.views[u+1]??e.views[0],d=e.labels[v[c.name]];l[0]!==d?(t=(0,r.jsx)(a.EY,{size:1,children:d}),l[0]=d,l[1]=t):t=l[1];let h=y[c.name];return l[2]!==c.name||l[3]!==e?(n=()=>{e.onToggle(c.name)},l[2]=c.name,l[3]=e,l[4]=n):n=l[4],l[5]!==h||l[6]!==n?(s=(0,r.jsx)(a.$n,{mode:"bleed",icon:h,onClick:n}),l[5]=h,l[6]=n,l[7]=s):s=l[7],l[8]!==t||l[9]!==s?(o=(0,r.jsx)(a.m_,{content:t,placement:"top",portal:!0,children:s}),l[8]=t,l[9]=s,l[10]=o):o=l[10],o}function w(e){return e.selected}function k(e){let t,n,s,o,c,d,h,f,p,g=(0,i.c)(19),[m,b]=(0,l.useState)(!1),y=e.icon;g[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},g[0]=t):t=g[0],g[1]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--card-muted-bg-color)",paddingBottom:"66.6%",position:"relative"},g[1]=n):n=g[1],g[2]!==y?(s=(0,u.isValidElementType)(y)?(0,r.jsx)(a.so,{align:"center",justify:"center",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,r.jsx)(a.EY,{size:1,children:(0,r.jsx)(y,{})})}):null,g[2]=y,g[3]=s):s=g[3],g[4]!==m||g[5]!==e.previewImageUrl?(o=!e.previewImageUrl||m?null:(0,r.jsx)("img",{src:e.previewImageUrl,style:{objectFit:"contain",width:"100%",height:"100%",position:"absolute",inset:0},onError:()=>{b(!0)}}),g[4]=m,g[5]=e.previewImageUrl,g[6]=o):o=g[6],g[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxShadow:"inset 0 0 0 0.5px var(--card-fg-color)",opacity:.1}}),g[7]=c):c=g[7],g[8]!==s||g[9]!==o?(d=(0,r.jsxs)(a.az,{flex:"none",style:n,children:[s,o,c]}
1),g[8]=s,g[9]=o,g[10]=d):d=g[10];let v=e.schemaType.title??e.schemaType.name;return g[11]!==v?(h=(0,r.jsx)(a.az,{flex:1,padding:2,children:(0,r.jsx)(a.EY,{size:1,weight:"medium",children:v})}),g[11]=v,g[12]=h):h=g[12],g[13]!==d||g[14]!==h?(f=(0,r.jsxs)(a.so,{direction:"column",gap:1,padding:1,children:[d,h]}),g[13]=d,g[14]=h,g[15]=f):f=g[15],g[16]!==e.onClick||g[17]!==f?(p=(0,r.jsx)(a.Dr,{padding:0,radius:2,onClick:e.onClick,style:t,children:f}),g[16]=e.onClick,g[17]=f,g[18]=p):p=g[18],p}},7985:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},8561:(e,t,n)=>{var r=n(34642),i=n(23633);e.exports=r(function(e,t,n){return e+(n?" ":"")+i(t)})},14229:(e,t,n)=>{var r=n(84342),i=n(85855),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(s,r).replace(a,"")}},16613:(e,t,n)=>{var r=n(24376),i=n(57213),s=n(39608),a=n(70771),o=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-o?"-0":n}},17855:e=>{var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",s="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",o="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,s,a].join("|")+")"+l+o+")*",c=RegExp(r+"(?="+r+")|"+("(?:"+[i+n+"?",n,s,a,"["+t+"]"].join("|"))+")"+(l+o+u),"g");e.exports=function(e){return e.match(c)||[]}},20570:(e,t,n)=>{var r=n(24376),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[o]=n:delete e[o]),i}},23633:(e,t,n)=>{e.exports=n(62962)("toUpperCase")},24323:(e,t,n)=>{"use strict";n.d(t,{BI:()=>O,Co:()=>W,EA:()=>J,IU:()=>G,Ki:()=>m,Kp:()=>et,X:()=>f,dj:()=>eP,jT:()=>j,lG:()=>U,r5:()=>ee,s5:()=>g,sQ:()=>b,tE:()=>eA,tH:()=>y});var r=n(83060),i=n(95155),s=n(90330),a=n(12115),o=n(44987),l=n(43377),u=n(65432),c=n(76408),d=n(60760);function h(e){let t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function f(e){let t=null,n=h(()=>{t=h(e)});return()=>{t&&t(),n()}}function p(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||((0,r.nY)(e)?!!e.href&&"ignore"!==e.rel:(0,r.A3)(e)?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!((0,r.WE)(e)||(0,r.q4)(e)||(0,r.QY)(e))&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function g(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||g(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||m(n)))return!0}return!1}function b(e){return(0,r.cF)(e)?._contentRect||null}class y extends a.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch({error:e,info:t})}render(){let{error:e}=this.state;if(e){let t="string"==typeof e?.message?e.message:"Error";return(0,i.jsx)(r.Cy,{children:t})}return this.props.children}}let v=o.I4.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-1igauft-0"})`line-height:0;`,x=(0,o.I4)(r.az).withConfig({displayName:"ListBox",componentId:"sc-1igauft-1"})`& > ul{list-style:none;padding:0;margin:0;}`,w=(0,o.i7)`
2  from {
3    transform: rotate(0deg);
4  }
5
6  to {
7    transform: rotate(360deg);
8  }
9`,k=(0,o.I4)(s.Nl1).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${w} 500ms linear infinite;`;function S(e){let t,n,s,a=(0,l.c)(11),{children:o,id:u,onSelect:c,selected:d,value:h}=e;a[0]!==c||a[1]!==h?(t=()=>{setTimeout(()=>{c(h)},0)},a[0]=c,a[1]=h,a[2]=t):t=a[2];let f=t;a[3]!==f?(n=e=>{"Enter"!==e.key||(0,r.zd)(e.currentTarget)||f()},a[3]=f,a[4]=n):n=a[4];let p=n;return a[5]!==o||a[6]!==f||a[7]!==p||a[8]!==u||a[9]!==d?(s=(0,i.jsx)("li",{"aria-selected":d,"data-ui":"AutocompleteOption",id:u,role:"option",onClick:f,onKeyDown:p,children:o}),a[5]=o,a[6]=f,a[7]=p,a[8]=u,a[9]=d,a[10]=s):s=a[10],s}function E(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let A=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],C=["bottom-start","to
9p-start"],P=(e,t)=>t?t.value:e,T=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,M=(0,a.forwardRef)(function(e,t){let{border:n=!0,customValidity:o,disabled:l,filterOption:u,fontSize:c=2,icon:d,id:f,listBox:p=r.sU,loading:m,onBlur:b,onChange:y,onFocus:w,onQueryChange:M,onSelect:j,openButton:R,openOnFocus:I,options:O,padding:_=3,popover:D=r.sU,prefix:V,radius:$=2,readOnly:z,relatedElements:L,renderOption:F,renderPopover:N,renderValue:B=P,suffix:H,value:U,...W}=e,[G,Y]=(0,a.useReducer)(E,{activeValue:U||null,focused:!1,listFocused:!1,query:null,value:U||null}),{activeValue:q,focused:K,listFocused:X,query:Z,value:J}=G,Q=(0,a.useCallback)(({value:e})=>(0,i.jsx)(r.Zp,{"data-as":"button",padding:_,radius:2,tone:"inherit",children:(0,i.jsx)(r.EY,{size:c,textOverflow:"ellipsis",children:e})}),[c,_]),ee="function"==typeof F?F:Q,et="function"==typeof u?u:T,en=(0,a.useRef)(null),er=(0,a.useRef)(null),ei=(0,a.useRef)(null),es=(0,a.useRef)(null),ea=(0,a.useRef)(!1),eo=(0,a.useRef)(J),el=(0,a.useRef)(U),eu=(0,a.useRef)(!1);(0,a.useImperativeHandle)(t,()=>ei.current);let ec=`${f}-listbox`,ed=Array.isArray(O)?O:r.Ml,eh=(0,r.KC)(_),ef=(0,a.useMemo)(()=>null!==J?ed.find(e=>e.value===J):void 0,[ed,J]),ep=(0,a.useMemo)(()=>ed.filter(e=>!Z||et(Z,e)),[et,ed,Z]),eg=ep.length,em=q?`${f}-option-${q}`:void 0,eb=null!==Z&&m||K&&null!==Z,ey=(0,a.useCallback)(e=>{setTimeout(()=>{if(eu.current)return;let t=(L||[]).concat(en.current?[en.current]:[],er.current?[er.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(Y({type:"root/blur"}),eu.current=!1,M&&M(null),b&&b(e))},0)},[b,M,L]),ev=(0,a.useCallback)(e=>{let t=es.current,n=e.target instanceof HTMLElement?e.target:null,r=t?.contains(n)||!1;r!==ea.current&&(ea.current=r,Y({type:"root/setListFocused",listFocused:r}))},[]),ex=(0,a.useCallback)(e=>{Y({type:"value/change",value:e}),eu.current=!1,j&&j(e),eo.current=e,y&&y(e),M&&M(null),ei.current?.focus()},[y,j,M]),ew=(0,a.useCallback)(e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===q),n=t?ep.indexOf(t):-1,r=ep[(n+1)%eg];r&&Y({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===q),n=t?ep.indexOf(t):-1,r=ep[-1===n?eg-1:(eg+n-1)%eg];r&&Y({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("Escape"===e.key){Y({type:"root/escape"}),eu.current=!1,M&&M(null),ei.current?.focus();return}let t=e.target,n=es.current;if((n===t||n?.contains(t))&&!A.includes(e.key))return void ei.current?.focus()},[q,ep,eg,M]),ek=(0,a.useCallback)(e=>{let t=e.currentTarget.value;Y({type:"input/change",query:t}),M&&M(t)},[M]),eS=(0,a.useCallback)(()=>{Y({type:"root/open",query:J?B(J,ef):""})},[ef,B,J]),eE=(0,a.useCallback)(e=>{K||(Y({type:"input/focus"}),w&&w(e),I&&eS())},[K,w,I,eS]),eA=(0,a.useCallback)(()=>{eu.current=!0},[]),eC=(0,a.useCallback)(()=>{eu.current=!1},[]),eP=(0,a.useCallback)(()=>{Y({type:"root/clear"}),eo.current="",y&&y(""),M&&M(null),ei.current?.focus()},[y,M]),eT=(0,a.useCallback)(()=>{Y({type:"input/focus"})},[]);(0,a.useEffect)(()=>{if(U!==el.current){el.current=U,void 0!==U&&(Y({type:"value/change",value:U}),eo.current=U);return}U!==eo.current&&(eo.current=U||null,Y({type:"value/change",value:U||null}))},[U]),(0,a.useEffect)(()=>{!K&&eo.current&&Y({type:"root/setActiveValue",value:eo.current})},[K]),(0,a.useEffect)(()=>{let e=es.current;if(!e)return;let t=ep.find(e=>e.value===q);if(t){let n=ep.indexOf(t),r=e.childNodes[n];if(r){if(document.activeElement&&r.contains(document.activeElement))return;g(r)}}},[q,ep]);let eM=(0,a.useMemo)(()=>{if(!m&&!l&&J)return{"aria-label":"Clear",onFocus:eT}},[l,eT,m,J]),ej=(0,a.useMemo)(()=>eh.map(e=>0===e?0:1===e||2===e?1:e-2),[eh]),eR=(0,a.useMemo)(()=>eh.map(e=>Math.max(e-1,0)),[eh]),eI=(0,a.useMemo)(()=>"object"==typeof R?R:r.sU,[R]),eO=(0,a.useCallback)(e=>{eS(),eI.onClick&&eI.onClick(e),h(()=>ei.current?.focus())},[eI,eS]),e_=(0,a.useMemo)(()=>l||z||!R?void 0:(0,i.jsx)(r.az,{"aria-hidden":eb,padding:ej,children:(0,i.jsx)(r.$n,{"aria-label":"Open",disabled:eb,fontSize:c,icon:s.D3D,mode:"bleed",padding:eR,...eI,onClick:eO})}),[l,eb,c,eO,R,ej,eR,eI,z]),eD=(0,a.useMemo)(()=>null===Z?null!==J?B(J,ef):"":Z,[ef,Z,B,J]),eV=(0,i.jsx)(r.ks,{...W,"aria-activedescendant":em,"aria-autocomplete":"list","aria-expanded":eb,"aria-owns":ec,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:n,clearButton:eM,customValidity:o,disabled:l,fontSize:c,icon:d,iconRight:m&&k,id:f,inputMode:"search",onChange:ek,onClear:eP,onFocus:eE,padding:eh,prefix:V,radius:$,readOnly:z,ref:ei,role:"combobox",spell
9Check:!1,suffix:H||e_,value:eD}),e$=(0,a.useCallback)(e=>{"Tab"===e.key&&X&&ei.current?.focus()},[X]),ez=(0,a.useMemo)(()=>0===ep.length?null:(0,i.jsx)(x,{"data-ui":"AutoComplete__results",onKeyDown:e$,padding:1,...p,tabIndex:-1,children:(0,i.jsx)(r.BJ,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:ec,ref:es,role:"listbox",space:1,children:ep.map(e=>{let t=null!==q?e.value===q:ef===e;return(0,i.jsx)(S,{id:`${f}-option-${e.value}`,onSelect:ex,selected:t,value:e.value,children:(0,a.cloneElement)(ee(e),{disabled:m,selected:t,tabIndex:X&&t?0:-1})},e.value)})})}),[q,ef,ep,ex,e$,f,p,ec,X,m,ee]),eL=(0,a.useMemo)(()=>N?N({content:ez,hidden:!eb,inputElement:ei.current,onMouseEnter:eA,onMouseLeave:eC},er):0===eg?null:(0,i.jsx)(r.AM,{arrow:!1,constrainSize:!0,content:ez,fallbackPlacements:C,matchReferenceWidth:!0,onMouseEnter:eA,onMouseLeave:eC,open:eb,overflow:"auto",placement:"bottom-start",portal:!0,radius:$,ref:er,referenceElement:ei.current,...D}),[ez,eb,eg,eA,eC,D,$,N]);return(0,i.jsxs)(v,{"data-ui":"Autocomplete",onBlur:ey,onFocus:ev,onKeyDown:ew,ref:en,children:[eV,eL]})});M.displayName="ForwardRef(Autocomplete)";let j=M,R=o.I4.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-1es8h8q-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,I=(0,o.I4)(r.$n).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`,O=(0,a.forwardRef)(function(e,t){let{children:n,maxLength:s,separator:o,space:l=2,...u}=e,c=(0,r.KC)(l),[d,h]=(0,a.useState)(!1),f=(0,a.useRef)(null),p=(0,a.useRef)(null),g=(0,a.useCallback)(()=>h(!1),[]),m=(0,a.useCallback)(()=>h(!0),[]);(0,r.PR)(g,()=>[f.current,p.current]);let b=(0,a.useMemo)(()=>a.Children.toArray(n).filter(a.isValidElement),[n]),y=(0,a.useMemo)(()=>{let e=b.length;if(s&&e>s){let t=Math.ceil(s/2),n=Math.floor(s/2);return[...b.slice(0,t-1),(0,i.jsx)(r.AM,{constrainSize:!0,content:(0,i.jsx)(r.BJ,{as:"ol",overflow:"auto",padding:c,space:c,children:b.slice(t-1,e-n)}),open:d,placement:"top",portal:!0,ref:p,children:(0,i.jsx)(I,{fontSize:1,mode:"bleed",onClick:d?g:m,padding:1,ref:f,selected:d,text:"…"})},"button"),...b.slice(e-n)]}return b},[g,m,s,d,b,c]);return(0,i.jsx)(R,{"data-ui":"Breadcrumbs",...u,ref:t,children:y.map((e,t)=>(0,i.jsxs)(a.Fragment,{children:[t>0&&(0,i.jsx)(r.az,{"aria-hidden":!0,as:"li",paddingX:c,children:o||(0,i.jsx)(r.EY,{muted:!0,children:"/"})}),(0,i.jsx)(r.az,{as:"li",children:e})]},t))})});O.displayName="ForwardRef(Breadcrumbs)";let _=(0,r.bz)("@sanity/ui/context/dialog",{version:0});function D(e,t,n){return!e||!t||(0,r.Q3)(e,n)||(0,r.Q3)(t,n)}let V=(0,o.I4)(r.Wd).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(r.l_,function({theme:e}){let{color:t}=(0,u.JW)(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.backdrop}},function(e){let{media:t}=(0,u.JW)(e.theme);return(0,r.U1)(t,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?(0,o.AH)`
10    @keyframes zoomIn {
11      from {
12        opacity: 0;
13        transform: scale(0.95);
14      }
15      to {
16        opacity: 1;
17        transform: scale(1);
18      }
19    }
20    @keyframes fadeIn {
21      from {
22        opacity: 0;
23      }
24      to {
25        opacity: 1;
26      }
27    }
28
29    animation: fadeIn 200ms ease-out;
30    // Animates the dialog card.
31    & > [data-ui='DialogCard'] {
32      animation: zoomIn 200ms ease-out;
33    }
34  `:(0,o.AH)``}),$=(0,o.I4)(r.mc).withConfig({displayName:"DialogContainer",componentId:"sc-4n4xb3-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,z=(0,o.I4)(r.Zp).withConfig({displayName:"DialogCardRoot",componentId:"sc-4n4xb3-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,L=(0,o.I4)(r.so).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,F=(0,o.I4)(r.az).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,N=(0,o.I4)(r.az).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,B=(0,o.I4)(r.az).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,H=(0,a.forwardRef)(function(e,t){let n,o,u,c,d,h,f,p,m,b,y,v,x,w=(0,l.c)(38),{__unstable_autoFocus:k,__unstable_hideCloseButton:S,children:E,contentRef:A,footer:C,header:P,id:T,onClickOutside:M,onClose:j,portal:R,radius:I,scheme:O,shadow:_,width:V}=e,H=(0,r.WP)(),U=R?H.elements?.[R]||null:H.element,W=(0,r.$w)().element,G=(0,r.KC)(I),Y=(0,r.KC)(_),q=(0,r.KC)(V),K=(0,a.useRef)(null),X=(0,a.useRef)(null),{isTopLayer:Z}=(0,r.Z4)(),J=`${T}_label`,Q=!!j&&!1===S,ee=!!P||Q;return w[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>K.current,w[0]=n):n=w[0],(0,a.useImperativeHandle)(t,n),w[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>X.current,w[1]=o):o=w[1],(0,a.useImperativeHandle)(A,o),w[2]!==k?(u=()=>{k&&K.current&&g(K.current)},c=[k,K],w[2]=k,w[3]=u,w[4]=c):(u=w[3],c=w[4]),(0,a.useEffect)(u,c),w[5]!==W||w[6]!==Z||w[7]!==j||w[8]!==U?(d=e=>{if(!Z||!j)return;let t=document.activeElement;t&&!D(W,U,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),j())},w[5]=W,w[6]=Z,w[7]=j,w[8]=U,w[9]=d):d=w[9],(0,r.Pm)(d),w[10]!==W||w[11]!==Z||w[12]!==M||w[13]!==U?(h=Z&&M&&(e=>{let t=e.target;t&&!D(W,U,t)||M()}),w[10]=W,w[11]=Z,w[12]=M,w[13]=U,w[14]=h):h=w[14],w[15]===Symbol.for("react.memo_cache_sentinel")?(f=()=>[K.current],w[15]=f):f=w[15],(0,r.PR)(h,f),w[16]!==P||w[17]!==J||w[18]!==j||w[19]!==Q||w[20]!==ee?(p=ee&&(0,i.jsx)(F,{children:(0,i.jsxs)(r.so,{align:"flex-start",padding:3,children:[(0,i.jsx)(r.az,{flex:1,padding:2,children:P&&(0,i.jsx)(r.EY,{id:J,size:1,weight:"semibold",children:P})}),Q&&(0,i.jsx)(r.az,{flex:"none",children:(0,i.jsx)(r.$n,{"aria-label":"Close dialog",disabled:!j,icon:s.USm,mode:"bleed",onClick:j,padding:2})})]})}),w[16]=P,w[17]=J,w[18]=j,w[19]=Q,w[20]=ee,w[21]=p):p=w[21],w[22]!==E?(m=(0,i.jsx)(N,{flex:1,ref:X,tabIndex:-1,
34children:E}),w[22]=E,w[23]=m):m=w[23],w[24]!==C?(b=C&&(0,i.jsx)(B,{children:C}),w[24]=C,w[25]=b):b=w[25],w[26]!==p||w[27]!==m||w[28]!==b?(y=(0,i.jsxs)(L,{direction:"column",children:[p,m,b]}),w[26]=p,w[27]=m,w[28]=b,w[29]=y):y=w[29],w[30]!==G||w[31]!==O||w[32]!==Y||w[33]!==y?(v=(0,i.jsx)(z,{radius:G,ref:K,scheme:O,shadow:Y,children:y}),w[30]=G,w[31]=O,w[32]=Y,w[33]=y,w[34]=v):v=w[34],w[35]!==v||w[36]!==q?(x=(0,i.jsx)($,{"data-ui":"DialogCard",width:q,children:v}),w[35]=v,w[36]=q,w[37]=x):x=w[37],x});H.displayName="ForwardRef(DialogCard)";let U=(0,a.forwardRef)(function(e,t){let n,s,o,u,c,d,h,f,p,b,y,v,x,w,k,S,E,A,C,P,T,M,j,R,I,O,$,z,L=(0,l.c)(60),F=(0,a.useContext)(_),{layer:N}=(0,r.M4)();L[0]!==e?({__unstable_autoFocus:k,__unstable_hideCloseButton:S,cardRadius:E,cardShadow:A,children:o,contentRef:u,footer:c,header:d,id:h,onActivate:f,onClickOutside:p,onClose:b,onFocus:y,padding:C,portal:v,position:n,scheme:w,width:P,zOffset:s,animate:T,...x}=e,L[0]=e,L[1]=n,L[2]=s,L[3]=o,L[4]=u,L[5]=c,L[6]=d,L[7]=h,L[8]=f,L[9]=p,L[10]=b,L[11]=y,L[12]=v,L[13]=x,L[14]=w,L[15]=k,L[16]=S,L[17]=E,L[18]=A,L[19]=C,L[20]=P,L[21]=T):(n=L[1],s=L[2],o=L[3],u=L[4],c=L[5],d=L[6],h=L[7],f=L[8],p=L[9],b=L[10],y=L[11],v=L[12],x=L[13],w=L[14],k=L[15],S=L[16],E=L[17],A=L[18],C=L[19],P=L[20],T=L[21]);let B=void 0===k||k,U=void 0!==S&&S,W=void 0===E?4:E,G=void 0===A?3:A,Y=void 0===C?3:C,q=void 0===P?0:P,K=void 0!==T&&T,X=n??(F.position||"fixed"),Z=s??(F.zOffset||N.dialog.zOffset),J=!(0,r.jt)()&&K,Q=(0,r.WP)(),ee=v?Q.elements?.[v]||null:Q.element,et=(0,r.$w)().element,en=(0,r.KC)(W),er=(0,r.KC)(Y),ei=(0,r.KC)(X),es=(0,r.KC)(q),ea=(0,r.KC)(Z),eo=(0,a.useRef)(null),el=(0,a.useRef)(null),eu=(0,a.useRef)(null),ec=(0,a.useRef)(null);L[22]!==y?(M=e=>{y?.(e);let t=e.target,n=eu.current;return n&&t===eo.current?void m(n):n&&t===el.current?void g(n):void((0,r.sb)(e.target)&&(ec.current=e.target))},L[22]=y,L[23]=M):M=L[23];let ed=M,eh=`${h}_label`,ef=(0,a.useRef)(void 0);L[24]!==et||L[25]!==ee?(j=()=>{ef.current&&clearTimeout(ef.current),ef.current=setTimeout(()=>{let e=document.activeElement;if(e&&!D(et,ee,e)){let e=ec.current;if(!e||!document.body.contains(e)){let e=eu.current;e&&g(e);return}
34e.focus()}},0)},L[24]=et,L[25]=ee,L[26]=j):j=L[26];let ep=j;return L[27]===Symbol.for("react.memo_cache_sentinel")?(R=(0,i.jsx)("div",{ref:eo,tabIndex:0}),L[27]=R):R=L[27],L[28]!==B||L[29]!==en||L[30]!==G||L[31]!==o||L[32]!==u||L[33]!==c||L[34]!==d||L[35]!==U||L[36]!==h||L[37]!==p||L[38]!==b||L[39]!==v||L[40]!==w||L[41]!==es?(I=(0,i.jsx)(H,{__unstable_autoFocus:B,__unstable_hideCloseButton:U,contentRef:u,footer:c,header:d,id:h,onClickOutside:p,onClose:b,portal:v,radius:en,ref:eu,scheme:w,shadow:G,width:es,children:o}),L[28]=B,L[29]=en,L[30]=G,L[31]=o,L[32]=u,L[33]=c,L[34]=d,L[35]=U,L[36]=h,L[37]=p,L[38]=b,L[39]=v,L[40]=w,L[41]=es,L[42]=I):I=L[42],L[43]===Symbol.for("react.memo_cache_sentinel")?(O=(0,i.jsx)("div",{ref:el,tabIndex:0}),L[43]=O):O=L[43],L[44]!==J||L[45]!==ed||L[46]!==ep||L[47]!==h||L[48]!==eh||L[49]!==f||L[50]!==er||L[51]!==ei||L[52]!==t||L[53]!==x||L[54]!==I||L[55]!==ea?($=(0,i.jsxs)(V,{...x,$animate:J,$padding:er,$position:ei,"aria-labelledby":eh,"aria-modal":!0,"data-ui":"Dialog",id:h,onActivate:f,onClick:ep,onFocus:ed,ref:t,role:"dialog",zOffset:ea,children:[R,I,O]}),L[44]=J,L[45]=ed,L[46]=ep,L[47]=h,L[48]=eh,L[49]=f,L[50]=er,L[51]=ei,L[52]=t,L[53]=x,L[54]=I,L[55]=ea,L[56]=$):$=L[56],L[57]!==v||L[58]!==$?(z=(0,i.jsx)(r.ZL,{__unstable_name:v,children:$}),L[57]=v,L[58]=$,L[59]=z):z=L[59],z});function W(e){let t,n,r,s=(0,l.c)(6),{children:a,position:o,zOffset:u}=e;return s[0]!==o||s[1]!==u?(n={version:0,position:o,zOffset:u},s[0]=o,s[1]=u,s[2]=n):n=s[2],t=n,s[3]!==a||s[4]!==t?(r=(0,i.jsx)(_.Provider,{value:t,children:a}),s[3]=a,s[4]=t,s[5]=r):r=s[5],r}U.displayName="ForwardRef(Dialog)",W.displayName="DialogProvider";let G=(0,a.forwardRef)(function(e,t){let n,s,o,u,c,d,h,f,p,g,m,b,y,v,x,w,k,S,E,A,C,P,T,M,j,R=(0,l.c)(62),{__unstable_disableRestoreFocusOnClose:I,boundaryElement:O,button:_,id:D,menu:V,onClose:$,onOpen:z,placement:L,popoverScheme:F,portal:N,popover:B,popoverRadius:H,preventOverflow:U}=e,W=void 0!==I&&I,G=void 0===N||N,[q,K]=(0,a.useState)(!1),[X,Z]=(0,a.useState)(null),[J,Q]=(0,a.useState)(null);R[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],R[0]=n):n=R[0];let[ee,et]=(0,a.useState)(n),en=(0,a.useRef)(q);R[1]!==z||R[2]!==q?(s=()=>{z&&q&&!en.current&&z()},o=[z,q],R[1]=z,R[2]=q,R[3]=s,R[4]=o):(s=R[3],o=R[4]),(0,a.useEffect)(s,o),R[5]!==$||R[6]!==q?(u=()=>{$&&!q&&en.current&&$()},c=[$,q],R[5]=$,R[6]=q,R[7]=u,R[8]=c):(u=R[7],c=R[8]),(0,a.useEffect)(u,c),R[9]!==q?(d=()=>{en.current=q},h=[q],R[9]=q,R[10]=d,R[11]=h):(d=R[10],h=R[11]),(0,a.useEffect)(d,h),R[12]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{K(Y),Z(null)},R[12]=f):f=R[12];let er=f;R[13]!==q?(p=e=>{q&&e.preventDefault()},R[13]=q,R[14]=p):p=R[14];let ei=p;R[15]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),K(!0),Z("first");return}if("ArrowUp"===e.key){e.preventDefault(),K(!0),Z("last");return}},R[15]=g):g=R[15];let es=g;R[16]!==J||R[17]!==ee?(m=e=>{let t=e.target;if(t instanceof Node&&!(J&&(t===J||J.contains(t)))){for(let e of ee)if(t===e||e.contains(t))return;K(!1)}},R[16]=J,R[17]=ee,R[18]=m):m=R[18];let ea=m;R[19]!==J||R[20]!==W?(b=()=>{K(!1),!W&&J&&J.focus()},R[19]=J,R[20]=W,R[21]=b):b=R[21];let eo=b;R[22]!==ee?(y=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of ee)if(e===t||e.contains(t))return;K(!1)}},R[22]=ee,R[23]=y):y=R[23];let el=y;R[24]!==J||R[25]!==W?(v=()=>{K(!1),!W&&J&&J.focus()},R[24]=J,R[25]=W,R[26]=v):v=R[26];let eu=v;R[27]===Symbol.for("react.memo_cache_sentinel")?(x=e=>(et(t=>t.concat([e])),()=>et(t=>t.filter(t=>t!==e))),R[27]=x):x=R[27];let ec=x;R[28]!==J||R[29]!==el||R[30]!==eu||R[31]!==ea||R[32]!==eo||R[33]!==D||R[34]!==V||R[35]!==X?(w=V&&(0,a.cloneElement)(V,{"aria-labelledby":D,onBlurCapture:el,onClickOutside:ea,onEscape:eo,onItemClick:eu,originElement:J,registerElement:ec,shouldFocus:X}),R[28]=J,R[29]=el,R[30]=eu,R[31]=ea,R[32]=eo,R[33]=D,R[34]=V,R[35]=X,R[36]=w):w=R[36];let ed=w;return R[37]!==_||R[38]!==ei||R[39]!==D||R[40]!==q?(S=_&&(0,a.cloneElement)(_,{"data-ui":"MenuButton",id:D,onClick:er,onKeyDown:es,onMouseDown:ei,"aria-haspopup":!0,"aria-expanded":q,ref:Q,selected:_.props.selected??q}
34),R[37]=_,R[38]=ei,R[39]=D,R[40]=q,R[41]=S):S=R[41],k=S,R[42]!==J?(E=()=>J,A=[J],R[42]=J,R[43]=E,R[44]=A):(E=R[43],A=R[44]),(0,a.useImperativeHandle)(t,E,A),R[45]!==B?(P=B||{},R[45]=B,R[46]=P):P=R[46],R[47]!==O||R[48]!==L||R[49]!==H||R[50]!==F||R[51]!==G||R[52]!==U||R[53]!==P?(T={boundaryElement:O,overflow:"auto",placement:L,portal:G,preventOverflow:U,radius:H,scheme:F,...P},R[47]=O,R[48]=L,R[49]=H,R[50]=F,R[51]=G,R[52]=U,R[53]=P,R[54]=T):T=R[54],C=T,R[55]!==k?(M=k||(0,i.jsx)(i.Fragment,{}),R[55]=k,R[56]=M):M=R[56],R[57]!==ed||R[58]!==q||R[59]!==C||R[60]!==M?(j=(0,i.jsx)(r.AM,{"data-ui":"MenuButton__popover",...C,content:ed,open:q,children:M}),R[57]=ed,R[58]=q,R[59]=C,R[60]=M,R[61]=j):j=R[61],j});function Y(e){return!e}G.displayName="ForwardRef(MenuButton)";let q=(0,o.i7)`
35  0% {
36    background-position: 100%;
37  }
38  100% {
39    background-position: -100%;
40  }
41`,K=(0,o.AH)`
42  background-image: linear-gradient(
43    to right,
44    var(--card-skeleton-color-from),
45    var(--card-skeleton-color-to),
46    var(--card-skeleton-color-from),
47    var(--card-skeleton-color-from),
48    var(--card-skeleton-color-from)
49  );
50  background-position: 100%;
51  background-size: 200% 100%;
52  background-attachment: fixed;
53  animation-name: ${q};
54  animation-timing-function: ease-in-out;
55  animation-iteration-count: infinite;
56  animation-duration: 2000ms;
57`,X=(0,o.AH)`
58  opacity: ${({$visible:e})=>+!!e};
59  transition: opacity 200ms ease-in;
60
61  @media screen and (prefers-reduced-motion: no-preference) {
62    ${({$animated:e})=>e?K:(0,o.AH)`
63            background-color: var(--card-skeleton-color-from);
64          `}
65  }
66
67  @media screen and (prefers-reduced-motion: reduce) {
68    background-color: var(--card-skeleton-color-from);
69  }
70`,Z=(0,o.I4)(r.az).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(r.gK,X),J=(0,a.forwardRef)(function(e,t){let n,s,o,u,c,d,h,f=(0,l.c)(14);f[0]!==e?({animated:u,delay:n,radius:s,...o}=e,f[0]=e,f[1]=n,f[2]=s,f[3]=o,f[4]=u):(n=f[1],s=f[2],o=f[3],u=f[4]);let p=void 0!==u&&u,[g,m]=(0,a.useState)(!n);f[5]!==n?(c=()=>{if(!n)return m(!0);let e=setTimeout(()=>{m(!0)},n);return()=>{clearTimeout(e)}},d=[n],f[5]=n,f[6]=c,f[7]=d):(c=f[6],d=f[7]),(0,a.useEffect)(c,d);let b=(0,r.KC)(s);return f[8]!==p||f[9]!==t||f[10]!==o||f[11]!==b||f[12]!==g?(h=(0,i.jsx)(Z,{...o,$animated:p,$radius:b,$visible:g,ref:t}),f[8]=p,f[9]=t,f[10]=o,f[11]=b,f[12]=g,f[13]=h):h=f[13],h});J.displayName="ForwardRef(Skeleton)";let Q=(0,o.I4)(J).withConfig({displayName:"StyledSkeleton",componentId:"sc-2p7a1v-0"})(e=>{let{$size:t,$style:n}=e,{font:i,media:s}=(0,u.JW)(e.theme),a=i[n];return(0,r.U1)(s,t,e=>{let t=a.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})}),ee=(0,a.forwardRef)(function(e,t){let n,s,a,o=(0,l.c)(7);o[0]!==e?({size:s,...n}=e,o[0]=e,o[1]=n,o[2]=s):(n=o[1],s=o[2]);let u=(0,r.KC)(void 0===s?2:s);return o[3]!==u||o[4]!==t||o[5]!==n?(a=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"text"}),o[3]=u,o[4]=t,o[5]=n,o[6]=a):a=o[6],a});ee.displayName="ForwardRef(TextSkeleton)",(0,a.forwardRef)(function(e,t){let n,s,a,o=(0,l.c)(7);o[0]!==e?({size:s,...n}=e,o[0]=e,o[1]=n,o[2]=s):(n=o[1],s=o[2]);let u=(0,r.KC)(void 0===s?2:s);return o[3]!==u||o[4]!==t||o[5]!==n?(a=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"label"}),o[3]=u,o[4]=t,o[5]=n,o[6]=a):a=o[6],a}).displayName="ForwardRef(LabelSkeleton)",(0,a.forwardRef)(function(e,t){let n,s,a,o=(0,l.c)(7);o[0]!==e?({size:s,...n}=e,o[0]=e,o[1]=n,o[2]=s):(n=o[1],s=o[2]);let u=(0,r.KC)(void 0===s?2:s);return o[3]!==u||o[4]!==t||o[5]!==n?(a=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"heading"}),o[3]=u,o[4]=t,o[5]=n,o[6]=a):a=o[6],a}).displayName="ForwardRef(HeadingSkeleton)",(0,a.forwardRef)(function(e,t){let n,s,a,o=(0,l.c)(7);o[0]!==e?({size:s,...n}=e,o[0]=e,o[1]=n,o[2]=s):(n=o[1],s=o[2]);let u=(0,r.KC)(void 0===s?2:s);return o[3]!==u||o[4]!==t||o[5]!==n?(a=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"code"}),o[3]=u,o[4]=t,o[5]=n,o[6]=a):a=o[6],a}).displayName="ForwardRef(CodeSkeleton)";let et=(0,a.forwardRef)(function(e,t){let n,s,a,o=(0,l.c)(9);o[0]!==e?({flex:n,...s}=e,o[0]=e,o[1]=n,o[2]=s):(n=o[1],s=o[2]);let u=void 0===e.tabIndex?0:e.tabIndex;return o[3]!==n||o[4]!==e.children||o[5]!==t||o[6]!==s||o[7]!==u?(a=(0,i.jsx)(r.az,{"data-ui":"TabPanel",...s,flex:n,ref:t,role:"tabpanel",tabIndex:u,children:e.children}),o[3]=n,o[4]=e.children,o[5]=t,o[6]=s,o[7]=u,o[8]=a):a=o[8],a});et.displayName="ForwardRef(TabPanel)";
70let en={error:"critical",warning:"caution",success:"positive",info:"neutral"},er={error:"critical",warning:"caution",success:"positive",info:"neutral"},ei=(0,o.I4)(r.so).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`,es=(0,o.I4)(r.Zp).withConfig({displayName:"StyledToast",componentId:"sc-1rr7rxo-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,ea=o.I4.div.withConfig({displayName:"LoadingBar",componentId:"sc-1rr7rxo-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`,eo=(0,o.I4)(r.Zp).withConfig({displayName:"LoadingBarMask",componentId:"sc-1rr7rxo-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`,el=(0,o.I4)(r.Zp).withConfig({displayName:"LoadingBarProgress",componentId:"sc-1rr7rxo-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:t}=(0,u.JW)(e.theme);return t.button.default[e.tone].enabled.bg}};`,eu={error:"alert",warning:"alert",success:"alert",info:"alert"};function ec(e){let t,n,a,o,u,c,d,h,f,p,g,m,b,y,v,x,w,k,S,E,A=(0,l.c)(50);A[0]!==e?({closable:t,description:n,duration:a,onClose:o,radius:d,title:h,status:c,updatedAt:f,...u}=e,A[0]=e,A[1]=t,A[2]=n,A[3]=a,A[4]=o,A[5]=u,A[6]=c,A[7]=d,A[8]=h,A[9]=f):(t=A[1],n=A[2],a=A[3],o=A[4],u=A[5],c=A[6],d=A[7],h=A[8],f=A[9]);let C=void 0===d?3:d,P=c?en[c]:"default",T=c?er[c]:"default",M=c?eu[c]:"status",j=.26*!(0,r.jt)();A[10]!==j?(p=j?{type:"spring",visualDuration:j,bounce:.25}:{duration:0},A[10]=j,A[11]=p):p=A[11];let R=p,I=a&&isFinite(a)&&a<20736e5;A[12]===Symbol.for("react.memo_cache_sentinel")?(g=["hidden","initial"],A[12]=g):g=A[12];let O=g;A[13]===Symbol.for("react.memo_cache_sentinel")?(m=["visible","slideIn"],A[13]=m):m=A[13];let _=m;A[14]===Symbol.for("react.memo_cache_sentinel")?(b=["hidden","slideOut"],A[14]=b):b=A[14];let D=b,V=I?"":void 0;return A[15]!==h?(y=h&&(0,i.jsx)(r.EY,{size:1,weight:"medium",children:h}),A[15]=h,A[16]=y):y=A[16],A[17]!==n||A[18]!==R?(v=n&&(0,i.jsx)(eg,{muted:!0,size:1,variants:eh,transition:R,children:n}),A[17]=n,A[18]=R,A[19]=v):v=A[19],A[20]!==y||A[21]!==v?(x=(0,i.jsx)(ei,{flex:1,padding:3,children:(0,i.jsxs)(r.BJ,{space:3,children:[y,v]})}),A[20]=y,A[21]=v,A[22]=x):x=A[22],A[23]!==T||A[24]!==t||A[25]!==o?(w=t&&(0,i.jsx)(r.az,{padding:1,children:(0,i.jsx)(r.$n,{as:"button",icon:s.USm,mode:"bleed",padding:2,tone:T,onClick:o,style:{verticalAlign:"top"}})}),A[23]=T,A[24]=t,A[25]=o,A[26]=w):w=A[26],A[27]!==x||A[28]!==w||A[29]!==R?(k=(0,i.jsxs)(ep,{align:"flex-start",variants:eh,transition:R,children:[x,w]}),A[27]=x,A[28]=w,A[29]=R,A[30]=k):k=A[30],A[31]!==P||A[32]!==a||A[33]!==I||A[34]!==o||A[35]!==C||A[36]!==R||A[37]!==f||A[38]!==j?(S=I&&(0,i.jsxs)(em,{variants:eh,transition:R,children:[(0,i.jsx)(eo,{tone:P,radius:C}),(0,i.jsx)(eb,{tone:P,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:j,duration:a/1e3,ease:"linear"},onAnimationComplete:o},`progress-${f}`)]}),A[31]=P,A[32]=a,A[33]=I,A[34]=o,A[35]=C,A[36]=R,A[37]=f,A[38]=j,A[39]=S):S=A[39],A[40]!==P||A[41]!==C||A[42]!==u||A[43]!==M||A[44]!==k||A[45]!==S||A[46]!==V||A[47]!==R||A[48]!==j?(E=(0,i.jsxs)(ef,{"data-ui":"Toast",role:M,...u,"data-has-duration":V,custom:j,radius:C,shadow:2,tone:P,forwardedAs:"li",layout:"position",variants:ed,initial:O,animate:_,exit:D,transition:R,children:[k,S]}),A[40]=P,A[41]=C,A[42]=u,A[43]=M,A[44]=k,A[45]=S,A[46]=V,A[47]=R,A[48]=j,A[49]=E):E=A[49],E}ec.displayName="Toast";let ed={initial:{y:32,scale:.5,zIndex:1},hidden:{opacity:0},visible:e=>e?{opacity:1,transition:{when:"beforeChildren",staggerChildren:e/3,duration:e/3}}:{opacity:1},slideIn:{y:0,scale:1},slideOut:{zIndex:0,scale:.75}},eh={initial:{willChange:"transform"},hidden:{opacity:0},visible:{opacity:1}},ef=c.P.create(es),ep=c.P.create(r.so),eg=c.P.create(r.EY),em=c.P.create(ea),eb=c.P.create(el);function ey(){return!1}function ev(){return!0}let ex=()=>()=>{},ew=(0,r.bz)("@sanity/ui/context/toast",null);function ek(e){let t,n,s=(0,l.c)(9),{children:a,padding:o,paddingX:u,paddingY:c,gap:d}=e,h=void 0===o?4:o,f=void 0===d?3:d,{zIndex:p}=(0,r.Z4)();return s[0]!==p?(t={zIndex:p},s[0]=p,s[1]=t):t=s[1],s[2]!==a||s[3]!==f||s[4]!==h||s[5]!==u||s[6]!==c||s[7]!==t?(n=(0,i.jsx)(eS,{forwardedAs:"ul","data-ui":"ToastProvider",padding:h,paddingX:u,paddingY:c,gap:f,columns:1,style:t,children:a}),s[2]=a,s[3]=f,s[4]=h,s[5]=u,s[6]=c,s[7]=t,s[8]=n):n=s[8],n}ek.displayName="ToastLayer";let eS=(0,o.I4)(r.xA).withConfig({displayName:"StyledLayer",componentId:"sc-1tbwn58-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`,eE=0;function eA(e){let t,n,s,o,u,c=(0,l.c)(13),{children:h,padding:f,paddingX:p,paddingY:g,gap:m,zOffset:b}=e,y=void 0===b?1:b;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],c[0]=t):t=c[0];let[v,x]=(0,a.useState)(t),w=(0,a.useSyncExternalStore)(ex,ev,ey);return c[1]===Symbol.for("react.memo_cache_sentinel")?(s={version:0,push:e=>{let t=e.id||String(eE++),n=e.duration||5e3;return(0,a.startTransition)(()=>{x(r=>.01===n?r.filter(e=>e.id!==t):[...r.filter(e=>e.id!==t),{dismiss:()=>(0,a.startTransition)(()=>x(e=>e.filter(e=>e.id!==t))),id:t,updatedAt:Date.now(),params:{...e,duration:n}}])}),t}},c[1]=s):s=c[1],n=s,c[2]!==m||c[3]!==w||c[4]!==f||c[5]!==p||c[6]!==g||c[7]!==v||c[8]!==y?(o=w&&(0,i.jsx)(r.XS,{zOffset:y,children:(0,i.jsx)(ek,{padding:f,paddingX:p,paddingY:g,gap:m,children:(0,i.jsx)(d.N,{initial:!1,mode:"popLayout",children:v.map(eC)})})}),c[2]=m,c[3]=w,c[4]=f,c[5]=p,c[6]=g,c[7]=v,c[8]=y,c[9]=o):o=c[9],c[10]!==h||c[11]!==o?(u=(0,i.jsxs)(ew.Provider,{value:n,children:[h,o]}
70),c[10]=h,c[11]=o,c[12]=u):u=c[12],u}function eC(e){let{dismiss:t,id:n,params:r,updatedAt:s}=e;return(0,i.jsx)(ec,{closable:r.closable,description:r.description,onClose:t,status:r.status,title:r.title,duration:r.duration,updatedAt:s},n)}function eP(){let e=(0,a.useContext)(ew);if(!e)throw Error("useToast(): missing context value");if(!(0,r.u4)(e)||0!==e.version)throw Error("useToast(): the context value is not compatible");return e}function eT(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}eA.displayName="ToastProvider";let eM=(0,r.bz)("@sanity/ui/context/tree",null);function ej(){let e=(0,a.useContext)(eM);if(!e)throw Error("Tree: missing context value");return e}(0,a.memo)((0,a.forwardRef)(function(e,t){let n,s,o,u,c,d,h,f,p,g,m,b,y,v,x,w,k,S,E,A,C,P,T,M=(0,l.c)(37);M[0]!==e?({children:n,space:u,onFocus:s,...o}=e,M[0]=e,M[1]=n,M[2]=s,M[3]=o,M[4]=u):(n=M[1],s=M[2],o=M[3],u=M[4]);let j=void 0===u?1:u,R=(0,a.useRef)(null),[I,O]=(0,a.useState)(null),_=(0,a.useRef)(I);M[5]===Symbol.for("react.memo_cache_sentinel")?(d=[],M[5]=d):d=M[5],c=d,M[6]===Symbol.for("react.memo_cache_sentinel")?(h=[],M[6]=h):h=M[
706];let[D,V]=(0,a.useState)(h);M[7]===Symbol.for("react.memo_cache_sentinel")?(f={},M[7]=f):f=M[7];let[$,z]=(0,a.useState)(f),L=(0,a.useRef)($);M[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>R.current,M[8]=p):p=M[8],(0,a.useImperativeHandle)(t,p),M[9]!==I?(g=()=>{_.current=I},m=[I],M[9]=I,M[10]=g,M[11]=m):(g=M[10],m=M[11]),(0,a.useEffect)(g,m),M[12]!==$?(b=()=>{L.current=$},y=[$],M[12]=$,M[13]=b,M[14]=y):(b=M[13],y=M[14]),(0,a.useEffect)(b,y),M[15]===Symbol.for("react.memo_cache_sentinel")?(v=(e,t,n,r)=>(z(r=>({...r,[t]:{element:e,expanded:n}})),r&&O(e),()=>{z(e=>{let n={...e};return delete n[t],n})}),M[15]=v):v=M[15];let F=v;M[16]===Symbol.for("react.memo_cache_sentinel")?(x=(e,t)=>{z(n=>{let r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},M[16]=x):x=M[16];let N=x,B=I||D[0]||null;M[17]!==j||M[18]!==$||M[19]!==B?(k={version:0,focusedElement:B,level:0,path:c,registerItem:F,setExpanded:N,setFocusedElement:O,space:j,state:$},M[17]=j,M[18]=$,M[19]=B,M[20]=k):k=M[20],w=k,M[21]!==D?(S=e=>{if(_.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(r),s=t.length;for(let t=1;t<s;t+=1){if(!i[t])continue;let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let s=[],a=!0;for(let t=0;t<r.length;t+=1){s.push(r[t]);let n=s.join("/");if(!e[n]?.expanded){a=!1;break}}if(a)return i[t]}return null}(L.current,D,_.current);t&&(eT(t),O(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(0,r),s=i.length;for(let t=s-1;t>=0;t-=1){let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let s=[],a=!0;for(let t=0;t<r.length;t+=1){s.push(r[t]);let n=s.join("/");if(!e[n]?.expanded){a=!1;break}}if(a)return i[t]}return null}(L.current,D,_.current);t&&(eT(t),O(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=_.current.getAttribute("data-tree-key");if(!t)return;let n=L.current[t];if(!n)return;if(n.expanded)z(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),r=n&&L.current[n];r&&(r.element.focus(),O(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=_.current.getAttribute("data-tree-key");if(!t)return;L.current[t]?.expanded||z(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},M[21]=D,M[22]=S):S=M[22];let H=S;M[23]!==s?(E=e=>{O(e.target),s?.(e)},M[23]=s,M[24]=E):E=M[24];let U=E;return M[25]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{R.current&&V(Array.from(R.current.querySelectorAll('[data-ui="TreeItem"]')))},M[25]=A):A=M[25],M[26]!==n?(C=[n],M[26]=n,M[27]=C):C=M[27],(0,a.useEffect)(A,C),M[28]!==n||M[29]!==U||M[30]!==H||M[31]!==o||M[32]!==j?(P=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"Tree",...o,onFocus:U,onKeyDown:H,ref:R,role:"tree",space:j,children:n}),M[28]=n,M[29]=U,M[30]=H,M[31]=o,M[32]=j,M[33]=P):P=M[33],M[34]!==w||M[35]!==P?(T=(0,i.jsx)(eM.Provider,{value:w,children:P}),M[34]=w,M[35]=P,M[36]=T):T=M[36],T})).displayName="Memo(ForwardRef(Tree))";let eR=(0,a.memo)(function(e){let t,n,s,a,o=(0,l.c)(9);o[0]!==e?({children:t,expanded:s,...n}=e,o[0]=e,o[1]=t,o[2]=n,o[3]=s):(t=o[1],n=o[2],s=o[3]);let u=void 0!==s&&s,c=ej(),d=!u;return o[4]!==t||o[5]!==n||o[6]!==d||o[7]!==c.space?(a=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"TreeGroup",...n,hidden:d,marginTop:c.space,role:"group",space:c.space,children:t}),o[4]=t,o[5]=n,o[6]=d,o[7]=c.space,o[8]=a):a=o[8],a}),eI=(0,a.memo)(o.I4.li.withConfig({displayName:"StyledTreeItem",componentId:"sc-iiskig-0"})(function(){return(0,o.AH)`
71    &[role='none'] > [role='treeitem'] {
72      outline: none;
73      cursor: default;
74      border-radius: 3px;
75
76      background-color: var(--card-bg-color);
77      color: var(--treeitem-fg-color);
78
79      &:focus {
80        position: relative;
81      }
82    }
83
84    &[role='treeitem'] {
85      outline: none;
86
87      & > div {
88        cursor: default;
89        border-radius: 3px;
90
91        background-color: var(--card-bg-color);
92        color: var(--treeitem-fg-color);
93      }
94
95      &:focus > div {
96        position: relative;
97      }
98    }
99  `}
99,function(e){let{color:t}=(0,u.JW)(e.theme),n=t.selectable.default;return(0,o.AH)`
100    &[role='none'] {
101      & > [role='treeitem'] {
102        ${(0,r.g5)(t,n.enabled)}
103      }
104
105      &[data-selected] > [role='treeitem'] {
106        ${(0,r.g5)(t,n.pressed)}
107      }
108
109      @media (hover: hover) {
110        &:not([data-selected]) > [role='treeitem']:not(:focus):hover {
111          ${(0,r.g5)(t,n.hovered)}
112        }
113
114        & > [role='treeitem']:focus {
115          ${(0,r.g5)(t,n.selected)}
116        }
117      }
118    }
119
120    &[role='treeitem'] {
121      & > [data-ui='TreeItem__box'] {
122        ${(0,r.g5)(t,n.enabled)}
123      }
124
125      &[data-selected] > [data-ui='TreeItem__box'] {
126        ${(0,r.g5)(t,n.pressed)}
127      }
128
129      @media (hover: hover) {
130        &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover {
131          ${(0,r.g5)(t,n.hovered)}
132        }
133
134        &:focus > [data-ui='TreeItem__box'] {
135          ${(0,r.g5)(t,n.selected)}
136        }
137      }
138    }
139  `})),eO=(0,o.I4)(r.az).attrs({forwardedAs:"a"}).withConfig({displayName:"TreeItemBox",componentId:"sc-iiskig-1"})(function(e){let{$level:t}=e,{space:n}=(0,u.JW)(e.theme);return(0,o.AH)`
140    padding-left: ${(0,r.D0)(n[2]*t)};
141
142    &[data-as='a'] {
143      text-decoration: none;
144    }
145  `}),e_=(0,o.I4)(r.EY).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;(0,a.memo)(function(e){let{children:t,expanded:n=!1,fontSize:o=1,href:l,icon:u,id:c,linkAs:d,muted:h,onClick:f,padding:p=2,selected:g=!1,space:m=2,text:b,weight:y,...v}=e,x=(0,a.useRef)(null),w=(0,a.useRef)(null),k=ej(),{path:S,registerItem:E,setExpanded:A,setFocusedElement:C}=k,P=(0,a.useId)(),T=c||P,M=(0,a.useMemo)(()=>S.concat([T||""]),[T,S]),j=M.join("/"),R=k.state[j],I=k.focusedElement===x.current,O=R?.expanded===void 0?n:R?.expanded||!1,_=k.focusedElement&&k.focusedElement===x.current?0:-1,D=(0,a.useMemo)(()=>({...k,level:k.level+1,path:M}),[M,k]),V=(0,a.useCallback)(e=>{f&&f(e);let t=e.target;t instanceof HTMLElement&&("TreeItem"===t.getAttribute("data-ui")||t.closest('[data-ui="TreeItem__box"]'))&&(e.stopPropagation(),A(j,!O),C(x.current))},[O,j,f,A,C]),$=(0,a.useCallback)(e=>{I&&"Enter"===e.key&&(w.current||x.current)?.click()},[I]);(0,a.useEffect)(()=>{if(x.current)return E(x.current,M.join("/"),O,g)},[O,M,E,g]);let z=(0,i.jsxs)(r.so,{padding:p,children:[(0,i.jsxs)(r.az,{marginRight:m,style:{visibility:u||t?"visible":"hidden",pointerEvents:"none"},children:[u&&(0,i.jsx)(r.EY,{muted:h,size:o,weight:y,children:(0,i.jsx)(u,{})}),!u&&(0,i.jsx)(e_,{muted:h,size:o,weight:y,children:(0,i.jsx)(s.nVd,{style:{transform:O?"rotate(90deg)":void 0}})})]}),(0,i.jsx)(r.az,{flex:1,children:(0,i.jsx)(r.EY,{muted:h,size:o,textOverflow:"ellipsis",weight:y,children:b})})]});return l?(0,i.jsxs)(eI,{"data-selected":g?"":void 0,"data-tree-id":T,"data-tree-key":j,"data-ui":"TreeItem",...v,onClick:V,ref:x,role:"none",children:[(0,i.jsx)(eO,{$level:k.level,"aria-expanded":O,as:d,"data-ui":"TreeItem__box",href:l,ref:w,role:"treeitem",tabIndex:_,children:z}),(0,i.jsx)(eM.Provider,{value:D,children:t&&(0,i.jsx)(eR,{hidden:!O,children:t})})]}):(0,i.jsxs)(eI,{"data-selected":g?"":void 0,"data-ui":"TreeItem","data-tree-id":T,"data-tree-key":j,...v,"aria-expanded":O,onClick:V,onKeyDown:$,ref:x,role:"treeitem",tabIndex:_,children:[(0,i.jsx)(eO,{$level:k.level,as:"div","data-ui":"TreeItem__box",children:z}),(0,i.jsx)(eM.Provider,{value:D,children:t&&(0,i.jsx)(eR,{expanded:O,children:t})})]})}).displayName="Memo(TreeItem)"},24376:(e,t,n)=>{e.exports=n(82500).Symbol},27351:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(6983);function i(e){return(0,r.G)(e)&&"offsetHeight"in e}},28460:(e,t,n)=>{"use strict";n.d(t,{tb:()=>W});var r,i,s=[],a="ResizeObserver loop completed with undelivered notifications.",o=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:a}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=a),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var l=function(e){return Object.freeze(e)},u=function(e,t){this.inlineSize=e,this.blockSize=t,l(this)},c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,l(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),d=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(d(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,s=e.offsetHeight;return!(i||s||e.getClientRects().length)},f=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},p=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;
145case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g="undefined"!=typeof window?window:{},m=new WeakMap,b=/auto|scroll/,y=/^tb|vertical/,v=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),x=function(e){return parseFloat(e||"0")},w=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new u((n?t:e)||0,(n?e:t)||0)},k=l({devicePixelContentBoxSize:w(),borderBoxSize:w(),contentBoxSize:w(),contentRect:new c(0,0,0,0)}),S=function(e,t){if(void 0===t&&(t=!1),m.has(e)&&!t)return m.get(e);if(h(e))return m.set(e,k),k;var n=getComputedStyle(e),r=d(e)&&e.ownerSVGElement&&e.getBBox(),i=!v&&"border-box"===n.boxSizing,s=y.test(n.writingMode||""),a=!r&&b.test(n.overflowY||""),o=!r&&b.test(n.overflowX||""),u=r?0:x(n.paddingTop),f=r?0:x(n.paddingRight),p=r?0:x(n.paddingBottom),g=r?0:x(n.paddingLeft),S=r?0:x(n.borderTopWidth),E=r?0:x(n.borderRightWidth),A=r?0:x(n.borderBottomWidth),C=r?0:x(n.borderLeftWidth),P=g+f,T=u+p,M=C+E,j=S+A,R=o?e.offsetHeight-j-e.clientHeight:0,I=a?e.offsetWidth-M-e.clientWidth:0,O=r?r.width:x(n.width)-(i?P+M:0)-I,_=r?r.height:x(n.height)-(i?T+j:0)-R,D=O+P+I+M,V=_+T+R+j,$=l({devicePixelContentBoxSize:w(Math.round(O*devicePixelRatio),Math.round(_*devicePixelRatio),s),borderBoxSize:w(D,V,s),contentBoxSize:w(O,_,s),contentRect:new c(g,u,O,_)});return m.set(e,$),$},E=function(e,t,n){var i=S(e,n),s=i.borderBoxSize,a=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return o;case r.BORDER_BOX:return s;default:return a}},A=function(e){var t=S(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=l([t.borderBoxSize]),this.contentBoxSize=l([t.contentBoxSize]),this.devicePixelContentBoxSize=l([t.devicePixelContentBoxSize])},C=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},P=function(){var e=1/0,t=[];s.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new A(t.target),i=C(t.target);r.push(n),t.lastReportedSize=E(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},T=function(e){s.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(C(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},M=function(){var e=0;for(T(0);s.some(function(e){return e.activeTargets.length>0});)T(e=P());return s.some(function(e){return e.skippedTargets.length>0})&&o(),e>0},j=[],R=function(e){if(!i){var t=0,n=document.createTextNode("");new MutationObserver(function(){return j.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}j.push(e),i()},I=function(e){R(function(){requestAnimationFrame(e)})},O=0,_={attributes:!0,characterData:!0,childList:!0,subtree:!0},D=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],V=function(e){return void 0===e&&(e=0),Date.now()+e},$=!1,z=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!$){$=!0;var n=V(e);I(function(){var r=!1;try{r=M()}finally{if($=!1,e=n-V(),!O)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,_)};document.body?t():g.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),D.forEach(function(t){return g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),D.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),L=function(e){!O&&e>0&&z.start(),(O+=e)||z.stop()},F=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=E(this.target,this.observedBox,!0);return d(e=this.target)||p(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),N=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},B=new WeakMap,H=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},U=function(){function e(){}return e.connect=function(e,t){var n=new N(e,t);B.set(e,n)},e.observe=function(e,t,n){var r=B.get(e),i=0===r.observationTargets.length;0>H(r.observationTargets,t)&&(i&&s.push(r),r.observationTargets.push(new F(t,n&&n.box)),L(1),z.schedule())},e.unobserve=function(e,t){var n=B.get(e),r=H(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&s.splice(s.indexOf(n),1),n.observationTargets.splice(r,1),L(-1))},e.disconnect=function(e){var t=this,n=B.get(e);
145n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),W=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");U.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");U.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");U.unobserve(this,e)},e.prototype.disconnect=function(){U.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},29564:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r,i=n(39249),s=n(82959),a=1,o={};function l(e){return e in o&&(delete o[e],!0)}var u={setImmediate:function(e){var t=a++;return o[t]=!0,r||(r=Promise.resolve()),r.then(function(){return l(t)&&e()}),t},clearImmediate:function(e){l(e)}},c=u.setImmediate,d=u.clearImmediate,h={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=h.delegate;return((null==n?void 0:n.setImmediate)||c).apply(void 0,(0,i.fX)([],(0,i.zs)(e)))},clearImmediate:function(e){var t=h.delegate;return((null==t?void 0:t.clearImmediate)||d)(e)},delegate:void 0},f=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return(0,i.C6)(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=h.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i,s=t.actions;null!=n&&(null==(i=s[s.length-1])?void 0:i.id)!==n&&(h.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(s.R),p=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.flush=function(e){this._active=!0;var t,n=this._scheduled;this._scheduled=void 0;var r=this.actions;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,t){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw t}},t}(n(35227).q))(f)},30294:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case s:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=s,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=o,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===s},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===o||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},32082:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>s});var r=n(12115),i=n(80845);function s(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:o}=t,l=(0,r.useId)();(0,r.useEffect)(()=>
145{if(e)return o(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},34642:(e,t,n)=>{var r=n(62795),i=n(14229),s=n(89364),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(s(i(t).replace(a,"")),e,"")}}},37929:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}},39608:e=>{e.exports=Array.isArray},43377:(e,t,n)=>{"use strict";var r,i,s=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{$dispatcherGuard:()=>E,$makeReadOnly:()=>C,$reset:()=>A,$structuralCheck:()=>R,c:()=>v,clearRenderCounterRegistry:()=>T,renderCounterRegistry:()=>P,useRenderCounter:()=>M}),e.exports=d(a({},"__esModule",{value:!0}),h);var f=((e,t,n)=>(n=null!=e?s(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)))(n(12115)),{useRef:p,useEffect:g,isValidElement:m}=f,b=null!=(r=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(i=f.__COMPILER_RUNTIME)?void 0:i.c)?f.__COMPILER_RUNTIME.c:function(e){return f.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=y;return t[y]=!0,t},[])},x={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{x[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var w=null;function k(e){return b.ReactCurrentDispatcher.current=e,b.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null!=w)return w.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var S=[];function E(e){let t=b.ReactCurrentDispatcher.current;if(0===e){if(S.push(t),1===S.length&&(w=t),t===x)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(x)}else if(1===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===S.length&&(w=null),k(e)}else if(2===e)S.push(t),k(w);else if(3===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function A(e){for(let t=0;t<e.length;t++)e[t]=y}function C(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var P=new Map;function T(){for(let e of P.values())e.forEach(e=>{e.count=0})}function M(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=P.get(e))&&(n=new Set,P.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=P.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var j=new Set;function R(e,t,n,r,i,s){function a(e,t,a,o){let l=`${r}:${s} [${i}] ${n}${a} changed from ${e} to ${t} at depth ${o}`;j.has(l)||(j.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)){if(t!==n)if(typeof t!=typeof n)a(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let s=Array.isArray(t),o=Array.isArray(n);if(null===t&&null!==n)a("null",`type ${typeof n}`,r,i);else if(null===n)a(`type ${typeof t}`,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}
145`,r,i);else for(let[s,o]of t)n.has(s)?e(o,n.get(s),`${r}.get(${s})`,i+1):a(`Map instance with key ${s}`,`Map instance without key ${s}`,r,i);else a("Map instance","other value",r,i);else if(n instanceof Map)a("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else a("Set instance","other value",r,i);else if(n instanceof Set)a("other value","Set instance",r,i);else if(s||o)if(s!==o)a(`type ${s?"array":"object"}`,`type ${o?"array":"object"}`,r,i);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let s=0;s<t.length;s++)e(t[s],n[s],`${r}[${s}]`,i+1);else if(m(t)||m(n))m(t)!==m(n)?a(`type ${m(t)?"React element":"object"}`,`type ${m(n)?"React element":"object"}`,r,i):t.type!==n.type?a(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||a(`object without key ${e}`,`object with key ${e}`,r,i);for(let s in t)s in n?e(t[s],n[s],`${r}.${s}`,i+1):a(`object with key ${s}`,`object without key ${s}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&a(t,n,r,i)}}}(e,t,"",0)}},44987:(e,t,n)=>{"use strict";n.d(t,{E:()=>tx,ID:()=>e9,NP:()=>tu,DU:()=>ty,AH:()=>tp,i7:()=>tv,I4:()=>tm,DP:()=>tl});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.create;function i(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError;var s=n(12115),a=n(1072),o=n.n(a),l="-ms-",u="-moz-",c="-webkit-",d="comm",h="rule",f="decl",p="@keyframes",g=Math.abs,m=String.fromCharCode,b=Object.assign;function y(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,n){return e.replace(t,n)}function x(e,t,n){return e.indexOf(t,n)}function w(e,t){return 0|e.charCodeAt(t)}function k(e,t,n){return e.slice(t,n)}function S(e){return e.length}function E(e,t){return t.push(e),e}function A(e,t){return e.filter(function(e){return!y(e,t)})}var C=1,P=1,T=0,M=0,j=0,R="";function I(e,t,n,r,i,s,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:C,column:P,length:a,return:"",siblings:o}}function O(e,t){return b(I("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _(e){for(;e.root;)e=O(e.root,{children:[e]});E(e,e.siblings)}function D(){return j=M<T?w(R,M++):0,P++,10===j&&(P=1,C++),j}function V(){return w(R,M)}function $(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){var t,n;return(t=M-1,n=function e(t){for(;D();)switch(j){case t:return M;case 34:case 39:34!==t&&39!==t&&e(j);break;case 40:41===t&&e(t);break;case 92:D()}return M}(91===e?e+2:40===e?e+1:e),k(R,t,n)).trim()}function L(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function F(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case f:return e.return=e.return||e.value;case d:return"";case p:return e.return=e.value+"{"+L(e.children,r)+"}";case h:if(!S(e.value=e.props.join(",")))return""}return S(n=L(e.children,r))?e.return=e.value+"{"+n+"}":""}function N(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case f:e.return=function e(t,n,r){var i;switch(i=n,45^w(t,0)?(((i<<2^w(t,0))<<2^w(t,1))<<2^w(t,2))<<2^w(t,3):0){case 5103:return c+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return c+t+t;case 4789:return u+t+t;
vendor: 14,135 bytes, line 145
145case 5349:case 4246:case 4810:case 6968:case 2756:return c+t+u+t+l+t+t;case 5936:switch(w(t,n+11)){case 114:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return c+t+l+t+t;case 6165:return c+t+l+"flex-"+t+t;case 5187:return c+t+v(t,/(\w+).+(:[^]+)/,c+"box-$1$2"+l+"flex-$1$2")+t;case 5443:return c+t+l+"flex-item-"+v(t,/flex-|-self/g,"")+(y(t,/flex-|baseline/)?"":l+"grid-row-"+v(t,/flex-|-self/g,""))+t;case 4675:return c+t+l+"flex-line-pack"+v(t,/align-content|flex-|-self/g,"")+t;case 5548:return c+t+l+v(t,"shrink","negative")+t;case 5292:return c+t+l+v(t,"basis","preferred-size")+t;case 6060:return c+"box-"+v(t,"-grow","")+c+t+l+v(t,"grow","positive")+t;case 4554:return c+v(t,/([^-])(transform)/g,"$1"+c+"$2")+t;case 6187:return v(v(v(t,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),t,"")+t;case 5495:case 3959:return v(t,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return v(v(t,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+t+t;case 4200:if(!y(t,/flex-|baseline/))return l+"grid-column-align"+k(t,n)+t;break;case 2592:case 3360:return l+v(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,y(e.props,/grid-\w+-end/)}))return~x(t+(r=r[n].value),"span",0)?t:l+v(t,"-start","")+t+l+"grid-row-span:"+(~x(r,"span",0)?y(r,/\d+/):y(r,/\d+/)-y(t,/\d+/))+";";return l+v(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return y(e.props,/grid-\w+-start/)})?t:l+v(v(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return v(t,/(.+)-inline(.+)/,c+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(S(t)-1-n>6)switch(w(t,n+1)){case 109:if(45!==w(t,n+4))break;case 102:return v(t,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+u+(108==w(t,n+3)?"$3":"$2-$3"))+t;case 115:return~x(t,"stretch",0)?e(v(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return v(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,s,a,o){return l+n+":"+r+o+(i?l+n+"-span:"+(s?a:a-r)+o:"")+t});case 4949:if(121===w(t,n+6))return v(t,":",":"+c)+t;break;case 6444:switch(w(t,45===w(t,14)?18:11)){case 120:return v(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===w(t,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+l+"$2box$3")+t;case 100:return v(t,":",":"+l)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case p:return L([O(e,{value:v(e.value,"@","@"+c)})],r);case h:if(e.length){var i,s;return i=n=e.props,s=function(t){switch(y(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_(O(e,{props:[v(t,/:(read-\w+)/,":"+u+"$1")]})),_(O(e,{props:[t]})),b(e,{props:A(n,r)});break;case"::placeholder":_(O(e,{props:[v(t,/:(plac\w+)/,":"+c+"input-$1")]})),_(O(e,{props:[v(t,/:(plac\w+)/,":"+u+"$1")]})),_(O(e,{props:[v(t,/:(plac\w+)/,l+"input-$1")]})),_(O(e,{props:[t]})),b(e,{props:A(n,r)})}return""},i.map(s).join("")}}}function B(e,t,n,r,i,s,a,o,l,u,c,d){for(var f=i-1,p=0===i?s:[""],m=p.length,b=0,y=0,x=0;b<r;++b)for(var w=0,S=k(e,f+1,f=g(y=a[b])),E=e;w<m;++w)(E=(y>0?p[w]+" "+S:v(S,/&\f/g,p[w])).trim())&&(l[x++]=E);return I(e,t,n,0===i?h:o,l,u,c,d)}function H(e,t,n,r,i){return I(e,t,n,f,k(e,0,r),k(e,r+1,-1),r,i)}var U={animationIterationCount:1,aspectRatio: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},W=n(87358),G=void 0!==W&&void 0!==W.env&&(W.env.REACT_APP_SC_ATTR||W.env.SC_ATTR)||"data-styled",Y="active",q="data-styled-version",K="6.1.19",X="/*!sc*/\n",Z="undefined"!=typeof window&&"undefined"!=typeof document,J=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==W&&void 0!==W.env&&void 0!==W.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==W.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==W.env.REACT_APP_SC_DISABLE_SPEEDY&&W.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==W&&void 0!==W.env&&void 0!==W.env.SC_DISABLE_SPEEDY&&""!==W.env.SC_DISABLE_SPEEDY&&"false"!==W.env.SC_DISABLE_SPEEDY&&W.env.SC_DISABLE_SPEEDY),Q={},ee=Object.freeze([]),et=Object.freeze({});function en(e,t,n){return void 0===n&&(n=et),e.theme!==n.theme&&e.theme||t||n.theme}var er=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"]),ei=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,es=/(^-|-$)/g;function ea(e){return e.replace(ei,"-").replace(es,"")}var eo=/(a)(d)/gi,el=function(e){return String.fromCharCode(e+(e>25?39:97))};function eu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=el(t%52)+n;return(el(t%52)+n).replace(eo,"$1-$2")}var ec,ed=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},eh=function(e){return ed(5381,e)};function ef(e){return eu(eh(e)>>>0)}function ep(e){return"string"==typeof e}var eg="function"==typeof Symbol&&Symbol.for,em=eg?Symbol.for("react.memo"):60115,eb=eg?Symbol.for("react.forward_ref"):60112,ey={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ev={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ex={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ew=((ec={})[eb]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ec[em]=ex,ec);function ek(e){return("type"in e&&e.type.$$typeof)===em?ex:"$$typeof"in e?ew[e.$$typeof]:ey}var eS=Object.defineProperty,eE=Object.getOwnPropertyNames,eA=Object.getOwnPropertySymbols,eC=Object.getOwnPropertyDescriptor,eP=Object.getPrototypeOf,eT=Object.prototype;function eM(e){return"function"==typeof e}function ej(e){return"object"==typeof e&&"styledComponentId"in e}function eR(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eI(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function eO(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function e_(e,t){Object.defineProperty(e,"toString",{value:t})}function eD(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var eV=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw eD(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var s=r;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),o=(s=0,t.length);s<o;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,s=r;s<i;s++)t+="".concat(this.tag.getRule(s)).concat(X);return t},e}(),e$=new Map,ez=new Map,eL=1,eF=function(e){if(e$.has(e))return e$.get(e);for(;ez.has(eL);)eL++;var t=eL++;return e$.set(e,t),ez.set(t,e),t},eN=function(e,t){eL=t+1,e$.set(e,t),ez.set(t,e)},eB="style[".concat(G,"][").concat(q,'="').concat(K,'"]'),eH=new RegExp("^".concat(G,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eU=function(e,t,n){for(var r,i=n.split(","),s=0,a=i.length;s<a;s++)(r=i[s])&&e.registerName(t,r)},eW=function(e,t){for(var n,r=(null!=(n=t.textContent)?n:"").split(X),i=[],s=0,a=r.length;s<a;s++){var o=r[s].trim();if(o){var l=o.match(eH);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(eN(c,u),eU(e,c,l[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(o)}}},eG=function(e){for(var t=document.querySelectorAll(eB),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(G)!==Y&&(eW(e,i),i.parentNode&&i.parentNode.removeChild(i))}},eY=function(e){var t,r=document.head,i=e||r,s=document.createElement("style"),a=(t=Array.from(i.querySelectorAll("style[".concat(G,"]"))))[t.length-1],o=void 0!==a?a.nextSibling:null;s.setAttribute(G,Y),s.setAttribute(q,K);var l=n.nc;return l&&s.setAttribute("nonce",l),i.insertBefore(s,o),s},eq=function(){function e(e){this.element=eY(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw eD(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eK=function(){function e(e){this.element=eY(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eX=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eZ=Z,eJ={isServer:!Z,useCSSOMInjection:!J},eQ=function(){function e(e,t,n){void 0===e&&(e=et),void 0===t&&(t={});var i=this;this.options=r(r({},eJ),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Z&&eZ&&(eZ=!1,eG(this)),e_(this,function(){for(var e=i.getTag(),t=e.length,n="",r=0;r<t;r++)!function(t){var r=ez.get(t);if(void 0===r)return;var s=i.names.get(r),a=e.getGroup(t);if(void 0!==s&&s.size&&0!==a.length){var o="".concat(G,".g").concat(t,'[id="').concat(r,'"]'),l="";void 0!==s&&s.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),n+="".concat(a).concat(o,'{content:"').concat(l,'"}').concat(X)}}(r);return n})}return e.registerId=function(e){return eF(e)},e.prototype.rehydrate=function(){!this.server&&Z&&eG(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,n;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,n=e.target,new eV(e.isServer?new eX(n):t?new eq(n):new eK(n))))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(eF(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(eF(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(eF(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),e0=/&/g,e1=/^\s*\/\/.*$/gm;function e2(e){var t,n,r,i=void 0===e?et:e,s=i.options,a=void 0===s?et:s,o=i.plugins,l=void 0===o?ee:o,u=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},c=l.slice();c.push(function(e){e.type===h&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(e0,n).replace(r,u))}),a.prefix&&c.push(N),c.push(F);var f=function(e,i,s,o){void 0===i&&(i=""),void 0===s&&(s=""),void 0===o&&(o="&"),t=o,n=i,r=RegExp("\\".concat(n,"\\b"),"g");var l,u,h,f,p,b,y=e.replace(e1,""),A=(p=function e(t,n,r,i,s,a,o,l,u){for(var c,h,f,p,b=0,y=0,A=o,T=0,O=0,_=0,L=1,F=1,N=1,U=0,W="",G=s,Y=a,q=i,K=W;F;)switch(_=U,U=D()){case 40:if(108!=_&&58==w(K,A-1)){-1!=x(K+=v(z(U),"&","&\f"),"&\f",g(b?l[b-1]:0))&&(N=-1);break}case 34:case 39:case 91:K+=z(U);break;case 9:case 10:case 13:case 32:K+=function(e){for(;j=V();)if(j<33)D();else break;return $(e)>2||$(j)>3?"":" "}(_);break;case 92:K+=function(e,t){for(var n;--t&&D()&&!(j<48)&&!(j>102)&&(!(j>57)||!(j<65))&&(!(j>
14570)||!(j<97)););return n=M+(t<6&&32==V()&&32==D()),k(R,e,n)}(M-1,7);continue;case 47:switch(V()){case 42:case 47:E((c=function(e,t){for(;D();)if(e+j===57)break;else if(e+j===84&&47===V())break;return"/*"+k(R,t,M-1)+"*"+m(47===e?e:D())}(D(),M),h=n,f=r,p=u,I(c,h,f,d,m(j),k(c,2,-2),0,p)),u);break;default:K+="/"}break;case 123*L:l[b++]=S(K)*N;case 125*L:case 59:case 0:switch(U){case 0:case 125:F=0;case 59+y:-1==N&&(K=v(K,/\f/g,"")),O>0&&S(K)-A&&E(O>32?H(K+";",i,r,A-1,u):H(v(K," ","")+";",i,r,A-2,u),u);break;case 59:K+=";";default:if(E(q=B(K,n,r,b,y,s,l,W,G=[],Y=[],A,a),a),123===U)if(0===y)e(K,n,q,q,G,a,A,l,Y);else switch(99===T&&110===w(K,3)?100:T){case 100:case 108:case 109:case 115:e(t,q,q,i&&E(B(t,q,q,0,0,s,l,W,s,G=[],A,Y),Y),s,Y,A,l,i?G:Y);break;default:e(K,q,q,q,[""],Y,0,l,Y)}}b=y=O=0,L=N=1,W=K="",A=o;break;case 58:A=1+S(K),O=_;default:if(L<1){if(123==U)--L;else if(125==U&&0==L++&&125==(j=M>0?w(R,--M):0,P--,10===j&&(P=1,C--),j))continue}switch(K+=m(U),U*L){case 38:N=y>0?1:(K+="\f",-1);break;case 44:l[b++]=(S(K)-1)*N,N=1;break;case 64:45===V()&&(K+=z(D())),T=V(),y=A=S(W=K+=function(e){for(;!$(V());)D();return k(R,e,M)}(M)),U++;break;case 45:45===_&&2==S(K)&&(L=0)}}return a}("",null,null,null,[""],(h=f=s||i?"".concat(s," ").concat(i," { ").concat(y," }"):y,C=P=1,T=S(R=h),M=0,f=[]),0,[0],f),R="",p);a.namespace&&(A=function e(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(e){return"".concat(n," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,n)),t})}(A,a.namespace));var O=[];return L(A,(u=(l=c.concat((b=function(e){return O.push(e)},function(e){!e.root&&(e=e.return)&&b(e)}))).length,function(e,t,n,r){for(var i="",s=0;s<u;s++)i+=l[s](e,t,n,r)||"";return i})),O};return f.hash=l.length?l.reduce(function(e,t){return t.name||eD(15),ed(e,t.name)},5381).toString():"",f}var e5=new eQ,e3=e2(),e4=s.createContext({shouldForwardProp:void 0,styleSheet:e5,stylis:e3}),e6=(e4.Consumer,s.createContext(void 0));function e8(){return(0,s.useContext)(e4)}function e9(e){var t=(0,s.useState)(e.stylisPlugins),n=t[0],r=t[1],i=e8().styleSheet,a=(0,s.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),l=(0,s.useMemo)(function(){return e2({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,s.useEffect)(function(){o()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,s.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:l}},[e.shouldForwardProp,a,l]);return s.createElement(e4.Provider,{value:u},s.createElement(e6.Provider,{value:l},e.children))}var e7=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=e3);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,e_(this,function(){throw eD(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e3),this.name+e.hash},e}();function te(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;r>="A"&&r<="Z"?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var tt=function(e){return null==e||!1===e||""===e},tn=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!tt(r)&&(Array.isArray(r)&&r.isCss||eM(r)?t.push("".concat(te(n),":"),r,";"):eO(r)?t.push.apply(t,i(i(["".concat(n," {")],tn(r),!1),["}"],!1)):t.push("".concat(te(n),": ").concat(null==r||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in U||n.startsWith("--")?String(r).trim():"".concat(r,"px"),";")))}return t};function tr(e,t,n,r){if(tt(e))return[];if(ej(e))return[".".concat(e.styledComponentId)];if(eM(e))return!eM(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tr(e(t),t,n,r);return e instanceof e7?n?(e.inject(n,r),[e.getName(r)]):[e]:eO(e)?tn(e):Array.isArray(e)?Array.prototype.concat.apply(ee,e.map(function(e){return tr(e,t,n,r)})):[e.toString()]}function ti(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(eM(n)&&!ej(n))return!1}return!0}var ts=eh(K),ta=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ti(e),this.componentId=t,this.baseHash=ed(ts,t),this.baseStyle=n,eQ.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n
vendor: 4,469 bytes, line 145
145):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=eR(r,this.staticRulesId);else{var i=eI(tr(this.rules,e,t,n)),s=eu(ed(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=n(i,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}r=eR(r,s),this.staticRulesId=s}else{for(var o=ed(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=eI(tr(c,e,t,n));o=ed(o,d+u),l+=d}}if(l){var h=eu(o>>>0);t.hasNameForId(this.componentId,h)||t.insertRules(this.componentId,h,n(l,".".concat(h),void 0,this.componentId)),r=eR(r,h)}}return r},e}(),to=s.createContext(void 0);function tl(){var e=(0,s.useContext)(to);if(!e)throw eD(18);return e}function tu(e){var t=s.useContext(to),n=(0,s.useMemo)(function(){var n=e.theme;if(!n)throw eD(14);if(eM(n))return n(t);if(Array.isArray(n)||"object"!=typeof n)throw eD(8);return t?r(r({},t),n):n},[e.theme,t]);return e.children?s.createElement(to.Provider,{value:n},e.children):null}to.Consumer;var tc={};function td(e,t,n){var i,a,o,l,u,c=ej(e),d=!ep(e),h=t.attrs,f=void 0===h?ee:h,p=t.componentId,g=void 0===p?(a=t.displayName,o=t.parentComponentId,tc[l="string"!=typeof a?"sc":ea(a)]=(tc[l]||0)+1,u="".concat(l,"-").concat(ef(K+l+tc[l])),o?"".concat(o,"-").concat(u):u):p,m=t.displayName,b=void 0===m?ep(e)?"styled.".concat(e):"Styled(".concat((i=e).displayName||i.name||"Component",")"):m,y=t.displayName&&t.componentId?"".concat(ea(t.displayName),"-").concat(t.componentId):t.componentId||g,v=c&&e.attrs?e.attrs.concat(f).filter(Boolean):f,x=t.shouldForwardProp;if(c&&e.shouldForwardProp){var w=e.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;x=function(e,t){return w(e,t)&&k(e,t)}}else x=w}var S=new ta(n,y,c?e.componentStyle:void 0);function E(e,t){return function(e,t,n){var i,a=e.attrs,o=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,d=e.target,h=s.useContext(to),f=e8(),p=e.shouldForwardProp||f.shouldForwardProp,g=en(t,h,l)||et,m=function(e,t,n){for(var i,s=r(r({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var o=eM(i=e[a])?i(s):i;for(var l in o)s[l]="className"===l?eR(s[l],o[l]):"style"===l?r(r({},s[l]),o[l]):o[l]}return t.className&&(s.className=eR(s.className,t.className)),s}(a,t,g),b=m.as||d,y={};for(var v in m)void 0===m[v]||"$"===v[0]||"as"===v||"theme"===v&&m.theme===g||("forwardedAs"===v?y.as=m.forwardedAs:p&&!p(v,b)||(y[v]=m[v]));var x=(i=e8(),o.generateAndInjectStyles(m,i.styleSheet,i.stylis)),w=eR(u,c);return x&&(w+=" "+x),m.className&&(w+=" "+m.className),y[ep(b)&&!er.has(b)?"class":"className"]=w,n&&(y.ref=n),(0,s.createElement)(b,y)}(A,e,t)}E.displayName=b;var A=s.forwardRef(E);return A.attrs=v,A.componentStyle=S,A.displayName=b,A.shouldForwardProp=x,A.foldedComponentIds=c?eR(e.foldedComponentIds,e.styledComponentId):"",A.styledComponentId=y,A.target=c?e.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=c?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)!function e(t,n,r){if(void 0===r&&(r=!1),!r&&!eO(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)t[i]=e(t[i],n[i]);else if(eO(n))for(var i in n)t[i]=e(t[i],n[i]);return t}(e,t[r],!0);return e}({},e.defaultProps,t):t}}),e_(A,function(){return".".concat(A.styledComponentId)}),d&&function e(t,n,r){if("string"!=typeof n){if(eT){var i=eP(n);i&&i!==eT&&e(t,i,r)}var s=eE(n);eA&&(s=s.concat(eA(n)));for(var a=ek(t),o=ek(n),l=0;l<s.length;++l){var u=s[l];if(!(u in ev||r&&r[u]||o&&u in o||a&&u in a)){var c=eC(n,u);try{eS(t,u,c)}catch(e){}}}}return t}(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function th(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var tf=function(e){return Object.assign(e,{isCss:!0})};function tp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return eM(e)||eO(e)?tf(tr(th(ee,i([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?tr(e):tf(tr(th(e,t)))}var tg=function(e){return function e(t,n,s){if(void 0===s&&(s=et),!n)throw eD(1,n);var a=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return t(n,s,tp.apply(void 0,i([e],r,!1)))};return a.attrs=function(i){return e(t,n,r(r({}
145,s),{attrs:Array.prototype.concat(s.attrs,i).filter(Boolean)}))},a.withConfig=function(i){return e(t,n,r(r({},s),i))},a}(td,e)},tm=tg;er.forEach(function(e){tm[e]=tg(e)});var tb=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ti(e),eQ.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(eI(tr(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&eQ.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function ty(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=tp.apply(void 0,i([e],t,!1)),o="sc-global-".concat(ef(JSON.stringify(a))),l=new tb(a,o),u=function(e){var t=e8(),n=s.useContext(to),r=s.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&c(r,e,t.styleSheet,n,t.stylis),s.useLayoutEffect(function(){if(!t.styleSheet.server)return c(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function c(e,t,n,i,s){if(l.isStatic)l.renderStyles(e,Q,n,s);else{var a=r(r({},t),{theme:en(t,i,u.defaultProps)});l.renderStyles(e,a,n,s)}}return s.memo(u)}function tv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=eI(tp.apply(void 0,i([e],t,!1)));return new e7(ef(r),r)}var tx=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=n.nc,i=eI([r&&'nonce="'.concat(r,'"'),"".concat(G,'="true"'),"".concat(q,'="').concat(K,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw eD(2);return e._emitSheetCSS()}
145,this.getStyleElement=function(){if(e.sealed)throw eD(2);var t,i=e.instance.toString();if(!i)return[];var a=((t={})[G]="",t[q]=K,t.dangerouslySetInnerHTML={__html:i},t),o=n.nc;return o&&(a.nonce=o),[s.createElement("style",r({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eQ({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw eD(2);return s.createElement(e9,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw eD(3)},e}()},46295:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(12115);let i=r.createContext(!0);function s(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}let a=()=>{try{return r.use(i)}catch{return!1}};function o(e){let t=r.useRef(s);return r.useInsertionEffect(()=>{t.current=e},[e]),(...e)=>(a()&&s(),(0,t.current)(...e))}},48505:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},48611:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},48659:(e,t,n)=>{var r=n(37929);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},50330:(e,t,n)=>{"use strict";e.exports=n(30294)},50851:e=>{e.exports=function(e){return e.split("")}},51508:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(12115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},55325:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>r,D9:()=>d,ON:()=>a,OZ:()=>f,Ql:()=>s,V0:()=>i,Zp:()=>u,wL:()=>h,wm:()=>o,wv:()=>c,yW:()=>p,z1:()=>l});let r=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],i=["50","100","200","300","400","500","600","700","800","900","950"],s={title:"Black",hex:"#0d0e12"},a={title:"White",hex:"#ffffff"},o={50:{title:"Gray 50",hex:"#f6f6f8"},100:{title:"Gray 100",hex:"#eeeef1"},200:{title:"Gray 200",hex:"#e3e4e8"},300:{title:"Gray 300",hex:"#bbbdc9"},400:{title:"Gray 400",hex:"#9499ad"},500:{title:"Gray 500",hex:"#727892"},600:{title:"Gray 600",hex:"#515870"},700:{title:"Gray 700",hex:"#383d51"},800:{title:"Gray 800",hex:"#252837"},900:{title:"Gray 900",hex:"#1b1d27"},950:{title:"Gray 950",hex:"#13141b"}},l={50:{title:"Blue 50",hex:"#f5f8ff"},100:{title:"Blue 100",hex:"#e5edff"},200:{title:"Blue 200",hex:"#dbe5ff"},300:{title:"Blue 300",hex:"#a8bfff"},400:{title:"Blue 400",hex:"#7595ff"},500:{title:"Blue 500",hex:"#556bfc"},600:{title:"Blue 600",hex:"#4043e7"},700:{title:"Blue 700",hex:"#2927aa"},800:{title:"Blue 800",hex:"#192457"},900:{title:"Blue 900",hex:"#161a41"},950:{title:"Blue 950",hex:"#101228"}},u={50:{title:"Purple 50",hex:"#f8f5ff"},100:{title:"Purple 100",hex:"#f1ebff"},200:{title:"Purple 200",hex:"#ece1fe"},300:{title:"Purple 300",hex:"#ccb1fc"},400:{title:"Purple 400",hex:"#b087f7"},500:{title:"Purple 500",hex:"#8f57ef"},600:{title:"Purple 600",hex:"#721fe5"},700:{title:"Purple 700",hex:"#4c1a9e"},800:{title:"Purple 800",hex:"#2f1862"},900:{title:"Purple 900",hex:"#23173f"},950:{title:"Purple 950",hex:"#181128"}},c={50:{title:"Red 50",hex:"#fff6f5"},100:{title:"Red 100",hex:"#ffe7e5"},200:{title:"Red 200",hex:"#ffdedc"},300:{title:"Red 300",hex:"#fdada5"},400:{title:"Red 400",hex:"#f77769"},500:{title:"Red 500",hex:"#ef4434"},600:{title:"Red 600",hex:"#cc2819"},700:{title:"Red 700",hex:"#8b2018"},800:{title:"Red 800",hex:"#4d1714"},900:{title:"Red 900",hex:"#321615"},950:{title:"Red 950",hex:"#1e1011"}},d={50:{title:"Yellow 50",hex:"#fefae1"},100:{title:"Yellow 100",hex:"#fcf3bb"},200:{title:"Yellow 200",hex:"#f9e994"},300:{title:"Yellow 300",hex:"#f7d455"},400:{title:"Yellow 400",hex:"#f9bc15"},500:{title:"Yellow 500",hex:"#d28a04"},600:{title:"Yellow 600",hex:"#965908"},700:{title:"Yellow 700",hex:"#653a0b"},800:{title:"Yellow 800",hex:"#3b220c"},900:{title:"Yellow 900",hex:"#271a11"},950:{title:"Yellow 950",hex:"#181410"}},h={50:{title:"Green 50",hex:"#e7fef5"},100:{title:"Green 100",hex:"#c5fce8"},200:{title:"Green 200",hex:"#a9f9dc"},300:{title:"Green 300",hex:"#59f3ba"},400:{title:"Green 400",hex:"#0ff0a1"},500:{title:"Green 500",hex:"#04b97a"},600:{title:"Green 600",hex:"#01794f"},700:{title:"Green 700",hex:"#015133"},800:{title:"Green 800",hex:"#023120"},900:{title:"Green 900",hex:"#06231a"},950:{title:"Green 950",hex:"#071715"}},f={gray:o,blue:l,purple:u,magenta:{50:{title:"Magenta 50",hex:"#fef6f9"},100:{title:"Magenta 100",hex:"#fde8ef"},200:{title:"Magenta 200",hex:"#fcdee9"},300:{title:"Magenta 300",hex:"#f7abc5"},400:{title:"Magenta 400",hex:"#f0709b"},500:{title:"Magenta 500",hex:"#e72767"},600:{title:"Magenta 600",hex:"#b11651"},700:{title:"Magenta 700",hex:"#7c1342"},800:{title:"Magenta 800",hex:"#4b1130"},900:{title:"Magenta 900",hex:"#341325"},950:{title:"Magenta 950",hex:"#1f0f14"}},red:c,orange:{50:{title:"Orange 50",hex:"#fff7f0"},100:{title:"Orange 100",hex:"#ffeadb"},200:{title:"Orange 200",hex:"#ffddc7"},300:{title:"Orange 300",hex:"#ffb685"},400:{title:"Orange 400",hex:"#ff8e42"},500:{title:"Orange 500",hex:"#fa6400"},600:{title:"Orange 600",hex:"#b14802"},700:{title:"Orange 700",hex:"#7c3404"},800:{title:"Orange 800",hex:"#461e07"},900:{title:"Orange 900",hex:"#32160b"},950:{title:"Orange 950",hex:"#21120d"}},yellow:d,green:h,cyan:{50:{title:"Cyan 50",hex:"#e7fefe"},100:{title:"Cyan 100",hex:"#c5fcfc"},200:{title:"Cyan 200",hex:"#96f8f8"},300:{title:"Cyan 300",hex:"#62efef"},400:{title:"Cyan 400",hex:"#18e2e2"},500:{title:"Cyan 500",hex:"#04b8be"},600:{title:"Cyan 600",hex:"#037782"},700:{title:"Cyan 700",hex:"#024950"},800:{title:"Cyan 800",hex:"#042f34"},900:{title:"Cyan 900",hex:"#072227"},950:{title:"Cyan 950",hex:"#0d181c"}}},p={black:s,white:a,...f}},57213:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},57480:(e,t,n)=>{"use strict";function r(e){let t="undefined"!=typeof window&&"crypto"in window?window.crypto:globalThis.crypto;if(!t||!t.getRandomValues)throw Error("WebCrypto not available in this environment");return t.getRandomValues(e)}n.d(t,{A:()=>r})},58784:(e,t,n)=>{"use strict";function r(e){let[t,n]=e;return[t,n]}function i(e,t){let n=e,r=t,i=n.length,s=r.length;if(0===i||0===s)return 0;i>s?n=n.substring(i-s):i<s&&(r=r.substring(0,i));let a=Math.min(i,s);if(n===r)return a;let o=0,l=1;for(let e=0;-1!==e;){let t=n.substring(a-l);if(-1===(e=r.indexOf(t)))break;
145l+=e,(0===e||n.substring(a-l)===r.substring(0,l))&&(o=l,l++)}return o}function s(e,t){if(!e||!t||e[0]!==t[0])return 0;let n=0,r=Math.min(e.length,t.length),i=r,s=0;for(;n<i;)e.substring(s,i)===t.substring(s,i)?s=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let n=0,r=Math.min(e.length,t.length),i=r,s=0;for(;n<i;)e.substring(e.length-i,e.length-s)===t.substring(t.length-i,t.length-s)?s=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function o(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function l(e,t,n,r,i){let s=e.substring(0,n),a=t.substring(0,r),o=e.substring(n),l=t.substring(r),u=x(s,a,{checkLines:!1,deadline:i}),c=x(o,l,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,n){let r=e.slice(n,n+Math.floor(e.length/4)),i=-1,o="",l,u,c,d;for(;-1!==(i=t.indexOf(r,i+1));){let r=s(e.slice(n),t.slice(i)),h=a(e.slice(0,n),t.slice(0,i));o.length<h+r&&(o=t.slice(i-h,i)+t.slice(i,i+r),l=e.slice(0,n-h),u=e.slice(n+r),c=t.slice(0,i-h),d=t.slice(i+r))}return 2*o.length>=e.length?[l||"",u||"",c||"",d||"",o||""]:null}n.d(t,{$i:()=>Y,Cm:()=>m,Ug:()=>b,Vx:()=>E,iU:()=>v,iz:()=>ea,jW:()=>en,lw:()=>y,sw:()=>I,w1:()=>el});var c=Object.defineProperty,d=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||(t={}))h.call(t,n)&&p(e,n,t[n]);if(d)for(var n of d(t))f.call(t,n)&&p(e,n,t[n]);return e};let m=-1,b=1,y=0;function v(e,t,n){var r,i;let s;if(null===e||null===t)throw Error("Null input. (diff)");let a=x(e,t,g({checkLines:!0,deadline:(i=(r=n||{}).timeout||1,s=1,"u">typeof i&&(s=i<=0?Number.MAX_VALUE:i),Date.now()+1e3*s)},r));return function(e){for(let t=0;t<e.length;t++){let[n,r]=e[t];if(0===r.length)continue;let i=r[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(r[r.length-1])&&n===y&&S(e,t,1),o(i)&&n===y&&S(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(a),a}function x(e,t,n){let r=e,i=t;if(r===i)return r?[[y,r]]:[];let o=s(r,i),c=r.substring(0,o);o=a(r=r.substring(o),i=i.substring(o));let d=r.substring(r.length-o),h=function(e,t,n){let r;if(!e)return[[b,t]];if(!t)return[[m,e]];let i=e.length>t.length?e:t,s=e.length>t.length?t:e,a=i.indexOf(s);if(-1!==a)return r=[[b,i.substring(0,a)],[y,s],[b,i.substring(a+s.length)]],e.length>t.length&&(r[0][0]=m,r[2][0]=m),r;if(1===s.length)return[[m,e],[b,t]];let o=function(e,t,n=1){let r,i,s,a,o;if(n<=0)return null;let l=e.length>t.length?e:t,c=e.length>t.length?t:e;if(l.length<4||2*c.length<l.length)return null;let d=u(l,c,Math.ceil(l.length/4)),h=u(l,c,Math.ceil(l.length/2));if(d&&h)r=d[4].length>h[4].length?d:h;else{if(!d&&!h)return null;h?d||(r=h):r=d}if(!r)throw Error("Unable to find a half match.");return e.length>t.length?(i=r[0],s=r[1],a=r[2],o=r[3]):(a=r[0],o=r[1],i=r[2],s=r[3]),[i,s,a,o,r[4]]}(e,t);if(o){let e=o[0],t=o[1],r=o[2],i=o[3],s=o[4],a=x(e,r,n),l=x(t,i,n);return a.concat([[y,s]],l)}return n.checkLines&&e.length>100&&t.length>100?function(e,t,n){let r=e,i=t,s=function(e,t){let n=[],r={};function i(e){let t="",i=0,a=-1,o=n.length;for(;a<e.length-1;){-1===(a=e.indexOf(`
146`,i))&&(a=e.length-1);let l=e.slice(i,a+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(o===s&&(l=e.slice(i),a=e.length),t+=String.fromCharCode(o),r[l]=o,n[o++]=l),i=a+1}return t}n[0]="";let s=4e4,a=i(e);return s=65535,{chars1:a,chars2:i(t),lineArray:n}}(r,i);r=s.chars1,i=s.chars2;let a=s.lineArray,o=x(r,i,{checkLines:!1,deadline:n.deadline});(function(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join("")}})(o,a),(o=E(o)).push([y,""]);let l=0,u=0,c=0,d="",h="";for(;l<o.length;){switch(o[l][0]){case b:c++,h+=o[l][1];break;case m:u++,d+=o[l][1];break;case y:if(u>=1&&c>=1){o.splice(l-u-c,u+c),l=l-u-c;let e=x(d,h,{checkLines:!1,deadline:n.deadline});for(let t=e.length-1;t>=0;t--)o.splice(l,0,e[t]);l+=e.length}c=0,u=0,d="",h="";break;default:throw Error("Unknown diff operation.")}l++}return o.pop(),o}(e,t,n):function(e,t,n){let r=e.length,i=t.length,s=Math.ceil((r+i)/2),a=2*s,o=Array(a),u=Array(a);for(let e=0;e<a;e++)o[e]=-1,u[e]=-1;o[s+1]=0,u[s+1]=0;let c=r-i,d=c%2!=0,h=0,f=0,p=0,g=0;for(let m=0;m<s&&!(Date.now()>n);m++){for(let p=-m+h;p<=m-f;p+=2){let g,b=s+p,y=(g=p===-m||p!==m&&o[b-1]<o[b+1]?o[b+1]:o[b-1]+1)-p;for(;g<r&&y<i&&e.charAt(g)===t.charAt(y);)g++,y++;if(o[b]=g,g>r)f+=2;else if(y>i)h+=2;else if(d){let i=s+c-p;if(i>=0&&i<a&&-1!==u[i]&&g>=r-u[i])return l(e,t,g,y,n)}}for(let h=-m+p;h<=m-g;h+=2){let f,b=s+h,y=(f=h===-m||h!==m&&u[b-1]<u[b+1]?u[b+1]:u[b-1]+1)-h;for(;f<r&&y<i&&e.charAt(r-f-1)===t.charAt(i-y-1);)f++,y++;if(u[b]=f,f>r)g+=2;else if(y>i)p+=2;else if(!d){let i=s+c-h;if(i>=0&&i<a&&-1!==o[i]){let a=o[i],u=s+a-i;if(a>=(f=r-f))return l(e,t,a,u,n)}}}}return[[m,e],[b,t]]}(e,t,n.deadline)}(r=r.substring(0,r.length-o),i=i.substring(0,i.length-o),n);return c&&h.unshift([y,c]),d&&h.push([y,d]),h=R(h)}function w(e,t,n){return 1===n?e+t:t+e}function k(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function S(e,t,n){var r,i;let s=1===n?-1:1,a=null,o=null,l=t+n;for(;l>=0&&l<e.length&&(null===a||null===o);l+=n){let[r,i]=e[l];
146if(0!==i.length){if(r===b){null===a&&(a=l);continue}else if(r===m){null===o&&(o=l);continue}else if(r===y){if(null===a&&null===o){let[r,i]=k(e[t][1],n);e[t][1]=r,e[l][1]=w(e[l][1],i,s);return}break}}}if(null!==a&&null!==o&&(r=a,i=o,1===n?e[r][1][e[r][1].length-1]===e[i][1][e[i][1].length-1]:e[r][1][0]===e[i][1][0])){let[r,i]=k(e[a][1],s),[l]=k(e[o][1],s);e[a][1]=r,e[o][1]=l,e[t][1]=w(e[t][1],i,n);return}let[u,c]=k(e[t][1],n);e[t][1]=u,null===a?(e.splice(l,0,[b,c]),null!==o&&o>=l&&o++):e[a][1]=w(e[a][1],c,s),null===o?e.splice(l,0,[m,c]):e[o][1]=w(e[o][1],c,s)}function E(e){let t=e.map(e=>r(e)),n=!1,s=[],a=0,o=null,l=0,u=0,c=0,d=0,h=0;for(;l<t.length;)t[l][0]===y?(s[a++]=l,u=d,c=h,d=0,h=0,o=t[l][1]):(t[l][0]===b?d+=t[l][1].length:h+=t[l][1].length,o&&o.length<=Math.max(u,c)&&o.length<=Math.max(d,h)&&(t.splice(s[a-1],0,[m,o]),t[s[a-1]+1][0]=b,a--,l=--a>0?s[a-1]:-1,u=0,c=0,d=0,h=0,o=null,n=!0)),l++;for(n&&(t=R(t)),t=j(t),l=1;l<t.length;){if(t[l-1][0]===m&&t[l][0]===b){let e=t[l-1][1],n=t[l][1],r=i(e,n),s=i(n,e);r>=s?(r>=e.length/2||r>=n.length/2)&&(t.splice(l,0,[y,n.substring(0,r)]),t[l-1][1]=e.substring(0,e.length-r),t[l+1][1]=n.substring(r),l++):(s>=e.length/2||s>=n.length/2)&&(t.splice(l,0,[y,e.substring(0,s)]),t[l-1][0]=b,t[l-1][1]=n.substring(0,n.length-s),t[l+1][0]=m,t[l+1][1]=e.substring(s),l++),l++}l++}return t}let A=/[^a-zA-Z0-9]/,C=/\s/,P=/[\r\n]/,T=/\n\r?\n$/,M=/^\r?\n\r?\n/;function j(e){let t=e.map(e=>r(e));function n(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(A),s=r.match(A),a=i&&n.match(C),o=s&&r.match(C),l=a&&n.match(P),u=o&&r.match(P),c=l&&e.match(T),d=u&&t.match(M);return c||d?5:l||u?4:i&&!a&&o?3:a||o?2:i||s?1:0}let i=1;for(;i<t.length-1;){if(t[i-1][0]===y&&t[i+1][0]===y){let e=t[i-1][1],r=t[i][1],s=t[i+1][1],o=a(e,r);if(o){let t=r.substring(r.length-o);e=e.substring(0,e.length-o),r=t+r.substring(0,r.length-o),s=t+s}let l=e,u=r,c=s,d=n(e,r)+n(r,s);for(;r.charAt(0)===s.charAt(0);){e+=r.charAt(0),r=r.substring(1)+s.charAt(0),s=s.substring(1);let t=n(e,r)+n(r,s);t>=d&&(d=t,l=e,u=r,c=s)}t[i-1][1]!==l&&(l?t[i-1][1]=l:(t.splice(i-1,1),i--),t[i][1]=u,c?t[i+1][1]=c:(t.splice(i+1,1),i--))}i++}return t}function R(e){let t=e.map(e=>r(e));t.push([y,""]);let n=0,i=0,o=0,l="",u="",c;for(;n<t.length;)switch(t[n][0]){case b:o++,u+=t[n][1],n++;break;case m:i++,l+=t[n][1],n++;break;case y:i+o>1?(0!==i&&0!==o&&(0!==(c=s(u,l))&&(n-i-o>0&&t[n-i-o-1][0]===y?t[n-i-o-1][1]+=u.substring(0,c):(t.splice(0,0,[y,u.substring(0,c)]),n++),u=u.substring(c),l=l.substring(c)),0!==(c=a(u,l))&&(t[n][1]=u.substring(u.length-c)+t[n][1],u=u.substring(0,u.length-c),l=l.substring(0,l.length-c))),n-=i+o,t.splice(n,i+o),l.length&&(t.splice(n,0,[m,l]),n++),u.length&&(t.splice(n,0,[b,u]),n++),n++):0!==n&&t[n-1][0]===y?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,i=0,l="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let d=!1;for(n=1;n<t.length-1;)t[n-1][0]===y&&t[n+1][0]===y&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),d=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),d=!0)),n++;return d&&(t=R(t)),t}function I(e,t=4){let n=e.map(e=>r(e)),i=!1,s=[],a=0,o=null,l=0,u=!1,c=!1,d=!1,h=!1;for(;l<n.length;)n[l][0]===y?(n[l][1].length<t&&(d||h)?(s[a++]=l,u=d,c=h,o=n[l][1]):(a=0,o=null),d=!1,h=!1):(n[l][0]===m?h=!0:d=!0,o&&(u&&c&&d&&h||o.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+ +!!t,0)}(u,c,d,h))&&(n.splice(s[a-1],0,[m,o]),n[s[a-1]+1][0]=b,a--,o=null,u&&c?(d=!0,h=!0,a=0):(l=--a>0?s[a-1]:-1,d=!1,h=!1),i=!0)),l++;return i&&(n=R(n)),n}var O=Object.defineProperty,_=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,$=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||(t={}))D.call(t,n)&&$(e,n,t[n]);if(_)for(var n of _(t))V.call(t,n)&&$(e,n,t[n]);return e};let L={threshold:.5,distance:1e3};function F(e,t,n,r={}){if(null===e||null===t||null===n)throw Error("Null input. (match())");let i=Math.max(0,Math.min(n,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,n,r={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=z(z({},L),r),s=function(e){let t={};for(let n=0;n<e.length;n++)t[e.charAt(n)]=0;for(let n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t}(t);function a(e,r){let s=e/t.length,a=Math.abs(n-r);return i.distance?s+a/i.distance:a?1:s}let o=i.threshold,l=e.indexOf(t,n);-1!==l&&(o=Math.min(a(0,l),o),-1!==(l=e.lastIndexOf(t,n+t.length))&&(o=Math.min(a(0,l),o)));let u=1<<t.length-1;l=-1;let c,d,h=t.length+e.length,f=[];for(let r=0;r<t.length;r++){for(c=0,d=h;c<d;)a(r,n+d)<=o?c=d:h=d,d=Math.floor((h-c)/2+c);h=d;let i=Math.max(1,n-d+1),p=Math.min(n+d,e.length)+t.length,g=Array(p+2);g[p+1]=(1<<r)-1;for(let t=p;t>=i;t--){let c=s[e.charAt(t-1)];if(0===r?g[t]=(g[t+1]<<1|1)&c:g[t]=(g[t+1]<<1|1)&c|((f[t+1]|f[t])<<1|1)|f[t+1],g[t]&u){let e=a(r,t-1);if(e<=o)if(o=e,(l=t-1)>n)i=Math.max(1,2*n-l);else break}}if(a(r+1,n)>o)break;f=g}return l}(e,t,i,r):-1}function N(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==b&&(t[n]=e[n][1]);return t.join("")}function B(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==m&&(t[n]=e[n][1]);return t.join("")}function H(e,t){let n=0,r=0,i=0,s=0,a;for(a=0;a<e.length&&(e[a][0]!==b&&(n+=e[a][1].length),e[a][0]!==m&&(r+=e[a][1].length),!(n>t));a++)i=n,s=r;return e.length!==a&&e[a][0]===m?s:s+(t-i)}function U(e){let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);if(typeof r>"u")throw Error("Failed to get codepoint");t+=W(r)}return t}function W(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function G(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function Y(e,t,n={}){if("string"==typeof e)throw Error("Patches must be an array - pass the patch to `parsePatch()` first");let i=t;if(0===e.length)return[i,[]];let s=function(e,t,n={}){let i=0,s=0;function a(e){for(;i<e;){let e=t.codePointAt(s);if(typeof e>"u")return s;i+=W(e),e>65535?s+=2:s+=1}if(!n.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return s}let o=[];for(let t of e)o.push({diffs:t.diffs.map(e=>r(e)),start1:a(t.start1),start2:a(t.start2),utf8Start1:t.utf8Start1,utf8Start2:t.utf8Start2,length1:t.length1,length2:t.length2,utf8Length1:t.utf8Length1,utf8Length2:t.utf8Length2});return o}(e,i,{allowExceedingIndices:n.allowExceedingIndices}),a=n.margin||4,o=n.deleteThreshold||.4,l=function(e,t=4){let n="";for(let e=1;e<=t;e++)n+=String.fromCharCode(e);for(let n of e)n.start1+=t,n.start2+=t,n.utf8Start1+=t,n.utf8Start2+=t;let r=e[0],i=r.diffs;if(0===i.length||i[0][0]!==y)i.unshift([y,n]),r.start1-=t,r.start2-=t,r.utf8Start1-=t,r.utf8Start2-=t,r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,s=t-e;i[0][1]=n.substring(e)+i[0][1],r.start1-=s,r.start2-=s,r.utf8Start1-=s,r.utf8Start2-=s,r.length1+=s,r.length2+=s,r.utf8Length1+=s,r.utf8Length2+=s}if(0===(i=(r=e[e.length-1]).diffs).length||i[i.length-1][0]!==y)i.push([y,n]),r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[i.length-1][1].length){let e=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,e),r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e}return n}(s,a);i=l+i+l,function(e,t=4){for(let n=0;n<e.length;n++){if(e[n].length1<=32)continue;let r=e[n];e.splice(n--,1);let i=r.start1,s=r.start2,a="";for(;0!==r.diffs.length;){let o=G(i-a.length,s-a.length),l=!0;if(""!==a){let e=U(a);o.length1=a.length,o.utf8Length1=e,o.length2=a.length,o.utf8Length2=e,o.diffs.push([y,a])}for(;0!==r.diffs.length&&o.length1<32-t;){let e=r.diffs[0][0],n=r.diffs[0][1],a=U(n);if(e===b){o.length2+=n.length,o.utf8Length2+=a,s+=n.length;let e=r.diffs.shift();e&&o.diffs.push(e),l=!1}else e===m&&1===o.diffs.length&&o.diffs[0][0]===y&&n.length>64?(o.length1+=n.length,o.utf8Length1+=a,i+=n.length,l=!1,o.diffs.push([e,n]),r.diffs.shift()):(a=U(n=n.substring(0,32-o.length1-t)),o.length1+=n.length,o.utf8Length1+=a,i+=n.length,e===y?(o.length2+=n.length,o.utf8Length2+=a,s+=n.length):l=!1,o.diffs.push([e,n]),n===r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(n.length))}a=(a=B(o.diffs)).substring(a.length-t);let u=N(r.diffs).substring(0,t),c=U(u);
146""!==u&&(o.length1+=u.length,o.length2+=u.length,o.utf8Length1+=c,o.utf8Length2+=c,0!==o.diffs.length&&o.diffs[o.diffs.length-1][0]===y?o.diffs[o.diffs.length-1][1]+=u:o.diffs.push([y,u])),l||e.splice(++n,0,o)}}}(s,a);let u=0,c=[];for(let e=0;e<s.length;e++){let t=s[e].start2+u,n=N(s[e].diffs),r,a=-1;if(n.length>32?-1!==(r=F(i,n.substring(0,32),t))&&(-1===(a=F(i,n.substring(n.length-32),t+n.length-32))||r>=a)&&(r=-1):r=F(i,n,t),-1===r)c[e]=!1,u-=s[e].length2-s[e].length1;else{let l;if(c[e]=!0,u=r-t,l=-1===a?i.substring(r,r+n.length):i.substring(r,a+32),n===l)i=i.substring(0,r)+B(s[e].diffs)+i.substring(r+n.length);else{let t=v(n,l,{checkLines:!1});if(n.length>32&&function(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let s=e[i][0],a=e[i][1];switch(s){case b:n+=a.length;break;case m:r+=a.length;break;case y:t+=Math.max(n,r),n=0,r=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(n,r)}(t)/n.length>o)c[e]=!1;else{t=j(t);let n=0,a=0;for(let o=0;o<s[e].diffs.length;o++){let l=s[e].diffs[o];l[0]!==y&&(a=H(t,n)),l[0]===b?i=i.substring(0,r+a)+l[1]+i.substring(r+a):l[0]===m&&(i=i.substring(0,r+a)+i.substring(r+H(t,n+l[1].length))),l[0]!==m&&(n+=l[1].length)}}}}}return[i=i.substring(l.length,i.length-l.length),c]}var q=Object.defineProperty,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,J=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))X.call(t,n)&&J(e,n,t[n]);if(K)for(var n of K(t))Z.call(t,n)&&J(e,n,t[n]);return e};let ee={margin:4};function et(e={}){return Q(Q({},ee),e)}function en(e,t,n){if("string"==typeof e&&"string"==typeof t){let r=v(e,t,{checkLines:!0});return r.length>2&&(r=I(r=E(r))),er(e,r,et(n))}if(e&&Array.isArray(e)&&typeof t>"u")return er(N(e),e,et(n));if("string"==typeof e&&t&&Array.isArray(t))return er(e,t,et(n));throw Error("Unknown call format to make()")}function er(e,t,n){if(0===t.length)return[];let r=[],i=G(0,0),s=0,a=0,o=0,l=0,u=0,c=e,d=e;for(let e=0;e<t.length;e++){let h=t[e],[f,p]=h,g=p.length,v=U(p);switch(!s&&f!==y&&(i.start1=a,i.start2=o,i.utf8Start1=l,i.utf8Start2=u),f){case b:i.diffs[s++]=h,i.length2+=g,i.utf8Length2+=v,d=d.substring(0,o)+p+d.substring(o);break;case m:i.length1+=g,i.utf8Length1+=v,i.diffs[s++]=h,d=d.substring(0,o)+d.substring(o+g);break;case y:g<=2*n.margin&&s&&t.length!==e+1?(i.diffs[s++]=h,i.length1+=g,i.length2+=g,i.utf8Length1+=v,i.utf8Length2+=v):g>=2*n.margin&&s&&(ei(i,c,n),r.push(i),i=G(-1,-1),s=0,c=d,a=o,l=u);break;default:throw Error("Unknown diff type")}f!==b&&(a+=g,l+=v),f!==m&&(o+=g,u+=v)}return s&&(ei(i,c,n),r.push(i)),r}function ei(e,t,n){if(0===t.length)return;let r=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(r)!==t.lastIndexOf(r)&&r.length<32-n.margin-n.margin;)i+=n.margin,r=t.substring(e.start2-i,e.start2+e.length1+i);i+=n.margin;let s=e.start2-i;s>=1&&o(t[s])&&s--;let a=t.substring(s,e.start2);a&&e.diffs.unshift([y,a]);let l=a.length,u=U(a),c=e.start2+e.length1+i;c<t.length&&o(t[c])&&c++;let d=t.substring(e.start2+e.length1,c);d&&e.diffs.push([y,d]);let h=d.length,f=U(d);e.start1-=l,e.start2-=l,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=l+h,e.length2+=l+h,e.utf8Length1+=u+f,e.utf8Length2+=u+f}let es=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function ea(e){if(!e)return[];let t=[],n=e.split(`
147`),r=0;for(;r<n.length;){let e=n[r].match(es);if(!e)throw Error(`Invalid patch string: ${n[r]}`);let i=G(eo(e[1]),eo(e[3]));for(t.push(i),""===e[2]?(i.start1--,i.utf8Start1--,i.length1=1,i.utf8Length1=1):"0"===e[2]?(i.length1=0,i.utf8Length1=0):(i.start1--,i.utf8Start1--,i.utf8Length1=eo(e[2]),i.length1=i.utf8Length1),""===e[4]?(i.start2--,i.utf8Start2--,i.length2=1,i.utf8Length2=1):"0"===e[4]?(i.length2=0,i.utf8Length2=0):(i.start2--,i.utf8Start2--,i.utf8Length2=eo(e[4]),i.length2=i.utf8Length2),r++;r<n.length;){let e,t=n[r],s=t.charAt(0);if("@"===s)break;if(""===s){r++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let a=U(e)-e.length;if("-"===s)i.diffs.push([m,e]),i.length1-=a;else if("+"===s)i.diffs.push([b,e]),i.length2-=a;else if(" "===s)i.diffs.push([y,e]),i.length1-=a,i.length2-=a;else throw Error(`Invalid patch mode "${s}" in: ${e}`);r++}}return t}function eo(e){return parseInt(e,10)}function el(e){return e.map(eu).join("")}function eu(e){let t,n,r,{utf8Length1:i,utf8Length2:s,utf8Start1:a,utf8Start2:o,diffs:l}=e;t=0===i?`${a},0`:1===i?`${a+1}`:`${a+1},${i}`,n=0===s?`${o},0`:1===s?`${o+1}`:`${o+1},${s}`;let u=[`@@ -${t} +${n} @@
148`];for(let e=0;e<l.length;e++){switch(l[e][0]){case b:r="+";break;case m:r="-";break;case y:r=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${r+encodeURI(l[e][1])}
149`}return u.join("").replace(/%20/g," ")}},59132:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}}
149,60760:(e,t,n)=>{"use strict";n.d(t,{N:()=>y});var r=n(95155),i=n(12115),s=n(90869),a=n(82885),o=n(97494),l=n(80845),u=n(27351),c=n(51508);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){let{children:t,isPresent:n,anchorX:s}=e,a=(0,i.useId)(),o=(0,i.useRef)(null),l=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,i.useContext)(c.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i,right:c}=l.current;if(n||!o.current||!e||!t)return;o.current.dataset.motionPopId=a;let d=document.createElement("style");return u&&(d.nonce=u),document.head.appendChild(d),d.sheet&&d.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===s?"left: ".concat(i):"right: ".concat(c),"px !important;\n            top: ").concat(r,"px !important;\n          }\n        ")),()=>{document.head.contains(d)&&document.head.removeChild(d)}},[n]),(0,r.jsx)(d,{isPresent:n,childRef:o,sizeRef:l,children:i.cloneElement(t,{ref:o})})}let f=e=>{let{children:t,initial:n,isPresent:s,onExitComplete:o,custom:u,presenceAffectsLayout:c,mode:d,anchorX:f}=e,g=(0,a.M)(p),m=(0,i.useId)(),b=!0,y=(0,i.useMemo)(()=>(b=!1,{id:m,initial:n,isPresent:s,custom:u,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[s,g,o]);return c&&b&&(y={...y}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[s]),i.useEffect(()=>{s||g.size||!o||o()},[s]),"popLayout"===d&&(t=(0,r.jsx)(h,{isPresent:s,anchorX:f,children:t})),(0,r.jsx)(l.t.Provider,{value:y,children:t})};function p(){return new Map}var g=n(32082);let m=e=>e.key||"";function b(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let y=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left"}=e,[y,v]=(0,g.xQ)(h),x=(0,i.useMemo)(()=>b(t),[t]),w=h&&!y?[]:x.map(m),k=(0,i.useRef)(!0),S=(0,i.useRef)(x),E=(0,a.M)(()=>new Map),[A,C]=(0,i.useState)(x),[P,T]=(0,i.useState)(x);(0,o.E)(()=>{k.current=!1,S.current=x;for(let e=0;e<P.length;e++){let t=m(P[e]);w.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[P,w.length,w.join("-")]);let M=[];if(x!==A){let e=[...x];for(let t=0;t<P.length;t++){let n=P[t],r=m(n);w.includes(r)||(e.splice(t,0,n),M.push(n))}return"wait"===d&&M.length&&(e=M),T(b(e)),C(x),null}let{forceRender:j}=(0,i.useContext)(s.L);return(0,r.jsx)(r.Fragment,{children:P.map(e=>{let t=m(e),i=(!h||!!y)&&(x===P||w.includes(t));return(0,r.jsx)(f,{isPresent:i,initial:(!k.current||!!l)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,onExitComplete:i?void 0:()=>{if(!E.has(t))return;E.set(t,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==j||j(),T(S.current),h&&(null==v||v()),u&&u())},anchorX:p,children:e},t)})})}},62795:e=>{e.exports=function(e,t,n,r){var i=-1,s=null==e?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}},62962:(e,t,n)=>{var r=n(48659),i=n(65531),s=n(75145),a=n(85855);e.exports=function(e){return function(t){var n=i(t=a(t))?s(t):void 0,o=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return o[e]()+l}}},64384:e=>{var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",o="["+s+"]",l="["+r+"]",u="[^"+t+s+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",h="["+i+"]",f="(?:"+l+"|"+u+")",p="(?:"+h+"|"+u+")",g="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",y="[\\ufe0e\\ufe0f]?",v="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+y+b+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(y+b+v),w=RegExp([h+"?"+l+"+"+g+"(?="+[o,h,"$"].join("|")+")",p+"+"+m+"(?="+[o,h+f,"$"].join("|")+")",h+"?"+f+"+"+g,h+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",x].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},64439:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},65432:(e,t,n)=>{"use strict";n.d(t,{B3:()=>eo,JW:()=>w,me:()=>
149ev,sR:()=>ew});var r=n(55325);function i(e,t,n,r,i,s){return{enabled:e.selectable({base:t,dark:n,solid:r,muted:i,state:"enabled",tone:s}),hovered:e.selectable({base:t,dark:n,solid:r,muted:i,state:"hovered",tone:s}),pressed:e.selectable({base:t,dark:n,solid:r,muted:i,state:"pressed",tone:s}),selected:e.selectable({base:t,dark:n,solid:r,muted:i,state:"selected",tone:s}),disabled:e.selectable({base:t,dark:n,solid:r,muted:i,state:"disabled",tone:s})}}function s(e,t,n,r,i,s){return{default:e.button({base:t,dark:n,solid:r.default,muted:i.default,mode:s}),primary:e.button({base:t,dark:n,solid:r.primary,muted:i.primary,mode:s}),positive:e.button({base:t,dark:n,solid:r.positive,muted:i.positive,mode:s}),caution:e.button({base:t,dark:n,solid:r.caution,muted:i.caution,mode:s}),critical:e.button({base:t,dark:n,solid:r.critical,muted:i.critical,mode:s})}}let a="hsl(0, 0%, 0%)",o="hsl(0, 0%, 100%)",l={default:{lightest:"hsl(0, 0%, 95%)",lighter:"hsl(0, 0%, 70%)",light:"hsl(0, 0%, 65%)",base:"hsl(0, 0%, 50%)",dark:"hsl(0, 0%, 35%)",darker:"hsl(0, 0%, 20%)",darkest:"hsl(0, 0%, 5%)"},transparent:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},primary:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},positive:{lightest:"hsl(120, 100%, 95%)",lighter:"hsl(120, 100%, 70%)",light:"hsl(120, 100%, 65%)",base:"hsl(120, 100%, 50%)",dark:"hsl(120, 100%, 35%)",darker:"hsl(120, 100%, 20%)",darkest:"hsl(120, 100%, 5%)"},caution:{lightest:"hsl(60, 100%, 95%)",lighter:"hsl(60, 100%, 70%)",light:"hsl(60, 100%, 65%)",base:"hsl(60, 100%, 50%)",dark:"hsl(60, 100%, 35%)",darker:"hsl(60, 100%, 20%)",darkest:"hsl(60, 100%, 5%)"},critical:{lightest:"hsl(0, 100%, 95%)",lighter:"hsl(0, 100%, 70%)",light:"hsl(0, 100%, 65%)",base:"hsl(0, 100%, 50%)",dark:"hsl(0, 100%, 35%)",darker:"hsl(0, 100%, 20%)",darkest:"hsl(0, 100%, 5%)"}},u={gray:"hsl(0, 0%, 50%)",red:"hsl(0, 100%, 50%)",orange:"hsl(30, 100%, 50%)",yellow:"hsl(60, 100%, 50%)",green:"hsl(120, 100%, 50%)",cyan:"hsl(180, 100%, 50%)",blue:"hsl(240, 100%, 50%)",purple:"hsl(270, 100%, 50%)",magenta:"hsl(300, 100%, 50%)"},c={transparent:{bg:[l.transparent.darkest,l.transparent.lightest],fg:[l.transparent.lightest,l.transparent.darkest],border:[l.transparent.darker,l.transparent.lighter],focusRing:[l.transparent.base,l.transparent.base]},primary:{bg:[l.primary.darkest,l.primary.lightest],fg:[l.primary.lightest,l.primary.darkest],border:[l.primary.darker,l.primary.lighter],focusRing:[l.primary.base,l.primary.base]},positive:{bg:[l.positive.darkest,l.positive.lightest],fg:[l.positive.lightest,l.positive.darkest],border:[l.positive.darker,l.positive.lighter],focusRing:[l.positive.base,l.positive.base]},caution:{bg:[l.caution.darkest,l.caution.lightest],fg:[l.caution.lightest,l.caution.darkest],border:[l.caution.darker,l.caution.lighter],focusRing:[l.caution.base,l.caution.base]},critical:{bg:[l.critical.darkest,l.critical.lightest],fg:[l.critical.lightest,l.critical.darkest],border:[l.critical.darker,l.critical.lighter],focusRing:[l.critical.base,l.critical.base]}};function d(e,t,n){let r=e.base({dark:t,name:n}),a={default:{enabled:e.solid({base:r,dark:t,tone:"default",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"default",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"default",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"default",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"default",name:n,state:"selected"})},transparent:{enabled:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"selected"})},primary:{enabled:e.solid({base:r,dark:t,tone:"primary",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"primary",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"primary",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"primary",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"primary",name:n,state:"selected"})},positive:{enabled:e.solid({base:r,dark:t,tone:"positive",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"positive",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"positive",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"positive",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"positive",name:n,state:"selected"})},caution:{enabled:e.solid({base:r,dark:t,tone:"caution",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"caution",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"caution",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"caution",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"caution",name:n,state:"selected"})},critical:{enabled:e.solid({base:r,dark:t,tone:"critical",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"critical",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"critical",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"critical",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"critical",name:n,state:"selected"})}},o={default:{enabled:e.muted({base:r,dark:t,tone:"default",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"default",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"default",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"default",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"default",name:n,state:"selected"})},transparent:{enabled:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"selected"})},primary:{enabled:e.muted({base:r,dark:t,tone:"primary",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"primary",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"primary",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"primary",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"primary",name:n,state:"selected"})},positive:{enabled:e.muted({base:r,dark:t,tone:"positive",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"positive",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"positive",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"positive",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"positive",name:n,state:"selected"})},caution:{enabled:e.muted({base:r,dark:t,tone:"caution",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"caution",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"caution",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"caution",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"caution",name:n,state:"selected"})},critical:{enabled:e.muted({base:r,dark:t,tone:"critical",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"critical",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"critical",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"critical",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"critical",name:n,state:"selected"})}};return{base:r,button:{default:s(e,r,t,a,o,"default"),ghost:s(e,r,t,a,o,"ghost"),bleed:s(e,r,t,a,o,"bleed")},card:{enabled:e.card({base:r,dark:t,name:n,state:"enabled",solid:a,muted:o}),disabled:e.card({base:r,dark:t,name:n,state:"disabled",solid:a,muted:o}),hovered:e.card({base:r,dark:t,name:n,state:"hovered",solid:a,muted:o}),pressed:e.card({base:r,dark:t,name:n,state:"pressed",solid:a,muted:o}),selected:e.card({base:r,dark:t,name:n,state:"selected",solid:a,muted:o})},dark:t,input:{default:{enabled:e.input({base:r,dark:t,mode:"default",state:"enabled",solid:a.default,muted:o.default}),disabled:e.input({base:r,dark:t,mode:"default",state:"disabled",solid:a.default,muted:o.default}),hovered:e.input({base:r,dark:t,mode:"default",state:"hovered",solid:a.default,muted:o.default}),readOnly:e.input({base:r,dark:t,mode:"default",state:"readOnly",solid:a.default,muted:o.default})},invalid:{enabled:e.input({base:r,dark:t,mode:"invalid",state:"enabled",solid:a.default,muted:o.default}),disabled:e.input({base:r,dark:t,mode:"invalid",state:"disabled",solid:a.default,muted:o.default}),hovered:e.input({base:r,dark:t,mode:"invalid",state:"hovered",solid:a.default,muted:o.default}),readOnly:e.input({base:r,dark:t,mode:"invalid",state:"readOnly",solid:a.default,muted:o.default})}},selectable:{default:i(e,r,t,a,o,"default"),primary:i(e,r,t,a,o,"primary"),positive:i(e,r,t,a,o,"positive"),caution:i(e,r,t,a,o,"caution"),critical:i(e,r,t,a,o,"critical")},spot:{gray:e.spot({base:r,dark:t,key:"gray"}),blue:e.spot({base:r,dark:t,key:"blue"}),purple:e.spot({base:r,dark:t,key:"purple"}),magenta:e.spot({base:r,dark:t,key:"magenta"}),red:e.spot({base:r,dark:t,key:"red"}),orange:e.spot({base:r,dark:t,key:"orange"}),yellow:e.spot({base:r,dark:t,key:"yellow"}),green:e.spot({base:r,dark:t,key:"green"}),cyan:e.spot({base:r,dark:t,key:"cyan"})},syntax:e.syntax({base:r,dark:t}),solid:a,muted:o}}let h={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}}
149,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"}}}},f={code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:19,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:22,iconSize:33,lineHeight:31,letterSpacing:0}]},heading:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:700,medium:800,semibold:900,bold:900},sizes:[{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:17,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:21,iconSize:33,lineHeight:29,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:27,iconSize:41,lineHeight:35,letterSpacing:0},{ascenderHeight:9.5,descenderHeight:8.5,fontSize:33,iconSize:49,lineHeight:41,letterSpacing:0},{ascenderHeight:10.5,descenderHeight:9.5,fontSize:38,iconSize:53,lineHeight:47,letterSpacing:0}]},label:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',weights:{regular:600,medium:700,semibold:800,bold:900},sizes:[{ascenderHeight:2,descenderHeight:2,fontSize:8.1,iconSize:13,lineHeight:10,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:9.5,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:10.8,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.25,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:13.6,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:15,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:18,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},p=new WeakMap;function g(e){let t=p.get(e);if(t)return t;let n=b(e,e.card.enabled),r={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:m(e,e.button.default),ghost:m(e,e.button.ghost),bleed:m(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:y(e.input.default),invalid:y(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:m(e,e.selectable||e.muted),shadow:e.base.shadow,skeleton:{from:e.skeleton?.from||e.base.border,to:e.skeleton?.to||e.base.border},syntax:e.syntax};return p.set(e,r),r}function m(e,t){return{default:{enabled:b(e,t.default.enabled),hovered:b(e,t.default.hovered),pressed:b(e,t.default.pressed),selected:b(e,t.default.selected),disabled:b(e,t.default.disabled)},neutral:{enabled:b(e,t.default.enabled),hovered:b(e,t.default.hovered),pressed:b(e,t.default.pressed),selected:b(e,t.default.selected),disabled:b(e,t.default.disabled)},primary:{enabled:b(e,t.primary.enabled),hovered:b(e,t.primary.hovered),pressed:b(e,t.primary.pressed),selected:b(e,t.primary.selected),disabled:b(e,t.primary.disabled)},suggest:{enabled:b(e,t.primary.enabled),hovered:b(e,t.primary.hovered),pressed:b(e,t.primary.pressed),selected:b(e,t.primary.selected),disabled:b(e,t.primary.disabled)},positive:{enabled:b(e,t.positive.enabled),hovered:b(e,t.positive.hovered),pressed:b(e,t.positive.pressed),selected:b(e,t.positive.selected),disabled:b(e,t.positive.disabled)},caution:{enabled:b(e,t.caution.enabled),hovered:b(e,t.caution.hovered),pressed:b(e,t.caution.pressed),selected:b(e,t.caution.selected),disabled:b(e,t.caution.disabled)},critical:{enabled:b(e,t.critical.enabled),hovered:b(e,t.critical.hovered),pressed:b(e,t.critical.pressed),selected:b(e,t.critical.selected),disabled:b(e,t.critical.disabled)}}}function b(e,t){return{...t,avatar:{gray:{bg:e.spot.gray,fg:e.base.bg},blue:{bg:e.spot.blue,fg:e.base.bg},purple:{bg:e.spot.purple,fg:e.base.bg},magenta:{bg:e.spot.magenta,fg:e.base.bg},red:{bg:e.spot.red,fg:e.base.bg},orange:{bg:e.spot.orange,fg:e.base.bg},yellow:{bg:e.spot.yellow,fg:e.base.bg},green:{bg:e.spot.green,fg:e.base.bg}
149,cyan:{bg:e.spot.cyan,fg:e.base.bg}},badge:{default:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,dot:e.muted.default.enabled.muted.fg,icon:e.muted.default.enabled.muted.fg},neutral:{bg:e.muted.transparent.enabled.bg,fg:e.muted.transparent.enabled.fg,dot:e.muted.transparent.enabled.muted.fg,icon:e.muted.transparent.enabled.muted.fg},primary:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},suggest:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},positive:{bg:e.muted.positive.enabled.bg,fg:e.muted.positive.enabled.fg,dot:e.muted.positive.enabled.muted.fg,icon:e.muted.positive.enabled.muted.fg},caution:{bg:e.muted.caution.enabled.bg,fg:e.muted.caution.enabled.fg,dot:e.muted.caution.enabled.muted.fg,icon:e.muted.caution.enabled.muted.fg},critical:{bg:e.muted.critical.enabled.bg,fg:e.muted.critical.enabled.fg,dot:e.muted.critical.enabled.muted.fg,icon:e.muted.critical.enabled.muted.fg}},kbd:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,border:e.muted.default.enabled.border},muted:{...e.muted.default.enabled.muted,bg:t.bg2||t.bg},skeleton:{from:t.skeleton?.from||t.border,to:t.skeleton?.to||t.border}}}function y(e){return{enabled:v(e.enabled),disabled:v(e.disabled),readOnly:v(e.readOnly),hovered:v(e.hovered)}}function v(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let x=new WeakMap;function w(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=x.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...h.avatar,...e.sanity.avatar},button:{...h.button,...e.sanity.button},card:h.card,color:g(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...h.input,...e.sanity.input,checkbox:{...h.input.checkbox,...e.sanity.input.checkbox},radio:{...h.input.radio,...e.sanity.input.radio},switch:{...h.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??h.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return x.set(e,n),n}function k(e){return 2===e._version}let S=new WeakMap,E=new WeakMap;function A(e){let t=E.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:s,font:a,input:o,media:l,radius:u,shadow:c,space:d,style:h}=e;return{_version:0,avatar:n,button:r,container:s,color:{light:{transparent:C(i.light.transparent),default:C(i.light.default),primary:C(i.light.primary),positive:C(i.light.positive),caution:C(i.light.caution),critical:C(i.light.critical)},dark:{transparent:C(i.dark.transparent),default:C(i.dark.default),primary:C(i.dark.primary),positive:C(i.dark.positive),caution:C(i.dark.caution),critical:C(i.dark.critical)}},focusRing:o.text.focusRing,fonts:a,input:o,media:l,radius:u,shadows:c,space:d,styles:h,v2:e}}function C(e){return{base:{bg:e.bg,fg:e.fg,border:e.border,focusRing:e.focu
149sRing,shadow:e.shadow},button:e.button,card:e.selectable.default,dark:e._dark,input:{default:P(e.input.default),invalid:P(e.input.invalid)},muted:{...e.button.ghost,transparent:e.button.ghost.default},solid:{...e.button.default,transparent:e.button.default.default},selectable:e.selectable,spot:{gray:e.avatar.gray.bg,blue:e.avatar.blue.bg,purple:e.avatar.purple.bg,magenta:e.avatar.magenta.bg,red:e.avatar.red.bg,orange:e.avatar.orange.bg,yellow:e.avatar.yellow.bg,green:e.avatar.green.bg,cyan:e.avatar.cyan.bg},syntax:e.syntax}}function P(e){return{enabled:T(e.enabled),disabled:T(e.disabled),readOnly:T(e.readOnly),hovered:T(e.hovered)}}function T(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let M=["multiply","screen"],j=["transparent","default","neutral","primary","suggest","positive","caution","critical"],R=["default","neutral","primary","suggest","positive","caution","critical"],I=["enabled","hovered","pressed","selected","disabled"],O=["default","ghost","bleed"],_=["default","invalid"],D=["enabled","hovered","readOnly","disabled"];function V(e){return r.V0.includes(e)}function $(e){return/^\d+%$/.test(e)}function z(e){var t;let n=e.split("/"),i=n.shift()||"",[s,a]=i.split(" ");if(V(s)){let e=n.shift()||"";return $(a)?{type:"color",tint:s,mix:Number(a.slice(0,-1))/100}:L(e)?{type:"color",tint:s,opacity:Number(e)}:{type:"color",tint:s}}if("black"===(t=s)||"white"===t){let e=n.shift()||"";return $(a)?{type:"color",key:s,mix:Number(a.slice(0,-1))/100}:L(e)?{type:"color",key:s,opacity:Number(e)}:{type:"color",key:s}}if(r.Cv.includes(s)){let[e,t]=(i=n.shift()||"").split(" ");if(V(e)){let r=n.shift()||"";return $(t)?{type:"color",hue:s,tint:e,mix:Number(t.slice(0,-1))/100}:L(r)?{type:"color",hue:s,tint:e,opacity:Number(r)}:{type:"color",hue:s,tint:e}}return{type:"hue",value:s}}if(M.includes(s))return{type:"blendMode",value:s}}[...r.Cv],[...j],[...R],[...I],[..._],[...D];function L(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}let F=["500","500"];function N(e,t=F){var n;let r,{hue:i,scheme:s}=e,a=z(t[+("light"!==s)]);if(!a||"color"!==a.type)throw Error(`Invalid color token: ${t[0]}`);return n={...a,hue:a.hue||i},r="",r="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0!==n.mix?`${r} ${100*n.mix}%`:(void 0!==n.opacity&&(r+=`/${n.opacity}`),r)}let B={base:{"*":{_blend:["multiply","screen"],accent:{fg:["purple/600","purple/400"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},backdrop:["gray/200/0.5","black/0.5"],badge:{"*":{bg:["100","900"],fg:["600","400"],icon:["500","500"],dot:["500","500"]},positive:{bg:["200 50%","900"],fg:["600","500"]},caution:{bg:["200 50%","900"],fg:["600","500"]}},bg:["50","950"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["800","200"],focusRing:["blue/500","blue/500"],icon:["600","400"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/600","blue/300"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},shadow:{outline:["500/0.3","500/0.4"],umbra:["gray/500/0.1","black/0.2"],penumbra:["gray/500/0.07","black/0.14"],ambient:["gray/500/0.06","black/0.12"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},transparent:{bg:["50","black"]},default:{bg:["white","950"],fg:["800","200"],muted:{fg:["600","400"]}},primary:{_hue:"blue"},suggest:{_hue:"purple"},positive:{_hue:"green",shadow:{outline:["500/0.4","500/0.4"]}},caution:{_hue:"yellow",shadow:{outline:["600/0.3","500/0.4"]}},critical:{_hue:"red"}},button:{default:{"*":{"*":{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500/0","400/0"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},hovered:{bg:["600","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/500","gray/400"],fg:["white","black"]}},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["300","600"],code:{bg:["950","50"],fg:["300","600"]},fg:["300","600"],muted:{bg:["950","50"],fg:["300","600"]},kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},bg:["800","200"],muted:{bg:["950","50"],fg:["400","600"]}},hovered:{bg:["900","100"]},pressed:{bg:["black","white"]},selected:{bg:["black","white"]}}},ghost:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 60%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["50","950"],border:["100","900"],code:{bg:["500 10%","400 10%"],fg:["700 60%","400 60%"]},fg:["600","400"],icon:["700 60%","300 60%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 60%","blue/300 60%"]},muted:{bg:["100","950"],fg:["700 60%","300 60%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["100","900"],fg:["700","300"]},pressed:{bg:["200","800"],fg:["800","200"]},selected:{bg:["200","800"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
149,badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["400","600"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","700"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{bg:["50","950"],fg:["400","600"],border:["100","900"],placeholder:["200","800 50%"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","950"]},pressed:{bg:["100","900"]},selected:{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["multiply","screen"],bg:["white","black"],fg:["black","white"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500 20%","400 20%"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["500 10%","400 10%"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{bg:["50 50%","950 50%"],fg:["200","800"]}}},default:{selected:{_hue:"blue"}},critical:{disabled:{bg:["50 50%","950 50%"]}}},syntax:{atrule:["purple/600","purple/400"],attrName:["green/600","green/400"],attrValue:["yellow/600","yellow/400"],attribute:["yellow/600","yellow/400"],boolean:["purple/600","purple/400"],builtin:["purple/600","purple/400"],c
149data:["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 H(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function U(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(W,{})}function W(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];H(r)&&H(i)?e[n]=U(r,i):e[n]=i}return e}function G(e,t){let{scheme:n}=e,r={};for(let e of j)r[e]=function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],s={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==n)],_dark:"dark"===n,accent:{fg:N(s,i?.accent?.fg)},avatar:Y({scheme:n},i),backdrop:N(s,i?.backdrop),badge:K(i?.badge,{scheme:n},t),bg:N(s,i?.bg),border:N(s,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of O)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,s={};for(let e of R)s[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:s}=e,a={};for(let e of I)a[e]=function(e,t){let{cardTone:n,mode:r,tone:i,scheme:s,state:a}=e,o=t?.color?.base?.[n],l=t?.color?.button?.[r]?.[i]?.[a],u=l?._hue||o?._hue||"gray",c=l?._blend||["screen","multiply"],d={hue:u,scheme:s};return{_blend:c[+("light"!==s)],accent:{fg:N(d,l?.accent?.fg)},avatar:Y({scheme:s},l),badge:K(l?.badge,{scheme:s},t),bg:N(d,l?.bg),border:N(d,l?.border),code:{bg:N(d,l?.code?.bg),fg:N(d,l?.code?.fg)},fg:N(d,l?.fg),icon:N(d,l?.icon),muted:{bg:N(d,l?.muted?.bg),fg:N(d,l?.muted?.fg)},kbd:{bg:N(d,l?.kbd?.bg),fg:N(d,l?.kbd?.fg),border:N(d,l?.kbd?.border)},link:{fg:N(d,l?.link?.fg)},skeleton:{from:N(d,l?.skeleton?.from),to:N(d,l?.skeleton?.to)}}}({cardTone:n,mode:r,tone:s,scheme:i,state:e},t);return a}({cardTone:n,mode:r,scheme:i,tone:e},t);return s}({cardTone:r,scheme:n,mode:e},t);return i}({scheme:n,tone:r},t),code:{bg:N(s,i?.code?.bg),fg:N(s,i?.code?.fg)},fg:N(s,i?.fg),focusRing:N(s,i?.focusRing),icon:N(s,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:X({mode:"default",scheme:n,tone:r},t),invalid:X({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:N(s,i?.kbd?.bg),fg:N(s,i?.kbd?.fg),border:N(s,i?.kbd?.border)},link:{fg:N(s,i?.link?.fg)},muted:{bg:N(s,i?.muted?.bg),fg:N(s,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of R)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,s={};for(let e of I)s[e]=function(e,t){let{cardTone:n,scheme:r,state:i,tone:s}=e,a=t?.color?.base?.[n],o=t?.color?.selectable?.[s]?.[i],l=o?._hue||a?._hue||"gray",u=o?._blend||["screen","multiply"],c={hue:l,scheme:r};return{_blend:u[+("light"!==r)],accent:{fg:N(c,o?.accent?.fg)},avatar:Y({scheme:r},o),badge:K(o?.badge,{scheme:r},t),bg:N(c,o?.bg),border:N(c,o?.border),code:{bg:N(c,o?.code?.bg),fg:N(c,o?.code?.fg)},fg:N(c,o?.fg),icon:N(c,o?.icon),muted:{bg:N(c,o?.muted?.bg),fg:N(c,o?.muted?.fg)},kbd:{bg:N(c,o?.kbd?.bg),fg:N(c,o?.kbd?.fg),border:N(c,o?.kbd?.border)},link:{fg:N(c,o?.link?.fg)},skeleton:{from:N(c,o?.skeleton?.from),to:N(c,o?.skeleton?.to)}}}({cardTone:n,tone:i,scheme:r,state:e},t);return s}({cardTone:r,scheme:n,tone:e},t);return i}({scheme:n,tone:r},t),shadow:function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],s={hue:i?._hue||"gray",scheme:n};return{outline:N(s,i?.shadow?.outline),umbra:N(s,i?.shadow?.umbra),penumbra:N(s,i?.shadow?.penumbra),ambient:N(s,i?.shadow?.ambient)}}
149({scheme:n,tone:r},t),skeleton:{from:N(s,i?.skeleton?.from),to:N(s,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:N(i,r?.atrule),attrName:N(i,r?.attrName),attrValue:N(i,r?.attrValue),attribute:N(i,r?.attribute),boolean:N(i,r?.boolean),builtin:N(i,r?.builtin),cdata:N(i,r?.cdata),char:N(i,r?.char),class:N(i,r?.class),className:N(i,r?.className),comment:N(i,r?.comment),constant:N(i,r?.constant),deleted:N(i,r?.deleted),doctype:N(i,r?.doctype),entity:N(i,r?.entity),function:N(i,r?.function),hexcode:N(i,r?.hexcode),id:N(i,r?.id),important:N(i,r?.important),inserted:N(i,r?.inserted),keyword:N(i,r?.keyword),number:N(i,r?.number),operator:N(i,r?.operator),prolog:N(i,r?.prolog),property:N(i,r?.property),pseudoClass:N(i,r?.pseudoClass),pseudoElement:N(i,r?.pseudoElement),punctuation:N(i,r?.punctuation),regex:N(i,r?.regex),selector:N(i,r?.selector),string:N(i,r?.string),symbol:N(i,r?.symbol),tag:N(i,r?.tag),unit:N(i,r?.unit),url:N(i,r?.url),variable:N(i,r?.variable)}}({scheme:n},t)}}({scheme:n,tone:e},t);return r}function Y(e,t){let{scheme:n}=e;return{gray:q({color:"gray",scheme:n},t),blue:q({color:"blue",scheme:n},t),purple:q({color:"purple",scheme:n},t),magenta:q({color:"magenta",scheme:n},t),red:q({color:"red",scheme:n},t),orange:q({color:"orange",scheme:n},t),yellow:q({color:"yellow",scheme:n},t),green:q({color:"green",scheme:n},t),cyan:q({color:"cyan",scheme:n},t)}}function q(e,t){let{color:n,scheme:r}=e,i=t?.avatar?.[n],s={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==r)],bg:N(s,i?.bg),fg:N(s,i?.fg)}}function K(e,t,n){let{scheme:r}=t,i={};for(let t of R)i[t]=function(e,t,n){let{scheme:r,tone:i}=t,s=e?.[i],a={hue:s?._hue||n?.color?.base?.[i]?._hue||"gray",scheme:r};return{bg:N(a,s?.bg),fg:N(a,s?.fg),dot:N(a,s?.dot),icon:N(a,s?.icon)}}(e,{scheme:r,tone:t},n);return i}function X(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:Z({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:Z({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:Z({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:Z({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function Z(e,t){let{cardTone:n,mode:r,scheme:i,state:s}=e,a=t?.color?.base?.[n],o=t?.color?.input?.[r]?.[s],l=o?._hue||a?._hue||"gray",u=o?._blend||["screen","multiply"],c={hue:l,scheme:i};return{_blend:u[+("light"!==i)],bg:N(c,o?.bg),border:N(c,o?.border),fg:N(c,o?.fg),muted:{bg:N(c,o?.muted?.bg)},placeholder:N(c,o?.placeholder)}}let J=r.yW;function Q(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function ee(e,t,n,r,i){var s;return n*(1-(s=Q((i-e)/(t-e))))+r*s}function et(e){return Math.round(e)}function en(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function er(e){let t=et(Q(Math.round(e.r),0,255)),n=et(Q(Math.round(e.g),0,255)),r=et(Q(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+r).toString(16).slice(1)}let ei=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function es(e){if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw Error("parseColor: expected a string");if("#"===e[0]&&(4===e.length||7===e.length)&&function(e){for(let t of e)if(-1==="0123456789ABCDEFabcdef".indexOf(t))return!1;return!0}(e.slice(1)))return en(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,n=e.l/100,r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e.h/60%2-1)),s=n-r/2,a=0,o=0,l=0;return 0<=e.h&&e.h<60?(a=r,o=i,l=0):60<=e.h&&e.h<120?(a=i,o=r,l=0):120<=e.h&&e.h<180?(a=0,o=r,l=i):180<=e.h&&e.h<240?(a=0,o=i,l=r):240<=e.h&&e.h<300?(a=i,o=0,l=r):300<=e.h&&e.h<360&&(a=r,o=0,l=i),{r:Math.round((a+s)*255),g:Math.round((o+s)*255),b:Math.round((l+s)*255)}}(function(e){let t=ei.exec(e);if(!t)throw Error(`parseHsl: string is not a HSL color: "${e}"`);return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}(e));if(e.startsWith("rgba(")){let t=e.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(t[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}function ea(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function eo(e,t){let n=es(e);return`rgba(${n.r},${n.g},${n.b},${t})`}let el=[0,255];function eu(e,t){let{bg:n,blendMode:r,colorPalette:i}=t;if("white"===n)throw Error("Cannot blend with white background");let s=z(e);if(!s||"color"!==s.type)throw Error(`Invalid color token value: ${e}`);let a="";if("black"===s.key&&(a=ec(i.black)),"white"===s.key&&(a=ec(i.white)),s.hue&&s.tint&&(a=ec(i[s.hue][s.tint])),!a)throw Error(`Invalid color token value: ${e}`);let o=a,l={blendMode:r,bg:n,black:ec(i.black),white:ec(i.white)};try{if(a=function(e,t){var n,r,i,s,a,o;let{blendMode:l}=t,u=es(e),c=es(t.black),d=es(t.white),h=t.bg?es(t.bg):"multiply"===l?d:c,f={r:[c.r,d.r],g:[c.g,d.g],b:[c.b,d.b]},p={r:Q(ee(...f.r,...el,h.r),...el),g:Q(ee(...f.g,...el,h.g),...el),b:Q(ee(...f.b,...el,h.b),...el)},g={r:Q(ee(...f.r,...el,u.r),...el),g:Q(ee(...f.g,...el,u.g),...el),b:Q(ee(...f.b,...el,u.b),...el)},m="multiply"===l?{r:255*(p.r/255*(g.r/255)),g:255*(p.g/255*(g.g/255)),b:255*(p.b/255*(g.b/255))}:{r:255*((n=p.r/255)+(r=g.r/255)-n*r),g:255*((i=p.g/255)+(s=g.g/255)-i*s),b:255*((a=p.b/255)+(o=g.b/255)-a*o)};return er({r:Q(ee(...el,...f.r,m.r),...f.r),g:Q(ee(...el,...f.g,m.g),...f.g),b:Q(ee(...el,...f.b,m.b),...f.b)})}(a,l),n&&void 0!==s.mix){var u,c,d,h,f,p,g;let e=en(n),t=en(a);a=er((u=s.mix,{r:(c=e.r,d=t.r,c+(d-c)*u),g:(h=e.g,f=t.g,h+(f-h)*u),b:(p=e.b,g=t.b,p+(g-p)*u)}))}}catch(e){throw console.warn("could not blend",a,l),e}
149return"#aN"===a&&(console.warn(`invalid color token value: ${e}`),a=o),void 0!==s.opacity&&(a=eo(a,s.opacity)),a}function ec(e){return"string"==typeof e?e:e.hex}function ed(e,t){let n=Object.entries(t),[,r]=n.find(([e])=>"transparent"===e),[,i]=n.find(([e])=>"default"===e),s=eh(r,{colorPalette:e}),a=eh(i,{colorPalette:e}),o=a.bg;if("white"===o)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",s],["default",a],...n.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,n])=>[t,eh(n,{bg:o,colorPalette:e})])])}function eh(e,t){var n,r,i,s;let{colorPalette:a,bg:o}=t,l=e._blend||"multiply",u=eu(e.bg,{colorPalette:a,bg:o,blendMode:l}),c={colorPalette:a,bg:u,blendMode:l},d=(n=e.button,r={baseBg:u,blendMode:l,colorPalette:a},{default:eg(n.default,r),ghost:eg(n.ghost,r),bleed:eg(n.bleed,r)}),h=function(e,t){let n={};for(let s of R){var r,i;n[s]=(r=e[s],i=t,{enabled:em(r.enabled,i),hovered:em(r.hovered,i),pressed:em(r.pressed,i),selected:em(r.selected,i),disabled:em(r.disabled,i)})}return n}(e.selectable,{colorPalette:a,baseBg:u,blendMode:l}),f={outline:eu(e.shadow.outline,c),umbra:eu(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}}),penumbra:eu(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}}),ambient:eu(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:eu(e.accent.fg,c)},avatar:ef(e.avatar,{baseBg:u,colorPalette:a,blendMode:l}),backdrop:eu(e.backdrop,c),badge:ep(e.badge,{baseBg:u,colorPalette:a,blendMode:l}),bg:u,border:eu(e.border,c),button:d,code:{bg:eu(e.code.bg,c),fg:eu(e.code.fg,c)},fg:eu(e.fg,c),focusRing:eu(e.focusRing,c),icon:eu(e.icon,c),input:(i=e.input,s={baseBg:u,colorPalette:a,blendMode:l},{default:eb(i.default,s),invalid:eb(i.invalid,s)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=eu(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:s,blendMode:r,colorPalette:i};return{bg:s,fg:eu(e.fg,a),border:eu(e.border,a)}}(e.kbd,{baseBg:u,colorPalette:a,blendMode:l}),link:{fg:eu(e.link.fg,c)},muted:{bg:eu(e.muted.bg,c),fg:eu(e.muted.fg,c)},shadow:f,skeleton:{from:eu(e.skeleton.from,c),to:eu(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:n,baseBg:r,blendMode:i}=t,s={colorPalette:n,bg:r,blendMode:i};return{atrule:eu(e.atrule,s),attrName:eu(e.attrName,s),attrValue:eu(e.attrValue,s),attribute:eu(e.attribute,s),boolean:eu(e.boolean,s),builtin:eu(e.builtin,s),cdata:eu(e.cdata,s),char:eu(e.char,s),class:eu(e.class,s),className:eu(e.className,s),comment:eu(e.comment,s),constant:eu(e.constant,s),deleted:eu(e.deleted,s),doctype:eu(e.doctype,s),entity:eu(e.entity,s),function:eu(e.function,s),hexcode:eu(e.hexcode,s),id:eu(e.id,s),important:eu(e.important,s),inserted:eu(e.inserted,s),keyword:eu(e.keyword,s),number:eu(e.number,s),operator:eu(e.operator,s),prolog:eu(e.prolog,s),property:eu(e.property,s),pseudoClass:eu(e.pseudoClass,s),pseudoElement:eu(e.pseudoElement,s),punctuation:eu(e.punctuation,s),regex:eu(e.regex,s),selector:eu(e.selector,s),string:eu(e.string,s),symbol:eu(e.symbol,s),tag:eu(e.tag,s),unit:eu(e.unit,s),url:eu(e.url,s),variable:eu(e.variable,s)}}(e.syntax,{baseBg:u,colorPalette:a,blendMode:l}),selectable:h}}function ef(e,t){let n={};for(let i of r.Cv)n[i]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",a=eu(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:s,bg:a,fg:eu(e.fg,{bg:a,blendMode:s,colorPalette:i})}}(e[i],t);return n}function ep(e,t){let n={};for(let r of R)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=eu(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:s,blendMode:r,colorPalette:i};return{bg:s,dot:eu(e.dot,a),fg:eu(e.fg,a),icon:eu(e.icon,a)}}(e[r],t);return n}function eg(e,t){let n={};for(let s of R){var r,i;n[s]=(r=e[s],i=t,{enabled:em(r.enabled,i),hovered:em(r.hovered,i),pressed:em(r.pressed,i),selected:em(r.selected,i),disabled:em(r.disabled,i)})}return n}function em(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",a=eu(e.bg,{bg:n,blendMode:r,colorPalette:i}),o={bg:a,blendMode:s,colorPalette:i};return{_blend:s,accent:{fg:eu(e.accent.fg,o)}
149,avatar:ef(e.avatar,{baseBg:a,colorPalette:i,blendMode:s}),badge:ep(e.badge,{baseBg:a,colorPalette:i,blendMode:s}),bg:a,border:eu(e.border,o),code:{bg:eu(e.code.bg,o),fg:eu(e.code.fg,o)},fg:eu(e.fg,o),icon:eu(e.icon,o),link:{fg:eu(e.link.fg,o)},muted:{bg:eu(e.muted.bg,o),fg:eu(e.muted.fg,o)},kbd:{bg:eu(e.kbd.bg,o),fg:eu(e.kbd.fg,o),border:eu(e.kbd.border,o)},skeleton:{from:eu(e.skeleton?.from,o),to:eu(e.skeleton?.to,o)}}}function eb(e,t){return{enabled:ey(e.enabled,t),hovered:ey(e.hovered,t),readOnly:ey(e.readOnly,t),disabled:ey(e.disabled,t)}}function ey(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,s=e._blend||"multiply",a=eu(e.bg,{colorPalette:i,bg:n,blendMode:r}),o={colorPalette:i,bg:a,blendMode:s};return{_blend:s,bg:a,border:eu(e.border,o),fg:eu(e.fg,o),muted:{bg:eu(e.muted.bg,o)},placeholder:eu(e.placeholder,o)}}function ev(e){let t=function(e){let t={color:function(e){let t=U(B,e);return{base:function(e){let t={};for(let n of j)t[n]=function(e,t){let n=U(e?.base?.["*"],e?.base?.[t]),i=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:i,avatar:r.Cv.reduce((e,t)=>({...e,[t]:U({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:R.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||i,...n.badge?.["*"],...n.badge?.[r]}}),{})}}(e,n);return t}(t),button:function(e){let t={};for(let n of O)t[n]=function(e,t){let n={};for(let i of R)n[i]=function(e,t,n){let i={};for(let s of I)i[s]=function(e,t,n,i){let s=U(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[i],e?.button?.[n]?.[t]?.[i]),a=s._hue||e?.base?.[t]?._hue;return{...s,_hue:a,avatar:r.Cv.reduce((e,t)=>({...e,[t]:U({_hue:t},s.avatar?.["*"],s.avatar?.[t])}),{}),badge:R.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||a,...s.badge?.["*"],...s.badge?.[n]}}),{})}}(e,n,t,s);return i}(e,t,i);return n}(e,n);return t}(t),input:function(e){let t={};for(let n of _)t[n]=function(e,t){let n={};for(let r of D)n[r]=function(e,t,n){let r=U(e?.input?.["*"]?.["*"],e?.
149input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),i=r._hue||e?.input?.[t]?._hue;return{...r,_hue:i}}(e,t,r);return n}(e,n);return t}(t),selectable:function(e){let t={};for(let n of R)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of I)n[i]=function(e,t,n){let i=U(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),s=i._hue||e?.base?.[t]?._hue;return{...i,_hue:s,avatar:r.Cv.reduce((e,t)=>({...e,[t]:U({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:R.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||s,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,t,i);return n}(e,n);return t}(t),syntax:t.syntax}}(e?.color)};return{light:G({scheme:"light"},t),dark:G({scheme:"dark"},t)}}(e);return A({_version:2,avatar:e?.avatar??h.avatar,button:e?.button??h.button,card:e?.card??h.card,color:function(e,t){let n=t?.palette??J;return{light:ed(n,e.light),dark:ed(n,e.dark)}}(t,e),container:e?.container??h.container,font:e?.font??f,input:e?.input??h.input,layer:e?.layer??h.layer,media:e?.media??h.media,radius:e?.radius??h.radius,shadow:e?.shadow??h.shadow,space:e?.space??h.space,style:e?.style??h.style})}let ex=new Map;function ew(e,t,n){var r;let i=function(e,t,n){let r=ex.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(i)return i;let s=k(e)?A(e):e,a=k(e)?e:function(e){if(e.v2)return e.v2;let t=S.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:s,fonts:a,input:o,layer:l,media:u,radius:c,shadows:d,space:f,styles:p}=e,m={_version:2,avatar:{...h.avatar,...n},button:{...h.button,...r},card:h.card,color:{light:{transparent:g(i.light.transparent),default:g(i.light.default),neutral:g(i.light.transparent),primary:g(i.light.primary),suggest:g(i.light.primary),positive:g(i.light.positive),caution:g(i.light.caution),critical:g(i.light.critical)},dark:{transparent:g(i.dark.transparent),default:g(i.dark.default),neutral:g(i.dark.transparent),primary:g(i.dark.primary),suggest:g(i.dark.primary),positive:g(i.dark.positive),caution:g(i.dark.caution),critical:g(i.dark.critical)}},container:s,font:a,input:{...h.input,...o,checkbox:{...h.input.checkbox,...o.checkbox},radio:{...h.input.radio,...o.radio},switch:{...h.input.switch,...o.switch}},layer:l??h.layer,media:u,radius:c,shadow:d,space:f,style:p};return S.set(e,m),m}(e),o=s.color[t]||s.color.light,l=o[n]||o.default,u=s.layer||h.layer,c=a.color[t]||a.color.light,d="neutral"in(r=c[n]||c.default).badge?r:{...r,badge:{...r.badge,neutral:r.badge.default,suggest:r.badge.primary},button:{bleed:{...r.button.bleed,neutral:r.button.bleed.default,suggest:r.button.bleed.primary},default:{...r.button.default,neutral:r.button.default.default,suggest:r.button.default.primary},ghost:{...r.button.ghost,neutral:r.button.ghost.default,suggest:r.button.ghost.primary}},selectable:{...r.selectable,neutral:r.selectable.default,suggest:r.selectable.primary}},f=a.layer||h.layer,p={sanity:{...s,color:l,layer:u,v2:{...a,_resolved:!0,color:d,layer:f}}};return function(e,t,n,r){ex.has(t)||ex.set(t,new Map);let i=ex.get(t);i.has(n)||i.set(n,new WeakMap),i.get(n).set(e,r)}(e,t,n,p),p}},65531:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},68972:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});let r="undefined"!=typeof window},70771:(e,t,n)=>{var r=n(98233),i=n(48611);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},75145:(e,t,n)=>{var r=n(50851),i=n(65531),s=n(17855);e.exports=function(e){return i(e)?s(e):r(e)}},76408:(e,t,n)=>{"use strict";let r;function i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function s(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function a(e,t,n,r){if("function"==typeof t){let[i,a]=s(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=s(r);t=t(void 0!==n?n:e.custom,i,a)}return t}function o(e,t,n){let r=e.getProps();return a(r,t,void 0!==n?n:r.custom,e)}function l(e,t){return e?.[t]??e?.default??e}n.d(t,{P:()=>sP});let u=e=>e,c={},d=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],h={value:null,addProjectionMetrics:null};function f(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=d.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(o)}let c={schedule:(e,t=!1,s=!1)=>{let o=s&&i?n:r;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(o=e,i){s=!0;return}
149i=!0,[n,r]=[r,n],n.forEach(u),t&&h.value&&h.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,c.process(e))}};return c}(s,t?n:void 0),e),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:f,update:p,preRender:g,render:m,postRender:b}=a,y=()=>{let s=c.useManualTiming?i.timestamp:performance.now();n=!1,c.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),f.process(i),p.process(i),g.process(i),m.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:d.reduce((e,t)=>{let r=a[t];return e[t]=(e,t=!1,i=!1)=>(n||v(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<d.length;t++)a[d[t]].cancel(e)},state:i,steps:a}}let{schedule:p,cancel:g,state:m,steps:b}=f("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:u,!0),y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],v=new Set(y),x=new Set(["width","height","top","left","right","bottom",...y]);function w(e,t){-1===e.indexOf(t)&&e.push(t)}function k(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class S{constructor(){this.subscriptions=[]}add(e){return w(this.subscriptions,e),()=>k(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function E(){r=void 0}let A={now:()=>(void 0===r&&A.set(m.isProcessing||c.useManualTiming?m.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(E)}},C=e=>!isNaN(parseFloat(e)),P={current:void 0};class T{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=A.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=A.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=C(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new S);let n=this.events[e].add(t);return"change"===e?()=>{n(),p.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return P.current&&P.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=A.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function M(e,t){return new T(e,t)}let j=e=>Array.isArray(e),R=e=>!!(e&&e.getVelocity);function I(e,t){let n=e.getValue("willChange");if(R(n)&&n.add)return n.add(t);if(!n&&c.WillChange){let n=new c.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let O=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_="data-"+O("framerAppearId"),D=(e,t)=>n=>t(e(n)),V=(...e)=>e.reduce(D),$=(e,t,n)=>n>t?t:n<e?e:n,z=e=>1e3*e,L=e=>e/1e3,F={layout:0,mainThread:0,waapi:0},N=()=>{},B=()=>{},H=e=>t=>"string"==typeof t&&t.startsWith(e),U=H("--"),W=H("var(--"),G=e=>!!W(e)&&Y.test(e.split("/*")[0].trim()),Y=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,q={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},K={...q,transform:e=>$(0,1,e)},X={...q,default:1},Z=e=>Math.round(1e5*e)/1e5,J=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ee=(e,t)=>
149n=>!!("string"==typeof n&&Q.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),et=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,s,a,o]=r.match(J);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},en=e=>$(0,255,e),er={...q,transform:e=>Math.round(en(e))},ei={test:ee("rgb","red"),parse:et("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+er.transform(e)+", "+er.transform(t)+", "+er.transform(n)+", "+Z(K.transform(r))+")"},es={test:ee("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ei.transform},ea=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eo=ea("deg"),el=ea("%"),eu=ea("px"),ec=ea("vh"),ed=ea("vw"),eh={...el,parse:e=>el.parse(e)/100,transform:e=>el.transform(100*e)},ef={test:ee("hsl","hue"),parse:et("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+el.transform(Z(t))+", "+el.transform(Z(n))+", "+Z(K.transform(r))+")"},ep={test:e=>ei.test(e)||es.test(e)||ef.test(e),parse:e=>ei.test(e)?ei.parse(e):ef.test(e)?ef.parse(e):es.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ei.transform(e):ef.transform(e),getAnimatableNone:e=>{let t=ep.parse(e);return t.alpha=0,ep.transform(t)}},eg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,em="number",eb="color",ey=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ev(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],s=0,a=t.replace(ey,e=>(ep.test(e)?(r.color.push(s),i.push(eb),n.push(ep.parse(e))):e.startsWith("var(")?(r.var.push(s),i.push("var"),n.push(e)):(r.number.push(s),i.push(em),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function ex(e){return ev(e).values}function ew(e){let{split:t,types:n}=ev(e),r=t.length;return e=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],void 0!==e[s]){let t=n[s];t===em?i+=Z(e[s]):t===eb?i+=ep.transform(e[s]):i+=e[s]}return i}}let ek=e=>"number"==typeof e?0:ep.test(e)?ep.getAnimatableNone(e):e,eS={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(J)?.length||0)+(e.match(eg)?.length||0)>0},parse:ex,createTransformer:ew,getAnimatableNone:function(e){let t=ex(e);return ew(e)(t.map(ek))}};function eE(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eA(e,t){return n=>n>0?t:e}let eC=(e,t,n)=>e+(t-e)*n,eP=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},eT=[es,ei,ef],eM=e=>eT.find(t=>t.test(e));function ej(e){let t=eM(e);if(N(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ef&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,s=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;i=eE(o,r,e+1/3),s=eE(o,r,e),a=eE(o,r,e-1/3)}else i=s=a=n;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(n)),n}let eR=(e,t)=>{let n=ej(e),r=ej(t);if(!n||!r)return eA(e,t);let i={...n};return e=>(i.red=eP(n.red,r.red,e),i.green=eP(n.green,r.green,e),i.blue=eP(n.blue,r.blue,e),i.alpha=eC(n.alpha,r.alpha,e),ei.transform(i))},eI=new Set(["none","hidden"]);function eO(e,t){return n=>eC(e,t,n)}function e_(e){return"number"==typeof e?eO:"string"==typeof e?G(e)?eA:ep.test(e)?eR:e$:Array.isArray(e)?eD:"object"==typeof e?ep.test(e)?eR:eV:eA}function eD(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>e_(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function eV(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=e_(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let e$=(e,t)=>{let n=eS.createTransformer(t),r=ev(e),i=ev(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?eI.has(e)&&!i.values.length||eI.has(t)&&!r.values.length?function(e,t){return eI.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):V(eD(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}
149return n}(r,i),i.values),n):(N(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eA(e,t))};function ez(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?eC(e,t,n):e_(e)(e,t)}let eL=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>p.update(t,e),stop:()=>g(t),now:()=>m.isProcessing?m.timestamp:A.now()}},eF=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function eN(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function eB(e,t,n){var r,i;let s=Math.max(t-5,0);return r=n-e(s),(i=t-s)?1e3/i*r:0}let eH={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eU(e,t){return e*Math.sqrt(1-t*t)}let eW=["duration","bounce"],eG=["stiffness","damping","mass"];function eY(e,t){return t.some(t=>void 0!==e[t])}function eq(e=eH.visualDuration,t=eH.bounce){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:eH.velocity,stiffness:eH.stiffness,damping:eH.damping,mass:eH.mass,isResolvedFromDuration:!1,...e};if(!eY(e,eG)&&eY(e,eW))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*$(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:eH.mass,stiffness:r,damping:i}}else{let n=function({duration:e=eH.duration,bounce:t=eH.bounce,velocity:n=eH.velocity,mass:r=eH.mass}){let i,s;N(e<=z(eH.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=$(eH.minDamping,eH.maxDamping,a),e=$(eH.minDuration,eH.maxDuration,L(e)),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/eU(t,a)*Math.exp(-i)},s=t=>{let r=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=eU(Math.pow(t,2),a);return(r*n+n-s)*o*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),s=t=>e*e*(n-t)*Math.exp(-t*e));let o=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,s,5/e);if(e=z(e),isNaN(o))return{stiffness:eH.stiffness,damping:eH.damping,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:eH.mass}).isResolvedFromDuration=!0}return t}({...r,velocity:-L(r.velocity||0)}),g=f||0,m=c/(2*Math.sqrt(u*d)),b=o-a,y=L(Math.sqrt(u/d)),v=5>Math.abs(b);if(i||(i=v?eH.restSpeed.granular:eH.restSpeed.default),s||(s=v?eH.restDelta.granular:eH.restDelta.default),m<1){let e=eU(y,m);n=t=>o-Math.exp(-m*y*t)*((g+m*y*b)/e*Math.sin(e*t)+b*Math.cos(e*t))}else if(1===m)n=e=>o-Math.exp(-y*e)*(b+(g+y*b)*e);else{let e=y*Math.sqrt(m*m-1);n=t=>{let n=Math.exp(-m*y*t),r=Math.min(e*t,300);return o-n*((g+m*y*b)*Math.sinh(r)+e*b*Math.cosh(r))/e}}let x={calculatedDuration:p&&h||null,next:e=>{let t=n(e);if(p)l.done=e>=h;else{let r=0===e?g:0;m<1&&(r=0===e?z(g):eB(n,e,t));let a=Math.abs(o-t)<=s;l.done=Math.abs(r)<=i&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(eN(x),2e4),t=eF(t=>x.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return x}function eK({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h,f=e[0],p={done:!1,value:f},g=e=>void 0!==o&&e<o||void 0!==l&&e>l,m=e=>void 0===o?l:void 0===l||Math.abs(o-e)<Math.abs(l-e)?o:l,b=n*t,y=f+b,v=void 0===a?y:a(y);v!==y&&(b=v-f);let x=e=>-b*Math.exp(-e/r),w=e=>v+x(e),k=e=>{let t=x(e),n=w(e);p.done=Math.abs(t)<=u,p.value=p.done?v:n},S=e=>{g(p.value)&&(d=e,h=eq({keyframes:[p.value,m(p.value)],velocity:eB(w,e,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;
149return(h||void 0!==d||(t=!0,k(e),S(e)),void 0!==d&&e>=d)?h.next(e-d):(t||k(e),p)}}}eq.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(eN(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:L(i)}}(e,100,eq);return e.ease=t.ease,e.duration=z(t.duration),e.type="keyframes",e};let eX=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function eZ(e,t,n,r){if(e===t&&n===r)return u;let i=t=>(function(e,t,n,r,i){let s,a,o=0;do(s=eX(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(s)>1e-7&&++o<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:eX(i(e),t,r)}let eJ=eZ(.42,0,1,1),eQ=eZ(0,0,.58,1),e0=eZ(.42,0,.58,1),e1=e=>Array.isArray(e)&&"number"!=typeof e[0],e2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,e5=e=>t=>1-e(1-t),e3=eZ(.33,1.53,.69,.99),e4=e5(e3),e6=e2(e4),e8=e=>(e*=2)<1?.5*e4(e):.5*(2-Math.pow(2,-10*(e-1))),e9=e=>1-Math.sin(Math.acos(e)),e7=e5(e9),te=e2(e9),tt=e=>Array.isArray(e)&&"number"==typeof e[0],tn={linear:u,easeIn:eJ,easeInOut:e0,easeOut:eQ,circIn:e9,circInOut:te,circOut:e7,backIn:e4,backInOut:e6,backOut:e3,anticipate:e8},tr=e=>"string"==typeof e,ti=e=>{if(tt(e)){B(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return eZ(t,n,r,i)}return tr(e)?(B(void 0!==tn[e],`Invalid easing type '${e}'`),tn[e]):e},ts=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function ta({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let s=e1(r)?r.map(ti):ti(r),a={done:!1,value:t[0]},o=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let s=e.length;if(B(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,n){let r=[],i=n||c.mix||ez,s=e.length-1;for(let n=0;n<s;n++){let s=i(e[n],e[n+1]);t&&(s=V(Array.isArray(t)?t[n]||u:t,s)),r.push(s)}return r}(t,r,i),l=o.length,d=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ts(e[r],e[r+1],n);return o[r](i)};return n?t=>d($(e[0],e[s-1],t)):d}((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ts(0,t,r);e.push(eC(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||e0).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}let to=e=>null!==e;function tl(e,{repeat:t,repeatType:n="loop"},r,i=1){let s=e.filter(to),a=i<0||t&&"loop"!==n&&t%2==1?0:s.length-1;return a&&void 0!==r?r:s[a]}let tu={decay:eK,inertia:eK,tween:ta,keyframes:ta,spring:eq};function tc(e){"string"==typeof e.type&&(e.type=tu[e.type])}class td{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let th=e=>e/100;class tf extends td{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==A.now()&&this.tick(A.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},F.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;tc(e);let{type:t=ta,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=e,{keyframes:a}=e,o=t||ta;o!==ta&&"number"!=typeof a[0]&&(this.mixKeyframes=V(th,ez(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=eN(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:h,type:f,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let m=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?m<0:m>r;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let y=this.currentTime,v=n;if(c){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(n=1-n,h&&(n-=h
149/a)):"mirror"===d&&(v=s)),y=$(0,1,n)*a}let x=b?{done:!1,value:u[0]}:v.next(y);i&&(x.value=i(x.value));let{done:w}=x;b||null===o||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&f!==eK&&(x.value=tl(u,this.options,g,this.speed)),p&&p(x.value),k&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return L(this.calculatedDuration)}get time(){return L(this.currentTime)}set time(e){e=z(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(A.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=L(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=eL,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(A.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,F.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let tp=e=>180*e/Math.PI,tg=e=>tb(tp(Math.atan2(e[1],e[0]))),tm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tg,rotateZ:tg,skewX:e=>tp(Math.atan(e[1])),skewY:e=>tp(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tb=e=>((e%=360)<0&&(e+=360),e),ty=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tx={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ty,scaleY:tv,scale:e=>(ty(e)+tv(e))/2,rotateX:e=>tb(tp(Math.atan2(e[6],e[5]))),rotateY:e=>tb(tp(Math.atan2(-e[2],e[0]))),rotateZ:tg,rotate:tg,skewX:e=>tp(Math.atan(e[4])),skewY:e=>tp(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tw(e){return+!!e.includes("scale")}function tk(e,t){let n,r;if(!e||"none"===e)return tw(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=tx,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=tm,r=t}if(!r)return tw(t);let s=n[t],a=r[1].split(",").map(tE);return"function"==typeof s?s(a):a[s]}let tS=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return tk(n,t)};function tE(e){return parseFloat(e.trim())}let tA=e=>e===q||e===eu,tC=new Set(["x","y","z"]),tP=y.filter(e=>!tC.has(e)),tT={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>tk(t,"x"),y:(e,{transform:t})=>tk(t,"y")};tT.translateX=tT.x,tT.translateY=tT.y;let tM=new Set,tj=!1,tR=!1,tI=!1;function tO(){if(tR){let e=Array.from(tM).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return tP.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}
149),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tR=!1,tj=!1,tM.forEach(e=>e.complete(tI)),tM.clear()}function t_(){tM.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tR=!0)})}class tD{constructor(e,t,n,r,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tM.add(this),tj||(tj=!0,p.read(t_),p.resolveKeyframes(tO))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),s=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),tM.delete(this)}cancel(){"scheduled"===this.state&&(tM.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tV=e=>e.startsWith("--");function t$(e){let t;return()=>(void 0===t&&(t=e()),t)}let tz=t$(()=>void 0!==window.ScrollTimeline),tL={},tF=function(e,t){let n=t$(e);return()=>tL[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
149,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tN=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tN([0,.65,.55,1]),circOut:tN([.55,0,1,.45]),backIn:tN([.31,.01,.66,-.59]),backOut:tN([.33,1.53,.69,.99])};function tH(e){return"function"==typeof e&&"applyToOptions"in e}class tU extends td{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=e,B("string"!=typeof e.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:e,...t}){return tH(e)&&tF()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?tF()?eF(t,n):"ease-out":tt(t)?tN(t):Array.isArray(t)?t.map(t=>e(t,n)||tB.easeOut):tB[t]}(o,i);Array.isArray(d)&&(c.easing=d),h.value&&F.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(f.pseudoElement=u);let p=e.animate(c,f);return h.value&&p.finished.finally(()=>{F.waapi--}),p}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=tl(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){tV(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return L(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return L(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=z(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tz())?(this.animation.timeline=e,u):t(this)}}let tW={anticipate:e8,backInOut:e6,circInOut:te};class tG extends tU{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in tW&&(e.ease=tW[e.ease])}(e),tc(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new tf({...s,autoplay:!1}),o=z(this.finishedTime??this.time);t.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let tY=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eS.test(e)||"0"===e)&&!e.startsWith("url("));var tq,tK,tX=n(27351);let tZ=new Set(["opacity","clipPath","filter","transform"]),tJ=t$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tQ extends td{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=A.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:s,name:o,motionValue:l,element:u,...c},h=u?.KeyframeResolver||tD;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:d}=n;this.resolvedAt=A.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=tY(i,t),o=tY(s,t);return N(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||tH(n))&&r)}(e,i,s,a)&&((c.instantAnimations||!o)&&d?.(tl(e,n,t)),e[0]=e[e.length-1],n.duration=0,n.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!(0,tX.s)(t?.owner?.current))return!1;
149let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return tJ()&&n&&tZ.has(n)&&("transform"!==n||!l)&&!o&&!r&&"mirror"!==i&&0!==s&&"inertia"!==a}(h)?new tG({...h,element:h.motionValue.owner.current}):new tf(h);f.finished.then(()=>this.notifyFinished()).catch(u),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tI=!0,t_(),tO(),tI=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let t0=e=>null!==e,t1={type:"spring",stiffness:500,damping:25,restSpeed:10},t2=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),t5={type:"keyframes",duration:.8},t3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t4=(e,{keyframes:t})=>t.length>2?t5:v.has(e)?e.startsWith("scale")?t2(t[1]):t1:t3,t6=(e,t,n,r={},i,s)=>a=>{let o=l(r,e)||{},u=o.delay||r.delay||0,{elapsed:d=0}=r;d-=z(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&Object.assign(h,t4(e,h)),h.duration&&(h.duration=z(h.duration)),h.repeatDelay&&(h.repeatDelay=z(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let f=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(f=!0)),(c.instantAnimations||c.skipAnimations)&&(f=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,f&&!s&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(t0),s=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[s]}(h.keyframes,o);if(void 0!==e)return void p.update(()=>{h.onUpdate(e),h.onComplete()})}return o.isSync?new tf(h):new tQ(h)};function t8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...u}=t;r&&(s=r);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in u){let r=e.getValue(t,e.latestValues[t]??null),i=u[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...l(s||{},t)},o=r.get();if(void 0!==o&&!r.isAnimating&&!Array.isArray(i)&&i===o&&!a.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=e.props[_];if(n){let e=window.MotionHandoffAnimation(n,t,p);null!==e&&(a.startTime=e,h=!0)}}I(e,t),r.start(t6(t,r,i,e.shouldReduceMotion&&x.has(t)?{type:!1}:a,e,h));let f=r.animation;f&&c.push(f)}return a&&Promise.all(c).then(()=>{p.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=o(e,t)||{};for(let t in i={...i,...n}){var s;let n=j(s=i[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,M(n))}}(e,a)})}),c}function t9(e,t,n={}){let r=o(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let s=r?()=>Promise.all(t8(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=i;return function(e,t,n=0,r=0,i=1,s){let a=[],o=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>o-e*r;
149return Array.from(e.variantChildren).sort(t7).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(t9(e,t,{...s,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,s+r,a,o,n)}:()=>Promise.resolve(),{when:l}=i;if(!l)return Promise.all([s(),a(n.delay)]);{let[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}}function t7(e,t){return e.sortNodePosition(t)}function ne(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function nt(e){return"string"==typeof e||Array.isArray(e)}let nn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nr=["initial",...nn],ni=nr.length,ns=[...nn].reverse(),na=nn.length;function no(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nl(){return{animate:no(!0),whileInView:no(),whileHover:no(),whileTap:no(),whileDrag:no(),whileFocus:no(),exit:no()}}class nu{constructor(e){this.isMounted=!1,this.node=e}update(){}}class nc extends nu{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>t9(e,t,n)));else if("string"==typeof t)r=t9(e,t,n);else{let i="function"==typeof t?o(e,t,n.custom):t;r=Promise.all(t8(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=nl(),r=!0,s=t=>(n,r)=>{let i=o(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(a){let{props:l}=e,u=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<ni;e++){let r=nr[e],i=t.props[r];(nt(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],d=new Set,h={},f=1/0;for(let t=0;t<na;t++){var p,g;let o=ns[t],m=n[o],b=void 0!==l[o]?l[o]:u[o],y=nt(b),v=o===a?m.isActive:null;!1===v&&(f=t);let x=b===u[o]&&b!==l[o]&&y;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...h},!m.isActive&&null===v||!b&&!m.prevProp||i(b)||"boolean"==typeof b)continue;let w=(p=m.prevProp,"string"==typeof(g=b)?g!==p:!!Array.isArray(g)&&!ne(g,p)),k=w||o===a&&m.isActive&&!x&&y||t>f&&y,S=!1,E=Array.isArray(b)?b:[b],A=E.reduce(s(o),{});!1===v&&(A={});let{prevResolvedValues:C={}}=m,P={...C,...A},T=t=>{k=!0,d.has(t)&&(S=!0,d.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in P){let t=A[e],n=C[e];if(h.hasOwnProperty(e))continue;let r=!1;(j(t)&&j(n)?ne(t,n):t===n)?void 0!==t&&d.has(e)?T(e):m.protectedKeys[e]=!0:null!=t?T(e):d.add(e)}m.prevProp=b,m.prevResolvedValues=A,m.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(k=!1);let M=!(x&&w)||S;k&&M&&c.push(...E.map(e=>({animation:e,options:{type:o}})))}if(d.size){let t={};if("boolean"!=typeof l.initial){let n=o(e,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=!!c.length;return r&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=nl(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nd=0;class nh extends nu{constructor(){super(...arguments),this.id=nd++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
149{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let nf={x:!1,y:!1};function np(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let ng=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nm(e){return{point:{x:e.pageX,y:e.pageY}}}let nb=e=>t=>ng(t)&&e(t,nm(t));function ny(e,t,n,r){return np(e,t,nb(n),r)}function nv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nx(e){return e.max-e.min}function nw(e,t,n,r=.5){e.origin=r,e.originPoint=eC(t.min,t.max,e.origin),e.scale=nx(n)/nx(t),e.translate=eC(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nk(e,t,n,r){nw(e.x,t.x,n.x,r?r.originX:void 0),nw(e.y,t.y,n.y,r?r.originY:void 0)}function nS(e,t,n){e.min=n.min+t.min,e.max=e.min+nx(t)}function nE(e,t,n){e.min=t.min-n.min,e.max=e.min+nx(t)}function nA(e,t,n){nE(e.x,t.x,n.x),nE(e.y,t.y,n.y)}let nC=()=>({translate:0,scale:1,origin:0,originPoint:0}),nP=()=>({x:nC(),y:nC()}),nT=()=>({min:0,max:0}),nM=()=>({x:nT(),y:nT()});function nj(e){return[e("x"),e("y")]}function nR(e){return void 0===e||1===e}function nI({scale:e,scaleX:t,scaleY:n}){return!nR(e)||!nR(t)||!nR(n)}function nO(e){return nI(e)||n_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function n_(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function nD(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function nV(e,t=0,n=1,r,i){e.min=nD(e.min,t,n,r,i),e.max=nD(e.max,t,n,r,i)}function n$(e,{x:t,y:n}){nV(e.x,t.translate,t.scale,t.originPoint),nV(e.y,n.translate,n.scale,n.originPoint)}function nz(e,t){e.min=e.min+t,e.max=e.max+t}function nL(e,t,n,r,i=.5){let s=eC(e.min,e.max,i);nV(e,t,n,s,r)}function nF(e,t){nL(e.x,t.x,t.scaleX,t.scale,t.originX),nL(e.y,t.y,t.scaleY,t.scale,t.originY)}function nN(e,t){return nv(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let nB=({current:e})=>e?e.ownerDocument.defaultView:null;function nH(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nU=(e,t)=>Math.abs(e-t);class nW{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nq(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nU(e.x,t.x)**2+nU(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=m;this.history.push({...r,timestamp:i});let{onStart:s,onMove:a}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nG(t,this.transformPagePoint),p.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nq("pointercancel"===e.type?this.lastMoveEventInfo:nG(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!ng(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let s=nG(nm(e),this.transformPagePoint),{point:a}=s,{timestamp:o}=m;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,nq(s,this.history)),this.removeListeners=V(ny(this.contextWindow,"pointermove",this.handlePointerMove),ny(this.contextWindow,"pointerup",this.handlePointerUp),ny(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),g(this.updatePoint)}}function nG(e,t){return t?{point:t(e.point)}:e}function nY(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nq({point:e},t){return{point:e,delta:nY(e,nK(t)),offset:nY(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nK(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>z(.1)));)n--;if(!r)return{x:0,y:0};let s=L(i.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function nK(e){return e[e.length-1]}function nX(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nZ(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nJ(e,t,n){return{min:nQ(e,t),max:nQ(e,n)}}function nQ(e,t){return"number"==typeof e?e:e[t]||0}let n0=new WeakMap;
149class n1{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nM(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nW(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(nm(e).point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(nf[e])return null;else return nf[e]=!0,()=>{nf[e]=!1};return nf.x||nf.y?null:(nf.x=nf.y=!0,()=>{nf.x=nf.y=!1})}(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nj(e=>{let t=this.getAxisMotionValue(e).get()||0;if(el.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nx(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&p.postRender(()=>i(e,t)),I(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>nj(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:nB(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&p.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!n2(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?eC(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?eC(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nH(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:nX(e.x,n,i),y:nX(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nJ(e,"left","right"),y:nJ(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nj(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nH(t))return!1;let r=t.current;B(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let s=function(e,t,n){let r=nN(e,n),{scroll:i}=t;return i&&(nz(r.x,i.offset.x),nz(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:nZ(e.x,s.x),y:nZ(e.y,s.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nv(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(nj(a=>
149{if(!n2(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return I(this.visualElement,e),n.start(t6(e,n,0,t,this.visualElement,!1))}stopAnimation(){nj(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nj(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nj(t=>{let{drag:n}=this.getProps();if(!n2(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:s}=r.layout.layoutBox[t];i.set(e[t]-eC(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nH(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nj(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=nx(e),i=nx(t);return i>r?n=ts(t.min,t.max-r,e.min):r>i&&(n=ts(e.min,e.max-i,t.min)),$(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nj(t=>{if(!n2(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(eC(i,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;n0.set(this.visualElement,this);let e=ny(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nH(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),p.read(t);let i=np(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nj(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function n2(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class n5 extends nu{constructor(e){super(e),this.removeGroupControls=u,this.removeListeners=u,this.controls=new n1(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||u}unmount(){this.removeGroupControls(),this.removeListeners()}}let n3=e=>(t,n)=>{e&&p.postRender(()=>e(t,n))};class n4 extends nu{constructor(){super(...arguments),this.removePointerDownListener=u}onPointerDown(e){this.session=new nW(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nB(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:n3(e),onStart:n3(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&p.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ny(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var n6=n(95155);let{schedule:n8}=f(queueMicrotask,!1);var n9=n(12115),n7=n(32082),re=n(90869);let rt=(0,n9.createContext)({}),rn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ri={correct:(e,t)=>
149{if(!t.target)return e;if("string"==typeof e)if(!eu.test(e))return e;else e=parseFloat(e);let n=rr(e,t.target.x),r=rr(e,t.target.y);return`${n}% ${r}%`}},rs={};class ra extends n9.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;for(let e in rl)rs[e]=rl[e],U(e)&&(rs[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:s}=n;return s&&(s.isPresent=i,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||p.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),n8.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ro(e){let[t,n]=(0,n7.xQ)(),r=(0,n9.useContext)(re.L);return(0,n6.jsx)(ra,{...e,layoutGroup:r,switchLayoutGroup:(0,n9.useContext)(rt),isPresent:t,safeToRemove:n})}let rl={borderRadius:{...ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ri,borderTopRightRadius:ri,borderBottomLeftRadius:ri,borderBottomRightRadius:ri,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=eS.parse(e);if(r.length>5)return e;let i=eS.createTransformer(e),s=+("number"!=typeof r[0]),a=n.x.scale*t.x,o=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=o;let l=eC(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),i(r)}}};var ru=n(6983);function rc(e){return(0,ru.G)(e)&&"ownerSVGElement"in e}let rd=(e,t)=>e.depth-t.depth;class rh{constructor(){this.children=[],this.isDirty=!1}add(e){w(this.children,e),this.isDirty=!0}remove(e){k(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rd),this.isDirty=!1,this.children.forEach(e)}}function rf(e){return R(e)?e.get():e}let rp=["TopLeft","TopRight","BottomLeft","BottomRight"],rg=rp.length,rm=e=>"string"==typeof e?parseFloat(e):e,rb=e=>"number"==typeof e||eu.test(e);function ry(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rv=rw(0,.5,e7),rx=rw(.5,.95,u);function rw(e,t,n){return r=>r<e?0:r>t?1:n(ts(e,t,r))}function rk(e,t){e.min=t.min,e.max=t.max}function rS(e,t){rk(e.x,t.x),rk(e.y,t.y)}function rE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rA(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function rC(e,t,[n,r,i],s,a){!function(e,t=0,n=1,r=.5,i,s=e,a=e){if(el.test(t)&&(t=parseFloat(t),t=eC(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=eC(s.min,s.max,r);e===s&&(o-=t),e.min=rA(e.min,t,n,o,i),e.max=rA(e.max,t,n,o,i)}(e,t[n],t[r],t[i],t.scale,s,a)}let rP=["x","scaleX","originX"],rT=["y","scaleY","originY"];function rM(e,t,n,r){rC(e.x,t,rP,n?n.x:void 0,r?r.x:void 0),rC(e.y,t,rT,n?n.y:void 0,r?r.y:void 0)}function rj(e){return 0===e.translate&&1===e.scale}function rR(e){return rj(e.x)&&rj(e.y)}function rI(e,t){return e.min===t.min&&e.max===t.max}function rO(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function r_(e,t){return rO(e.x,t.x)&&rO(e.y,t.y)}function rD(e){return nx(e.x)/nx(e.y)}function rV(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class r${constructor(){this.members=[]}add(e){w(this.members,e),e.scheduleRender()}remove(e){if(k(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}
149exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rL=["","X","Y","Z"],rF={visibility:"hidden"},rN=0;function rB(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rH({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rN++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,h.value&&(rz.nodes=rz.calculatedTargetDeltas=rz.calculatedProjections=0),this.nodes.forEach(rG),this.nodes.forEach(rQ),this.nodes.forEach(r0),this.nodes.forEach(rY),h.addProjectionMetrics&&h.addProjectionMetrics(rz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new S),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rc(t)&&!(rc(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=A.now(),r=({timestamp:i})=>{let s=i-n;s>=250&&(g(r),e(s-t))};return p.setup(r,!0),()=>g(r)}(r,250),rn.hasAnimatedSinceResize&&(rn.hasAnimatedSinceResize=!1,this.nodes.forEach(rJ))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||i.getDefaultTransition()||r6,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=i.getProps(),u=!this.targetLayout||!r_(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...l(s,"layout"),onPlay:a,onComplete:o};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||rJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),g(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
149h(r1),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[_];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",p,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rK);return}this.isUpdating||this.nodes.forEach(rX),this.isUpdating=!1,this.nodes.forEach(rZ),this.nodes.forEach(rU),this.nodes.forEach(rW),this.clearAllSnapshots();let e=A.now();m.delta=$(0,1e3/60,e-m.timestamp),m.timestamp=e,m.isProcessing=!0,b.update.process(m),b.preRender.process(m),b.render.process(m),m.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,n8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rq),this.sharedNodes.forEach(r2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,p.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){p.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nx(this.snapshot.measuredBox.x)||nx(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nM(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rR(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||nO(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),r7((t=r).x),r7(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nM();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(it))){let{scroll:e}=this.root;e&&(nz(t.x,e.offset.x),nz(t.y,e.offset.y))}return t}removeElementScroll(e){let t=nM();if(rS(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:s}=r;r!==this.root&&i&&s.layoutScroll&&(i.wasRoot&&rS(t,e),nz(t.x,i.offset.x),nz(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=nM();rS(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nF(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nO(r.latestValues)&&nF(n,r.latestValues)}return nO(this.latestValues)&&nF(n,this.latestValues),n}removeTransform(e){let t=nM();rS(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nO(n.latestValues))continue;nI(n.latestValues)&&n.updateSnapshot();let r=nM();rS(r,n.measurePageBox()),rM(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nO(this.latestValues)&&rM(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==m.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
149isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=m.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nM(),this.relativeTargetOrigin=nM(),nA(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),rS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=nM(),this.targetWithTransforms=nM()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,o;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,o=this.relativeParent.target,nS(s.x,a.x,o.x),nS(s.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rS(this.target,this.layout.layoutBox),n$(this.target,this.targetDelta)):rS(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nM(),this.relativeTargetOrigin=nM(),nA(this.relativeTargetOrigin,this.target,e.target),rS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}h.value&&rz.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nI(this.parent.latestValues)||n_(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===m.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;rS(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,s,a=n.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(i=n[o]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nF(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,n$(e,s)),r&&nO(i.latestValues)&&nF(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=nM());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rE(this.prevProjectionDelta.x,this.projectionDelta.x),rE(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nk(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&rV(this.projectionDelta.x,this.prevProjectionDelta.x)&&rV(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),h.value&&rz.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nP(),this.projectionDelta=nP(),this.projectionDeltaWithTransform=nP()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},s={...this.latestValues},a=nP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=nM(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(r4));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(r5(a.x,e.x,r),r5(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p,g,m;nA(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,g=o,m=r,r3(f.x,p.x,g.x,m),r3(f.y,p.y,g.y,m),n&&(u=this.relativeTarget,h=n,rI(u.x,h.x)&&rI(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=nM()),rS(n,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,n,r,i,s){i?(e.opacity=eC(0,n.opacity??1,rv(r)),e.o
149pacityExit=eC(t.opacity??1,0,rx(r))):s&&(e.opacity=eC(t.opacity??1,n.opacity??1,r));for(let i=0;i<rg;i++){let s=`border${rp[i]}Radius`,a=ry(t,s),o=ry(n,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||rb(a)===rb(o)?(e[s]=Math.max(eC(rm(a),rm(o),r),0),(el.test(o)||el.test(a))&&(e[s]+="%")):e[s]=o)}(t.rotate||n.rotate)&&(e.rotate=eC(t.rotate||0,n.rotate||0,r))}(s,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(g(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=p.update(()=>{rn.hasAnimatedSinceResize=!0,F.layout++,this.motionValue||(this.motionValue=M(0)),this.currentAnimation=function(e,t,n){let r=R(e)?e:M(e);return r.start(t6("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{F.layout--},onComplete:()=>{F.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&ie(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nM();let t=nx(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nx(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rS(t,n),nF(t,i),nk(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new r$),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&rB("z",e,r,this.animationValues);for(let t=0;t<rL.length;t++)rB(`rotate${rL[t]}`,e,r,this.animationValues),rB(`skew${rL[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return rF;let t={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=rf(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none",t;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=rf(e?.pointerEvents)||""),this.hasProjected&&!nO(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let i=r.animationValues||r.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,n){let r="",i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:s,skewX:a,skewY:o}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l}
149)`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),n&&(t.transform=n(i,t.transform));let{x:s,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?t.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,rs){if(void 0===i[e])continue;let{correct:n,applyTo:s,isCSSVariable:a}=rs[e],o="none"===t.transform?i[e]:n(i[e],r);if(s){let e=s.length;for(let n=0;n<e;n++)t[s[n]]=o}else a?this.options.visualElement.renderState.vars[e]=o:t[e]=o}return this.options.layoutId&&(t.pointerEvents=r===this?rf(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rK),this.root.sharedNodes.clear()}}}function rU(e){e.updateLayout()}function rW(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;"size"===i?nj(e=>{let r=s?t.measuredBox[e]:t.layoutBox[e],i=nx(r);r.min=n[e].min,r.max=r.min+i}):ie(i,t.layoutBox,n)&&nj(r=>{let i=s?t.measuredBox[r]:t.layoutBox[r],a=nx(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=nP();nk(a,n,t.layoutBox);let o=nP();s?nk(o,e.applyTransform(r,!0),t.measuredBox):nk(o,n,t.layoutBox);let l=!rR(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:s}=r;if(i&&s){let a=nM();nA(a,t.layoutBox,i.layoutBox);let o=nM();nA(o,n,s.layoutBox),r_(a,o)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rG(e){h.value&&rz.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rY(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rq(e){e.clearSnapshot()}function rK(e){e.clearMeasurements()}function rX(e){e.isLayoutDirty=!1}function rZ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rQ(e){e.resolveTargetDelta()}function r0(e){e.calcProjection()}function r1(e){e.resetSkewAndRotation()}function r2(e){e.removeLeadSnapshot()}function r5(e,t,n){e.translate=eC(t.translate,0,n),e.scale=eC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function r3(e,t,n,r){e.min=eC(t.min,n.min,r),e.max=eC(t.max,n.max,r)}function r4(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let r6={duration:.45,ease:[.4,0,.1,1]},r8=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),r9=r8("applewebkit/")&&!r8("chrome/")?Math.round:u;function r7(e){e.min=r9(e.min),e.max=r9(e.max)}function ie(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rD(t)-rD(n)))}function it(e){return e!==e.root&&e.scroll?.wasRoot}let ir=rH({attachResizeListener:(e,t)=>np(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ii={current:void 0},is=rH({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ii.current){let e=new ir({});e.mount(window),e.setOptions({layoutScroll:!0}),ii.current=e}return ii.current},resetTransform:(e,t)=>
149{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ia(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function io(e){return!("touch"===e.pointerType||nf.x||nf.y)}function il(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&p.postRender(()=>i(t,nm(t)))}class iu extends nu{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=ia(e,n),a=e=>{if(!io(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let s=e=>{io(e)&&(r(e),n.removeEventListener("pointerleave",s))};n.addEventListener("pointerleave",s,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),s}(e,(e,t)=>(il(this.node,t,"Start"),e=>il(this.node,e,"End"))))}unmount(){}}class ic extends nu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=V(np(this.node.current,"focus",()=>this.onFocus()),np(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let id=(e,t)=>!!t&&(e===t||id(e,t.parentElement)),ih=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ip=new WeakSet;function ig(e){return t=>{"Enter"===t.key&&e(t)}}function im(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let ib=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ig(()=>{if(ip.has(n))return;im(n,"down");let e=ig(()=>{im(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>im(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function iy(e){return ng(e)&&!(nf.x||nf.y)}function iv(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&p.postRender(()=>i(t,nm(t)))}class ix extends nu{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=ia(e,n),a=e=>{let r=e.currentTarget;if(!iy(e))return;ip.add(r);let s=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),ip.has(r)&&ip.delete(r),iy(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{a(e,r===window||r===document||n.useGlobalTarget||id(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),(0,tX.s)(e))&&(e.addEventListener("focus",e=>ib(e,i)),ih.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(iv(this.node,t,"Start"),(e,{success:t})=>iv(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let iw=new WeakMap,ik=new WeakMap,iS=e=>{let t=iw.get(e.target);t&&t(e)},iE=e=>{e.forEach(iS)},iA={some:0,all:1};class iC extends nu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iA[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;ik.has(n)||ik.set(n,{});let r=ik.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iE,{root:e,...t})),r[i]}(t);return iw.set(e,n),r.observe(e),()=>{iw.delete(e),r.unobserve(e)}}(this.node.current,s,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=t?n:r;s&&s(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let iP=(0,n9.createContext)({strict:!1});var iT=n(51508);let iM=(0,n9.createContext)({});function ij(e){return i(e.animate)||nr.some(t=>nt(e[t]))}function iR(e){return!!(ij(e)||e.variants)}function iI(e){return Array.isArray(e)?e.join(" "):e}var iO=n(68972);let i_={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"]},iD={};for(let e in i_)iD[e]={isEnabled:t=>i_[e].some(e=>!!t[e])};let iV=Symbol.for("motionComponentSymbol");var i$=n(80845),iz=n(97494);function iL(e,{layout:t,layoutId:n}){return v.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rs[e]||"opacity"===e)}let iF=(e,t)=>t&&"number"==typeof e?t.transform(e):e,iN={...q,transform:Math.round}
149,iB={borderWidth:eu,borderTopWidth:eu,borderRightWidth:eu,borderBottomWidth:eu,borderLeftWidth:eu,borderRadius:eu,radius:eu,borderTopLeftRadius:eu,borderTopRightRadius:eu,borderBottomRightRadius:eu,borderBottomLeftRadius:eu,width:eu,maxWidth:eu,height:eu,maxHeight:eu,top:eu,right:eu,bottom:eu,left:eu,padding:eu,paddingTop:eu,paddingRight:eu,paddingBottom:eu,paddingLeft:eu,margin:eu,marginTop:eu,marginRight:eu,marginBottom:eu,marginLeft:eu,backgroundPositionX:eu,backgroundPositionY:eu,rotate:eo,rotateX:eo,rotateY:eo,rotateZ:eo,scale:X,scaleX:X,scaleY:X,scaleZ:X,skew:eo,skewX:eo,skewY:eo,distance:eu,translateX:eu,translateY:eu,translateZ:eu,x:eu,y:eu,z:eu,perspective:eu,transformPerspective:eu,opacity:K,originX:eh,originY:eh,originZ:eu,zIndex:iN,fillOpacity:K,strokeOpacity:K,numOctaves:iN},iH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iU=y.length;function iW(e,t,n){let{style:r,vars:i,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let n=t[e];if(v.has(e)){a=!0;continue}if(U(e)){i[e]=n;continue}{let t=iF(n,iB[e]);e.startsWith("origin")?(o=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<iU;s++){let a=y[s],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||n){let e=iF(o,iB[a]);if(!l){i=!1;let t=iH[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}let iG=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iY(e,t,n){for(let r in t)R(t[r])||iL(r,n)||(e[r]=t[r])}let iq={offset:"stroke-dashoffset",array:"stroke-dasharray"},iK={offset:"strokeDashoffset",array:"strokeDasharray"};function iX(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,u,c){if(iW(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let s=i?iq:iK;e[s.offset]=eu.transform(-r);let a=eu.transform(t),o=eu.transform(n);e[s.array]=`${a} ${o}`}(d,i,s,a,!1)}let iZ=()=>({...iG(),attrs:{}}),iJ=e=>"string"==typeof e&&"svg"===e.toLowerCase(),iQ=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 i0(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iQ.has(e)}let i1=e=>!i0(e);try{!function(e){"function"==typeof e&&(i1=t=>t.startsWith("on")?!i0(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}let i2=["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 i5(e){if("string"!=typeof e||e.includes("-"));else if(i2.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var i3=n(82885);let i4=e=>(t,n)=>{let r=(0,n9.useContext)(iM),s=(0,n9.useContext)(i$.t),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:function(e,t,n,r){let s={},o=r(e,{});for(let e in o)s[e]=rf(o[e]);let{initial:l,animate:u}=e,c=ij(e),d=iR(e);t&&d&&!c&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===u&&(u=t.animate));
149let h=!!n&&!1===n.initial,f=(h=h||!1===l)?u:l;if(f&&"boolean"!=typeof f&&!i(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let r=a(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let t in e)s[t]=e[t]}}}return s}(n,r,s,e),renderState:t()}})(e,t,r,s);return n?o():(0,i3.M)(o)};function i6(e,t,n){let{style:r}=e,i={};for(let s in r)(R(r[s])||t.style&&R(t.style[s])||iL(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}let i8={useVisualState:i4({scrapeMotionValuesFromProps:i6,createRenderState:iG})};function i9(e,t,n){let r=i6(e,t,n);for(let n in e)(R(e[n])||R(t[n]))&&(r[-1!==y.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let i7={useVisualState:i4({scrapeMotionValuesFromProps:i9,createRenderState:iZ})},se=e=>t=>t.test(e),st=[q,eu,el,eo,ed,ec,{test:e=>"auto"===e,parse:e=>e}],sn=e=>st.find(se(e)),sr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),si=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ss=e=>/^0[^.\s]+$/u.test(e),sa=new Set(["brightness","contrast","saturate","opacity"]);function so(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(J)||[];if(!r)return e;let i=n.replace(r,""),s=+!!sa.has(t);return r!==n&&(s*=100),t+"("+s+i+")"}let sl=/\b([a-z-]*)\(.*?\)/gu,su={...eS,getAnimatableNone:e=>{let t=e.match(sl);return t?t.map(so).join(" "):e}},sc={...iB,color:ep,backgroundColor:ep,outlineColor:ep,fill:ep,stroke:ep,borderColor:ep,borderTopColor:ep,borderRightColor:ep,borderBottomColor:ep,borderLeftColor:ep,filter:su,WebkitFilter:su},sd=e=>sc[e];function sh(e,t){let n=sd(e);return n!==su&&(n=eS),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let sf=new Set(["auto","none","0"]);class sp extends tD{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&G(r=r.trim())){let i=function e(t,n,r=1){B(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,s]=function(e){let t=si.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return sr(e)?parseFloat(e):e}return G(s)?e(s,n,r+1):s}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!x.has(n)||2!==e.length)return;let[r,i]=e,s=sn(r),a=sn(i);if(s!==a)if(tA(s)&&tA(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else tT[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||ss(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!sf.has(t)&&ev(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=sh(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tT[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,s=n[i];n[i]=tT[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
149h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let sg=[...st,ep,eS],sm=e=>sg.find(se(e)),sb={current:null},sy={current:!1},sv=new WeakMap,sx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sw{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tD,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.renderScheduledAt=0,this.scheduleRender=()=>{let e=A.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,p.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=s;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=ij(t),this.isVariantNode=iR(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==o[e]&&R(t)&&t.set(o[e],!1)}}mount(e){this.current=e,sv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),sy.current||function(){if(sy.current=!0,iO.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sb.current=e.matches;e.addListener(t),t()}else sb.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sb.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),g(this.notifyUpdate),g(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=v.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&p.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in iD){let t=iD[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nM()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<sx.length;t++){let n=sx[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],s=n[r];if(R(i))e.addValue(r,i);else if(R(s))e.addValue(r,M(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,M(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
149addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=M(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(sr(n)||ss(n))?n=parseFloat(n):!sm(n)&&eS.test(t)&&(n=sh(e,t)),this.setBaseTarget(e,R(n)?n.get():n)),R(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=a(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||R(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new S),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class sk extends sw{constructor(){super(...arguments),this.KeyframeResolver=sp}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;R(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function sS(e,{style:t,vars:n},r,i){for(let s in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(s,n[s])}class sE extends sk{constructor(){super(...arguments),this.type="html",this.renderInstance=sS}readValueFromInstance(e,t){if(v.has(t))return this.projection?.isProjecting?tw(t):tS(e,t);{let n=window.getComputedStyle(e),r=(U(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nN(e,t)}build(e,t,n){iW(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return i6(e,t,n)}}let sA=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"]);class sC extends sk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nM}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(v.has(t)){let e=sd(t);return e&&e.default||0}return t=sA.has(t)?t:O(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return i9(e,t,n)}
149build(e,t,n){iX(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in sS(e,t,void 0,r),t.attrs)e.setAttribute(sA.has(n)?n:O(n),t.attrs[n])}mount(e){this.isSVGTag=iJ(e.tagName),super.mount(e)}}let sP=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((tq={animation:{Feature:nc},exit:{Feature:nh},inView:{Feature:iC},tap:{Feature:ix},focus:{Feature:ic},hover:{Feature:iu},pan:{Feature:n4},drag:{Feature:n5,ProjectionNode:is,MeasureLayout:ro},layout:{ProjectionNode:is,MeasureLayout:ro}},tK=(e,t)=>i5(e)?new sC(t):new sE(t,{allowProjection:e!==n9.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,n;let{preloadedFeatures:r,createVisualElement:i,useRender:s,useVisualState:a,Component:o}=e;function l(e,t){var n,r,l;let u,c={...(0,n9.useContext)(iT.Q),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,n9.useContext)(re.L).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:d}=c,h=function(e){let{initial:t,animate:n}=function(e,t){if(ij(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nt(t)?t:void 0,animate:nt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,n9.useContext)(iM));return(0,n9.useMemo)(()=>({initial:t,animate:n}),[iI(t),iI(n)])}(e),f=a(e,d);if(!d&&iO.B){r=0,l=0,(0,n9.useContext)(iP).strict;let e=function(e){let{drag:t,layout:n}=iD;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);u=e.MeasureLayout,h.visualElement=function(e,t,n,r,i){let{visualElement:s}=(0,n9.useContext)(iM),a=(0,n9.useContext)(iP),o=(0,n9.useContext)(i$.t),l=(0,n9.useContext)(iT.Q).reducedMotion,u=(0,n9.useRef)(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let c=u.current,d=(0,n9.useContext)(rt);c&&!c.projection&&i&&("html"===c.type||"svg"===c.type)&&function(e,t,n,r){let{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&nH(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(u.current,n,i,d);let h=(0,n9.useRef)(!1);(0,n9.useInsertionEffect)(()=>{c&&h.current&&c.update(n,o)});let f=n[_],p=(0,n9.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return(0,iz.E)(()=>{c&&(h.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),n8.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),(0,n9.useEffect)(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),p.current=!1))}),c}(o,f,c,i,e.ProjectionNode)}return(0,n6.jsxs)(iM.Provider,{value:h,children:[u&&h.visualElement?(0,n6.jsx)(u,{visualElement:h.visualElement,...c}):null,s(o,e,(n=h.visualElement,(0,n9.useCallback)(e=>{e&&f.onMount&&f.onMount(e),n&&(e?n.mount(e):n.unmount()),t&&("function"==typeof t?t(e):nH(t)&&(t.current=e))},[n])),f,d,h.visualElement)]})}r&&function(e){for(let t in e)iD[t]={...iD[t],...e[t]}}(r),l.displayName="motion.".concat("string"==typeof o?o:"create(".concat(null!=(n=null!=(t=o.displayName)?t:o.name)?n:"",")"));let u=(0,n9.forwardRef)(l);return u[iV]=o,u}({...i5(e)?i7:i8,preloadedFeatures:tq,useRender:function(e=!1){return(t,n,r,{latestValues:i},s)=>{let a=(i5(t)?function(e,t,n,r){let i=(0,n9.useMemo)(()=>{let n=iZ();return iX(n,t,iJ(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};iY(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return iY(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,n9.useMemo)(()=>{let n=iG();return iW(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
149`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,s,t),o=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(i1(i)||!0===n&&i0(i)||!t&&!i0(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==n9.Fragment?{...o,...a,ref:r}:{},{children:u}=n,c=(0,n9.useMemo)(()=>R(u)?u.get():u,[u]);return(0,n9.createElement)(t,{...l,children:c})}}(t),createVisualElement:tK,Component:e})}))},78048:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,s=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},a=(e,t,n,r,i,s,a,o)=>s<e&&a>t||s>e&&a<t?0:s<=e&&o<=n||a>=t&&o>=n?s-e-r:a>t&&o<n||s<e&&o>n?a-t+i:0,o=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>{var n,i,l,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:h,boundary:f,skipOverflowHiddenElements:p}=t,g="function"==typeof f?f:e=>e!==f;if(!r(e))throw TypeError("Invalid target");let m=document.scrollingElement||document.documentElement,b=[],y=e;for(;r(y)&&g(y);){if((y=o(y))===m){b.push(y);break}null!=y&&y===document.body&&s(y)&&!s(document.documentElement)||null!=y&&s(y,p)&&b.push(y)}let v=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,x=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:w,scrollY:k}=window,{height:S,width:E,top:A,right:C,bottom:P,left:T}=e.getBoundingClientRect(),{top:M,right:j,bottom:R,left:I}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),O="start"===d||"nearest"===d?A-M:"end"===d?P+R:A+S/2-M+R,_="center"===h?T+E/2-I+j:"end"===h?C+j:T-I,D=[];for(let e=0;e<b.length;e++){let t=b[e],{height:n,width:r,top:i,right:o,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===c&&A>=0&&T>=0&&P<=x&&C<=v&&(t===m&&!s(t)||A>=i&&P<=l&&T>=u&&C<=o))break;let f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),g=parseInt(f.borderTopWidth,10),y=parseInt(f.borderRightWidth,10),M=parseInt(f.borderBottomWidth,10),j=0,R=0,I="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-y:0,V="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-M:0,$="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,z="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)j="start"===d?O:"end"===d?O-x:"nearest"===d?a(k,k+x,x,g,M,k+O,k+O+S,S):O-x/2,R="start"===h?_:"center"===h?_-v/2:"end"===h?_-v:a(w,w+v,v,p,y,w+_,w+_+E,E),j=Math.max(0,j+k),R=Math.max(0,R+w);else{j="start"===d?O-i-g:"end"===d?O-l+M+V:"nearest"===d?a(i,l,n,g,M+V,O,O+S,S):O-(i+n/2)+V/2,R="start"===h?_-u-p:"center"===h?_-(u+r/2)+I/2:"end"===h?_-o+y+I:a(u,o,r,p,y+I,_,_+E,E);let{scrollLeft:e,scrollTop:s}=t;j=0===z?0:Math.max(0,Math.min(s+j/z,t.scrollHeight-n/z+V)),R=0===$?0:Math.max(0,Math.min(e+R/$,t.scrollWidth-r/$+I)),O+=s-j,_+=e-R}D.push({el:t,top:j,left:R})}return D},u=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};function c(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(l(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:s,left:a}of l(e,u(t))){let e=s-n.top+n.bottom,t=a-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}},80845:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(12115).createContext)(null)},82500:(e,t,n)=>{var r=n(7985),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||i||Function("return this")()},82885:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(12115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},84342:(e,t,n)=>{e.exports=n(48505)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},85855:(e,t,n)=>{var r=n(16613);e.exports=function(e){return null==e?"":r(e)}}
149,89364:(e,t,n)=>{var r=n(59132),i=n(1083),s=n(85855),a=n(64384);e.exports=function(e,t,n){return(e=s(e),void 0===(t=n?void 0:t))?i(e)?a(e):r(e):e.match(t)||[]}},90869:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(12115).createContext)({})},97091:(e,t,n)=>{"use strict";n.d(t,{X:()=>f,r:()=>d});let r=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class i{model;root;patch;i;inputStack;outputStack;constructor(e,t,n){this.model=e,this.root=t,this.patch=n,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let e=this.read(),t=r[e];if(!t)throw Error(`Unknown opcode: ${e}`);this[`process${t}`].apply(this)}let e=this.outputStack.pop();return this.finalizeOutput(e)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(e,t){return e.keys||(e.keys=this.model.objectGetKeys(e.value).sort()),e.keys[t]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyArray(e.value)),e.writeValue}outputObject(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyObject(e.value)),e.writeValue}outputString(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyString(e.value)),e.writeValue}finalizeOutput(e){return e.writeValue?this.model.finalize(e.writeValue):e.value}processValue(){let e=this.model.wrap(this.read());this.outputStack.push({value:e})}processCopy(){let e=this.inputEntry();this.outputStack.push({value:e.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let e=this.outputStack.pop(),t=this.finalizeOutput(e),n=this.outputArray();this.model.arrayAppendValue(n,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),n=this.finalizeOutput(t);n=this.model.markChanged(n);let r=this.outputObject();this.model.objectSetField(r,e,n)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),n=this.finalizeOutput(t),r=this.outputObject();this.model.objectSetField(r,e.key,n)}processPushField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.model.objectGetField(t.value,n);this.inputStack.push({value:r,key:n})}processPushElement(){let e=this.read(),t=this.inputEntry(),n=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:n})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.outputObject();this.model.objectDeleteField(r,n)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),n=this.outputArray(),r=this.inputEntry().value;this.model.arrayAppendSlice(n,r,e,t)}processStringAppendString(){let e=this.model.wrap(this.read()),t=this.outputString();this.model.stringAppendValue(t,e)}processStringAppendSlice(){let e=this.read(),t=this.read(),n=this.outputString(),r=this.inputEntry().value;this.model.stringAppendSlice(n,r,e,t)}}function s(e){return e>>16?4:e>>11?3:e>>7?2:1}function a(e){let t=0;for(let n=0;n<e.length;n++){let r=s(e.codePointAt(n));4==r&&n++,t+=r}return t}function o(e,t,n=0){let r=n,i=0;for(i=n;r<t;i++){let t=s(e.codePointAt(i));4===t&&i++,r+=t}return i}class l{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,n=this.meta){return{data:e,startMeta:t,endMeta:n}}asObject(e){if(!e.content){let t={};for(let[n,r]of Object.entries(e.data))t[n]=this.wrapWithMeta(r,e.startMeta);e.content={type:"object",fields:t}}return e.content}asArray(e){if(!e.content){let t=e.data.map(t=>this.wrapWithMeta(t,e.startMeta)),n=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:n}}return e.content}asString(e){if(!e.content){let t=e.data,n={value:t,utf8size:a(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([n])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let n of e)n.uses.push(t);return t}objectGetKeys(e){return e.content?Object.keys(e.content.fields):Object.keys(e.data)}objectGetField(e,t){return this.asObject(e).fields[t]}arrayGetElement(e,t){return this.asArray(e).elements[t]}finalize(e){return this.updateEndMeta(e),{content:e,startMeta:this.meta,endMeta:this.meta}}markChanged(e){return this.wrap(u(e))}updateEndMeta(e){if("string"==e.type)for(let t of e.parts)t.endMeta=this.meta;else if("array"===e.type)for(let t of e.elements)t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta;else for(let t of Object.values(e.fields))t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta}copyString(e){if(!e)return{type:"string",parts:[]};{let t=this.asString(e);return this.stringFromParts(t.parts.slice())}}copyObject(e){let t={type:"object",fields:{}};if(e){let n=this.asObject(e);Object.assign(t.fields,n.fields)}return t}copyArray(e){let t=e?this.asArray(e):null;return{type:"array",elements:t?t.elements:[],metas:t?t.metas:[]}}objectSetField(e,t,n){e.fields[t]=n}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,n,r){let i=this.asArray(t),s=i.elements.length===n;if(e.elements.push(...i.elements.slice(n,r)),s)e.metas.push(...i.metas.slice(n,r));else for(let t=n;t<r;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let n of this.asString(t).parts)this.stringAppendPart(e,n)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,n){if(0===n)return t;for(let r=t;r<e.parts.length;r++){let t=e.parts[r];if(n===t.utf8size)return r+1;if(n<t.utf8size)return this.splitString(t,n),r+1;n-=t.utf8size}throw Error("splitting string out of bounds")}
149splitString(e,t){let n,r=t,i=e.utf8size-r;if(e.utf8size!==e.value.length){let n=0;for(t=0;n<r;t++){let r=s(e.value.codePointAt(t));4===r&&t++,n+=r}}n=e.value.slice(0,t);let a={value:e.value.slice(t),utf8size:i,uses:e.uses.slice(),startMeta:e.startMeta,endMeta:e.endMeta};for(let t of(e.value=n,e.utf8size=r,e.uses)){let n=t.parts.indexOf(e);if(-1===n)throw Error("bug: mismatch between string parts and use.");t.parts.splice(n+1,0,a)}}stringAppendSlice(e,t,n,r){let i=this.asString(t),s=this.resolveStringPart(i,0,n),a=this.resolveStringPart(i,s,r-n);for(let t=s;t<a;t++){let n=i.parts[t];this.stringAppendPart(e,n)}}}function u(e){if("u">typeof e.data)return e.data;let t,n=e.content;switch(n.type){case"string":t=n.parts.map(e=>e.value).join("");break;case"array":t=n.elements.map(e=>u(e));break;case"object":for(let[e,r]of(t={},Object.entries(n.fields)))t[e]=u(r)}return e.data=t,t}function c(e){return e.content?e.content.type:Array.isArray(e.data)?"array":null===e.data?"null":typeof e.data}var d=Object.freeze({__proto__:null,applyPatch:function(e,t,n){return new i(new l(n),e,t).process()},getType:c,rebaseValue:function e(t,n){let r=c(t);if(r!==c(n))return n;let i=new l(t.endMeta),o=new l(n.endMeta);switch(r){case"object":{let r=i.asObject(t),s=o.asObject(n),a=0,l=Object.keys(r.fields).length,u=Object.keys(s.fields).length;for(let[t,n]of Object.entries(s.fields)){let i=r.fields[t];i&&(s.fields[t]=e(i,n),s.fields[t]===i&&a++)}return l===u&&l===a?t:n}case"array":{let r=i.asArray(t),s=o.asArray(n);if(r.elements.length!==s.elements.length)break;let a=0;for(let t=0;t<s.elements.length;t++)s.elements[t]=e(r.elements[t],s.elements[t]),s.elements[t]!==r.elements[t]&&a++;return 0===a?t:n}case"null":case"boolean":case"number":if(u(t)===u(n))return t;break;case"string":{let e=u(t),r=u(n);if(e===r)return t;let i=o.copyString(null),l=function(e,t){let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;){let n=e.codePointAt(i);if(n!==t.codePointAt(i))break;let a=s(n);r+=a,i+=4===a?2:1}return r}(e,r),c=function(e,t,n=0){let r=Math.min(e.length,t.length)-n,i=0;for(let n=0;n<r;){let r=e.codePointAt(e.length-1-n);if(r!==t.codePointAt(t.length-1-n))break;let a=s(r);i+=a,n+=4===a?2:1}return i}(e,r,l),d=a(r),h=a(e);0<l&&o.stringAppendSlice(i,t,0,l),l<d-c&&o.stringAppendSlice(i,n,l,d-c),h-c<h&&o.stringAppendSlice(i,t,h-c,h);let f=o.finalize(i);if(u(f)!==r)throw Error("incorrect string rebase");return f}}return n},unwrap:u,wrap:function(e,t){return{data:e,startMeta:t,endMeta:t}}});class h{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[n,r]of Object.entries(e))t.data[n]=r;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,n){e.data[t]=n}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,n,r){e.push(...t.slice(n,r))}stringAppendSlice(e,t,n,r){let i=o(t,n),s=o(t,r,i);e.data+=t.slice(i,s)}stringAppendValue(e,t){e.data+=t}}function f(e,t){return new i(new h,e,t).process()}},97494:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(12115);let i=n(68972).B?r.useLayoutEffect:r.useEffect},98233:(e,t,n)=>{var r=n(24376),i=n(20570),s=n(64439),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):s(e)}}}]);

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.